local level = 8 --//What level do you need to pass?
local effect = CONST_ME_MAGIC_BLUE --//Which effect shoudl appear on the player? (Look in global.lua for more, check after "CONST_ME_")
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) => level then
TP_Pos = {x=, y=, z=} --//Where should the tp go?
else
TP_Pos = {x=, y=, z=} --//Can't enter tp, where to go back?
end
doTeleportThing(cid, TP_Pos)
doSendMagicEffect(TP_Pos, effect)
return TRUE
end