January 17, 20224 yr Re-using old code that worked perfectly. I get stuck at the log "Store is open" Any ideas why it's not finding the widget and proceeding with the method? It's not actually being used for grapes anymore, I'm just using the grape code. Widget numbers are correct for the new widget. int buyGrapes() throws InterruptedException { if (store.isOpen()) { log("store is open"); sleep(300); RS2Widget grapeWidge = getWidgets().get(300, 548, 300); if (grapeWidge != null) { grapeCount = grapeWidge.getItemAmount(); if (grapeCount > 0) { log("Shop in stock, buying"); grapeWidge.interact("Buy 10"); sleep(400); } else if (grapeCount == 0) { getWorlds().hopToP2PWorld(); //state = State.HOP; } } } return 0; }
January 17, 20224 yr 2 hours ago, uyfgfarOS said: RS2Widget grapeWidge = getWidgets().get(300, 548, 300); Check the widget debugger tool window and see if it is actually the widget with the information or not
Create an account or sign in to comment