Advertisement
hhaos

Untitled

Jan 23rd, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. function snbTrip()
  2. local shield = {
  3. paralysis = "smash mid",
  4. clumsiness = "smash low",
  5. blackout = "concuss",
  6. stun = "club",
  7. asthma = "drive",
  8. mental = "smash high",
  9. -- strikes = {
  10. -- stun = "shieldstrike high",
  11. -- sensitivity = "shieldstrike mid",
  12. -- prone = "shieldstrike low"
  13. -- }
  14. }
  15.  
  16. local venoms = {
  17. addiction = "vardrax",
  18. anorexia = "slike",
  19. asthma = "kalmia",
  20. clumsiness = "xentio",
  21. crippledarm = "epteth",
  22. crippledleg = "epseth",
  23. darkshade = "darkshade",
  24. deafblind = "colocasia",
  25. disloyalty = "monkshood",
  26. dizziness = "larkspur",
  27. haemophilia = "notechis",
  28. nausea = "euphorbia",
  29. paralysis = "curare",
  30. recklessness = "eurypteria",
  31. scytherus = "scytherus",
  32. selarnia = "selarnia",
  33. sensitivity = "prefarar",
  34. shyness = "digitalis",
  35. sleep = "delphinium",
  36. slickness = "gecko",
  37. stupidity = "aconite",
  38. voyria = "voyria",
  39. weariness = "vernalius"
  40. }
  41.  
  42.  
  43. local prepender = "stand|wield longsword shield|give bomb to target|falcon track "..target.."|falcon slay "..target.."|"
  44.  
  45.  
  46. local aff_priority = {
  47. "paralysis",
  48. "asthma",
  49. "slickness",
  50. "anorexia",
  51. "weariness",
  52. "stupidity",
  53. "nausea",
  54. "sensitivity",
  55. "anorexia",
  56. "addiction",
  57. "darkshade",
  58. "recklessness",
  59. "voyria",
  60. }
  61.  
  62.  
  63. local function sword_select()
  64. if ak.defs.rebounding or ak.shield then
  65. return "raze"
  66. else
  67. return "slice"
  68. end
  69. end
  70.  
  71.  
  72.  
  73. -- local function venom_select()
  74. -- for _, aff in ipairs(aff_priority) do
  75. -- if affstrack.score[aff] < 67 and table.contains(venoms, aff) then
  76. -- return aff
  77. -- end
  78. -- end
  79. -- end
  80. --
  81. --
  82. -- local function shield_select()
  83. -- for _, aff in ipairs(aff_priority) do
  84. -- if
  85. -- affstrack.score[aff] < 67 and
  86. -- table.contains(shield, aff) and
  87. -- aff ~= venom_select()
  88. -- then
  89. -- return aff
  90. -- end
  91. -- end
  92. -- return "mental"
  93. -- end
  94.  
  95. local function aff_select()
  96. results = {}
  97.  
  98. for _, aff in ipairs(aff_priority) do
  99. if affstrack.score[aff] < 67 then
  100. if table.contains(shield, aff) and not results.shield then
  101. results.shield = shield[aff]
  102. elseif table.contains(venoms, aff) and not results.venom then
  103. results.venom = venoms[aff]
  104. end
  105. end
  106. end
  107.  
  108. if not results.shield then
  109. results.shield = shield["mental"]
  110. end
  111. if not results.venom then
  112. results.venom = venoms["sensitivity"]
  113. end
  114. return results
  115. end
  116.  
  117. -- echo("sword: "..sword_select())
  118. -- echo("limb: "..limb_select())
  119. -- echo("venom: "..venom_select())
  120. -- echo("shield: "..shield_select())
  121. -- echo(target)
  122. -- echo("prepped: "..tostring(prepped()))
  123. -- echo("executing: "..tostring(executing()))
  124. local affs = aff_select()
  125. -- echo("combination "..target.." "..sword_select().." "..one.." "..two)
  126.  
  127.  
  128.  
  129. send("queue addclear free "..prepender.."combination "..target.." "..sword_select().." "..affs.venom.." "..affs.shield.."|shieldstrike "..target.." low|engage "..target.."|assess "..target)
  130.  
  131. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement