Difficulty: 1/10
Files edited: Client.Java
Credits: The UnholyThis 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:
public boolean inPcBoat() {You should see something like:
public boolean inPcBoat() {
if (absX >= 2660 && absX <= 2663 && absY >= 2638 && absY <=2643) {
return true;
} else {
return false;
}
}Underneath that add
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:
AttackingOn2.playerLevel[5] -= hitDiff/ 3;And you should see:
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
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.
