script:
function onStepIn(cid, item, position, fromPosition)
level = 300
if getPlayerLevel(cid) < level then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid,"Somente level " .. level .. " ou mais podem passar aqui.")
end
return TRUE
end
tags
<movevent type="StepIn" uniqueid="13550" event="script" value="level.lua"/>
<movevent type="StepOut" uniqueid="13550" event="script" value="level.lua"/>
Erro que aparece: [Error - MoveEvent::executeStep] Call stack overflow.
[Error - MoveEvent::executeStep] Call stack overflow.
[Error - MoveEvent::executeStep] Call stack overflow.