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.

Dynamic paths without WebWalker?

Featured Replies

Hi, I was trying to create a method similar to walking.walkPath(path), but rather than pre-defining the path with positions, I wanted to randomly grab a position from an area, to try create some randomization to the path.

So far I came up with 
 

List<Position> pathToWalk = new ArrayList<>();
private void walkCustomPath(List<Area> areaList){
		pathToWalk.clear();
		for(int x = 0; x < areaList.size(); x++){
			pathToWalk.add(areaList.get(x).getRandomPosition());
		}
		walking.walkPath(pathToWalk);
	}


This works, but the walking is very gross compared to a regular pre-defined path with static positions, so I suppose what I was wondering is if there's a better way to go about this? Thanks

Edited by Slut

40 minutes ago, Slut said:

Hi, I was trying to create a method similar to walking.walkPath(path), but rather than pre-defining the path with positions, I wanted to randomly grab a position from an area, to try create some randomization to the path.

So far I came up with 
 


List<Position> pathToWalk = new ArrayList<>();
private void walkCustomPath(List<Area> areaList){
		pathToWalk.clear();
		for(int x = 0; x < areaList.size(); x++){
			pathToWalk.add(areaList.get(x).getRandomPosition());
		}
		walking.walkPath(pathToWalk);
	}


This works, but the walking is very gross compared to a regular pre-defined path with static positions, so I suppose what I was wondering is if there's a better way to go about this? Thanks

why not just use that 
to "generate" the list of tiles, 1 from each area
then use the walk path method using that generated path

public class LocalPathFinder
extends java.lang.Object
An path finder that uses the AStar algorithm and the local map region.

 

  • Author
3 hours ago, Chris said:

public class LocalPathFinder
extends java.lang.Object
An path finder that uses the AStar algorithm and the local map region.

 

thanks, but I don't think the path is actually local, it goes off the length of one minimap, so localpathfinder can't seem to route to it

2 hours ago, Slut said:

thanks, but I don't think the path is actually local, it goes off the length of one minimap, so localpathfinder can't seem to route to it

you could find and object that you know will be loaded each time and walk to it with a little position variance

You're already became botlike by selecting where you click based on coordinates. Players don't do that, they just spam click in the general direction. ;) Unless there are intricate obstacles being traversed. If you go to the web walking nodes on F2p you can notice massive amounts of bots all taking the same paths. So it's not exactly dynamic right out of the box, in the sense of players misnavigating and such. But it could be adjusted to do this. The easiest mix of the two would be to use webwalking but select each event you send based on easiest click x, y not "best" random tile 

Edited by dmmslaver

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.