Jump to content

Hello


Dark Magician

Recommended Posts

Yes finally got a good method working + script is nearly complete!

public boolean interact(String name, String action, Entity e) {

        EntityDestination x = new EntityDestination(getBot(), e);

        mouse.move(x);

        if (!mouse.getEntitiesOnCursor().isEmpty()) {
            mouse.click(true);
        }
        else {
            mouse.moveOutsideScreen();
            return false;
        }

        for (Option option : menu.getMenu()) {
            if (option != null) {
                if (option.name.contains(name)) {
                    if (option.action.contains(action)) {
                        return menu.selectAction(action);
                    }
                }
            }
        }
        return false;
    }
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...