my point isn't the ++ logic. im trying to understand how you thought about it and i'm asking some questions in order to learn some new things.
When you have registered 3 IDS (1,2,3) at event onKill and the mob with ID 1 will die, onKill function will spawn the list.poll right?
the list.poll will return the ID of the head so for first time is the 1 .
@Override
protected void registerNpcs()
{
monsterIds.add(1009);
Lets say the 1009 will die ok?
public String onKill(Npc npc, Player killer, boolean isPet)
{
if(monsterIds.size() == 0)
return super.onKill(npc, killer, isPet);
Attackable newNpc = (Attackable) addSpawn(monsterIds.poll(), npc, true, 0, false);
What id will have the newNpc ?
if my questions are bothering you i will stop my stupid questions