function DWleach() local venom = { addiction = "vardrax", anorexia = "slike", asthma = "kalmia", clumsiness = "xentio", crippledarm = "epteth", crippledleg = "epseth", darkshade = "darkshade", deafblind = "colocasia", disloyalty = "monkshood", dizziness = "larkspur", haemophilia = "notechis", nausea = "euphorbia", paralysis = "curare", recklessness = "eurypteria", scytherus = "scytherus", selarnia = "selarnia", sensitivity = "prefarar", shyness = "digitalis", sleep = "delphinium", slickness = "gecko", stupidity = "aconite", voyria = "voyria", weariness = "vernalius" } local function venom_select() local venom_priority = { "paralysis", "asthma", "clumsiness", "weariness", "sensitivity" } for _, aff in ipairs(venom_priority) do if affstrack.score[aff] < 67 then return venom[aff] end end end if ak.defs.shield then send("setalias XX wield dagger298749/shadow strike "..target.."/assess "..target.."/contemplate "..target) elseif affstrack.score["parasite"] > 66 and affstrack.score["healthleech"] > 66 then send("setalias XX wield scythe/shadow instill scythe with leach/chrono loop boost/shadow instill scythe with leach/shadow reap "..target.."/assess "..target.."/contemplate "..target) else send("setalias XX wield scythe/shadow instill scythe with leach/shadow reap "..target.." "..venom_select().."/assess "..target.."/contemplate "..target) end send("queue addclear eqbal XX") end function DWdegen() local function capstone_available() for _, aff in ipairs(affs) do if affstrack.score[aff] < 80 then return false end end return true end local function instill_select() return { "shadow instill scythe with degeneration" } end local venom = { addiction = "vardrax", anorexia = "slike", asthma = "kalmia", clumsiness = "xentio", crippledarm = "epteth", crippledleg = "epseth", darkshade = "darkshade", deafblind = "colocasia", disloyalty = "monkshood", dizziness = "larkspur", haemophilia = "notechis", nausea = "euphorbia", paralysis = "curare", recklessness = "eurypteria", scytherus = "scytherus", selarnia = "selarnia", sensitivity = "prefarar", shyness = "digitalis", sleep = "delphinium", slickness = "gecko", stupidity = "aconite", voyria = "voyria", weariness = "vernalius" } local function venom_select() local venom_priority = { "asthma", "sensitivity", "nausea", "darkshade", "sensitivity", "clumsiness" } for _, aff in ipairs(venom_priority) do if affstrack.score[aff] < 67 then return venom[aff] end end end if ak.defs.shield then send("setalias XX wield dagger298749/shadow strike "..target) elseif affstrack.score["clumsiness"] > 66 and affstrack.score["weariness"] > 66 and affstrack.score["paralysis"] <= 66 then send("setalias XX wield scythe/shadow reap "..target.." "..venom_select().."/assess "..target.."/contemplate "..target) elseif affstrack.score["paralysis"] <= 66 then send("setalias XX wield scythe/shadow reap "..target.." curare/assess "..target.."/contemplate "..target) elseif capstone_available() then send("setalias XX wield scythe/shadow reap "..target.." prefarar/assess "..target.."/contemplate "..target) end send("queue addclear eqbal XX") end function DWauto() DWmutilate() DWdictate() if not table.contains(ak.ShadowList, target) then DWleach() elseif table.contains(ak.ShadowList, target) then DWdegen() end end function DWmutilate() local hp = tonumber(ak.currenthealth) local maxhp = tonumber(ak.maxhealth) local mutilate_damage = .40 * maxhp local tooros_damage = .07 * maxhp if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then send("setalias XX wield dagger298749/shadow mutilate "..target.." prefarar/intone tooros/phylactery list/assess "..target.."/contemplate "..target) send("queue addclear eqbal XX") end end function DWdictate() local affs = { "depression", "shadowmadness", "retribution", "parasite" } 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 mp <= threshold + tooros_damage then send("setalias XX intone tooros/shadow dictate "..target.."/assess "..target.."/contemplate "..target) send("queue addclear eqbal XX") end end