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) PlayerHandler.players[c.killerId];
if (o != null) {
if (c.killerId != c.playerId)
if (!PkPoints.hostOnList(o, c.connectedFrom)) {
PkPoints.addHostToList(o, c.connectedFrom);
o.pkPoints += o.isDonator == 1 ? 2 : 1;
o.KC++;
c.DC++;
o.sendMessage("@red@You have received "
+ (o.isDonator == 1 ? "2 pk points" : "a point")
+ ", you now have " + o.pkPoints
+ " pk points.");
} else {
o.sendMessage("@red@You have recently defeated "
+ c.playerName
+ ", you don't receive any pk points.");
}
if (!PkPoints.hostOnList(o, c.connectedFrom)
&& !c.inDuelArena()) {
PkPoints.addHostToList(o, c.connectedFrom);
o.killStreak += 1;
} else {
o.sendMessage("You already defeated " + c.playerName + "!");
}
c.playerKilled = c.playerId;
if (o.duelStatus == 5) {
o.duelStatus++;
}
}
}
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.killStreak = 0;
c.stopMovement();
if (c.duelStatus <= 4) {
c.sendMessage(Config.DEATH_MESSAGE);
} 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;
resetFollowers();
c.attackTimer = 10;
}