Jump to content

Any Ideas?


Recommended Posts

Posted
if (!myPlayer().isAnimating() && !myPlayer().isMoving()) {
                if (!myPlayer().isUnderAttack() && Guard.isVisible()) {
                    Guard.interact("Attack");
                    sleep(random(500, 1000));
                } else {
                    camera.toEntity(Guard);
                }
            }
        }
        if (myPlayer().getHealth() <=30 && getInventory().contains("Lobster")) {
            inventory.getItem("Lobster").interact("Eat");
            sleep(random(600, 1200));
        }

I get this issue when running

http://gyazo.com/32407f7a8337725e1ea21a0d621e325d

 

 

 

It would return to attack then eat a lobster when it is already full health

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...