Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DWauto()
- local hp = tonumber(ak.currenthealth)
- local maxhp = tonumber(ak.maxhealth)
- local mutilate_damage = .38 * maxhp
- local tooros_damage = .05 * maxhp
- local threshold = .38
- local mp = tonumber(ak.currentmana)
- local maxmp = tonumber(ak.maxmana)
- local tooros_damage = .05 * maxmp
- for _,aff in ipairs(affs) do
- if affstrack.score[aff] > .8 then
- threshold = threshold + 0.05
- end
- end
- if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then
- send(
- "setalias XX stand/wield dagger298749/intone tooros/shadow mutilate "..target..
- " aconite/phylactery list/assess "..target..
- "/contemplate "..target
- )
- send("queue addclear eqbal XX")
- elseif ak.defs.shield then
- send("setalias XX stand/wield dagger298749/shadow strike "..target)
- elseif mp <= threshold + tooros_damage then
- send("setalias XX stand/intone tooros/shadow dictate "..target.."/assess "..target.."/contemplate "..target)
- send("queue addclear eqbal XX")
- elseif affstrack.score["sensitivity"] > 66 then
- send(
- "setalias XX stand/wield scythe shield/shadow instill scythe with degeneration/shadow cull "..target.." curare/assess "..target.."/contemplate "..target
- )
- send("queue addclear eqbal XX")
- elseif table.contains(ak.ShadowList, target) then
- DWdegen()
- else
- DWleach()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement