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

(Request) On Advance

Lucid

Pure~
Joined
Jun 27, 2009
Messages
99
Reaction score
0
Location
LA
I want to request 2 onadvance scripts one that you get teleported when you level or skill up and one that once you level or skill up you get promoted aithout going to an npc! I would really appreciate it!! REP+++
 
Promotion: Automatic
http://otland.net/f82/auto-promote-30786/

Teleport: New Level
Lua:
local cfg = { needLevel = 20, new_Pos = {x=100, y=100, z=7} }
function onAdvance(cid, newlevel)
    if (newlevel >= cfg.needLevel) then
        doTeleportThing(cid, cfg.new_Pos)
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have reached level ".. cfg.needLevel .." and have been teleported.")
    end
    return TRUE
end
 
Last edited:
Back
Top