Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 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. ManasToLeave = 100 - hehe xds you want to leave at
  5. MinCap = 200
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. function onWalkerSelectLabel(labelName)
  13. if (labelName == "Checker") then
  14. if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) or ((Self.ItemCount(HealthPotID) < HealthsToLeave)) then
  15. gotoLabel("Leave")
  16. else
  17. gotoLabel("KeepHunting")
  18.  
  19. elseif (labelName == "BuyManas") then
  20. -- Buy Mana Potions
  21. Walker.Stop()
  22. if (Self.ItemCount(ManaID) < BuyMana) or (Self.ItemCount(HealthID) < BuyHealth) then
  23. print("Buying manas or healths")
  24. Self.SayToNpc({"hi", "flasks"}, 100)
  25. while (Self.ItemCount(FlaskID) >= 1) or (Self.ItemCount(FlaskIDA) >= 1) or (Self.ItemCount(FlaskIDB) >= 1) do
  26. Self.SayToNpc("yes", 100)
  27. end
  28. wait(2000)
  29. Self.SayToNpc("trade", 100)
  30. wait(2000)
  31. while (Self.ItemCount(ManaID) < BuyMana) do
  32. Self.ShopBuyItemsUpTo(ManaID, BuyMana)
  33. wait(500,800)
  34. end
  35. if (Self.ItemCount(HealthID) < BuyHealth) then
  36. Self.ShopBuyItemsUpTo(HealthID, BuyHealth)
  37. wait(500)
  38. end
  39. wait(200, 500)
  40. end
  41. Walker.Start()
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement