Advertisement
Guest User

Untitled

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