llocal leather = 5920 --leather id
local lvl = 50
local pos = {x=1000,y=1000,z=7}
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) < 50 then
doPlayerSendCancel(cid,"Only players of lvl 50 or more can pass.")
elseif not (doPlayerRemoveItem(cid,leather,5)) then
doPlayerSendCancel(cid,"You must have 5 mino leathers.")
doTeleportThing(cid,fromPosition,FALSE)
doSendMagicEffect(getThingPos(cid),2)
else
doTeleportThing(cid,pos,FALSE)
doSendMagicEffect(getThingPos(cid),10)
end
return true
end