how to remove level up capacity? (add multiple level up)

Results 1 to 6 of 6
  1. #1
    Apprentice andydark is offline
    MemberRank
    Sep 2012 Join Date
    12Posts

    how to remove level up capacity? (add multiple level up)

    is there any way to remove the level up limit that is 1 , to 255 ? , i wanna multiple level up.


  2. #2
    Valued Member Burgundy is offline
    MemberRank
    Mar 2015 Join Date
    126Posts

    Re: how to remove level up capacity? (add multiple level up)

    What source are you using?

  3. #3
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: how to remove level up capacity? (add multiple level up)

    Remove Level Cap?

    Make it so you can level from 1 to 255 instantly if given enough exp?

    Multi Level enable?

    Rephrase yo stuff

  4. #4
    not a programmer eshays is offline
    MemberRank
    Mar 2015 Join Date
    532Posts

    Re: how to remove level up capacity? (add multiple level up)

    Quote Originally Posted by sunnyboy View Post
    Make it so you can level from 1 to 255 instantly if given enough exp?

    Multi Level enable?
    I think both those.

  5. #5
    Omega sunnyboy is offline
    MemberRank
    Mar 2010 Join Date
    6,109Posts

    Re: how to remove level up capacity? (add multiple level up)

    Quote Originally Posted by eshays View Post
    I think both those.
    Edit the gain exp method to allow multi leveling

  6. #6
    Valued Member Kiren is offline
    MemberRank
    Dec 2010 Join Date
    SingaporeLocation
    144Posts

    Re: how to remove level up capacity? (add multiple level up)

    Try to replace your gain exp to this. If you see getMaxLevel function change to 200/255.

    public void gainExp(int gain, boolean show, boolean inChat, boolean white) {
    int equip = (gain / 10) * pendantExp;
    int total = gain + equip;

    if (level < getMaxLevel()) {
    if ((long) this.exp.get() + (long) total > (long) Integer.MAX_VALUE) {
    int gainFirst = ExpTable.getExpNeededForLevel(level) - this.exp.get();
    total -= gainFirst + 1;
    this.gainExp(gainFirst + 1, false, inChat, white);
    }
    updateSingleStat(MapleStat.EXP, this.exp.addAndGet(total));
    if (show && gain != 0) {
    client.announce(MaplePacketCreator.getShowExpGain(gain, equip, inChat, white));
    }
    while (level < getMaxLevel() && exp.get() >= ExpTable.getExpNeededForLevel(level)) {
    levelUp(true);
    }
    if (exp.get() >= ExpTable.getExpNeededForLevel(level)) {
    levelUp(true);
    int need = ExpTable.getExpNeededForLevel(level);
    if (exp.get() >= need) {
    setExp(need - 1);
    updateSingleStat(MapleStat.EXP, need);
    }
    }
    }
    }



Advertisement