• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

If Player Lower then Level 80 Can not enter SQM Movements

You mean this?
Code:
function onStepIn(cid, item, position, fromPosition)

     if getPlayerLevel(cid) < 80 then
         doTeleportThing(cid, fromPosition)
     end
     return true
end
 
Yeah I mean there is a tile and if Player level 80+ He can go over it if he is lower he get's teleported back^^

I tried myself with this script haha

Code:
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
 
You mean this?
Code:
function onStepIn(cid, item, position, fromPosition)

     if getPlayerLevel(cid) < 80 then
         doTeleportThing(cid, fromPosition)
     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.
 
Back
Top