hey, i made when u kill a player u get 4 pc pionts (when u die lose 1) but when u get killed by a npc u get 4 pc piont also. how i can fix this?
i also have another problem when ppl go to duel area they just kill eachother to get fast pionts how i make it so thety wont get piont in duel area?
this are my codes
Code:
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.killerId != c.playerId)
c.playerKilled = c.playerId;
o.pcPoints += 4;
o.sendMessage("you have killed "+ c.playerName +".");
if(o.duelStatus == 5) {
o.duelStatus++;
}
}
}
Code:
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.stopMovement();
if(c.duelStatus <= 4) {
c.pcPoints -= 3;
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;
}
please help i will give u rep