So it turns out this doesn't work after all...I'm not certain but i think it will only work if every tile in that area is walkable... i.e there is not object on the floor that stop you from standing on 1 spot. For me this failed 1/2 times and walk() would return false.
By simply using
getLocalWalker().walk(area);
the bot always walks to the correct area and walk never returns false... Also the position it clicks is randomized so no need to worry.
It seems i was complicating thing by trying to randomize more... Live and learn people!
Exactly what I need! thank you!
What about interacting with objects ect, is there a way to make sure i don't always click the same spot.
RS2Object portal = objects.getClosest("portal");
portal.interact("Teleporte");
How can i make this click the portal at random locations?
Hey, sorry i can't help with your paint issue but i may be able to help with the random.
there are two variations of random. The first being
random(int x, int y)
and the second
random(int x)
the second returns a random number between 0 and x (exlusive)
hope this helps