- Thread Author
- #1
hey guys,
im trying to filter NPCs with IDs but im stuck :/
i can filter 1 ID. but i need to filter 2 Id´s
working: (filtering/blacklisting the mob with ID 1234)
not working: (Operator '!=' cannot be apllied to 'int', 'int[]')
somebody got a clue ?
thx for reading
Fabibassi
im trying to filter NPCs with IDs but im stuck :/
i can filter 1 ID. but i need to filter 2 Id´s
working: (filtering/blacklisting the mob with ID 1234)
Code:
//private int blacklist[] = {1234, 5678};
final Npc Mob = Npcs.newQuery().filter(npc -> npc.getId() != 1234 ).results().nearest();
not working: (Operator '!=' cannot be apllied to 'int', 'int[]')
Code:
private int blacklist[] = {1234, 5678};
final Npc Mob = Npcs.newQuery().filter(npc -> npc.getId() != blacklist ).results().nearest();
somebody got a clue ?
thx for reading
Fabibassi