Advertisement
hhaos

Untitled

Apr 22nd, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. function xx_unity()
  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. "timeloop",
  17. "clumsiness",
  18. "weariness",
  19. "shadowmadness",
  20. "depression",
  21. "retribution",
  22. "parasite",
  23. "asthma",
  24. "slickness",
  25. "anorexia",
  26. "justice",
  27. "nausea"
  28. }
  29.  
  30. if affstrack.score["timeloop"] > 80 then
  31. local aff_priority = {
  32. "hypochondria",
  33. "shadowmadness",
  34. "retribution",
  35. "hallucinations",
  36. "masochism",
  37. "asthma",
  38. "slickness",
  39. "anorexia",
  40. "depression",
  41. "parasite",
  42. "justice",
  43. "nausea"
  44. }
  45. end
  46.  
  47.  
  48. local affs = utils.aff_select(aff_priority)
  49. if ak.defs.shield then
  50. actions = { "stand", "wield dagger shield", "shadow strike "..target, "assess "..target, "contemplate "..target }
  51. elseif affs.timeloop then
  52. actions = { "stand", atnselect, "wield scythe shield", "shadow instill scythe with "..affs.instill, "wipe "..scythe, affs.timeloop, "shadow reap "..target, "assess "..target, "contemplate "..target }
  53. elseif affs.venom then
  54. actions = { "stand", atnselect, "wield scythe shield", "shadow instill scythe with "..affs.instill, "shadow reap "..target.." "..affs.venom, "assess "..target, "contemplate "..target }
  55. end
  56.  
  57.  
  58. if actions[1] then
  59. send("setalias pvp "..table.concat(actions, "/"))
  60. end
  61. send("queue addclear free pvp")
  62.  
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement