I'll take a look@Borges
Sorry to bother you with an old thread. But for some players, using potions while keeping distance can screw the things. I mean, i saw that you have pausewalking before using potions on a mage. Lets imagine that I'm a hl mage hunting in hardcore mode. I can not move until i have more than 70% of mana. I think that you could add some range and a check for monsters. Something like, if no monsters in the screen, use potion until 80%. If have monsters in the screen, only use potion if mana goes below something like 30~40%. This way the bot can keep the distance, killing the monsters without using potions, and using potions when there is no danger.