Maybe you should keep potions on your person, then? A bot cannot reliably detect when somebody is out of potions, and it can lead to a death if I simply don't drink potions because I don't detect them.
Printable View
I did have potions to begin my hunt, it was supposed to return to deposit with 10 left and it never ran out in the past; I understand the simple fix is to raise the minimum potion limit in my script and problem solved but this is still an issue. You can't have the healer check mana percent and if potions exist before executing? I find that hard to believe, I still had plenty of mana to survive the rest of the hunt before depositing but the fact that it was spamming potions had the bot at almost a stand still.
Take a pvp example (I know this is highly unrealistic), you are being killed and you have 200 gmp to heal with and you use all of them up but still have 1kish mana left, just enough to get to pz but your bot is spamming potions so you can't move or heal more than a few squares at a time so someone combos you and you die.
I'm a far lesser programmer than you are but in c++ that I'm familiar with it's as simple as throwing an exception to forgo using potions when the potion doesn't exist. You already have the potion id to use built into the healer so I don't see the problem.
Edit: I'm not 100% sure but I do believe my bot on the previous support system ran out on occasion or missed a refill and it didn't completely cause a stand still when it was out of potions. It may have been lag + the potion spamming in this case that caused me not to be able to do anything as it is on a preview-game world.
Edit2: I guess since potions are client side it would make since that you cannot reliably detect them without constantly updating the count. I was looking at it from a basic user input scenario which is what I'm used to programming in.
after this update when i try to open xbst file (and not load, when i allready logged in to tibia) its finds the character but its says id is 0
and when i try to open it, it faileds. it working if i open from load tho.
im having a bug in seas -1 it says xenobot cant find current waypoint (with mapclicker and without it)