Scriptation Posted December 7, 2015 Posted December 7, 2015 keeps spam clicking after the sleep, without the sleep it spams like mad? Thought the animation check would work? if(!inventory.isFull() && myPlayer().getAnimation() != 625 && clay.isVisible()){ return State.MINECLAY; case MINECLAY: clay.interact("Mine"); sleep(1000); break;
Bobrocket Posted December 7, 2015 Posted December 7, 2015 Your animation does not update immediately. Add a conditional sleep until your player is animating.
Scriptation Posted December 7, 2015 Author Posted December 7, 2015 Your animation does not update immediately. Add a conditional sleep until your player is animating. ive got a string on the screen which sows when the animation has changed and it still clicks when the string changes to current annimation? g.drawString(status, 100, 100); status = "animation " + myPlayer().getAnimation();
Explv Posted December 7, 2015 Posted December 7, 2015 ive got a string on the screen which sows when the animation has changed and it still clicks when the string changes to current annimation? g.drawString(status, 100, 100); status = "animation " + myPlayer().getAnimation(); Why not use: myPlayer().isAnimating() ?