function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getPlayerLevel(cid) < 100 then
doPlayerSendCancel(cid, 'You may not enter.')
doTeleportThing(cid, fromPosition, true)
else
doSendAnimatedText(toPosition, 'Access')
doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)
end
return true
end
how do i use it? and where do i put it?Code:function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if getPlayerLevel(cid) < 100 then doPlayerSendCancel(cid, 'You may not enter.') doTeleportThing(cid, fromPosition, true) else doSendAnimatedText(toPosition, 'Access') doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA) end return true end
okay, how do i use it? example put it out? and do i need to add something in the xml file?movements
all scripts onStepIn add in movements
Thx!You need to add the action ID to the tile you dont want them to step in with RME