local t,l,i = {x = 33427, y = 31829, z = 13},100,7761
function onStepIn(cid,item,topos,itemEx,frompos)
local v = getThingPos(cid)
if getPlayerItemCount(cid,i) > 0 then
if getPlayerLevel(cid) >= l then
doTeleportThing(cid,t)
doSendMagicEffect(t,CONST_ME_TELEPORT)
else
doTeleportThing(cid,frompos)
doPlayerSendTextMessage(cid,MESSAGE_LAST,'You need to be level 100.')
doSendMagicEffect(v,CONST_ME_POFF)
end
else
doPlayerSendTextMessage(cid,MESSAGE_LAST,'You must have pirate legs to enter the teleport.')
doTeleportThing(cid,frompos)
doSendMagicEffect(v,CONST_ME_POFF)
end
return true
end