July 4, 20178 yr Yo I'm trying to use a conditional webWalk event but whenever the condition is met and the webWalk is terminated the script will do what it's supposed to (eat in this case) but then never execute the event again. walkToSpot.setBreakCondition(new Condition() { @Override public boolean evaluate() { return getState() == State.EAT; } }); log("Walking to spot"); execute(walkToSpot); //executing the event That's my code. When it goes back to the walk state it just spams "Walking to spot" in the logger. What am I doing wrong?
July 4, 20178 yr 1 hour ago, d0zza said: Yo I'm trying to use a conditional webWalk event but whenever the condition is met and the webWalk is terminated the script will do what it's supposed to (eat in this case) but then never execute the event again. walkToSpot.setBreakCondition(new Condition() { @Override public boolean evaluate() { return getState() == State.EAT; } }); log("Walking to spot"); execute(walkToSpot); //executing the event That's my code. When it goes back to the walk state it just spams "Walking to spot" in the logger. What am I doing wrong? Are you making a new event each time you want to walk? If not, then you should. Edited July 4, 20178 yr by Explv
July 4, 20178 yr Author 23 minutes ago, Explv said: Are you making a new event each time you want to walk? If not, then you should. Fk i'm silly
July 4, 20178 yr 2 hours ago, d0zza said: Fk i'm silly Once events are done they have a finished state, meaning they can't be re-executed. Prior to executing an event, it has a "ready" state. This is why you can't re-execute events.
Create an account or sign in to comment