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