Add a check into the addxp method if the player is wearing the ring, double the experience I guess.
|
|
Hello,
I am making a project and I would like to know
is it possible to make a ring that gives double xp
or a set amount so double xp for 13m xp?
Thanks!
- Xe q

Add a check into the addxp method if the player is wearing the ring, double the experience I guess.
put that into addXp in skills.java change the numbers to ur liking.Code:if (player.getEquipment().getRingId() == 1) exp *= 1;

Try putting a space after =, might not get the error...
toCode:exp *=1;..also, for double xp I think it should be number 2Code:exp *= 1;

try changing exp to experience or xp... or just look for something similar to it and change it to that
dude it works fine in skills.java add that code under
Maybe you need to add this method in skills.java to.Code:if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH && skill != MAGIC && skill != RANGE && skill != HITPOINTS)
Code:public void setXp(int skill, double exp) { xp[skill] = exp; refresh(skill);

Maybe you a different variable for xp, I don't use that source so no clue
Why do you have a custom line in your compiler that states "no errors detected"?? LOL
| « 667 vBulletin Integration? | [req] g.e [req] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |