Quote Originally Posted by Demonic Saint View Post
Most lua's call the function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal" instead of Shop.BuyItem or whatever, because of this the script will always buy at least 1 of every item even if you are already have enough. If it's set to buy uhp before manas, and it didn't withdraw money for uhp due to the fact that it doesn't need any and then in turn the script buys one, it'll fail to buy manas. What you need to do is change the amount it withdraw for manas from 50 to around ~75gp that way it'll have enough money to buy both. It'll leave you with a little extra cash in your backpack when you return to the hunt but it'll solve the problem you are having.
thats why I use this one instead.

[code=lua]
function buyItems(item, count) -- item = item ID, count = how many you want to buy up to
wait(900, 1200)
if (Self.ItemCount(item) < count) then
Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
wait(200, 500)
end
end
[/code]