Hi;
I found this code at dayz.st;
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.