replace your applyDead with this
Code:
public void applyDead() {
c.respawnTimer = 15;
c.isDead = false;
if(c.duelStatus != 6) {
//c.killerId = c.getCombat().getKillerId(c.playerId);
c.killerId = findKiller();
Client o = (Client) Server.playerHandler.players[c.killerId];
if(o != null) {
if(!(c.npcIndex > 0) && c.inPits == false){
o.pkPoints +=25;
c.pkPoints -= 25;
o.sendMessage("You recieve points for killing " + c.playerName + ", you now have " + o.pkPoints + " points.");
}
if (c.killerId != c.playerId)
o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.stopMovement();
if(c.duelStatus <= 4) {
c.sendMessage("Oh dear you are dead!");
} else if(c.duelStatus != 6) {
c.sendMessage("You have lost the duel!");
}
resetDamageDone();
c.specAmount = 10;
c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
c.lastVeng = 0;
c.vengOn = false;
removeAllWindows();
c.tradeResetNeeded = true;
resetFollowers();
c.attackTimer = 10;
}