virtusnex Posted February 29, 2020 Posted February 29, 2020 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.
Gunman Posted February 29, 2020 Posted February 29, 2020 @virtusnex I think you have the wrong import. You have this import java.util.concurrent.locks.Condition; Instead of this import org.osbot.rs07.utility.Condition;
virtusnex Posted February 29, 2020 Author Posted February 29, 2020 Yikes that makes much more sense, thanks, working now!