• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zombie event interval error

3688599

Darkness-babek.no-ip.org
Joined
Mar 23, 2013
Messages
92
Reaction score
12
Location
EGYPT
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"}
}
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>
 
Top