Jump to content

client.selectOption alt


Isolate

Recommended Posts

I have no idea why i didnt consider it, but i think that might be the chatbox.

and the one i want is select option for the Menu.

Alright I got you, I'll edit this post with the method

 

edit:

	public boolean selectMenuOption(String option) {
		if (script.menu.isOpen()) {
			List<Option> options = script.menu.getMenu();
			for (int i = 0; i < options.size(); i++) {
				if (options.get(i).action.equalsIgnoreCase(option)) {
					return script.mouse.click(new RectangleDestination(script.bot, script.menu.getX(), script.menu.getY() + 20 + (i * 15), script.menu.getWidth(), 15));
				}
			}
		}
		return false;
	}
Edited by josedpay
Link to comment
Share on other sites

 

Alright I got you, I'll edit this post with the method

 

edit:

	public boolean selectMenuOption(String option) {
		if (script.menu.isOpen()) {
			List<Option> options = script.menu.getMenu();
			for (int i = 0; i < options.size(); i++) {
				if (options.get(i).action.equalsIgnoreCase(option)) {
					return script.mouse.click(new RectangleDestination(script.bot, script.menu.getX(), script.menu.getY() + 20 + (i * 15), script.menu.getWidth(), 15));
				}
			}
		}
		return false;
	}

Thank-you very much ^_^

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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