Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!e.myPlayer().isMoving()) {
- if (wheel.isVisible()) {
- if (!e.menu.isOpen()) {
- if (!e.getMouse().isOnCursor(wheel)) {
- wheel.hover();
- new ConditionalSleep(3000) {
- @Override
- public boolean condition() throws InterruptedException {
- return e.mouse.isOnCursor(wheel);
- }
- }.sleep();
- } else {
- e.mouse.click(true);
- new ConditionalSleep(3000) {
- @Override
- public boolean condition() throws InterruptedException {
- return e.menu.isOpen();
- }
- }.sleep();
- }
- } else if (e.menu.selectAction("Spin") && e.menu.isOpen()) {
- e.menu.selectAction("Spin");
- new ConditionalSleep(4000) {
- public boolean condition() throws InterruptedException {
- return e.getWidgets().isVisible(459, 93);
- }
- }.sleep();
- } else if (!e.menu.selectAction("Spin") && e.menu.isOpen()) {
- e.log("Moving randomly bc stuck");
- e.mouse.move(random(5,300),random(5,300));
- }
- } else {
- e.camera.toEntity(wheel);
- }
- } else {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement