bot4dofus / B4D

🎮🥚🤖 Pixel bot for Dofus 2 using packet sniffing, mouse and keyboard emulations
https://github.com/bot4dofus/B4D/wiki
MIT License
24 stars 11 forks source link

[Core] Do not use %pos% to get the current position of the player #20

Open LucBerge opened 3 years ago

LucBerge commented 3 years ago

Is your feature request related to a problem? Please describe. When a program begins, the player position need to be retrieved for transportation API (to know where to go). It is currently done by doing %pos% in the chat. When the general channel is not displayed, it's impossible to get the position back. Because of this, every program has to have the Channel.GENERAL set in the builder. Moreover, frequently running %pos% is a vulnerability for bot detection.

Describe the solution you'd like The idea is simply to not use %pos% to get the current position of the player.

Describe alternatives you've considered