Advertisement
joeybots

Untitled

Nov 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. if (!e.myPlayer().isMoving()) {
  2. if (wheel.isVisible()) {
  3. if (!e.menu.isOpen()) {
  4. if (!e.getMouse().isOnCursor(wheel)) {
  5.  
  6.  
  7. wheel.hover();
  8.  
  9. new ConditionalSleep(3000) {
  10. @Override
  11. public boolean condition() throws InterruptedException {
  12. return e.mouse.isOnCursor(wheel);
  13. }
  14. }.sleep();
  15.  
  16. } else {
  17. e.mouse.click(true);
  18.  
  19. new ConditionalSleep(3000) {
  20. @Override
  21. public boolean condition() throws InterruptedException {
  22. return e.menu.isOpen();
  23. }
  24. }.sleep();
  25. }
  26. } else if (e.menu.selectAction("Spin") && e.menu.isOpen()) {
  27.  
  28. e.menu.selectAction("Spin");
  29.  
  30. new ConditionalSleep(4000) {
  31.  
  32. public boolean condition() throws InterruptedException {
  33. return e.getWidgets().isVisible(459, 93);
  34. }
  35. }.sleep();
  36. } else if (!e.menu.selectAction("Spin") && e.menu.isOpen()) {
  37. e.log("Moving randomly bc stuck");
  38. e.mouse.move(random(5,300),random(5,300));
  39.  
  40. }
  41. } else {
  42. e.camera.toEntity(wheel);
  43. }
  44. } else {
  45.  
  46.  
  47. }
  48.  
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement