Facebook
From Ungracious Tamarin, 3 Years ago, written in Plain Text.
This paste is a reply to Skrypt from Nessiah - view diff
Embed
Download Paste or View Raw
Hits: 128
  1. local ManaMax = 1500
  2. local ManaMin = 200
  3. local ManaPot = "mana potion"
  4.  
  5. local HpMax = 500
  6. local HpMin = 100
  7. local HpPot = "supreme health potion"
  8.  
  9. local AmmoMax = 900
  10. local AmmoMin = 300
  11. local Ammo = "crystalline arrow"
  12.  
  13. local RuneMax = 0
  14. local RuneMin = 0
  15. local RuneName = "avalanche"
  16.  
  17. local ItemBP = "crystal backpack"
  18. local StackBP = "jewelled backpack"
  19. local SuppliesBP = "orange backpack"
  20.  
  21. local MinCap = 100
  22. local hardcore = true
  23. ----------------------------------------------------------------
  24. --- Walker and labels to set:
  25. --- start at depo
  26. --- 1. RestartBps
  27. --- way to bank
  28. --- 2. DepositGold
  29. --- way to potion shop
  30. --- 3. BuyPots
  31. --- way to ammo
  32. --- 4. BuyAmmo - if you need ammo
  33. --- way to rune shop
  34. --- 5. BuyRunes - if you need runes
  35. --- way to depo
  36. --- 6. CheckBefore
  37. --- way to hunt place
  38. --- 7. StartHunt
  39. --- route around spawn
  40. --- 8. Check
  41. --- way to depo
  42. --- built in reach depo function in client
  43. --- built in deposit items function in client
  44. ----------------------------------------------------------------
  45. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  46. print("Full afk script by Trykon")
  47. print("Happy Hunting!")
  48. function onWalkerSelectLabel(labelName)
  49. if(labelName == "DepositGold") then
  50.         Walker.Stop()
  51.         Self.SayToNpc("hi")
  52.         wait(200,1000)
  53.         Self.SayToNpc("deposit all")
  54.         wait(200, 1000)
  55.         Self.SayToNpc("yes")
  56.         wait(1000)
  57.         Walker.Start()
  58. elseif(labelName == "Hardcore") then
  59.         if(hardcore == false) then
  60.                 gotoLabel("SkipHardcore")
  61.         end
  62. elseif(labelName == "BuyPots")then
  63.         Walker.Stop()
  64.         Self.SayToNpc("hi")
  65.         wait(200,1000)
  66.         Self.SayToNpc("trade")
  67.         wait(200, 1000)
  68.         Self.ShopBuyItemsUpTo(HpPot, HpMax)
  69.         wait(200, 1000)
  70.         Self.ShopBuyItemsUpTo(ManaPot, ManaMax)
  71.         wait(1000)
  72.         Walker.Start()
  73. elseif(labelName == "BuyAmmo") then
  74.         Walker.Stop()
  75.         Self.SayToNpc("hi")
  76.         wait(200,1000)
  77.         Self.SayToNpc("trade")
  78.         wait(200, 1000)
  79.         Self.ShopBuyItemsUpTo(Ammo, AmmoMax)
  80.         wait(200, 1000)
  81.         wait(1000)
  82.         Walker.Start()
  83. elseif(labelName == "BuyRunes") then
  84.         Walker.Stop()
  85.         Self.SayToNpc("hi")
  86.         wait(200,1000)
  87.         Self.SayToNpc("trade")
  88.         wait(200, 1000)
  89.         Self.ShopBuyItemsUpTo(RuneName, RuneMax)
  90.         wait(200, 1000)
  91.         wait(1000)
  92.         Walker.Start()
  93. elseif(labelName == "CheckBefore") then
  94.         if(Self.Cap() < MinCap or Self.ItemCount(HpPot) < HpMax or Self.ItemCount(Ammo) < AmmoMax or Self.ItemCount(RuneName) < RuneMax or Self.ItemCount(ManaPot) < ManaMax) then
  95.                 gotoLabel("RestartBps")
  96.         else
  97.                 print("Check passed")
  98.         end
  99. elseif (labelName == "DepositItems") then
  100.                 -- Deposit Items
  101.                 Walker.Stop()
  102.                 Self.ReachDepot(5)
  103.                 Self.DepositItems({812, 1}, {811, 1}, {3342, 1}, {3324, 1}, {21165, 1}, {21164, 1}, {21180, 1}, {21179, 1}, {21178, 1}, {7419, 1},  {7386, 1},  {21167, 1},  {7412, 1},  {9027, 1},  {6299, 1},  {21183, 1})
  104.                 Self.DepositItems({3038, 0}, {21203, 0}, {9057, 0}, {3032, 0}, {9667, 0}, {10293, 0}, {9055, 0}, {9054, 0}, {9053, 0}, {10308, 0}, {6574, 0})
  105.                 Walker.Start()
  106. elseif(labelName == "RestartBps") then
  107.         Walker.Stop()
  108.         Self.CloseContainers()
  109.         wait(200)
  110.         Self.OpenMainBackpack(true)
  111.         Container.GetFirst():OpenChildren(ItemBP)
  112.         wait(1000)
  113.         Container.GetFirst():OpenChildren(StackBP)
  114.         wait(1000)             
  115.         Container.GetFirst():OpenChildren(SuppliesBP)
  116.         wait(1000)             
  117.         Container.GetByName(ItemBP):Minimize()
  118.         wait(1000)
  119.         Container.GetByName(StackBP):Minimize()
  120.         wait(1000)
  121.         Container.GetByName(SuppliesBP):Minimize()
  122.         wait(200)
  123.         Walker.Start()
  124. elseif(labelName == "Check") then
  125.         if(Self.Cap() >= MinCap and Self.ItemCount(Ammo) >= AmmoMin and Self.ItemCount(HpPot) >= HpMin and Self.ItemCount(RuneName) >= RuneMin and Self.ItemCount(ManaPot) >= ManaMin) then
  126.                 gotoLabel("StartHunt")
  127.         else
  128.                 print("No supplies")
  129.         end
  130. end
  131. end

Replies to Re: Skrypt rss

Title Name Language When
Re: Re: Skrypt Tacky Dolphin text 3 Years ago.