Raninor Posted February 28, 2022 Share Posted February 28, 2022 if (!WARRIOR_AREA.contains(getAPIContext().localPlayer().getLocation())) { getAPIContext().webWalking().walkTo(WARRIOR_AREA.getRandomTile()); } else if (!isActioning()) { if (chickenNPC != null) { attack(); } else if (getAPIContext().localPlayer().getHealthPercent()) { eat(); Quote Link to comment Share on other sites More sharing options...
Raninor Posted February 28, 2022 Author Share Posted February 28, 2022 I cant get this to work? Any tips?? Quote Link to comment Share on other sites More sharing options...
ClaytonFowler Posted June 3, 2022 Share Posted June 3, 2022 Don't know if you are still having issues but it could be this. else if (getAPIContext().localPlayer().getHealthPercent()) { eat(); In the ELSE IF at the bottom, this just gets the Health Percent, you will need to check it against a value like such. else if (getAPIContext().localPlayer().getHealthPercent() <= 50) { eat(); This will check if your health is less than 50 and then call the eat() function. Quote Link to comment Share on other sites More sharing options...
timothy knight Posted August 27 Share Posted August 27 [URL=https://datingnow.site]Beautiful Womans from your city for night[/URL] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.