player class
|
Hi guys,
When new players join my server they get automaticly a combat level of 99 and all combat skills 99 i want to change that but idk in which file it is located
Can u guys tell me where it is located? in which file? which line? i can fix it myself if i knew where it is..
Thanks guys.
player class
ok do u know where i need to search for?
Post me your Player.java
i found this:
public void requestFileServer() {
//Downloads maps to players cache on login
for (int skill = 0; skill < 7; skill++) {
c.playerXP[skill] = c.getPA().getXPForLevel(99)+5;
c.playerLevel[skill] = c.getPA().getLevelForXP(c.playerXP[skill]);
c.getPA().refreshSkill(skill);
}
c.constitution = 990;
c.getPA().requestUpdates();
}
ik it has to do something with this i tried many things, when i tried some things i get lvl 1 but hitpoints start at 0 then goes toe 1,2,3,4,5,6,7,8,9 ......
how do i fix it??
btw this is inside playerass.java
startup
Replace this:
With this:Code:public int getLevelForXP(int exp) { int points = 0; int output = 0; for (int lvl = 1; lvl <= 99; lvl++) { points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0)); output = (int)Math.floor(points / 4); if (output >= exp) return lvl; } return 1; }
Tell me if that did anythingCode:public int getLevelForXP(int exp) { int points = 0; int output = 0; for (int lvl = 1; lvl <= 99; lvl++) { points += Math.floor((double)lvl + 300.0 * Math.pow(2.0, (double)lvl / 7.0)); output = (int)Math.floor(points / 4); if (output >= exp) return lvl; } return 99; }
What base are you using ?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |