I don't understand why you get pkp on death (you only get it if you die in the wild)
If you do know how to fix can you please tell me what the problem was
Code:
public void applyDead() {
c.respawnTimer = 10;
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){
}
if (c.killerId != c.playerId)
o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
if(c.inWild()){
c.pkPoints += 5;
o.sendMessage("You have received 5 Pk Points");
}
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}