hhaos

Untitled

Jan 1st, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. function dwlock()
  2.  
  3. -- venoms to affs table
  4. local venoms = {
  5. addiction = "vardrax",
  6. anorexia = "slike",
  7. asthma = "kalmia",
  8. clumsiness = "xentio",
  9. crippledarm = "epteth",
  10. crippledleg = "epseth",
  11. darkshade = "darkshade",
  12. deafblind = "colocasia",
  13. disloyalty = "monkshood",
  14. dizziness = "larkspur",
  15. haemophilia = "notechis",
  16. nausea = "euphorbia",
  17. paralysis = "curare",
  18. recklessness = "eurypteria",
  19. scytherus = "scytherus",
  20. selarnia = "selarnia",
  21. sensitivity = "prefarar",
  22. shyness = "digitalis",
  23. sleep = "delphinium",
  24. slickness = "gecko",
  25. stupidity = "aconite",
  26. voyria = "voyria",
  27. weariness = "vernalius"
  28. }
  29.  
  30. -- this table exists because shadowmadness is the aff
  31. -- and madness is the instill syntax. fuck that dude
  32.  
  33. local instills = {
  34. depression = "depression",
  35. retribution = "retribution",
  36. shadowmadness = "madness",
  37. parasite = "leach"
  38. }
  39.  
  40. -- what affstrack score to check, modify as needed
  41. local threshold = 66
  42.  
  43. local function aff_select()
  44. local results = {}
  45.  
  46. local aff_priority = {
  47. "paralysis",
  48. "asthma",
  49. "timeloop",
  50. "stupidity",
  51. "madness",
  52. "slickness",
  53. "anorexia",
  54. "depression",
  55. "recklessness",
  56. "sensitivity"
  57. -- add venoms you want to do after the fork here
  58. }
  59.  
  60. if
  61. (
  62. -- if degeneration will NOT cause para this time
  63. affstrack.score.clumsiness < threshold or
  64. affstrack.score.weariness < threshold
  65. )
  66. then
  67. -- do para since instill isn't gonna
  68. results.venom = "curare"
  69. else
  70. -- degeneration WILL do para
  71. for _,aff in pairs (aff_priority) do
  72. -- do the next aff in the prio list
  73. if affstrack.score[aff] < threshold then
  74. -- special case for timeloop since special syntax
  75. if aff == "timeloop" then
  76. results.timeloop = "chrono loop"
  77. else
  78. -- regular case can just tack venom onto reap command
  79. results.venom = venoms[aff]
  80. end
  81. end
  82. end
  83. end
  84.  
  85. return results
  86.  
  87. end
  88.  
  89. local function instill_select()
  90. -- unused
  91. local aff_priority = {
  92. "depression",
  93. "shadowmadness",
  94. "retribution"
  95. }
  96. -- if timeloop or para is stuck, start doing other
  97. -- instills in the order you choose above
  98. if affstrack.score.timeloop > threshold then
  99. for _,aff in pairs (aff_priority) do
  100. echo("made it")
  101. -- do the next aff in the prio list
  102. if affstrack.score[aff] < threshold then
  103. if not (aff_select().venom and (aff == "depression" or aff == "shadowmadness")) then
  104. echo(instills[aff])
  105. return instills[aff]
  106. end
  107. end
  108. end
  109. end
  110. -- default case
  111. return "degeneration"
  112. end
  113.  
  114. local affs = aff_select()
  115. local instill = instill_select()
  116.  
  117. if affs.timeloop then
  118. -- aff_select wants timeloop, use this syntax
  119. send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/wipe scythe/"..affs.timeloop.."/shadow instill scythe with "..instill.."/shadow reap "..target)
  120. elseif affs.venom then
  121. -- aff_select wants venon, use the right syntax
  122. send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/wipe scythe/shadow instill scythe with "..instill.."/shadow reap "..target.." "..affs.venom)
  123. end
  124. send("queue addclear free pvp")
Add Comment
Please, Sign In to add comment