Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xx = xx or {}
- xx.dict = {
- venoms = {
- 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"
- }
- }
- -- MAKE AN ALIAS THAT CALLS THIS FUNCTION
- function xx.auto()
- xx.mutilate()
- xx.dictate()
- if not table.contains(ak.ShadowList, target) then
- xx.leach()
- elseif table.contains(ak.ShadowList, target) then
- xx.degen()
- end
- end
- function xx.leach()
- local venom = xx.dict.venoms
- local function venom_select()
- local venom_priority = {
- "asthma",
- "paralysis",
- "slickness",
- "weariness",
- "anorexia"
- }
- 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 stand/wield dagger /shadow strike "..target.."/assess "..target)
- elseif affstrack.score.parasite > 66 and affstrack.score.healthleech > 66 then
- send("setalias XX stand/wield scythe/shadow instill scythe with leach/chrono loop/shadow instill scythe with leach/shadow reap "..target.."/assess "..target)
- else
- send("setalias XX stand/wield scythe/shadow instill scythe with leach/shadow reap "..target.." "..venom_select().."/assess "..target)
- end
- send("queue addclear free XX")
- end
- function xx.degen()
- 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 = xx.dict.venoms
- 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 stand/wield dagger/shadow strike "..target)
- elseif affstrack.score["clumsiness"] > 66 and affstrack.score["weariness"] > 66 and affstrack.score["paralysis"] <= 66 then
- send("setalias XX stand/wield scythe/shadow reap "..target.." "..venom_select().."/assess "..target.."/contemplate "..target)
- elseif affstrack.score["paralysis"] <= 66 then
- send("setalias XX stand/wield scythe/shadow reap "..target.." curare/assess "..target.."/contemplate "..target)
- elseif capstone_available() then
- send("setalias XX stand/wield scythe/shadow reap "..target.." prefarar/assess "..target.."/contemplate "..target)
- end
- send("queue addclear free XX")
- end
- function xx.mutilate()
- local hp = tonumber(ak.currenthealth)
- local maxhp = tonumber(ak.maxhealth)
- local mutilate_damage = .35 * maxhp
- local tooros_damage = .05 * maxhp
- if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then
- send("setalias XX stand/wield dagger/shadow mutilate "..target.." aconite/intone tooros/phylactery list/assess "..target.."/contemplate "..target)
- send("queue addclear free XX")
- end
- end
- function xx.dictate()
- local affs = {
- "depression",
- "shadowmadness",
- "retribution",
- "parasite"
- }
- local threshold = .35
- local mp = tonumber(ak.currentmana)
- local maxmp = tonumber(ak.maxmana)
- local tooros_damage = .05
- for _,aff in ipairs(affs) do
- if affstrack.score[aff] > .8 then
- threshold = threshold + 0.05
- end
- end
- if mp <= (threshold + tooros_damage)*maxmp then
- send("setalias XX intone tooros/shadow dictate "..target.."/assess "..target)
- send("queue addclear free XX")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement