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.

Question about web walking

Featured Replies

Rigth now I am reading about A* algorithm to learn how it works. I know that most people who have wrote a web walker has used A*. My question to those people is: how did you first begin creating your very own web walker? Did you do some exercises to practice on A* algorithm or did you learn the function and headed straigth to make a web walker script?

I am really interested in making a web walker, it does not have to be very complex, that can handle easy objects such as doors etc, but I have no idea how to begin. Any tips/ideas?

A web walker is a lot more than just using the A* path finding algorithm, thats only half the battle. You have to create the "Web" itself using the other half which is an edge weighted graph populated with nodes.

 

Every tile in RS is a Node and the distance between two nodes are the weight associated to that edge. If you have no idea what that is then I would suggest searching up Edge Weighted Graphs first happy.png

  • Author

A web walker is a lot more than just using the A* path finding algorithm, thats only half the battle. You have to create the "Web" itself using the other half which is an edge weighted graph populated with nodes.

Every tile in RS is a Node and the distance between two nodes are the weight associated to that edge. If you have no idea what that is then I would suggest searching up Edge Weighted Graphs first happy.png

How do you retrieve all walkable tiles? Do you have to manually walk around and use something like getRegion() to load the tiles? Are you then supposed to save the tiles/nodes in a file? :)

I'm not sure what you want to do with all walkable tiles in a global pathfinding system.

You could create nodes at intersections:

659da047f4197f50095f2d639337fa8d.png

with as much detail as you like, you should create a script to assist you.

Then you use A* to compute a path. 

To traverse the edges you either write your own local walking function or use the builtin one.

Your web or whatever people call it is now just a list of nodes (tiles) and associated edges (undirected in this case), which you should indeed store in a file.

 

  • Author

I'm not sure what you want to do with all walkable tiles in a global pathfinding system.

You could create nodes at intersections:

659da047f4197f50095f2d639337fa8d.png

with as much detail as you like, you should create a script to assist you.

Then you use A* to compute a path. 

To traverse the edges you either write your own local walking function or use the builtin one.

Your web or whatever people call it is now just a list of nodes (tiles) and associated edges (undirected in this case), which you should indeed store in a file.

 

Hmm.. Sound difficult to get retrieve tiles at intersections, or perhaps I am wrong.

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.