show the whole applydead method
|
Every time I kill someone in the wild my kills remain the same. Whenever I die in the wild my deaths and kill go up. How can I fix this?
I think its the Applydead method in the playerassistant.java file.
This part-
c.cwDeaths += 1;
o.cwKills += 1;
}
go to playerassistant.java and search forthen replace the whole apply dead methode withapply Dead
public void applyDead() {
c.respawnTimer = 10;
c.startAnimation(2304);
c.isDead = false;
c.cwDeaths++;
Client o = (Client) Server.playerHandler.players[c.killerId];
if(c.duelStatus != 6) {
c.killerId = findKiller();
if(o != null) {
if(!(c.npcIndex > 0) && c.inPits == false){
}
if (c.killerId != c.playerId)
if (c.inFunPk) {
return ;
}
if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
o.pkPoints = (o.pkPoints + 2);
o.cwKills ++;
o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
}
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}
c.poisonDamage = 0;
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;
resetFollowers();
c.attackTimer = 10;
removeAllWindows();
c.tradeResetNeeded = true;
}
my applydead methode works 100% he just have to replace
Oh man...That's....That's ugly.....
Cba to fetch my applyDead method but I'll clean up Dennis's.
Code:public void applyDead() { c.respawnTimer = 10; c.startAnimation(2304); c.isDead = false; c.cwDeaths++; Client o = (Client) Server.playerHandler.players[c.killerId]; if (c.duelStatus != 6) { c.killerId = findKiller(); if (o != null) { if (!(c.npcIndex > 0) && c.inPits == false) { } if (c.killerId != c.playerId) if (c.inFunPk) { return; } if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 2); o.cwKills++; o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; } c.playerKilled = c.playerId; if (o.duelStatus == 5) { o.duelStatus++; } } } c.poisonDamage = 0; 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; resetFollowers(); c.attackTimer = 10; removeAllWindows(); c.tradeResetNeeded = true; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |