Ray Rewind
Doctor
Can anyone doo it
?
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) < 80 then
doTeleportThing(cid, fromPosition)
end
return true
end
function onStepIn(cid, item, position, fromPosition)
local tilelevel = 100
if(getPlayerLevel >= tilelevel) then
local currentposition = {x=1200, y=1205, z=7, stackpos=253}
local player = getThingFromPos(currentposition)
else if(getplayerLevel <= tilelevel) then
pushBack(cid, position, fromPosition, true)
end
return true
end
This would push the player back is he is lower than level 80, fromPosition is the last position of the player before stepping on the tile.You mean this?
Code:function onStepIn(cid, item, position, fromPosition) if getPlayerLevel(cid) < 80 then doTeleportThing(cid, fromPosition) end return true end