Difficulty: 0/10
Knowledge needed: How to located a file, Copy/Paste
Extra Information: If you want it to be x2 exp whether they are a donator or not while wearing the amulet, post below and i'll add how to do that.
Step One: Locate and Open PlayerAssistant.java
Step Two: In PlayerAssistant.java search for the following
Code:
public boolean addSkillXP(int amount, int skill){
Step Three: After locating the method, replace it with this one
Code:
public boolean addSkillXP(int amount, int skill){
if (c.xpLock == true || c.Jail == true) {
return false;
}
if (amount+c.playerXP[skill] < 0 || c.playerXP[skill] > 200000000) {
if(c.playerXP[skill] > 200000000) {
c.playerXP[skill] = 200000000;
}
return false;
}
if (c.isDonator == 1 && c.playerEquipment[c.playerAmulet] == 295) {
amount *= Config.SERVER_EXP_BONUS * 2;
} else {
amount *= Config.SERVER_EXP_BONUS;
}
int oldLevel = getLevelForXP(c.playerXP[skill]);
c.playerXP[skill] += amount;
if (oldLevel < getLevelForXP(c.playerXP[skill])) {
if (c.playerLevel[skill] < c.getLevelForXP(c.playerXP[skill]) && skill != 3 && skill != 5)
c.playerLevel[skill] = c.getLevelForXP(c.playerXP[skill]);
levelUp(skill);
c.gfx100(199);
requestUpdates();
}
setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]);
refreshSkill(skill);
return true;
}
After doing all of the above, you should now have an amulet that gives Donators double experience. The amulet ID is "295" and is called Glariel's Amulet, feel free to change it if you like. Please post below your feedback and let me know if you would like me to also display the code that gives ANYONE double experience while wearing the amulet, not just donators or if you don't know how to change what amulet gives the experience.
I know this is a very simple guide, and is pretty much common sense but just helping out those who need it. Thanks