abouhanafy87 Posted June 11, 2022 Share Posted June 11, 2022 How to teleport to soul wars minigames I try to use widgets but didnt work with me Please any help Quote Link to comment Share on other sites More sharing options...
Gunman Posted June 11, 2022 Share Posted June 11, 2022 Moved to appropriate section. 24 minutes ago, abouhanafy87 said: How to teleport to soul wars minigames I try to use widgets but didnt work with me Please any help You use widgets, you probably just grabbed the wrong widget info Quote Link to comment Share on other sites More sharing options...
Czar Posted June 11, 2022 Share Posted June 11, 2022 Without spoonfeeding too much, here are a couple snippets that you'll have to assemble yourself // currently selected minigame, do getMessage() on this Optional<RS2Widget> firstAttempt = getWidgets().getAll().stream().filter(a -> a.getRootId() == 76 && a.getMessage() != null && a.getMessage().length() > 0 && a.getTextColor() == 16750623 && a.getHeight() < 20).findFirst(); // teleport button (after a minigame is selected) Optional<RS2Widget> teleportButton = getWidgets().getAll().stream().filter(a -> a.getMessage().length() > 0 && a.getMessage().equalsIgnoreCase("Teleport")).findFirst(); // is minigame teleport panel shown boolean isTab = getConfigs().get(1054) >= 3000; // open grouping tab getWidgets().interact(548, 39, "Grouping"); // click on correct minigame Optional<RS2Widget> targetMinigameOption = getWidgets().getAll().stream() .filter(a -> a.getRootId() == 76 && a.getMessage().length() > 0 && a.getMessage().equalsIgnoreCase("MINIGAME NAME HERE")) .findFirst(); 1 Quote Link to comment Share on other sites More sharing options...
abouhanafy87 Posted June 12, 2022 Author Share Posted June 12, 2022 8 hours ago, Czar said: Without spoonfeeding too much, here are a couple snippets that you'll have to assemble yourself // currently selected minigame, do getMessage() on this Optional<RS2Widget> firstAttempt = getWidgets().getAll().stream().filter(a -> a.getRootId() == 76 && a.getMessage() != null && a.getMessage().length() > 0 && a.getTextColor() == 16750623 && a.getHeight() < 20).findFirst(); // teleport button (after a minigame is selected) Optional<RS2Widget> teleportButton = getWidgets().getAll().stream().filter(a -> a.getMessage().length() > 0 && a.getMessage().equalsIgnoreCase("Teleport")).findFirst(); // is minigame teleport panel shown boolean isTab = getConfigs().get(1054) >= 3000; // open grouping tab getWidgets().interact(548, 39, "Grouping"); // click on correct minigame Optional<RS2Widget> targetMinigameOption = getWidgets().getAll().stream() .filter(a -> a.getRootId() == 76 && a.getMessage().length() > 0 && a.getMessage().equalsIgnoreCase("MINIGAME NAME HERE")) .findFirst(); Thank you man 1 Quote Link to comment Share on other sites More sharing options...