Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: Lua  |  size: 5.75 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ---------------WORKER GOLEMS MULTIPLE OPTIONS--------------------------------------
  2. -------------------AND LOTS OF SPECIAL AREAS---------------------------------------
  3. ------------------------MADE BY----------------------------------------------------
  4. ----------------------------STUSSE-------------------------------------------------
  5. -----------------------------------------------------------------------------------
  6. -----------------------------------------------------------------------------------
  7. ----------SETTINGS-----------------------------------------------------------------
  8. -----------------------------------------------------------------------------------
  9. -----------------------------------------------------------------------------------
  10. MinCap = 50 --How much cap to leave cave?
  11. ManasToLeave = 40 --How many manas to leave cave?
  12. WithdrawManas = 300 --How many manas to withdraw at depot? Remember to have correct stacks.
  13. ManaPotID = 237 --Change Mana Pot ID (268 is normal manas, 237 is strong, 238 is great)
  14.  
  15. UseGate = true --Do you want to use gate mechanism? True/false
  16. RailwayOnly = false --Do you want to hunt only RailwaySpawn?
  17. CentreOnly = false --Do you want to hunt only CentreSpawn?
  18. BothSpawns = true --Do you want to hunt both Railway and Centre Spawn?
  19. -----------------------------------------------------------------------------------
  20. -----------------------------------------------------------------------------------
  21. --END OF SETTINGS--DONT CHANGE BELOW IF YOUR NOT 100% SURE OF WHAT YOU'RE DOING----
  22.  
  23. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  24.  
  25.  
  26. function onWalkerSelectLabel(labelName)
  27.    if (labelName == "Start") then
  28.         if ((UseGate) = true) then
  29.         gotoLabel("GateWay")
  30.         wait(1000, 2000)
  31.         SetBotEnabled(true)
  32.         else
  33.         gotoLabel("NoGate")
  34.         wait(1000, 2000)
  35.         SetBotEnabled(true)
  36. end
  37. elseif (labelName == "UseGate1") then
  38. Self.UseItemFromGround(32857, 31248, 5)
  39.  
  40. elseif (labelName == "StartHunting") then
  41. if ((RailwayOnly) = true) then
  42. gotoLabel("GoCave2")
  43. else
  44. gotoLabel("CentreSpawn")
  45.  
  46. elseif (labelName == "Checker") then
  47. if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) then
  48.             gotoLabel("Leave")
  49.         else
  50.             gotoLabel("CheckSpawns")
  51.  
  52. elseif (labelName == "CheckSpawns") then
  53. if ((CentreOnly) = true) then
  54. gotoLabel("StartHunting")
  55. else
  56. gotoLabel("GoCave2")
  57.  
  58. elseif (labelName == "Checker2") then
  59. if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) then
  60.             gotoLabel("Leave")
  61.         else
  62.         gotoLabel("StartHunting")
  63.  
  64. elseif (labelName == "Leave") then
  65. if ((UseGate) = true) then
  66. gotoLabel("GateWayBack")
  67. else
  68. gotoLabel("NoGate2")
  69.  
  70. elseif (labelName == "UseGate2") then
  71. Self.UseItemFromGround(32853, 31251, 5)
  72.  
  73. elseif (labelName == "Banker") then
  74. delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
  75.         Self.Say("hi")
  76.         sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
  77.         Self.SayToNpc("deposit all")
  78.         sleep(math.random(300, 1000))
  79.         Self.SayToNpc("yes")
  80.  
  81. elseif (labelName == "Deposit") then
  82.                     Self.DepositItems(9655, 7439, 8775, 238, 239, 7642, 5880, 3061, 3028, {3048, 1}, {3279, 1}, {7452, 1}, {7428, 1}, {12547, 1})  -- Deposits stackables in 1st, items in 2nd
  83.  
  84. elseif (labelName == "Refill") then                  
  85. Self.WithdrawItems(3, {ManaPotID, 0, WithdrawManas}) -- withdraw manapots from 4rd backpack in depot
  86.  
  87. elseif (labelName == "GoToStart") then
  88. gotoLabel("Start")
  89.  
  90. elseif (labelName == "Barry1") then
  91. delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
  92.         Self.Say("hi")
  93.         sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
  94.         Self.SayToNpc("pass")
  95.         sleep(math.random(600, 1000))
  96.         Self.SayToNpc("sunken")
  97.  
  98. elseif (labelName == "Oliver1") then
  99. delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
  100.         Self.Say("hi")
  101.         sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
  102.         Self.SayToNpc("pass")
  103.         sleep(math.random(600, 1000))
  104.         Self.SayToNpc("factory")
  105.        
  106. elseif (labelName == "GoToHunt") then
  107. gotoLabel("StartHunting")
  108.  
  109. elseif (labelName == "Oliver2") then
  110. delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
  111.         Self.Say("hi")
  112.         sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
  113.         Self.SayToNpc("pass")
  114.         sleep(math.random(600, 1000))
  115.         Self.SayToNpc("sunken")
  116.  
  117. elseif (labelName == "Barry2") then
  118. delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
  119.         Self.Say("hi")
  120.         sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
  121.         Self.SayToNpc("pass")
  122.         sleep(math.random(600, 1000))
  123.         Self.SayToNpc("magician")
  124.  
  125. elseif (labelName == "BackInBank") then
  126. gotoLabel("Banker")              
  127. end
  128. end