D
Deleted member 141899
Guest
Hello,
I Have some globalevents that i use Os.Date for execute, like:
In tag of globalevent.xml have exact time it will run, example: 16:00 and the script is onTime().
But all days execute in the same time, and i want to change this, for each day execute different time.
Its possible to change in globalevents tag to "interval" and put the exact time for each day in the script? like:
how can i do this? i don't know much lua can someone help me? thanks
I Have some globalevents that i use Os.Date for execute, like:
Code:
local days = {
['Monday'] = {},
['Wednesday'] = {},
['Friday'] = {},
['Saturday'] = {},
['Sunday'] = {}
}
if days[os.date("%A")] then
In tag of globalevent.xml have exact time it will run, example: 16:00 and the script is onTime().
But all days execute in the same time, and i want to change this, for each day execute different time.
Its possible to change in globalevents tag to "interval" and put the exact time for each day in the script? like:
Code:
local days = {
['Monday'] = {16:00}
how can i do this? i don't know much lua can someone help me? thanks