• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Inq boss issue

phern

alysiaots.com
Joined
Nov 2, 2008
Messages
220
Reaction score
96
Location
Poland
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:
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:
Back
Top