Advertisement
hhaos

Untitled

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