JAG98 Posted April 30, 2021 Posted April 30, 2021 NPC evil = NPCS.closest(npc -> npc!= null && npc.getName().equals("Goblin")); RS2Widget combat = Widgets.get(164, 53); Both .get() and .closest() give an error saying non-static methods cannot be referenced from a static reference. Seems to be happening for all similar classes Grounditems, Objects, Player etc.
ChrisJ Posted April 30, 2021 Posted April 30, 2021 Use getNpcs().closest( or the lowercase npcs.closest( Same for the other ones. You are referencing the class instead of the instance