WebWalkEvent webEvent = new WebWalkEvent(Position);
webEvent.setBreakCondition(new Condition() {
@Override
public boolean evaluate() {
return (getSkills().getDynamic(Skill.HITPOINTS) < 5);
}
});
execute(webEvent);
I've looked around on ways to set a break condition for my WebWalkEvent when my bot is low on health, but I'm getting these red lines from all of the code I see without any option to import anything.
Is there anything I am missing here? I've yet to see anyone else mention this.