Yes, because you basically stating that if the array != null, then the KC will increase, which is wrong, you want to make it that if any NPC inside the array is the one being killed, then it gives you whatever rewards.
In a nutshell, your basically saying this
Code:
int[] thisArray = {5, 2};
if (thisArray != null)
doMethod()
And the array will never be null because it is given a proper set of values.
You want it to loop through a set of given NPC Ids, most likely you want the IDs of all bandos NPCs, and call it like
Code:
int[] bandosNpc = {###, ###, ###};
for (int j : bandosNpc) {
if (j != null) {
if (npc == j)
appendRewards();
}
}
If you want it to be an integer, you can basically do it like
Code:
int npcId = (int)mob;
I'm not sure if that'll work, I'm sure theres something that already has the NPCs ID