New schedule.cfg for automatic launch scripts periodically

Made a small change or new addition to the POL Core that makes a difference? You can post the changes here in .patch or .diff file format, for our Dev team to screen and apply to the SVN!

Moderator: POL Developer

Locked
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

New schedule.cfg for automatic launch scripts periodically

Post by Terciob »

This is a small implementation for schedule witch automatic start scripts. I appreciate if any poldev check if is correct the way i used for launch scripts and the 60 sec wait between cycles. The file lives inside pol/config, follow the documentation:

Name [optional] -> a name for this task (any string, default "no label").
Day [optional] -> the specific launch day for this task (1 ... 31, default: 0).
Month [optional] -> same as above, but for month (1 ... 12, default: 0).
Week [optional] -> day of week for launch this task (mon, tue, wed, thu, fri, sat, sun, weekday, weekend, default: all).
Min [optional] -> minutes for launch this task (0 ... 59, default: 0).
Repeat [optional] -> if false, only run once for each pol start (1/0, default: 1).
Critic [optional] -> if true, the script run in critical mode (1/0, default: 0).
Startup [optional] -> if true, this task will launch after pol startup (like others start.ecl), repeat are always 0 for startup task.
Hour -> what time launch this task (0 ... 23).
Script -> script to be launch in this task.

Example:
Schedule
{
Name Champion Respaw
Week fri weekend
Hour 22
Script :mypackpage:respaw_champion
}

Schedule
{
Name My Dally Custom Event
Hour 19
Min 30
Script :mypackpage:my_event_script
}
Attachments
shedule_scripts.patch
(9.21 KiB) Downloaded 398 times
Locked