Code:
public void appendKillCount(int i) {
Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
if(c != null) {
int[] kcMonsters = {122,49,2558,2559,2560,2561,2550,2551,2552,2553,2562,2563,2564,2565};
for (int j : kcMonsters) {
if (npcs[i].npcType == j) {
if (c.killCount < 20) {
c.killCount++;
c.sendMessage("Killcount: " + c.killCount);
} else {
c.sendMessage("You already have 20 kill count");
}
break;
}
}
}
}
how do you add the following in there:
Code:
public int[] zamorakKC = {
6218, 6257, 6256, 6255, 6229, 6230, 6231,
6270, 6216, 6214, 6211, 6221, 6276, 6277,
6219
};
public int[] saradominKC = {
6257, 6256, 6259, 6258, 6254, 6255, 6229, 6230,
6231, 6221, 6276, 6277, 6219
};
public int[] armadylKC = {
6246, 6233, 6257, 6256, 6255, 6229, 6230, 6231,
6232, 6234, 6235, 6236, 6237, 6238, 6239, 6240,
6241, 6242, 6243, 6246, 6244, 6221, 6276, 6277,
6219
};
public int[] bandosKC = {
6269, 6210, 6212, 6257, 6256, 6255, 6229, 6230,
6231, 6268, 6274, 6283, 6282, 6275, 6221, 6273,
6276, 6272, 6213, 6277, 6219
};