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

Max level/stop getting exp

Andréew

Humble mapper.
Joined
Apr 14, 2015
Messages
833
Solutions
2
Reaction score
1,929
Location
Sweden
is there someway to set a max level without having to compile the server?
is it possible to do it real simple like using exp stages and after lvl 30 you get 0.0x exp?

whats the easiest way to do this? Thanks.
 
is there someway to set a max level without having to compile the server?
is it possible to do it real simple like using exp stages and after lvl 30 you get 0.0x exp?

whats the easiest way to do this? Thanks.
onAdvance scripts
 
i use cryingdamson 0.3.6 v8.2 sorry for not including this in the first post! :)

what do you guys mean with onAdvance scripts?
 
Not to mention if you advance from 99 to 101 it doesn't matter if the limit is 100 by that method.
Code:
local c = {
    savePlayersOnAdvance = true,
    maxLevel = 30
}

function onAdvance(cid, skill, oldLevel, newLevel)
    if(c.savePlayersOnAdvance) then
        doPlayerSave(cid, true)
    end
 
    if newLevel >= c.maxLevel and skill == SKILL__LEVEL then
        newLevel = c.maxLevel
    end
 
    return true
end

This file is located in data\creaturescripts\scripts\advancesave.lua
 
Last edited:
Alternative.. and/or combined with Codex's script.

data/xml/stages.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
   <world id="0" multiplier="1">
     <stage minlevel="1" maxlevel="29" multiplier="1"/>
     <stage minlevel="30" multiplier="0"/>
   </world>
</stages>
config.lua
Code:
  -- Rates
   experienceStages = true
   rateExperience = 1.0
   rateExperienceFromPlayers = 0
-- (note.. there is more then just this there.. but yeah, just make experienceStages = true
 
Back
Top