Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. ManaPotID = 237 -- Strong mana potion
  2. HealthPotID = 7642 -- GSP XD
  3. HealthsToLeave = 100 - how much you want your bott to leave :)
  4. (edit it the top ^)
  5.  
  6.  
  7.  
  8.  
  9. function onWalkerSelectLabel(labelName)
  10. if (labelName == "Checker") then
  11. if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) or ((Self.ItemCount(HealthPotID) < HealthsToLeave)) then
  12. gotoLabel("Leave")
  13. else
  14. gotoLabel("KeepHunting")
  15.  
  16. elseif (labelName == "BuyManas") then
  17. -- Buy Mana Potions
  18. Walker.Stop()
  19. if (Self.ItemCount(ManaID) < BuyMana) or (Self.ItemCount(HealthID) < BuyHealth) then
  20. print("Buying manas or healths")
  21. Self.SayToNpc({"hi", "flasks"}, 100)
  22. while (Self.ItemCount(FlaskID) >= 1) or (Self.ItemCount(FlaskIDA) >= 1) or (Self.ItemCount(FlaskIDB) >= 1) do
  23. Self.SayToNpc("yes", 100)
  24. end
  25. wait(2000)
  26. Self.SayToNpc("trade", 100)
  27. wait(2000)
  28. while (Self.ItemCount(ManaID) < BuyMana) do
  29. Self.ShopBuyItemsUpTo(ManaID, BuyMana)
  30. wait(500,800)
  31. end
  32. if (Self.ItemCount(HealthID) < BuyHealth) then
  33. Self.ShopBuyItemsUpTo(HealthID, BuyHealth)
  34. wait(500)
  35. end
  36. wait(200, 500)
  37. end
  38. Walker.Start()
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement