Tasemu Posted September 14, 2018 Share Posted September 14, 2018 Hi, i have tried using a few methods to determine if my bot is fighting a cow, running to hit a cow or is under attack and the results seem sketchy at best. I am currently using an expression like this: if (myPlayer().isAnimating() || myPlayer().isUnderAttack() || myPlayer().isHitBarVisible()) { return States.WAIT; } Is there a more generally accepted way to do this out there? Thanks in advance for any advice. Quote Link to comment Share on other sites More sharing options...
urmom Posted September 14, 2018 Share Posted September 14, 2018 try if(myPlayer.isInteracting(cow) || myPlayer.isUnderAttack()){ return State.Wait; } and sleep while the hitbar of a cow is not 0 Quote Link to comment Share on other sites More sharing options...
Chris Posted September 14, 2018 Share Posted September 14, 2018 getCombat().isFighting() return WAIT; Quote Link to comment Share on other sites More sharing options...