ThatGamerBlue Posted February 11, 2018 Posted February 11, 2018 (edited) Specifically looking for the ids for this interface: https://i.redd.it/t7uw2402d7az.png 1 Bond -> 14 days and the confirm button. tfw so poor cant afford bond to check Edited February 11, 2018 by ThatGamerBlue
Viston Posted February 11, 2018 Posted February 11, 2018 Don't use IDs for widgets. But unfortunately, can't help you with that, can't afford a bond too.
Butters Posted February 11, 2018 Posted February 11, 2018 RS2Widget bondScreen = s.widgets.getWidgetContainingText("Redeem Old School Bonds"); if (bondScreen != null && bondScreen.isVisible()) { RS2Widget days14 = s.widgets.getWidgetContainingText("14 days"); RS2Widget confirmButton = s.widgets.getWidgetContainingText("___", "Confirm"); if (confirmButton != null && confirmButton.isVisible()) { if (confirmButton.getMessage().equals("___")) { if (days14 != null) { WidgetDestination widgetDestinationDays14 = new WidgetDestination(s.getBot(), days14); if (s.getMouse().click((MouseDestination) widgetDestinationDays14)) { Utils.condSleep(8000, 250, () -> confirmButton.getMessage().equals("Confirm")); } } } else { if (s.getMouse().click((MouseDestination) new RectangleDestination(s.getBot(), 326, 267, 8, 8))) { Utils.condSleep(50000, 250, () -> s.getDialogues().inDialogue() && s.getDialogues().isPendingContinuation()); } if (s.getDialogues().isPendingContinuation()) { s.getDialogues().clickContinue(); } hopWorld(s.p2pWorld); } } } Clean this up and enjoy 1
ThatGamerBlue Posted February 11, 2018 Author Posted February 11, 2018 5 minutes ago, nosepicker said: RS2Widget bondScreen = s.widgets.getWidgetContainingText("Redeem Old School Bonds"); if (bondScreen != null && bondScreen.isVisible()) { RS2Widget days14 = s.widgets.getWidgetContainingText("14 days"); RS2Widget confirmButton = s.widgets.getWidgetContainingText("___", "Confirm"); if (confirmButton != null && confirmButton.isVisible()) { if (confirmButton.getMessage().equals("___")) { if (days14 != null) { WidgetDestination widgetDestinationDays14 = new WidgetDestination(s.getBot(), days14); if (s.getMouse().click((MouseDestination) widgetDestinationDays14)) { Utils.condSleep(8000, 250, () -> confirmButton.getMessage().equals("Confirm")); } } } else { if (s.getMouse().click((MouseDestination) new RectangleDestination(s.getBot(), 326, 267, 8, 8))) { Utils.condSleep(50000, 250, () -> s.getDialogues().inDialogue() && s.getDialogues().isPendingContinuation()); } if (s.getDialogues().isPendingContinuation()) { s.getDialogues().clickContinue(); } hopWorld(s.p2pWorld); } } } Clean this up and enjoy Thx boss