Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void chopivy() {
- GameObject Ivy = Objects.getNearest("Ivy");
- status = "Cutting ivy";
- if (Players.getLocal().getAnimation() == -1) {
- if (Ivy != null) {
- if (Ivy.isOnScreen()) {
- Model i = null;
- Point a = null;
- if ((i = Ivy.getModel()) != null
- && (a = i.getNextPoint()) != null
- && Calculations.isPointOnScreen(a)) {
- Mouse.move(a);
- while (!Mouse.getLocation().equals(a)) {
- sleep(50);
- }
- if (Menu.getActions()[0].contains("Chop")) {
- Mouse.click(true);
- } else {
- for (String act : Menu.getActions()) {
- if (act.contains("Chop")) {
- Mouse.click(false);
- while (!Menu.isOpen()) {
- sleep(50);
- }
- Menu.click("Chop");
- }
- }
- }
- }
- } else {
- if (atTree.contains(Ivy.getLocation())) {
- Ivy.getLocation().clickOnMap();
- }
- }
- } else {
- sleep(47);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement