uyfgfarOS Posted January 17, 2022 Share Posted January 17, 2022 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; } Quote Link to comment Share on other sites More sharing options...
Gunman Posted January 17, 2022 Share Posted January 17, 2022 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 Quote Link to comment Share on other sites More sharing options...