Jump to content
  • 0
Sign in to follow this  
Google rapes Bing

Need help changing the xp rate

Question

Well, i tried changing the Settings.XP_RATE and multipliers but still didn't work...
The code is from a class called "Skills.java" this is a 718/728.
This is the code that i had:

public void addXp(int skill, double exp) {
player.getControlerManager().trackXP(skill, (int) exp);
if (player.isXpLocked())
return;
if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH
&& skill != MAGIC && skill != RANGE && skill != HITPOINTS)
exp *= player.isExtremeDonator() ? Settings.XP_RATE + 2 : player.isDonator() ? Settings.XP_RATE + 1 : Settings.XP_RATE;
if (player.getAuraManager().usingWisdom())
exp *= 1.025;
if (skill != PRAYER&& skill != CRAFTING)
exp *= 10;
int oldLevel = getLevelForXp(skill);
xp[skill] += exp;
for(int i = 0; i < trackSkills.length; i++) {
if(trackSkills[i]) {
if(trackSkillsIds[i] == 30
|| (trackSkillsIds[i] == 29
&& (skill == Skills.ATTACK || skill == Skills.DEFENCE || skill == Skills.STRENGTH
|| skill == Skills.MAGIC || skill == Skills.RANGE || skill == Skills.HITPOINTS))
|| trackSkillsIds[i] == getCounterSkill(skill)) {
xpTracks[i] += exp;
refreshCounterXp(i);
}
}
}




Please help me with this and thank you.


*Disregard this post i found the problem. Thank you. Edited by Google rapes Bing
Found the error

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Sign in to follow this  

×