Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ManaPotID = 237 -- Strong mana potion
- local HealthPotID = 7642 -- GSP XD
- local HealthsToLeave = 100 -- how muc want your bott to leave :)
- local ManasToLeave = 100 -- hehe xds you want to leave at
- local MinCap = 200
- local BuyManas = 1000
- local BuyHealth = 200
- function onWalkerSelectLabel(labelName)
- if (labelName == "Checker") then
- wait(2000)
- if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) or ((Self.ItemCount(HealthPotID) < HealthsToLeave)) then
- gotoLabel("Leave")
- else
- gotoLabel("KeepHunting")
- elseif (labelName == "Start") then
- Walker.ConditionalGoto((Self.Position().z == 11), "BeginHunt", "ReachDepot")
- elseif (labelName == "BuyManas") then
- -- Buy Mana Potions
- Walker.Stop()
- if (Self.ItemCount(ManaID) < BuyMana) or (Self.ItemCount(HealthID) < BuyHealth) then
- print("Buying manas or healths")
- Self.SayToNpc({"hi", "flasks"}, 100)
- while (Self.ItemCount(FlaskID) >= 1) or (Self.ItemCount(FlaskIDA) >= 1) or (Self.ItemCount(FlaskIDB) >= 1) do
- Self.SayToNpc("yes", 100)
- end
- wait(2000)
- Self.SayToNpc("trade", 100)
- wait(2000)
- while (Self.ItemCount(ManaID) < BuyMana) do
- Self.ShopBuyItemsUpTo(ManaID, BuyMana)
- wait(500,800)
- end
- if (Self.ItemCount(HealthID) < BuyHealth) then
- Self.ShopBuyItemsUpTo(HealthID, BuyHealth)
- wait(500)
- end
- wait(200, 500)
- end
- Walker.Start()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement