<movevent type="StepIn" uniqueid="8888" event="script" value="tile.lua"/>
local level = 140 -- the level needed to acces the tile.
local notouch = {x=1,y=1,z=1}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getPlayerLevel(cid) >= level then
doTeleportThing(cid,notouch)
doSendMagicEffect(getThingPos(cid),10)
else
doTeleportThing(cid,fromPosition)
doPlayerSendTextMessage(cid,19,'You need level 140 or higher to acces this tile.')
doSendMagicEffect(getThingPos(cid),2)
end
return true
end
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getPlayerLevel(cid) < 140 then
return doTeleportThing(cid, fromPosition) and doPlayerSendCancel(cid, "You need level 140 or higher to access this tile.")
end
return true
end