ThatGamerBlue Posted February 11, 2018 Share 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 Quote Link to comment Share on other sites More sharing options...
Viston Posted February 11, 2018 Share Posted February 11, 2018 Don't use IDs for widgets. But unfortunately, can't help you with that, can't afford a bond too. Quote Link to comment Share on other sites More sharing options...
Butters Posted February 11, 2018 Share 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 Quote Link to comment Share on other sites More sharing options...
ThatGamerBlue Posted February 11, 2018 Author Share 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 Quote Link to comment Share on other sites More sharing options...