local toPos = {x = 1000, y = 1000, z = 7}
function onStepIn (cid, item, position, fromPosition)
if item.uid == UID_HERE then
return doTeleportThing(cid, toPos)
end
end
local toPos = {x = 32514, y = 23490, z = 7}
function onStepIn(cid, item, position, fromPosition)
if item.itemuid == 65532 then
if doPlayerGetLevel(cid) >= 50 then
doPlayerSendTextMessage(cid, 21, "Welcome !")
else
doPlayerSendCancel(cid, 21, "You need level 50 to enter this room !")
end
return doTeleportThing(cid, toPos)
end
Code:local toPos = {x = 1000, y = 1000, z = 7} function onStepIn (cid, item, position, fromPosition) if item.uid == UID_HERE then return doTeleportThing(cid, toPos) end end
local toPos = {x = 1000, y = 1000, z = 7}
function onStepIn (cid, item, position, fromPosition)
if(isPlayer(cid) and getPlayerLevel(cid) >= 50) then
if item.uid == UID_HERE then
doTeleportThing(cid, toPos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome!")
else
doPlayerSendCancel(cid, "Sorry you need level 50 to enter.")
doTeleportThing(cid, fromPosition, true)
end
end
end