This will make it so you can't reset vengeance by clicking it again (It's already cast, click it again and it does another) and it will make it so if you relog, you will still have vengeance applied
Go to the player class and add this
public int castDemise = 0;
Now search for your casting vengeance method. The method is probably in playerAssistant.java, if you haven't found it search for this anim
c.startAnimation(4410);
Now search for
= System.currentTimeMillis();
Add this under it
c.castDemise = 1;
Now go into your combatAssistant class and search for this
forcedText = "Taste Vengeance!";
And add this UNDER IT.
c.castDemise = 0;
That is all the integer changing done, now all you need to do is stop people casting it again when it's already applied, and save that integer.
Search for this in clickingButtons
case 118098:
Add this under it
if(c.castDemise == 1) {
c.sendMessage("You have already cast vengeance!");
}
Now go into your public class playerSave, and search for
} else if (token.equals(
And add this in just after the bracket
else if (token.equals("Brandon")) {
p.castDemise = Integer.parseInt(token2);
}Now search for this
characterfile.newLine();
Add this under it
characterfile.write("Brandon = ", 0, 9);
characterfile.write(Integer.toString(p.castDemise), 0, Integer.toString(p.castDemise).length());
characterfile.newLine();
Please Post any Problems in the comment below incase there are, and ill get a fix, but im pretty sure this is 100%, Enjoy Rune-k
-Tampon Abuse|brandon