DROP EVENT IF EXISTS removeObjectEmpty;
CREATE EVENT removeObjectEmpty
ON SCHEDULE EVERY 1 DAY
COMMENT 'Removes abandoned storage objects and vehicles'
DO
DELETE FROM `Object_DATA` WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 24 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') OR (`Inventory` = '[[[],[]],[[],[]],[[],[]]]') )
;
It says it will remove vehicles and old objects that has not been touched in 24 days; but my main concern is; will this code remove buildables aswell? And if yes; could someone please tell me a way to exclude buildables from this code?
I just want to remove old vehicles that havn't been touched for like 2 weeks every day to spawn in new/fresh vehicles without it removing buildables.
Question
Infinity
Hi;
I found this code at dayz.st;
It says it will remove vehicles and old objects that has not been touched in 24 days; but my main concern is; will this code remove buildables aswell? And if yes; could someone please tell me a way to exclude buildables from this code?
I just want to remove old vehicles that havn't been touched for like 2 weeks every day to spawn in new/fresh vehicles without it removing buildables.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now