|
I followed this tutorial - http://www.rune-server.org/runescape...ath-ratio.html
There were no errors, but the kills and deaths don't count.
Any fix?
Yes I did that, but I have also added a o.pkp. That was already there, does that matter?
Here is my applyDead -
public void applyDead() {
c.getTradeAndDuel().stakedItems.clear();
c.respawnTimer = 15;
c.overload = 0;
c.isDead = false;
c.getPA().sendFrame126(":quicksff", -1);
Client o = (Client) Server.playerHandler.players[c.killerId];
if(c.duelStatus != 6) {
c.killerId = findKiller();
if(o != null) {
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled) {
int amount = Misc.random(4)+1;
o.sendMessage("You have defeated "+c.playerName+" and received "+ amount + " Pk Points!");
if (c.killerId != c.playerId) {
if (o.inWild()) {
o.pkp = (o.pkp + amount);
o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
}
}
} else {
o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row.");
}
}
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |