Spoonfeed for you ;P
In Player.java add:
Code:
public int pkp = 0;
Then in PlayerSave.java find:
Code:
} else if (token.equals("character-rights")) {
p.playerRights = Integer.parseInt(token2);
Anywhere you'd like in this area add:
Code:
} else if (token.equals("pkp")) {
p.pkp = Integer.parseInt(token2);
Then search for:
Code:
characterfile.write("character-rights = ", 0, 19);
Anywhere in this area add:
Code:
characterfile.write("pkp = ", 0, 6);
characterfile.write(Integer.toString(p.pkp), 0, Integer.toString(p.pkp).length());
characterfile.newLine();
^ Make sure you add it after another "characterfile.newLine();"
Now go into PlayerAssistant.java go to:
Code:
public void applyDead() {
And finally add:
Code:
if(c.duelStatus != 6) {
c.killerId = findKiller();
Client o = (Client) Server.playerHandler.players[c.killerId];
if(o != null) {
if (c.killerId != c.playerId)
if(c.inWild() && heightLevel == 0){
c.DC++;
o.KC++;
o.pkp += 1;
o.sendMessage("You have received @red@1 @bla@Pk Points after defeating @red@"+Misc.optimizeText(c.playerName)+"!");
}
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}