Subscriber alex Posted February 2, 2015 Subscriber Share Posted February 2, 2015 A way to schedule jobs (commands or scripts) to run periodically at fixed times, dates, or intervals. Thanks Quote Link to comment Share on other sites More sharing options...
Management hellreturn Posted February 2, 2015 Management Share Posted February 2, 2015 A way to schedule jobs (commands or scripts) to run periodically at fixed times, dates, or intervals. Thanks What you want to run? Give some more detail info or examples. I understand you are asking for cron but on what specific area you are planning to use it. Quote Link to comment Share on other sites More sharing options...
Subscriber alex Posted February 2, 2015 Author Subscriber Share Posted February 2, 2015 exemple, could be added in shrubbot.cfg [cron]when = every sunday 8pmexec = !pistolwar on; bot maxbot -1; exec pistolwarcycle.cfg [cron]when = every monday 1amexec = !pistolwar off; bot maxbot 10; exec objectivecycle.cfg [cron]when = every 120 sexec = !spec999 [cron]When = 1-1-2016exec = say HAPPY NEW YEAR!!!! [cron]when = every monthexec = dboptimize [cron]when = every yearexec = dbcleanup Things like that! Quote Link to comment Share on other sites More sharing options...
Zelly Posted February 2, 2015 Share Posted February 2, 2015 You could do this with lua. http://www.lua.org/pil/22.1.html hellreturn and Dragonji 2 Quote Link to comment Share on other sites More sharing options...
Subscriber alex Posted February 3, 2015 Author Subscriber Share Posted February 3, 2015 Seems cool when you know lua :/ Quote Link to comment Share on other sites More sharing options...
Zelly Posted February 3, 2015 Share Posted February 3, 2015 Yes indeed a lot of things can be accomplished with lua.That is why it is in the mod so servers can add their own features and customize them to their exact needs.Someone may be willing to make one for you or I may give it a go when I get bored. Or you could learn lua, it is very easy compared to most other languages, especially if you already know some other languages. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.