- Rep Power
Refiller doesn't work properly in the one script only
Hello everyone ! I have small problem with my Green Djins script. When it goes to bank to withdraw money for potions, it withdraws random amounts of money... But it's always more than I need to buy ALL POTIONS, like he wants to fill all from 0 to full stock. I decided to paste working withdrawer from my other script... And ? Bot still wants to withdraw 25-50k, when he needs only 10-15k for potions. Rest of money stays in backpack. What's wrong with it ? No actions related with that. All names in setup are proper. Help me, please.
Here's depositer (it's working in all other scripts,except Green Djins) :
local mana = positive(MpToBuy - itemcount(MpName)) * MpPrice
local health = positive(HpToBuy - itemcount(HpName)) * HpPrice
local Total = mana + health + 100
if Total > 0 then
Last edited by Devisso; 07-06-2013 at 02:58 AM.
Where do you store your potions? Make sure that the backpack with your potions is open before you withdraw money so the bot can count the items you've.
I think you have wrong HpPrice or MpPrice in setup.