Author Topic: [PI] Making vengeance save on logout  (Read 66 times)

Offline Tampon Abuse

  • Dragon Member
  • *
  • Posts: 193
  • Rep 1
  • All vote for Rune-Kingdom!
  • Location: Oklahoma, Oklahoma City
    • View Profile
[PI] Making vengeance save on logout
« on: April 02, 2011, 09:18:53 pm »
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
Code: [Select]
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
Code: [Select]
c.startAnimation(4410);
Now search for
Code: [Select]
= System.currentTimeMillis();
Add this under it
Code: [Select]
c.castDemise = 1;
Now go into your combatAssistant class and search for this
Code: [Select]
forcedText = "Taste Vengeance!";
And add this UNDER IT.
Code: [Select]
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
Code: [Select]
case 118098:

Add this under it
Code: [Select]
if(c.castDemise == 1) {
c.sendMessage("You have already cast vengeance!");
}

Now go into your public class playerSave, and search for
Code: [Select]
} else if (token.equals(
And add this in just after the bracket
Code: [Select]
else if (token.equals("Brandon")) {
p.castDemise = Integer.parseInt(token2);
}
Now search for this
Code: [Select]
characterfile.newLine();
Add this under it
Code: [Select]
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

Everyone Vote For RUNE-KINGDOM at http://www.mmorpgtop200.com/in.php?site=6792

Share on Bluesky Share on Facebook


Offline luigihbk

  • Bronze Member
  • *
  • Posts: 1
  • Rep 0
    • View Profile
Re: [PI] Making vengeance save on logout
« Reply #1 on: April 04, 2011, 02:31:46 am »
nice bro i gotta try this right now

Offline Tampon Abuse

  • Dragon Member
  • *
  • Posts: 193
  • Rep 1
  • All vote for Rune-Kingdom!
  • Location: Oklahoma, Oklahoma City
    • View Profile
Re: [PI] Making vengeance save on logout
« Reply #2 on: April 04, 2011, 02:34:07 am »
No Problem!

Everyone Vote For RUNE-KINGDOM at http://www.mmorpgtop200.com/in.php?site=6792

Offline Cinodor

  • I'm Awesome
  • Veteran
  • Pernix Member
  • *
  • Posts: 494
  • Rep 15
  • I Do Graphics To.
  • Location: GMT -6 (Oklahoma)
    • View Profile
Re: [PI] Making vengeance save on logout
« Reply #3 on: April 04, 2011, 03:46:07 am »
Flame+ You're really doing good with all of these tutorials and stuff. Keep up the good work Bro.
Signature Loading.. Please Wait..

Offline Tampon Abuse

  • Dragon Member
  • *
  • Posts: 193
  • Rep 1
  • All vote for Rune-Kingdom!
  • Location: Oklahoma, Oklahoma City
    • View Profile
Re: [PI] Making vengeance save on logout
« Reply #4 on: April 04, 2011, 04:39:36 am »
Thanks Cino
That means alot, coming from a moderator <3

Everyone Vote For RUNE-KINGDOM at http://www.mmorpgtop200.com/in.php?site=6792