Advertisement
hhaos

Untitled

Mar 14th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. function DWleech()
  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 " ..
  20. target .. " aconite/phylactery list/assess " .. target .. "/contemplate " .. target
  21. )
  22. send("queue addclear eqbal XX")
  23. elseif ak.defs.shield then
  24. send("setalias XX stand/wield dagger298749/shadow strike " .. target)
  25. elseif mp <= threshold + tooros_damage then
  26. send(
  27. "setalias XX stand/intone tooros/shadow dictate " ..
  28. target .. "/assess " .. target .. "/contemplate " .. target
  29. )
  30. send("queue addclear eqbal XX")
  31. elseif affstrack.score["sensitivity"] > 66 then
  32. send(
  33. "setalias XX stand/wield scythe shield/shadow instill scythe with degeneration/shadow cull " ..
  34. target .. " curare/assess " .. target .. "/contemplate " .. target
  35. )
  36.  
  37. send("queue addclear eqbal XX")
  38.  
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement