Advertisement
hhaos

Untitled

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