Code:public boolean donatorcape() { if (playerEquipment[playerRing] == 12742) { Config.SERVER_EXP_BONUS = 2; } return false; }
|
I want to make so the Donator cape gives 2x xp but it just wont work. The donator cape is working with the anime and only donors can wear it. The code that im using is:
But it wont work... Anyone got any ideas?Code:public boolean donatorcape() { if(playerEquipment[playerCape] == 12742); { Config.SERVER_EXP_BONUS = 2; } return false; }
Source: Solitude
Code:public boolean donatorcape() { if (playerEquipment[playerRing] == 12742) { Config.SERVER_EXP_BONUS = 2; } return false; }
I tried this but the only thing you changed was playerRing? What does that do? Didnt work btw
Bump
Try this maybe:
Code:public boolean donatorCape() { if (playerEquipment[playerCape] == 12742) { Config.SERVER_EXP_BONUS * 2; } return false; }
Nope its not an statement
In PlayerAssistant under addSkillXP, that's a double experience ring.Code:if(c.playerEquipment[12] == 15013) { amount *= Config.SERVER_EXP_BONUS+1.0; }
Add this in PlayerAssistant
addSkillXP in PlayerAssistant method, below this:Code:public double experienceMultiplier; public void checkMultiplier() { if (playerEquipment[playerCape] == 12742) { experienceMultiplier = 2.0; return; } experienceMultiplier = 1.0; }
add:Code:public boolean addSkillXP(int amount, int skill) {
Code:checkMultiplier(); amount *= experienceMultiplier;
Ugh it wont fucking work...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |