Facebook
From Nessiah, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 121
  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 == "RestartBps") then
  100.         Walker.Stop()
  101.         Self.CloseContainers()
  102.         wait(200)
  103.         Self.OpenMainBackpack(true)
  104.         Container.GetFirst():OpenChildren(ItemBP)
  105.         wait(1000)
  106.         Container.GetFirst():OpenChildren(StackBP)
  107.         wait(1000)             
  108.         Container.GetFirst():OpenChildren(SuppliesBP)
  109.         wait(1000)             
  110.         Container.GetByName(ItemBP):Minimize()
  111.         wait(1000)
  112.         Container.GetByName(StackBP):Minimize()
  113.         wait(1000)
  114.         Container.GetByName(SuppliesBP):Minimize()
  115.         wait(200)
  116.         Walker.Start()
  117. elseif(labelName == "Check") then
  118.         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
  119.                 gotoLabel("StartHunt")
  120.         else
  121.                 print("No supplies")
  122.         end
  123. end
  124. end

Replies to Skrypt rss

Title Name Language When
Re: Skrypt Ungracious Tamarin text 4 Years ago.