BBot - The best bot of the world

Full Version: [Help] Refill
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi friends,
I wonder, how do I buy mana potion, but only completed 100, eg: if have 20, buy 80 potion, if have 0 potions, buy 100 potions.

It has to do for cavebot or macro?



Oi amigos,
Gostaria de saber como faço pro bot comprar mana potion, mas apenas completar 100, exemplo: se tiver 20 potions comprar apenas 80, se tiver 0 potions comprar 100 potions.
Tem como fazer por cavebot ou por macro
?
Code:
5000 {Mana Pot} VarSetEx(Total, 100) VarSet(Potnow) Misc.ItemCountEx(268) VarSub(Total, !Potnow!) HUD.Display(!Total!) Self.Say(hi) Macro.Wait(2000) NPC.Say(trade) NPC.Buy(268, !Total!, 1) Macro.Wait(2000) NPC.Say(bye))