itsdax / Runescape-Web-Walker-Engine

A navigation engine for OSRS written for TriBot
https://tribot.org/
Apache License 2.0
81 stars 37 forks source link

Adding planted Spirit Tree support #108

Open rokaHakor opened 2 years ago

rokaHakor commented 2 years ago

Hey Dax,

I was hoping it'd be possible to add planted Spirit Tree support to the API. Within my web walker I'm currently requesting path calcs from start to all spirit trees then from all spirit trees to destination. Then I'm combining the paths and going from there to support planted spirit trees. Unfortunately its pretty inefficient since it needs to make multiple requests to the API for each spirit tree.

Additionally there are no varbits that indicate that a planted spirit tree exists and is usable. I'm currently getting what spirit trees are available when the spirit tree interface is opened then I cache the values. So I was thinking maybe we could include some values as part of the PlayerDetails that indicate that a planted spirit tree is available and the API could use those values and return a path that includes planted spirit trees.

There's no big rush since my current method is working but I just thought it would be cool to get native support for it.

Best Regards, Satoshi

FALSkills commented 2 years ago

@itsdax can we work on updating the endpoints to handle this? Please let me know if you need me to prep anything else on the walker engine or web editor.