I used this script for my server when i used TFS 1.1
Now i compiled TFS 1.2 and added this script and i started to get this error.
Scratching my head and i Think i missed something but cant find out what.
Anyone have a clue?
Code:
function onThink(interval, lastExecution)
local MESSAGE = {
"[COMMAND] Use !buyaddon to buy addons to your outfit.",
"[FORUM] Report bugs on the forum! We have admins checking there every day!",
"[Fixing] We are working on to fix POI, INQ and Svargrond Arena. News on updates made on them can be found on nightimpot.zapto.org",
"[INFO] You can buy your blessings from Quentin in Thais tempel.",
}
broadcastMessage(MESSAGE[math.random(1, #MESSAGE)], MESSAGE_STATUS_WARNING)
return true
end
Now i compiled TFS 1.2 and added this script and i started to get this error.
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/others/autobroadcast.lua:onThink
data/globalevents/scripts/others/autobroadcast.lua:8: attempt to call global 'br
oadcastMessage' (a nil value)
stack traceback:
[C]: in function 'broadcastMessage'
data/globalevents/scripts/others/autobroadcast.lua:8: in function <data/
globalevents/scripts/others/autobroadcast.lua:1>
[Error - GlobalEvents::think] Failed to execute event: autoBroadcast
Scratching my head and i Think i missed something but cant find out what.
Anyone have a clue?