Jump to content

redgar72

Members
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

redgar72's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. I merged the two classes and I am still getting a NPE at the same line
  2. 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.
  3. 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
  4. 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?
×
×
  • Create New...