April 30, 20214 yr 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.
April 30, 20214 yr Use getNpcs().closest( or the lowercase npcs.closest( Same for the other ones. You are referencing the class instead of the instance
Create an account or sign in to comment