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

Suggestion - increase cost for teleports that take time to cast #212

Closed SkrrtNick closed 11 months ago

SkrrtNick commented 11 months ago

For example - lumby home teleport will get cast instead of walking from distances in which it would be faster to walk rather than sit and wait however many seconds the animation is.

Unsure of the tidiest way to implement

FALSkills commented 11 months ago

It's already implemented via the movecosts in the Teleports enum, you can adjust it with Teleport.LUMBRIDGE_HOME_TELEPORT.setMoveCost(value). Its default is 150. Other teleports are typically a movecost of 35. Ideally this would be moved out of the Teleports enum and stored in a map object in the DaxWalker class, but I haven't made that change yet.