Advertisement
hhaos

Untitled

Apr 26th, 2023
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. function xx_divide()
  2. local actions = {}
  3. local utils = xx._util
  4.  
  5. local venoms = utils.dict.venoms
  6. local scythe = utils.dict.scythe
  7. local dagger = utils.dict.dagger
  8.  
  9. local kill = utils.kill()
  10. if kill and not ak.defs.shield then
  11. send("setalias pvp "..table.concat(kill, "/"))
  12. end
  13.  
  14. local aff_priority = {
  15. "paralysis",
  16. "clumsiness",
  17. "weariness",
  18. "depression",
  19. "asthma",
  20. "slickness",
  21. "timeloop",
  22. "shadowmadness",
  23. "anorexia",
  24. "stupidity",
  25. "nausea",
  26. "darkshade",
  27. "retribution",
  28. "parasite",
  29. "healthleech",
  30. }
  31.  
  32. if affstrack.score["timeloop"] > 80 then
  33. local aff_priority = {
  34. "hypochondria",
  35. "shadowmadness",
  36. "retribution",
  37. "hallucinations",
  38. "masochism",
  39. "asthma",
  40. "slickness",
  41. "anorexia",
  42. "depression",
  43. "parasite",
  44. "justice",
  45. "nausea"
  46. }
  47. end
  48.  
  49.  
  50. local affs = utils.aff_select(aff_priority)
  51. if ak.defs.shield then
  52. actions = { "stand", "wield dagger shield", "shadow strike "..target, "assess "..target, "contemplate "..target }
  53. elseif affs.timeloop then
  54. actions = { "stand", atnselect, "wield scythe shield", "shadow instill scythe with "..affs.instill, "wipe "..scythe, affs.timeloop, "shadow reap "..target, "assess "..target, "contemplate "..target }
  55. elseif affs.venom then
  56. actions = { "stand", atnselect, "wield scythe shield", "shadow instill scythe with "..affs.instill, "shadow reap "..target.." "..affs.venom, "assess "..target, "contemplate "..target }
  57. end
  58.  
  59.  
  60. if actions[1] then
  61. send("setalias pvp "..table.concat(actions, "/"))
  62. end
  63. send("queue addclear free pvp")
  64.  
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement