Jump to content

Question about Areas


Recommended Posts

Posted

I was looking over Pandemic's guide on a simple mining script 

http://osbot.org/forum/topic/29924-pandemics-scripting-series-part-ii-path-walking-and-simple-banking-updated-for-osbot-2/?hl=banking

 

And it was all making sense to me except when it had finally come together I had some errors, 

import org.osbot.rs07.utility.Area;

This line was couldn't be resolved, this ended up effecting any othertime when the word Area was used. 

 

The guide was written in 2014 and OSBot has been updated since then, I'm not sure how to use the Area function.

 

Thanks for any help you can provide!

Posted

change it to

 

import org.osbot.rs07.api.map.Area;

 

you establish/declare an area like so :: private Area lumbridgeGoblins = new Area(3244, 3243, 3249, 3241);

 

then i would use webwalking to walk to ur area seeing as it auto handles doors/steps/etc

 

getWalking().webWalk(lumbridgeGoblins);

 

So would all of the walking using positions be unnecessary since webwalking would just handle that?

 

Or how does webwalking specifically work?

Posted

So would all of the walking using positions be unnecessary since webwalking would just handle that?

 

Or how does webwalking specifically work?

walk.walkPath() - walks a given path you set.

walk.walk() - walks to a local tile that is on the minimap or gamescreen. Usually for short distances only.

walking.webwalk() - creates its own advanced path to a given tile. It can use boatLinks, questLinks, and more. Mainly used for long distances or walking with a lot of obstacles.

 

-Chris

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...