Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cavebot.Stop()
- wMP = 0
- wHP = 0
- wRune = 0
- wAmmo = 0
- wVial = 0
- extra = extra or 0
- if useMP then
- wMP = math.max((priceMP*(maxMP-Self.ItemCount(MP))),0)
- end
- if useHP then
- wHP = math.max((priceHP*(maxHP-Self.ItemCount(HP))),0)
- end
- if useRune then
- wRune = math.max((priceRune*(maxRune-Self.ItemCount(rune))),0)
- end
- if useAmmo then
- wAmmo = math.max((priceAmmo*(maxAmmo-Self.ItemCount(ammo))),0)
- end
- wVial = math.max((5*Self.Flasks()),0)
- if wVial <= 1000 then wVial=0 end
- withdraw = ((math.ceil((wMP+wHP+wRune+wAmmo-wVial)/1000))*1000)+extra
- wait(600,800)
- if withdraw > 0 then
- print("Withdrawing : "..withdraw)
- Self.SayToNpc({"hi", "deposit all", "yes", "withdraw "..withdraw, "yes"},math.random(55,70))
- else Self.SayToNpc({"hi", "deposit all", "yes"},math.random(55,70))
- end
- wait(1000,1200)
- if Self.Money() < withdraw then print('You don't have enough money in bank, stoping script')
- Cavebot.Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement