Jump to content

How does WebWalking generate a walkable path


Zummy

Recommended Posts

5 hours ago, Zummy said:

Hey, I was wondering how does webwalking generate a path knowing which tiles can be reached and which cant. Do we have acces to that method?

Pretty sure it's mapped with different "coordinates" it can walk on, but idk tbh.

We have access to the use of WebWalking, but I don't think we can access to actual "data" it contains.

Link to comment
Share on other sites

I thought for about it for a few minutes, but I'd guess they've hard coded the actual coordinates of areas like banks as well as a bunch of coordinate pairs which are within distance of each other. 

Like if Varrock Bank is at coords (a,b,c) and you are at (d,e,f), the bot looks to some data file and finds that your (d,e,f) coords are within a screen of (d+7,e-5,f+1) which itself is within a screen of (d+15,e-8,f+4). etc, etc

Maybe looking something like this in a data file:

[(d+7,e-5,f+1),(d+15,e-8,f+4)] : distance

Where 'distance' would be the actual distance between the two points.

Take your pick for solving this problem from (d,e,f) to (a,b,c): 

https://en.wikipedia.org/wiki/Shortest_path_problem

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...