JAG98 Posted April 30, 2021 Share 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. Quote Link to comment Share on other sites More sharing options...
ChrisJ Posted April 30, 2021 Share 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 Quote Link to comment Share on other sites More sharing options...