ok my combatassistant.java line 1600
Code:
public void activateSpecial(int weapon, int i){
if(Server.npcHandler.npcs[i] == null && c.npcIndex > 0) {
return;
}
line 1600---> if(Server.playerHandler.players[i] == null && c.playerIndex > 0) {
return;
}
c.doubleHit = false;
c.specEffect = 0;
c.projectileStage = 0;
c.specMaxHitIncrease = 2;
if(c.npcIndex > 0) {
c.oldNpcIndex = i;
} else if (c.playerIndex > 0){
c.oldPlayerIndex = i;
}
switch(weapon) {
case 1305: // dragon long
c.gfx100(248);
c.startAnimation(1058);
c.hitDelay = getHitDelay();
break;
case 1215: // dragon daggers
case 1231:
case 5680:
case 5698:
c.gfx100(252);
c.startAnimation(1062);
c.hitDelay = getHitDelay();
c.doubleHit = true;
break;
case 4151: // whip
if(Server.npcHandler.npcs[i] != null) {
Server.npcHandler.npcs[i].gfx100(341);
}
if(Server.playerHandler.players[i] != null) {
Server.playerHandler.players[i].gfx100(341);
}
c.startAnimation(1658);
c.hitDelay = getHitDelay();
break;
case 3204: // d hally
c.gfx100(282);
c.startAnimation(1203);
c.hitDelay = c.getCombat().getHitDelay();
if(Server.npcHandler.npcs[i] != null && c.npcIndex > 0) {
if(!c.goodDistance(c.getX(), c.getY(), Server.npcHandler.npcs[i].getX(), Server.npcHandler.npcs[i].getY(), 1)){
c.doubleHit = true;
}
}
if(Server.playerHandler.players[i] != null && c.playerIndex > 0) {
if(!c.goodDistance(c.getX(), c.getY(), Server.playerHandler.players[i].getX(),Server.playerHandler.players[i].getY(), 1)){
c.doubleHit = true;
}
}
break;
case 4153: // maul
c.startAnimation(1667);
c.hitDelay = c.getCombat().getHitDelay();
attackNpc(i);
c.gfx100(337);
break;
case 4587: // dscimmy
c.gfx100(347);
c.specEffect = 1;
c.startAnimation(1872);
c.hitDelay = c.getCombat().getHitDelay();
break;
case 1434: // mace
c.startAnimation(1060);
c.gfx100(251);
c.specMaxHitIncrease = 3;
c.hitDelay = c.getCombat().getHitDelay();
break;
case 859: // magic long
c.usingBow = true;
c.bowSpecShot = 3;
c.rangeItemUsed = c.playerEquipment[c.playerArrows];
c.getItems().deleteArrow();
c.lastWeaponUsed = weapon;
c.startAnimation(426);
c.gfx100(250);
c.hitDelay = c.getCombat().getHitDelay();
c.projectileStage = 1;
break;
case 861: // magic short
c.usingBow = true;
c.bowSpecShot = 1;
c.rangeItemUsed = c.playerEquipment[c.playerArrows];
c.getItems().deleteArrow();
c.lastWeaponUsed = weapon;
c.startAnimation(1074);
c.hitDelay = 3;
c.projectileStage = 1;
break;
}
c.usingSpecial = false;
c.getItems().updateSpecialBar();
}
line 250:
Code:
c.faceUpdate(i);
if(c.usingSpecial) {
if(checkSpecAmount(c.playerEquipment[c.playerWeapon])){
line 250 --> activateSpecial(c.playerEquipment[c.playerWeapon], i);
return;
} else {
c.sendMessage("You don't have the required special energy to use this attack.");
c.usingSpecial = false;
c.getItems().updateSpecialBar();
c.npcIndex = 0;
return;
}
}