Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. dofile('cslib.lua')
  2. -- ____
  3. -- / ____| _ _ _
  4. -- | | ___ _ _ ____ | | __| \ / |
  5. -- | | / _ \| \ / | _ \ |/ _ \ \/ /
  6. -- | |___| (_) | \/ | |_| | | __/ /\ \
  7. -- \_____\___/|_|\__/|_| ___|_|\___|_/ \_|
  8. -- | |
  9. -- |_|
  10.  
  11. --========DP SPOT 0 = RARES============--
  12. --========DP SPOT 1 = STACKABLES=======--
  13. --========DP SPOT 2 = PEARLS===========--
  14. --========DP SPOT 3 = FOOD=============--
  15.  
  16. --========Backpacks====================--
  17. mainBP = "mushroom backpack"
  18. stackBP = "jewelled backpack"
  19. lootBP = "crystal backpack"
  20. goldBP = "minotaur backpack"
  21. suppliesBP = "buggy backpack"
  22.  
  23. --========Mana=========================--
  24. mPots = "Mana Potion"
  25. maxMP = 1600 --- Manas to bring
  26. minMP = 300 --- Manas to leave
  27.  
  28. --========Health=======================--
  29. hPots = "Supreme Health Potion"
  30. maxHP = 100 --- Healths to bring
  31. minHP = 70 --- Healths to leave
  32.  
  33. --========Other=========================--
  34. foodID = 3725 --- Food id to withdraw from 3rd BP in DP
  35. minCap = 400 --- Cap to leave
  36. extraCash = 3000 --- Extra cash to withdraw just in case
  37. staminaLogout = true --- logout at 16h stamina
  38. dropVials = true -- Drop vials?
  39. screenShot = true -- Take Screenshot at level?
  40. bpReopen = false -- open backpacks after ss/kick ?
  41. manaRestore = false -- Fill up your mana to 95% when no creatures nearby?
  42.  
  43. --========Optionals======================--
  44. doBloodTask = false -- do blood beast killing task? After becoming at least a Rathleton "Commoner"
  45. doRotTask = false -- do rot elemental killing task?
  46. doRootsTask = false -- use roots?
  47. sellItems = true -- After becoming at least a Rathleton "Inhabitant"
  48.  
  49. lMode = false -- lure mode?
  50. mLimit = 4 -- monster limit to change targeting
  51. mList = {
  52. "Glooth Blob", "Rot Elemental", "Devourer", "Blood Beast",
  53. "Quara Constrictor", "Quara Hydromancer", "Quara Mantassin", "Quara Pincher", "Quara Predator",
  54. "Quara Mantassin Scout", "Quara Constrictor Scout", "Quara Predator Scout", "Quara Pincher Scout", "Quara Hydromancer Scout"
  55. } -- Monsters to count when luring. DON'T change
  56.  
  57. Looter.Start()
  58. Targeting.Start()
  59. registerEventListener(WALKER_SELECTLABEL, "onLabel")
  60. print("[[Knight Roludo]]")
  61. --========FUNCTIONS====================--
  62. function onLabel(label)
  63. if (label == "Backpacks") then
  64. CS.OpenBackpacks()
  65. elseif (label == "Deposit") then
  66. Self.DepositItems(
  67. -- non stackables
  68. {7452, 0}, {3038, 0}, {3279, 0}, {21170, 0}, {21171, 0}, {8082, 0}, {3097, 0}, {21169, 0}, {21168, 0}, {21183, 0}, {21180, 0}, {3052, 0}, {8084, 0}, {21179, 0}, {21178, 0}, {21164, 0}, {3049, 0}, {8083, 0}, {12318, 0}, {3098, 0}, {3370, 0}, {3073, 0}, {3567, 0}, {3373, 0}, {3381, 0}, {3369, 0}, {3093, 0}, {21165, 0}, {21167, 0}, {3051, 0},
  69. -- stackables
  70. {21291, 1}, {9654, 1}, {7643, 1}, {8775, 1}, {236, 1}, {238, 1}, {237, 1}, {3029, 1}, {3030, 1}, {3032, 1}, {7439, 1}, {9057, 1}, {3037, 1}, {16126, 1}, {5880, 1}, {9016, 1}, {10310, 1}, {21182, 1}, {21196, 1}, {7366, 1}, {9640, 1}, {5895, 1}, {11489, 1}, {21195, 1}, {21193, 1}, {11487, 1}, {11491, 1}, {21194, 1}, {3061, 1}, {11490, 1}, {11488, 1}, {21103, 1}, {7368, 1},
  71. -- Pearls
  72. {820, 2}, {3554, 2}, {3033, 2}, {7403, 2}, {3028, 2}, {3034, 2}, {3027, 2}, {3326, 2}, {7428, 2}, {3026, 2}
  73. )
  74. elseif (label == "Stamina") then
  75. CS.CheckStamina()
  76. elseif (label == "BankNPC") then
  77. CS.Bank()
  78. elseif (label == "Withdraw") then
  79. CS.Withdraw(FoodID, 100, 1)
  80. elseif (label == "PotionsNPC") then
  81. CS.BuySupplies()
  82. elseif (label == "DoorNorth") then
  83. CS.OpenDoor("NORTH")
  84. wait(1000)
  85. elseif (label == "DoorSouth") then
  86. CS.OpenDoor("SOUTH")
  87. wait(1000)
  88. elseif (label == "doTask") then
  89. Walker.ConditionalGoto(doBloodTask or doRotTask, "takeTask", "skipTask")
  90. elseif (label == "Terrence") then
  91. if doRotTask then
  92. CS.Talk({"rot", "rot"}, "Terrence")
  93. end
  94. if doBloodTask then
  95. CS.Talk({"blood", "blood"}, "Terrence")
  96. end
  97. elseif (label == "checkSell") then
  98. Walker.ConditionalGoto(sellItems, "goSell", "skipSell")
  99. elseif (label == "Sell") then
  100. CS.Sell({"Metal Spats"}, "trade")
  101. elseif (label == "PreCheck") then
  102. CS.PreCheck()
  103. elseif (label == "CheckSupplies") then
  104. CS.CheckBefore("dp", "ToHunt")
  105. elseif(label == "Check") then
  106. CS.Check()
  107. end
  108. end
  109.  
  110. --========MODULES======================--
  111.  
  112. if bpReopen then
  113. Module.Start('BP_Reconnect')
  114. end
  115.  
  116. if dropVials then
  117. Module.Start('Drop_Vials')
  118. end
  119.  
  120. if screenShot then
  121. Module.Start('Screenshot')
  122. end
  123.  
  124. if manaRestore then
  125. Module.Start('Mana_Restore')
  126. end
  127.  
  128. if doRootsTask then
  129. Module.Start('Roots')
  130. end
  131. Module.Start('Move_Supplies')
  132.  
  133. nTargeting = "[EK] Oramond West Tasker"
  134. lTargeting = "[EK] Oramond West Tasker extra"
  135. if lMode then
  136. Module.Start('Lure')
  137. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement