This just tells you what you hit and what you got hit yourself after you attack an npc.
Add these in player.java:
Code:
public int[] Totals = new int[2];
public boolean ShowTotals;
/*
* Totals[0] = Damage given to npc
* Totals[1] = Damage taken from npc
*/
Add these under case 185:
Code:
/*
* Totals buttons
*/
case 48176: //Yes
ShowTotals = true;
sendMessage("Totals are on.");
break;
case 48177: //No
ShowTotals = false;
sendMessage("Totals are off.");
break;
Add this under your "ResetAttackNPC":
Code:
if (ShowTotals)
{
sendMessage("[TOTALS]: You dealt a total of "+Totals[0]+" damage and got dealt "+Totals[1]+" damage yourself.");
}
Totals[0] = 0;
Totals[1] = 0;
Add this in your "AttackNPC" Method:
Code:
Totals[0] += hitDiff;
Then open npcHadnler.java and add this under the "AttackPlayer" method:
Code:
p.Totals[1] += hitDiff;
Finally add this under your welcome message:
Code:
sendFrame126("Show Totals", 12463);
This uses the accept aid buttons on the high detail interface. If you don't have it then replace:
Code:
setSidebarInterface(11, 4445);
With this:
Code:
setSidebarInterface(11, 904);
- Mr. Brightside