• 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!

player reach x level teleport him to x

Ray Rewind

Doctor
Joined
Jun 6, 2009
Messages
1,349
Reaction score
76
Location
Germany
I search for a script when a player reach level 8 for example he gets teleported to x x x position. there shouls be an oracle where he can choose vocation and get teleported to main town
 
Ty !

Code:
function onAdvance(cid, oldlevel, newlevel)

newPosition  = {x=382, y=474, z=7}

             if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
            doTeleportThing(cid, newPosition)
           setPlayerStorageValue(cid, 1000, 1)

else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
    end
end
 
Last edited:
Ty !

Code:
function onAdvance(cid, oldlevel, newlevel)

newPosition  = {x=382, y=474, z=7}

if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
doTeleportThing(cid, newPosition)
setPlayerStorageValue(cid, 1000, 1)

else
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
    end
end
Please if you are gonna put anything on the forum, please atleast tab it..
Code:
function onAdvance(cid, oldlevel, newlevel)
    newPosition  = {x=382, y=474, z=7}
    if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
        doTeleportThing(cid, newPosition)
        setPlayerStorageValue(cid, 1000, 1)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
    end
return true
end
 
Please if you are gonna put anything on the forum, please atleast tab it..
Code:
function onAdvance(cid, oldlevel, newlevel)
    newPosition  = {x=382, y=474, z=7}
    if getPlayerStorageValue(cid, 1000) == -1 and newlevel == 8 then
        doTeleportThing(cid, newPosition)
        setPlayerStorageValue(cid, 1000, 1)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Message Here.")
    end
return true
end

He's probably new to LUA, and i linked him that script, so i think it is wrong to ask him tab it. It was already on forum in its shape, and 5 lines codes are not really hard to read even if not tabbed :p
 
Back
Top