Solutions
-
Joseph's post in client.selectOption alt was marked as the answerAlright 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; } -
Joseph's post in gui question was marked as the answerthanks
:p just gotta learn
-
Joseph's post in Blocking events was marked as the answerLol, this was a bit funny. Naw what you need to do is use if than and else statement so you you block out, and do what you want to do.
Example:
If my player isn't at bank at bank area then walk to bank.
Else if my player is there and bank is not opened then open it.
Blah blah blah
-
Joseph's post in Which is better was marked as the answerThank you guy, I already found out what i was goign to do. Within the gui class create a boolean. Add a event handler on the start button, which inverts the boolean. On the onStart() add a sleep until that gui.boolean become false.