My walk function is in a separate class that does extend the Method Provider.
Osbot crashes as this is running so I can not copy paste, However here is a screenshot.
The reason I have that loop there was for testing purposes because in a previous iteration I had a web walk event that led into a NPC interaction and the bot would try to interact with the NPC as it was walking before it got to the actual area and opened the door before the npc
Here is a walk function I made, the error occurs on the execute(walkEvent) line.
public void walk(Area area) throws InterruptedException{
WebWalkEvent walkEvent = new WebWalkEvent(area);
execute(walkEvent);
while (!area.contains(myPlayer().getPosition())) {
Thread.sleep(1000);
}
}
This is called like this: walk(new Area(3189, 3273, 3189, 3272));
Does anyone know what is wrong with this function that would be causing it to throw a null pointer exception?