Jump to content

How to teleport to soul wars minigames


abouhanafy87

Recommended Posts

Without spoonfeeding too much, here are a couple snippets that you'll have to assemble yourself :doge: 

		// 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();
                                                                                                             
                                                                                                             

 

  • Heart 1
Link to comment
Share on other sites

8 hours ago, Czar said:

Without spoonfeeding too much, here are a couple snippets that you'll have to assemble yourself :doge: 

		// 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

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...