El Man
«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
- Joined
- Mar 23, 2013
- Messages
- 161
- Reaction score
- 33
when event starting the globalevent interval Too much is decided
how to fix this error?
Mods
zombie_days = {
["Saturday"] = {"18:00","00:00"},
["Sunday"] = {"18:00","00:00"},
["Monday"] = {"18:00","00:00"},
["Tuesday"] = {"18:00","00:00"},
["Wednesday"] = {"18:00","00:00"},
["Thursday"] = {"18:00","00:00"},
["Friday"] = {"18:00","00:00"}
}
how to fix this error?
Mods
zombie_days = {
["Saturday"] = {"18:00","00:00"},
["Sunday"] = {"18:00","00:00"},
["Monday"] = {"18:00","00:00"},
["Tuesday"] = {"18:00","00:00"},
["Wednesday"] = {"18:00","00:00"},
["Thursday"] = {"18:00","00:00"},
["Friday"] = {"18:00","00:00"}
}
Lua:
<globalevent name="Zombie_Start" interval="60" event="script"><![CDATA[
domodlib('zombie_config')
function onThink(interval, lastExecution)
if zombie_days[os.date("%A")] then
local hrs = tostring(os.date("%X")):sub(1, 5)
if isInArray(zombie_days[os.date("%A")], hrs) and getGlobalStorageValue(zombie_config.storages[3]) <= 0 then
local tp = doCreateItem(1387, 1, zombie_config.teleport[1])
doItemSetAttribute(tp, "aid", 45110)
CheckZombieEvent(zombie_config.CheckTime)
setGlobalStorageValue(zombie_config.storages[1], 0)
setGlobalStorageValue(zombie_config.storages[2], 0)
HaveCreatureZombie(zombie_config.arena, true)
end
end
return true
end]]></globalevent>