- Simply copy the webwalker_logic package inside your scripts directory! (View below) If you need further help, the visit the Scripting Help Channel on Tribot discord.
- You can also clone this repo directly in your scripts directory with a few tweaks.
View JavaDocs
The public key is limited to a combined total of 400 calls every minute. The public api key is already included in the source.
If your scripts have a large userbase, then the public key may not be enough for your needs. If you require more calls or wish to support my project, please refer to this link or contact me over Tribot for API Keys.
- This is the front end of my web walker, which includes a wrapper for the server-client interaction of generating paths from point A to point B and navigating through the path.
- Back-end pathfinding is coded using a combination of dijkstra's and A* algorithm. Dijkstra's is mainly for region limiting for performance purposes whereas A* calculates the actual path. Wayports (Node jumps) cannot be calculated using a heuristic value so Dijkstra's is needed in this scenario.
- The Walker Engine includes path walking, waypoint navigation (Ship Chartering/Portals/etc), and path randomization using BFS to prevent trackable walking patterns.
-
Speed. Will generate a path from any two points (Given that it is mapped) in less than a second, guaranteed.
-
Simplicity. Implement the engine into your script by simply calling:
WebWalker.walkTo(new RSTile(x, y, z));
WebWalker.walkTo(new RSTile(x, y, z), walkingCondition);
WebWalker.walkToBank();
-
Shortcuts. Using all and only the shortcuts that your Player can access, whether it is skill level (Agility level needed for shortcut) or inventory item requirements (Such as gold needed for ship or fee to enter dungeon). This also includes quest requirements.
-
Obstacles. All obstacles such as doors/ladders/etc are supported as long as area is mapped.
- All Cities (Except Lletya) including Zeah
- Wilderness
- Gnome Slayer Dungeon
- Relleka Slayer Dungeon
- Stronghold of Security
- Most underground locations (Falador Mine, Varrock Sewers, etc)
- Debugging visualization. Draw a live feed of the Path and Collision Data the engine is working with on the minimap using:
WebWalkerPaint.getInstance().drawDebug(graphics);
- Nodes that direct to another, and not vice versa (Such as one way entrances) are supported as well.
Path from outside to inside. (Enters front door.)
Path from inside to outside. (Exits through back door.)
The algorithm is designed to limit itself to only the regions that will lead towards the destination. This is how we will generate paths in the fastest time possible.