Thunder Beam
New Member
- Joined
- Apr 23, 2008
- Messages
- 107
- Reaction score
- 0
Hello,
I have some problems with my Azerus, I'll explain it:
When you killed Azerus there has to appear a Teleporter, that works fine but now, it has to DISappear after 2 min's but that won't work, who can help me?
This is the script:
And this is the error in my console (2 mins after killing Azerus):
please help me !
I have some problems with my Azerus, I'll explain it:
When you killed Azerus there has to appear a Teleporter, that works fine but now, it has to DISappear after 2 min's but that won't work, who can help me?
This is the script:
function onKill(cid, target)
if (getCreatureName(target) == "Azerus") then
local teleport = doCreateTeleport(1387, {x=1661,y=1508,z=12}, {x=1730,y=1608,z=10}) -- tworzenie teleportu
local x = {tp = teleport}
addEvent(usun,2*60*1000,x)
end
return TRUE
end
function usun(x)
doRemoveItem(getThingfromPos(corpse).uid, 1)
end
And this is the error in my console (2 mins after killing Azerus):
[25/04/2009 17:13:24] Lua Script Error: [CreatureScript Interface]
[25/04/2009 17:13:24] in a timer event called from:
[25/04/2009 17:13:24] data/creaturescripts/scripts/azerushunt.luanKill
[25/04/2009 17:13:24] attempt to index a nil value
[25/04/2009 17:13:24] stack traceback:
[25/04/2009 17:13:24] [C]: in function 'getThingfromPos'
[25/04/2009 17:13:24] data/creaturescripts/scripts/azerushunt.lua:12: in function <data/creaturescripts/scripts/azerushunt.lua:11>
please help me !