Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. private void chopivy() {
  2. GameObject Ivy = Objects.getNearest("Ivy");
  3. status = "Cutting ivy";
  4. if (Players.getLocal().getAnimation() == -1) {
  5. if (Ivy != null) {
  6. if (Ivy.isOnScreen()) {
  7. Model i = null;
  8. Point a = null;
  9. if ((i = Ivy.getModel()) != null
  10. && (a = i.getNextPoint()) != null
  11. && Calculations.isPointOnScreen(a)) {
  12. Mouse.move(a);
  13. while (!Mouse.getLocation().equals(a)) {
  14. sleep(50);
  15. }
  16. if (Menu.getActions()[0].contains("Chop")) {
  17. Mouse.click(true);
  18. } else {
  19. for (String act : Menu.getActions()) {
  20. if (act.contains("Chop")) {
  21. Mouse.click(false);
  22. while (!Menu.isOpen()) {
  23. sleep(50);
  24. }
  25. Menu.click("Chop");
  26. }
  27. }
  28. }
  29.  
  30. }
  31. } else {
  32. if (atTree.contains(Ivy.getLocation())) {
  33. Ivy.getLocation().clickOnMap();
  34. }
  35. }
  36. } else {
  37. sleep(47);
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement