- Joined
- May 8, 2018
- Messages
- 1
- Thread Author
- #1
Code:
public class WalkToNPC extends Task {
private Player me;
private static final Area area = new Area.Rectangular(new Coordinate(XXXX, XXXX, 0), new Coordinate(XXXX, XXXX, 0));
@Override
public boolean validate() {
me = Players.getLocal();
return me != null && area.contains(me);
//checking if character is in the correct spot. If it is I want to move to execute, otherwise I want to end here.
}
@Override
public void execute() {
//Validate passed so I'm going to do some stuff now.
}
I'm new to creating bots so sorry if this question seems dumb. When creating a task for a taskbot if the validate is false the rest of that section won't be ran right?