Advertisement
hhaos

Untitled

Mar 14th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. function DWauto()
  2. local hp = tonumber(ak.currenthealth)
  3. local maxhp = tonumber(ak.maxhealth)
  4.  
  5. local mutilate_damage = .38 * maxhp
  6. local tooros_damage = .05 * maxhp
  7. local threshold = .38
  8. local mp = tonumber(ak.currentmana)
  9. local maxmp = tonumber(ak.maxmana)
  10. local tooros_damage = .05 * maxmp
  11.  
  12. for _,aff in ipairs(affs) do
  13. if affstrack.score[aff] > .8 then
  14. threshold = threshold + 0.05
  15. end
  16. end
  17. if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then
  18. send(
  19. "setalias XX stand/wield dagger298749/intone tooros/shadow mutilate "..target..
  20. " aconite/phylactery list/assess "..target..
  21. "/contemplate "..target
  22. )
  23. send("queue addclear eqbal XX")
  24. elseif ak.defs.shield then
  25. send("setalias XX stand/wield dagger298749/shadow strike "..target)
  26.  
  27. elseif mp <= threshold + tooros_damage then
  28. send("setalias XX stand/intone tooros/shadow dictate "..target.."/assess "..target.."/contemplate "..target)
  29. send("queue addclear eqbal XX")
  30. elseif affstrack.score["sensitivity"] > 66 then
  31. send(
  32. "setalias XX stand/wield scythe shield/shadow instill scythe with degeneration/shadow cull "..target.." curare/assess "..target.."/contemplate "..target
  33. )
  34.  
  35. send("queue addclear eqbal XX")
  36. elseif table.contains(ak.ShadowList, target) then
  37. DWdegen()
  38. else
  39. DWleach()
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement