kito2
www.masteria.net
Hi, it is possible to make that the raids execute one day at week?
probably easiest way is using globalevent and checking inside of it day of week
if os.date("%w") == then
your script
else
return false
end
<globalevent name="yourscript" time="21:35" event="script" value="yourscript.lua"/>
if os.date("%w") == then
your script
else
return false
end
local storage = 1344
local raids = {
"Barbarian"
}
function onTime()
executeRaid(raids[math.random(1, #raids)])
end
local day = string.lower(os.date("%A", os.time()))
if day == "monday"
script
else
return false
local storage = 1344
local raids = {
"Barbarian"
}
function onTime()
local day = string.lower(os.date("%A", os.time()))
if (day == "monday")
executeRaid(raids[math.random(1, #raids)])
else
return false
end
local storage = 1344
local raids = {
"Barbarian"
}
function onTime()
local day = string.lower(os.date("%A"))
if (day == "monday")
executeRaid(raids[math.random(1, #raids)])
end
return true
end