Jump to content
  • 0

How to run SQL code (preventing base structures from being deleted)


Joe

Question

Hi guys,

I've seen lots of places where people have posted the below:

 

"Prevent Cleanup of base building items

This is NOT recommended and is a only a workaround to prevent base building items from being cleaned up by the normal internal cleanup system. PLEASE NOTE: This will cause issues due to keeping too many objects in the world.

CREATE EVENT preventCleanup
    ON SCHEDULE EVERY 1 DAY
    COMMENT 'prevents all cleanup by setting datestamp to current'
    DO
        UPDATE `object_data` SET `Datestamp`=CURRENT_TIMESTAMP WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )"

But I can never seem to find a post that explains how to do this, could someone please help me by telling me how to run this.

Any help would be great.

 

 

 

Regards

Joe

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...