Author Topic: [DELTA] Full Dharok effect! [DELTA]  (Read 86 times)

Offline The Unholy

  • Steel Member
  • *
  • Posts: 36
  • Rep 4
    • View Profile
[DELTA] Full Dharok effect! [DELTA]
« on: March 31, 2011, 07:25:35 pm »
Difficulty: 1/10
Files edited: Client.Java
Credits: The Unholy


This tutorial will teach you how to maximize a players damage capability while wearing certain items. And teach you how to make the hit higher according to how low the players HP is (You could also reverse this, making the weapon hit higher if it's wearers HP is higher).

Open up Client.java and go to your list of booleans, or simply search for:
Code: [Select]
public boolean inPcBoat() {
You should see something like:
Code: [Select]
  public boolean inPcBoat() {
    if (absX >= 2660 && absX <= 2663 && absY >= 2638 && absY <=2643) {
      return true;

    } else {
      return false;
    }
  }

Underneath that add
Code: [Select]
public boolean FullDharokEquipped() {
if(playerEquipment[playerHat] == 4716 && playerEquipment[playerChest] == 4720 && playerEquipment[playerLegs] == 4722 && playerEquipment[playerWeapon] == 4718)
{
return true;
}
return false;
}

Basically, if you're wearing 4716, 4718, 4720 and 4722 (Full dharok) it will be recognised as FullDharokEquipped.
All this code is used for, is shortening the method you're about to add to FullDharokEquipped() instead of adding of having to add the whole method for each piece. Saves A LOT of time.

Now search for:
Code: [Select]
AttackingOn2.playerLevel[5] -= hitDiff/ 3;
And you should see:
Code: [Select]
AttackingOn2.playerLevel[5] -= hitDiff/ 3;
AttackingOn2.sendQuest("" + AttackingOn2.playerLevel[5] + "", 4012);
AttackingOn2.sendFrame126("Prayer: "+AttackingOn2.playerLevel[5]+"/"+AttackingOn2.getLevelForXP(playerXP[5])+"", 687);
}

Below that method add
Code: [Select]
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth >= 70 && currentHealth <= 89){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(10) + misc.random(playerMaxHit) + misc.random(StrPrayer);
}
}
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth >= 50 && currentHealth <= 69){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(22) + misc.random(playerMaxHit) + misc.random(StrPrayer);
}
}
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth > 28 && currentHealth <= 49){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(34) + misc.random(playerMaxHit) + misc.random(StrPrayer);

}
}
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth > 14 && currentHealth <= 27){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(46) + misc.random(playerMaxHit) + misc.random(StrPrayer);

}
}
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth > 3 && currentHealth <= 13){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(58) + misc.random(playerMaxHit) + misc.random(StrPrayer);

}
}
if(FullDharokEquipped() && misc.random(2)==1 && currentHealth > 0 && currentHealth <= 2){
if(!AttackingOn2.ProtMelee){

hitDiff = misc.random(75) + misc.random(playerMaxHit) + misc.random(StrPrayer);

}
}

Basically, providing FullDharokEquipped is active (The player must be wearing full Dharok) you will hit a random hit of whatever is in the misc.random(#) method plus a random hit between 0 and your Max Hit. Pretty awesome eh? ;) Making the maximum hit on a player, proving the user has 1 hp and some strength boosting prayer on, 99! To change the max hit, edit the number in the brackets within the misc.random(#) method :) To make players hit higher at lower HP or visa versa, edit the Hitpoint margins.  :love:


« Last Edit: April 01, 2011, 04:19:38 pm by The Unholy »

Share on Bluesky Share on Facebook


Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: Full Dharok effect!
« Reply #1 on: March 31, 2011, 07:26:53 pm »
This is Nice.
Goodjob.

Offline Zeroeh.

  • Iron Member
  • *
  • Posts: 18
  • Rep 0
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #2 on: April 01, 2011, 10:19:22 am »
Looks good!
I'm just thinking why is there a big gap in;

I couldn't figure out how to ZOOM out on eclipse, decided to use NotePad++.

Offline AdotSells

  • Firecape Member
  • *
  • Posts: 300
  • Rep 4
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #3 on: April 01, 2011, 11:02:45 am »
For whatever reason he has for the big space to be there.

 :fp:Press back space and your'll be laughing! :fp:

Offline The Unholy

  • Steel Member
  • *
  • Posts: 36
  • Rep 4
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #4 on: April 01, 2011, 04:20:20 pm »
Sorted it, it's because the method had very few spaces and was quite long so when I pasted it onto the forum it put a large space there.

Offline Tampon Abuse

  • Dragon Member
  • *
  • Posts: 193
  • Rep 1
  • All vote for Rune-Kingdom!
  • Location: Oklahoma, Oklahoma City
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #5 on: April 04, 2011, 12:55:38 am »
This isnt hard to add ,but thank you for posting it for beginners for the rune-k community, im sure it will be helpful to others, keep posting!

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

Offline The Unholy

  • Steel Member
  • *
  • Posts: 36
  • Rep 4
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #6 on: April 04, 2011, 04:55:27 pm »
I know, how to add it is exceptionally easy, though I'm pretty sure many people that don't already have it would want the methods.

Offline Povskill

  • Iron Member
  • *
  • Posts: 15
  • Rep 0
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #7 on: April 04, 2011, 05:01:29 pm »
Nice, Good job

Offline Tampon Abuse

  • Dragon Member
  • *
  • Posts: 193
  • Rep 1
  • All vote for Rune-Kingdom!
  • Location: Oklahoma, Oklahoma City
    • View Profile
Re: [DELTA] Full Dharok effect! [DELTA]
« Reply #8 on: April 04, 2011, 08:18:00 pm »
yea, its pretty easy if you know what your doing for the most part.

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