Hi there!
I got some problem with script. When You kill boss, teleport apears. Everything working fine.. but remains of boss dissapears when the boss is killed, and I dont know what the problem is.
Heres the script:
PS. I removed some unless things to avoid copy.
I got some problem with script. When You kill boss, teleport apears. Everything working fine.. but remains of boss dissapears when the boss is killed, and I dont know what the problem is.
Heres the script:
Code:
local creaturename = getCreatureName(cid)
local pos1 = {x=338, y=1845, z=5, stackpos=1}
local pos2 = {x=398, y=1928, z=5, stackpos=1}
wall1pos = {x=256, y=1845, z=5, stackpos=1}
local tpID = 5023
local message = "You now have 2 minutes to exit this room through the teleporter. It will bring you to the next room only during this time."
if creaturename == 'xxx' then
thing3 = getThingfromPos(pos1)
doRemoveItem(thing3.uid,1)
teleport = doCreateTeleport(tpID, pos2, pos1)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(wait19,pausa,wall1pos)
function wait19(wall1pos)
thing2 = getThingfromPos({x=338, y=1845, z=5, stackpos=1})
doRemoveItem(thing2.uid,1)
doCreateTeleport(5023, { x = 211, y = 1712, z = 7 }, {x=338, y=1845, z=5, stackpos=1})
return TRUE
PS. I removed some unless things to avoid copy.
Last edited: