Jump to content

Question about Areas


Mumble

Recommended Posts

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!

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

 

Or how does webwalking specifically work?

 

it works just as i showed you.

 

don't need each position that you want to click and walk. just need the end area/position. walks there from wherever you are

  • Like 1
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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