hhaos

Untitled

Oct 12th, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. function forkin_hell()
  2. -- venoms to affs table
  3. local 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. -- this table exists because shadowmadness is the aff
  30. -- and madness is the instill syntax. fuck that dude
  31.  
  32. local instills = {
  33. depression = "depression",
  34. retribution = "retribution",
  35. shadowmadness = "madness",
  36. parasite = "leach"
  37. }
  38.  
  39. -- what affstrack score to check, modify as needed
  40. local threshold = 66
  41.  
  42. local function aff_select()
  43. local results = {}
  44.  
  45. local aff_priority = {
  46. "timeloop",
  47. "weariness",
  48. "asthma",
  49. "slickness",
  50. "anorexia",
  51. "stupidity",
  52. "recklessness",
  53. "sensitivity"
  54. -- add venoms you want to do after the fork here
  55. }
  56.  
  57. if
  58. (
  59. -- if degeneration will NOT cause para this time
  60. affstrack.score.clumsiness < threshold or
  61. affstrack.score.weariness < threshold
  62. )
  63. then
  64. -- do para since instill isn't gonna
  65. results.venom = "curare"
  66. else
  67. -- degeneration WILL do para
  68. for _,aff in pairs (aff_priority) do
  69. -- do the next aff in the prio list
  70. if affstrack.score[aff] < threshold then
  71. -- special case for timeloop since special syntax
  72. if aff == "timeloop" then
  73. results.timeloop = "chrono loop"
  74. else
  75. -- regular case can just tack venom onto reap command
  76. results.venom = venoms[aff]
  77. end
  78. end
  79. end
  80. end
  81.  
  82. return results
  83.  
  84. end
  85.  
  86. local function instill_select()
  87. -- unused
  88. local aff_priority = {
  89. "depression",
  90. "shadowmadness",
  91. "retribution"
  92. }
  93. -- if timeloop or para is stuck, start doing other
  94. -- instills in the order you choose above
  95. if affstrack.score.timeloop > threshold then
  96. for _,aff in pairs (aff_priority) do
  97. echo("made it")
  98. -- do the next aff in the prio list
  99. if affstrack.score[aff] < threshold then
  100. if not (aff_select().venom and (aff == "depression" or aff == "shadowmadness")) then
  101. echo(instills[aff])
  102. return instills[aff]
  103. end
  104. end
  105. end
  106. end
  107. -- default case
  108. return "degeneration"
  109. end
  110.  
  111.  
  112. local affs = aff_select()
  113. local instill = instill_select()
  114.  
  115. if affs.timeloop then
  116. -- aff_select wants timeloop, use this syntax
  117. send("setalias pvp stand/wield scythe shield/wipe scythe/"..affs.timeloop.."/shadow instill scythe with "..instill.."/shadow reap "..target)
  118. elseif affs.venom then
  119. -- aff_select wants venon, use the right syntax
  120. send("setalias pvp stand/wield scythe shield/wipe scythe/shadow instill scythe with "..instill.."/shadow reap "..target.." "..affs.venom)
  121. end
  122.  
  123. send("queue addclear free pvp")
  124.  
  125. end
Add Comment
Please, Sign In to add comment