Level Cap

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Valued Member tsj5j is offline
    MemberRank
    Feb 2006 Join Date
    United StatesLocation
    142Posts

    Level Cap

    To set a level cap :

    Open Levels.cpp

    Look for :

    Code:
    void Levels::giveEXP(Player* player, int exp, char type){
    Add below :
    (Replace LevelCapHere with the level cap you want, as a number.

    Code:
    	if(player->getLevel() < LevelCapHere) {
    eg.

    Code:
    	if(player->getLevel() < 200) {
    Look for :

    Code:
    void Levels::addStat(Player* player, unsigned char* packet){
    Add above :

    Code:
    }
    I find that you can breach the client level cap if you !killall with zakum spawned, for example.
    Therefore, a server level cap is more effective.

    If your level is equal or above the level cap, you will not get EXP for anything, including quests.


  2. #2
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Level Cap

    thanks il try this might is handy ;)

  3. #3
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Level Cap

    so you can be level 999? but what about the exp?

  4. #4
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Level Cap

    i think the exp just goes true,
    i am now compiling testing soon

  5. #5
    Valued Member chiasoft is offline
    MemberRank
    Apr 2008 Join Date
    126Posts

    Re: [Release] Level Cap

    Quote Originally Posted by xnBlaze View Post
    so you can be level 999? but what about the exp?
    You cant be lvl 999, after level 255, you start back at 0 (overflow).

  6. #6
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Level Cap

    then why not jsut make the topic (how to make level cap 255)

  7. #7
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Level Cap

    no it doesnt haved to be called level 255 because users to can set it to 210
    or any other random numbers under 255
    but he should add to his post that you cant go higher than level 255

  8. #8
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Level Cap

    ^yup.

  9. #9
    Enthusiast StrikersFVBoy is offline
    MemberRank
    Jul 2007 Join Date
    47Posts

    Re: [Release] Level Cap

    good find. will use, thanks

  10. #10
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Level Cap

    it works thanks.

  11. #11
    Valued Member tsj5j is offline
    MemberRank
    Feb 2006 Join Date
    United StatesLocation
    142Posts

    Re: [Release] Level Cap

    Yes.
    That's a thing to note : you can't exceed the boundaries limited by the client.
    It's useful if you want to cap at 120/200 though.

  12. #12
    Valued Member monsoon2004 is offline
    MemberRank
    Mar 2008 Join Date
    Dallesport, WALocation
    117Posts

    Re: [Release] Level Cap

    Something I found out which would probably be helpful to some people is that if you are going to change the level cap above level 200 you have to edit the 200 in this to whatever your new level cap is.
    Code:
    int Levels::exps[200]

    Then in levels.h you have to edit this to whatever your new level cap is as well.
    Code:
    static int exps[200];
    I think someone mentioned in another thread about having to add the exp for any levels above 200 so I'll skip that.

  13. #13
    Member xxfallenangel is offline
    MemberRank
    Aug 2008 Join Date
    84Posts

    Re: [Release] Level Cap

    cool

  14. #14
    Proficient Member 0aix2 is offline
    MemberRank
    Jul 2008 Join Date
    195Posts

    Re: [Release] Level Cap

    music pl0x

  15. #15
    Account Upgraded | Title Enabled! urtime59 is offline
    MemberRank
    Apr 2008 Join Date
    360Posts

    Re: [Release] Level Cap

    SOrry, where is the odin version?



Page 1 of 2 12 LastLast

Advertisement