February 11, 20188 yr 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, 20188 yr by ThatGamerBlue
February 11, 20188 yr Don't use IDs for widgets. But unfortunately, can't help you with that, can't afford a bond too.
February 11, 20188 yr 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
February 11, 20188 yr Author 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
Create an account or sign in to comment