1 (edited by yvoms 2016-11-04 09:11:36)

hello there,

I'm trying to modify the level cap to 255.
I have all the required SQL files setup i think (maybe i'm missing something here?)

Player_classlevelstats
player_levelstats
pet_levelstats


Modified the core:
DBCEnums.h
DBCStructure.h
Formulas.h

Changed the config max level.
However players can't go higher then level 70,
Could you maybe tell me what i'm missing?

you can level up by using levelup command but players don't level up in normal cases?

yes exactly.

4 (edited by yvoms 2016-11-04 18:37:45)

I'm pretty sure it has something to do with the Formula,
formulas.h - Commented the lines, you now can go over level 70, involved the rates.past.70 in the config setting.

   else if (lvl < 255) //<- set to 255 instead of 70
        xp = (155 + mxp(lvl) * (1344 - ((69 - lvl) * (7 + (69 - lvl) * 8 - 1) / 2)));
    //else //<-- this else function will not be called, as the above function covers every level.
    //{
    //    // level higher than 70 is not supported
    //    xp = (uint32)(779700 * (pow(sWorld.getRate(RATE_XP_PAST_70), (int32)lvl - 69)));
    //    return ((xp < 0x7fffffff) ? xp : 0x7fffffff);
    //}

However i'm having the same issue as i've seen before at someone else's topic, i'm unable to go over level 88.

Rewrote the formulas, level goes beyond 70 now, even keeps the XP bar active!