Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom Obstacle Handing?

Featured Replies

Alright so basically I have each of the mining areas in the motherlode mined defined. I want to be able to walk to one of these areas and handle the rockfall obstacles that are in the way. Right now if a rockfall is present, a path is not able to be generated. If the rockfall is already mined, the path works fine. Im trying to figure out a way to "ignore" obstacles and generate a path so that I can handle the rockfalls myself (when it gets stuck infront of it using the path). 

 

Is there a different approach to doing this?

  • Author

Use AStar* to make your own localwalker smile.png

Then use the flags of the tiles to navigate through the mine ^^

 

Can u explain the second part in a little more detail? Do you mean save all tiles where rocks spawn?

Can u explain the second part in a little more detail? Do you mean save all tiles where rocks spawn?

 

clipping data mate, have a browse on the forums, you will find some helpful things ^^

Edited by Precise

The LocalPathfinder has an overload that takes a clipping graph for path generation. Just get the current clipping graph and set the rock positions to be traversible, and use that with the pathfinder. Then add whatever handling you want.

 

OR do as the others said and make your own pathfinder.

Edited by FrostBug

  • Author

The LocalPathfinder has an overload that takes a clipping graph for path generation. Just get the current clipping graph and set the rock positions to be traversible, and use that with the pathfinder. Then add whatever handling you want.

 

OR do as the others said and make your own pathfinder.

 

Okay so I came up with this. Now it will try and walk. How do I go about handling the rockfall when its in front of the player?

if(!inZone()){
		LocalPathFinder path = new LocalPathFinder(getBot());
		LinkedList<Position> generatedPath = path.findPath(getRandomZone().zone.getRandomPosition(), generateModifiedClippingData());
		getLocalWalker().walking.walkPath(generatedPath);

	}

In getting the clipping data I also get a List<RS2Object> of all the rockfalls. Should I just iterate through that list and "mine" the closest one? Is there a better way of doing this?

Okay so I came up with this. Now it will try and walk. How do I go about handling the rockfall when its in front of the player?

if(!inZone()){
		LocalPathFinder path = new LocalPathFinder(getBot());
		LinkedList<Position> generatedPath = path.findPath(getRandomZone().zone.getRandomPosition(), generateModifiedClippingData());
		getLocalWalker().walking.walkPath(generatedPath);

	}

In getting the clipping data I also get a List<RS2Object> of all the rockfalls. Should I just iterate through that list and "mine" the closest one? Is there a better way of doing this?

 

Get the rockfalls located on the generated path. With this you can walk to the tile in front of the next rockfall, mine it, continue.

Edited by FrostBug

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.