Scriptation Posted December 7, 2015 Share 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; Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted December 7, 2015 Share Posted December 7, 2015 Your animation does not update immediately. Add a conditional sleep until your player is animating. Quote Link to comment Share on other sites More sharing options...
Scriptation Posted December 7, 2015 Author Share 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(); Quote Link to comment Share on other sites More sharing options...
Explv Posted December 7, 2015 Share 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() ? Quote Link to comment Share on other sites More sharing options...
Scriptation Posted December 7, 2015 Author Share Posted December 7, 2015 got it fixed thanks guys Quote Link to comment Share on other sites More sharing options...