combat_acc Posted December 13, 2016 Share Posted December 13, 2016 (edited) does eating work while walking? this code doesnt seem to work for me... idk why need help.. public int onLoop() throws InterruptedException { if (this.gui.isStarted()) { if (this.myPlayer().getHealthPercent() < 80) { if (this.getInventory().contains("Trout")) { this.getInventory().getItem("Trout").interact("Eat"); sleep(random(500, 2000)); Edited December 13, 2016 by combat_acc Quote Link to comment Share on other sites More sharing options...
Butters Posted December 13, 2016 Share Posted December 13, 2016 If you use walking.webwalk then basically no. Try to create a WalkingEvent and set some break conditions 5 Quote Link to comment Share on other sites More sharing options...
Mushphang Posted December 15, 2016 Share Posted December 15, 2016 (edited) Like butters said, have to make a web walking event. Try this: final WebWalkEvent webWalkEvent = new WebWalkEvent(PLACE); webWalkEvent.setBreakCondition(new Condition() { //@Override without "//" public boolean evaluate() { return TRUE/FALSE STATEMENT OR BOOLEAN FUNCTION; } }); execute(webWalkEvent); Edited December 15, 2016 by Mushphang Quote Link to comment Share on other sites More sharing options...
Mushphang Posted December 16, 2016 Share Posted December 16, 2016 Also, you might want to use getSkills().getDynamic(Skill.HITPOINTS) for your hp, that getHealthPercent() only works properly when the hp bar is above your head. Quote Link to comment Share on other sites More sharing options...