help v83, level 250

Joined
Jul 30, 2014
Messages
4
Reaction score
0
Hi my friends.
I want to increase the level to 250, How do i do?
I tried but nothing

My edition:

ExpTable.java
PHP:
public static int getExpNeededForLevel(int level) {
return level > 250 ? 2000000000 : exp[level];
}

MapleCharacter.java
PHP:
if (level >= getMaxLevel()) {
exp.set(0);
level = getMaxLevel(); //To prevent levels past 200
}
maxhp = Math.min(250000, maxhp);
maxmp = Math.min(250000, maxmp);
if (level == 250) {
exp.set(0);
}
hp = maxhp;
mp = maxmp;

Source: Solaxi.

Thank you
 
Did you change it to 250?
yes...
PHP:
public int getMaxLevel() {
        return isCygnus() ? 120 : 250;
}
Did you add the exp for 200-250 in the exptable?
I thought i was already.

look!
Churano - help v83, level 250 - RaGEZONE Forums
 
Upvote 0
public static int getExpNeededForLevel(int level) {
return level > 250 ? 2000000000 : exp[level];
}

Should be
public static int getExpNeededForLevel(int level) {
return level > 200 ? 2000000000 : exp[level];
}

Your exp array doesn't have that many (250) values - which causes the ArrayIndexOutOfBoundsException.
An alternative would be adding values into the exp array itself.
 
Upvote 0
Back