Advertisement
hhaos

Untitled

Apr 15th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1.  
  2.  
  3. xx = xx or {}
  4. xx.dict = {
  5. venoms = {
  6. addiction = "vardrax",
  7. anorexia = "slike",
  8. asthma = "kalmia",
  9. clumsiness = "xentio",
  10. crippledarm = "epteth",
  11. crippledleg = "epseth",
  12. darkshade = "darkshade",
  13. deafblind = "colocasia",
  14. disloyalty = "monkshood",
  15. dizziness = "larkspur",
  16. haemophilia = "notechis",
  17. nausea = "euphorbia",
  18. paralysis = "curare",
  19. recklessness = "eurypteria",
  20. scytherus = "scytherus",
  21. selarnia = "selarnia",
  22. sensitivity = "prefarar",
  23. shyness = "digitalis",
  24. sleep = "delphinium",
  25. slickness = "gecko",
  26. stupidity = "aconite",
  27. voyria = "voyria",
  28. weariness = "vernalius"
  29. }
  30. }
  31.  
  32. -- MAKE AN ALIAS THAT CALLS THIS FUNCTION
  33. function xx.auto()
  34.  
  35. xx.mutilate()
  36. xx.dictate()
  37.  
  38. if not table.contains(ak.ShadowList, target) then
  39. xx.leach()
  40. elseif table.contains(ak.ShadowList, target) then
  41. xx.degen()
  42. end
  43.  
  44. end
  45.  
  46. function xx.leach()
  47. local venom = xx.dict.venoms
  48.  
  49. local function venom_select()
  50. local venom_priority = {
  51. "asthma",
  52. "paralysis",
  53. "stupidity",
  54. "weariness",
  55. "recklessness",
  56. "sensitivity"
  57. }
  58.  
  59. for _, aff in ipairs(venom_priority) do
  60. if affstrack.score[aff] < 67 then
  61. return venom[aff]
  62. end
  63. end
  64. end
  65.  
  66. if ak.defs.shield then
  67. send("setalias XX stand/wield dagger/order nisha slay "..target.."/shadow strike "..target.."/assess "..target)
  68.  
  69. elseif affstrack.score.parasite > 66 and affstrack.score.healthleech > 66 then
  70. send("setalias XX stand/wield scythe/order nisha slay "..target.."/wipe scythe/shadow instill scythe with leach/chrono loop/shadow instill scythe with leach/shadow reap "..target.."/assess "..target)
  71. else
  72. send("setalias XX stand/wield scythe/order nisha slay "..target.."/wipe scythe/shadow instill scythe with leach/shadow reap "..target.." "..venom_select().."/assess "..target)
  73. end
  74. send("queue addclear free XX")
  75.  
  76. end
  77.  
  78. function xx.degen()
  79.  
  80. local function capstone_available()
  81. for _, aff in ipairs(affs) do
  82.  
  83. if affstrack.score[aff] < 80 then
  84. return false
  85. end
  86. end
  87. return true
  88. end
  89.  
  90. local function instill_select()
  91. return "shadow instill scythe with degeneration"
  92. end
  93.  
  94. local venom = xx.dict.venoms
  95.  
  96. local function venom_select()
  97. local venom_priority = {
  98. "asthma",
  99. "sensitivity",
  100. "nausea",
  101. "darkshade",
  102. "sensitivity",
  103. "clumsiness"
  104. }
  105.  
  106. for _, aff in ipairs(venom_priority) do
  107. if affstrack.score[aff] < 67 then
  108. return venom[aff]
  109. end
  110. end
  111. end
  112.  
  113.  
  114. if ak.defs.shield then
  115. send("setalias XX stand/wield dagger/order nisha slay "..target.."/shadow strike "..target)
  116. elseif affstrack.score["clumsiness"] > 66 and affstrack.score["weariness"] > 66 and affstrack.score["paralysis"] <= 66 then
  117. send("setalias XX "..atnselect.."/wield scythe/order nisha slay "..target.."/wipe scythe/shadow reap "..target.." "..venom_select().."/assess "..target.."/contemplate "..target)
  118. elseif affstrack.score["paralysis"] <= 66 then
  119. send("setalias XX "..atnselect.."/wield scythe/order nisha slay "..target.."/wipe scythe/shadow reap "..target.." curare/assess "..target.."/contemplate "..target)
  120. elseif capstone_available() then
  121. send("setalias XX "..atnselect.."/wield scythe/order nisha slay "..target.."/wipe scythe/shadow reap "..target.." prefarar/assess "..target.."/contemplate "..target)
  122. end
  123. send("queue addclear free XX")
  124. end
  125.  
  126. function xx.mutilate()
  127.  
  128. local hp = tonumber(ak.currenthealth)
  129. local maxhp = tonumber(ak.maxhealth)
  130.  
  131. local mutilate_damage = .35 * maxhp
  132. local tooros_damage = .05 * maxhp
  133.  
  134. if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then
  135. send("setalias XX stand/order nisha slay "..target.."/wield dagger/shadow mutilate "..target.." aconite/intone tooros/phylactery list/assess "..target.."/contemplate "..target)
  136. send("queue addclear free XX")
  137. end
  138.  
  139. end
  140.  
  141. function xx.dictate()
  142. local affs = {
  143. "depression",
  144. "shadowmadness",
  145. "retribution",
  146. "parasite"
  147. }
  148.  
  149. local threshold = .35
  150. local mp = tonumber(ak.currentmana)
  151. local maxmp = tonumber(ak.maxmana)
  152. local tooros_damage = .05
  153.  
  154. for _,aff in ipairs(affs) do
  155. if affstrack.score[aff] > .8 then
  156. threshold = threshold + 0.05
  157. end
  158. end
  159.  
  160. if mp <= (threshold + tooros_damage)*maxmp then
  161. send("setalias XX intone tooros/order nisha slay "..target.."/shadow dictate "..target.."/assess "..target)
  162. send("queue addclear free XX")
  163.  
  164. end
  165. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement