dean015
01-31-2016, 06:33 PM
Hello, i have a small problem my script is buying manas fine but not HP pots, can someone please take a look i would appreciate it
local MPBuy = 700 --- Manas to buy
local MPLeave = 100 --- Manas to refill
local ManaPots = 268 --- Mana IDs small=268 - strong=237 - great=238
local HPBuy = 30 --- Healths to buy
local HPLeave = 15 --- Healths to refill
local HPID = 239 --- Health IDs small=266 - strong=236 - great=239
Self.ShopBuyItemsUpTo(ManaPots, MPBuy)
wait(1900,2400)
Self.ShopBuyItemsUpTo(HPID, HPBuy)
Self.WithdrawMoney((50*(MPBuy-Self.ItemCount(ManaPots)))+1000)
wait(1800,2400)
Self.WithdrawMoney(80*(HPBuy-Self.ItemCount(HPID)))
it looks right to me but i have no idea what im doing :/ its also not withdrawing enough money for the hp pots
thanks
local MPBuy = 700 --- Manas to buy
local MPLeave = 100 --- Manas to refill
local ManaPots = 268 --- Mana IDs small=268 - strong=237 - great=238
local HPBuy = 30 --- Healths to buy
local HPLeave = 15 --- Healths to refill
local HPID = 239 --- Health IDs small=266 - strong=236 - great=239
Self.ShopBuyItemsUpTo(ManaPots, MPBuy)
wait(1900,2400)
Self.ShopBuyItemsUpTo(HPID, HPBuy)
Self.WithdrawMoney((50*(MPBuy-Self.ItemCount(ManaPots)))+1000)
wait(1800,2400)
Self.WithdrawMoney(80*(HPBuy-Self.ItemCount(HPID)))
it looks right to me but i have no idea what im doing :/ its also not withdrawing enough money for the hp pots
thanks