- Joined
- May 1, 2016
- Messages
- 42
- Thread Author
- #1
Perhaps I'm missing something simple, It's not that big of a deal that I'm Querying right now using names, however considering my script is only supposed to pick up noted items and sometimes the npc drops the item unnoted my Inventory fills up with trash sometimes.
I found a way to loot an item based on the ID, however I want to know if there is a build in way to do this.
Where lootable would be a collection of integers.
I found a way to loot an item based on the ID, however I want to know if there is a build in way to do this.
Code:
GroundItems.newQuery()
.filter(i -> lootable.contains(i.getId()))
.results()
.nearest();
Where lootable would be a collection of integers.