December 13, 20169 yr 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, 20169 yr by combat_acc
December 13, 20169 yr If you use walking.webwalk then basically no. Try to create a WalkingEvent and set some break conditions
December 15, 20169 yr 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, 20169 yr by Mushphang
December 16, 20169 yr 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.
Create an account or sign in to comment