Advertisement
hhaos

Untitled

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