Sentinel3
New Member
- Joined
- Oct 16, 2014
- Messages
- 180
- Reaction score
- 0
Hi everyone,
I got an error when server tried to start raid.
Using: Lastest version of TFS (1.0)
Maybe I miss some function in /data/global.lua?
The error I got in console's server:
/data/globalevents/scripts/spawn/raid.lua
I got an error when server tried to start raid.
Using: Lastest version of TFS (1.0)
Maybe I miss some function in /data/global.lua?
The error I got in console's server:
HTML:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/spawn/raid.lua:onThink
data/globalevents/scripts/spawn/raid.lua:28: attempt to call global 'executeRaid' (a nil value)
stack traceback:
[C]: in function 'executeRaid'
data/globalevents/scripts/spawn/raid.lua:28: in function <data/globalevents/scripts/spawn/raid.lua:26>
[Error - GlobalEvents::think] Failed to execute event: raid
/data/globalevents/scripts/spawn/raid.lua
HTML:
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