quirknepx
New Member
- Joined
- Aug 28, 2010
- Messages
- 17
- Reaction score
- 3
Hello I have a globalevent error.
Here's the console error:
And the globalevent script(ctf.lua) is:
The globalevent.xml tag is:
Thank's for the attention
Here's the console error:
Code:
[Error - Globalevent Interface]
data/globalevent/scripts/ctf.lua:onTime
Description:
data/globalevent/scripts/ctf.lua:8: attempt to call global 'doCreatureExecuteTalkaction' <a nil value>
stack traceback:
data/globalevent/scripts/ctf.lua:8: in function <data/globalevent/scripts/ctf.lua:2>
[Error - GlobalEvents::timer] Couldn't execute event: Auto CTF
And the globalevent script(ctf.lua) is:
Code:
function onTime()
local value = 0
for a,b in ipairs(getOnlinePlayers()) do
value = value + 1
end
if value >= 1 then
doCreatureExecuteTalkaction(getPlayerByName(getPlayersOnline()[1]), "/ctf open", true)
return true
end
return true
end
The globalevent.xml tag is:
Code:
<globalevent name="Auto CTF" time="12:26" script="ctf.lua"/>
Thank's for the attention