AllenFromStacysmom Posted February 19, 2015 Report Share Posted February 19, 2015 Hey, guys So I have dayz.st for host, which is terrible, because I have no access to hive.int to change the decay time. And the default plot pole maintain isn't working ,either. When I look at the maintain preview, it shows that 0 building parts in range sometimes it shows a few building parts when the walls are damaged. So is there a way to fix it, or add a SQL event to database that damage the base a little bit so players can maintain it Thanks :D Link to comment Share on other sites More sharing options...
0 clocwork Posted February 19, 2015 Report Share Posted February 19, 2015 CREATE EVENT `Maintenance` ON SCHEDULE EVERY 1 DAY STARTS '2014-12-25 00:00:00' ENDS '2026-12-25 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE `object_data` SET `Object_DATA`.`Damage`=0.3 WHERE `Object_DATA`.`ObjectUID` <> 0 AND `Object_DATA`.`CharacterID` <> 0 AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY AND ( (`Object_DATA`.`Inventory` IS NULL) OR (`Object_DATA`.`Inventory` = '[]') ) Link to comment Share on other sites More sharing options...
0 AllenFromStacysmom Posted February 19, 2015 Author Report Share Posted February 19, 2015 CREATE EVENT `Maintenance` ON SCHEDULE EVERY 1 DAY STARTS '2014-12-25 00:00:00' ENDS '2026-12-25 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE `object_data` SET `Object_DATA`.`Damage`=0.3 WHERE `Object_DATA`.`ObjectUID` <> 0 AND `Object_DATA`.`CharacterID` <> 0 AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY AND ( (`Object_DATA`.`Inventory` IS NULL) OR (`Object_DATA`.`Inventory` = '[]') ) thanks, one more quick question: AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY what does this interval 3 day mean Link to comment Share on other sites More sharing options...
0 AllenFromStacysmom Posted February 19, 2015 Author Report Share Posted February 19, 2015 CREATE EVENT `Maintenance` ON SCHEDULE EVERY 1 DAY STARTS '2014-12-25 00:00:00' ENDS '2026-12-25 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE `object_data` SET `Object_DATA`.`Damage`=0.3 WHERE `Object_DATA`.`ObjectUID` <> 0 AND `Object_DATA`.`CharacterID` <> 0 AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY AND ( (`Object_DATA`.`Inventory` IS NULL) OR (`Object_DATA`.`Inventory` = '[]') ) Also, whats the format of crating an event, because I wanna add in some mroe SQL event I dont understand what does this part mean ON COMPLETION NOT PRESERVE ENABLE Link to comment Share on other sites More sharing options...
0 3steN8igall Posted February 19, 2015 Report Share Posted February 19, 2015 why not in init.sqf ?!? DZE_DamageBeforeMaint = 0.00; so you can maintain all the time Link to comment Share on other sites More sharing options...
0 AllenFromStacysmom Posted February 19, 2015 Author Report Share Posted February 19, 2015 why not in init.sqf ?!? DZE_DamageBeforeMaint = 0.00; so you can maintain all the time doesn't work, still says 0 building parts in range Link to comment Share on other sites More sharing options...
0 clocwork Posted February 20, 2015 Report Share Posted February 20, 2015 Also, whats the format of crating an event, because I wanna add in some mroe SQL event I dont understand what does this part mean ON COMPLETION NOT PRESERVE ENABLE AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY This makes it so you have to wait a minimum of 3 days since the last maintenance or from placing the object before maintaining will work. This value can be adjusted/removed as preferred. ON COMPLETION NOT PRESERVE ENABLE just makes it so the sql event doesn't expire and get dropped after completing the first time and will allow it to be a repeating event. (AOW)Recon 1 Link to comment Share on other sites More sharing options...
0 (AOW)Recon Posted February 20, 2015 Report Share Posted February 20, 2015 AND `Object_DATA`.`Datestamp` < now() - INTERVAL 3 DAY This makes it so you have to wait a minimum of 3 days since the last maintenance or from placing the object before maintaining will work. This value can be adjusted/removed as preferred. ON COMPLETION NOT PRESERVE ENABLE just makes it so the sql event doesn't expire and get dropped after completing the first time and will allow it to be a repeating event. CLOCWORK IS A NOOB :P and yes allen cloc is right :) Link to comment Share on other sites More sharing options...
0 DangerRuss Posted March 18, 2015 Report Share Posted March 18, 2015 wrong section.. needs to be moved to scripting help Link to comment Share on other sites More sharing options...
Question
AllenFromStacysmom
Hey, guys
So I have dayz.st for host, which is terrible, because I have no access to hive.int to change the decay time.
And the default plot pole maintain isn't working ,either.
When I look at the maintain preview, it shows that 0 building parts in range
sometimes it shows a few building parts when the walls are damaged.
So is there a way to fix it, or add a SQL event to database that damage the base a little bit so players can maintain it
Thanks :D
Link to comment
Share on other sites
8 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