<globalevent name="auto_radiwo" time="21:35:11" event="script" value="auto_radiwo.lua"/>
function onThink(interval, lastExecution)
executeRaid("Nazwa_Bossa")
return TRUE
end
[11:29:37.964] [Warning - Event::loadScript] Event onTime not found (data/globalevents/scripts/auto_radiwo.lua)
local storage = 1344
local raids = {
"Morgaroth",
"Ghazbaran",
"Undead Jester",
"goblin",
"Dryads",
"Halloweenhare",
"Hornedfox",
"Necropharus",
"Wolfsraid",
"UndeadArmy",
"UndeadDarashia",
"The Old Widow",
"Scarabs",
"Rats",
"Quara",
"Pirates",
"Orshabaal",
"OrcsThais",
"Ferumbras",
"Elfs",
"Demodras",
"Barbarian"
}
function onThink(interval, lastExecution, thinkInterval)
if getGlobalStorageValue(storage) == -1 or getGlobalStorageValue(storage) < os.time() then
executeRaid(raids[math.random(1, #raids)])
setGlobalStorageValue(storage, os.time() + 9 * 60 * 60)
end
return TRUE
end
<globalevent name="raid" interval="108000" event="script" value="raid.lua"/>
PHP:local storage = 1344 local raids = { "Morgaroth", "Ghazbaran", "Undead Jester", "goblin", "Dryads", "Halloweenhare", "Hornedfox", "Necropharus", "Wolfsraid", "UndeadArmy", "UndeadDarashia", "The Old Widow", "Scarabs", "Rats", "Quara", "Pirates", "Orshabaal", "OrcsThais", "Ferumbras", "Elfs", "Demodras", "Barbarian" } function onThink(interval, lastExecution, thinkInterval) if getGlobalStorageValue(storage) == -1 or getGlobalStorageValue(storage) < os.time() then executeRaid(raids[math.random(1, #raids)]) setGlobalStorageValue(storage, os.time() + 9 * 60 * 60) end return TRUE end