Code:
public void RBolt() {
if(playerEquipment[playerWeapon] == 837 && playerEquipmentN[playerArrows] == 9341 && misc.random(20)==1) {
sM("Your bolt is exploding!");
AttackingOn2.lowGFX((122,0);
hitDiff = 10 + misc.random(45);
PlayerHandler.players[AttackingOn].currentHealth -= hitDiff;
PlayerHandler.players[AttackingOn].updateRequired = true;
PlayerHandler.players[AttackingOn].hitUpdateRequired = true;
}
}
Try this I also change the gfx to go on the person your attacking cause I think thats what you wanted it to do.