• 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 help making my own OT 8.6

Simonthe

New Member
Joined
Jun 16, 2009
Messages
10
Reaction score
0
:w00t: Hello i need some help its pretty much my first time but whatever lets bein..

Im creating and inq quest and i got script but i just need some help with the teleports to bosses and back like how to make the teleport spawn and you have 2 mins to enter etc.. Just like where to put what Heres my script for ushuriel, Thanks.
Lua:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "Ushuriel")
local creaturename = getCreatureName(cid)
--- miejsce gdzie tp zostanie utworzone
local pos1 = {x=2138, y=1448, z=5, stackpos=1}
--- gdzie teleport Cie teleportuje:
local pos2 = {x=2138, y=1447, z=5, stackpos=1}
pausa = 120000 -- 2 sec.
wall1pos = {x=2146, y=1446, 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 == 'Ushuriel' then
thing3 = getThingfromPos({x=248, y=1845, z=5, stackpos=1})
doRemoveItem(thing3.uid,1)
teleport = doCreateTeleport(tpID, pos2, pos1)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(wait15,pausa,wall1pos)
end
return TRUE
end
function wait15(wall1pos)
thing2 = getThingfromPos({x=2154, y=1448, z=5, stackpos=1})
doRemoveItem(thing2.uid,1)
doCreateTeleport(5023, { x = 2155, y = 1448, z = 5 }, { x = 2213, y = 1371, z = 5 })
return TRUE
end
 
Last edited by a moderator:
Back
Top