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

Prioritize equipped teleports when in combat #195

Closed BegTribot closed 1 year ago

BegTribot commented 1 year ago

Player had the same wearable teleport in equipment and inventory, walker tried to teleport using item on inventory It should either always prioritize equipped teleports or do it if the player is in combat Reason being most wearable teleports require to click an option in the chat, which is disrupted by combat

FALSkills commented 1 year ago

This commit should pick the equipment item before the inventory item if it matches the item filter, but it will NOT prefer another type of teleport item altogether (i.e. it won't prefer a glory over dueling simply because the glory is equipped and the dueling is not). That would require a significant rework unfortunately. 31b614cfc133ffa6e3f42abe0afee822b3a14cde