Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dwlock()
- local 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"
- }
- local instills = {
- masochism = "depression", --depression, nausea, hypochondria, anorexia/masochism
- retribution = "retribution", --justice, retribution, manaburn
- shadowmadness = "madness", --shadowmadness, vertigo, hallucinations, stun
- manaleech = "leach", --parasite, healthleech, manaleech
- }
- local threshold = 66
- local function aff_select()
- local results = {}
- local aff_priority = {
- "paralysis",
- "asthma",
- "timeloop",
- "shadowmadness",
- "stupidity",
- "slickness",
- "anorexia",
- "depression",
- "recklessness",
- "nausea",
- "darkshade",
- "sensitivity"
- }
- if affstrack.score.anorexia > threshold and (affstrack.score.asthma < threshold or affstrack.score.slickness < threshold or affstrack.score.paralysis < threshold) then
- if affstrack.score.timeloop > threshold then results.timeloop = "chrono assert" end
- if affstrack.score.asthma < threshold then
- results.venom = "kalmia"
- elseif affstrack.score.slickness < threshold then
- results.venom = "gecko"
- elseif affstrack.score.paralysis < threshold then
- results.venom = "curare"
- elseif affstrack.score.stupidity < threshold then
- results.venom = "aconite"
- elseif affstrack.score.recklessness < threshold then
- results.venom = "eurypteria"
- elseif affstrack.score.sensitivity < threshold then
- results.venom = "prefarar"
- else
- results.venom = "curare"
- end
- return results
- elseif affstrack.score.clumsiness < threshold or affstrack.score.weariness < threshold then
- if affstrack.score.paralysis < threshold then
- results.venom = "curare"
- elseif affstrack.score.asthma < threshold then
- results.venom = "kalmia"
- elseif affstrack.score.stupidity < threshold then
- results.venom = "aconite"
- elseif affstrack.score.slickness < threshold then
- results.venom = "gecko"
- elseif affstrack.score.anorexia < threshold then
- results.venom = "slike"
- elseif affstrack.score.recklessness < threshold then
- results.venom = "eurypteria"
- elseif affstrack.score.sensitivity < threshold then
- results.venom = "prefarar"
- else
- results.venom = "curare"
- end
- return results
- else
- for _,aff in pairs (aff_priority) do
- if affstrack.score[aff] < threshold then
- if aff == "timeloop" then
- results.timeloop = "chrono loop"
- return results
- elseif affstrack.score.timeloop > threshold then
- results.venom = ""
- return results
- else
- results.venom = venoms[aff]
- return results
- end
- end
- end
- end
- end
- local function instill_select()
- local aff_priority = {
- "shadowmadness", --madness
- "masochism", --depression
- "retribution", --retribution
- "manaleech" --leach
- }
- if affstrack.score.timeloop > threshold or affstrack.score.anorexia > threshold then
- for _,aff in pairs (aff_priority) do
- if affstrack.score[aff] < threshold then
- return instills[aff]
- end
- end
- end
- return "degeneration"
- end
- -----------------------DICTATE----------------------------------------------
- local function canDictate()
- 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 return true else return false end
- end
- -----------------------MUTILATE----------------------------------------------
- local function canMutilate()
- local hp = tonumber(ak.currenthealth)
- local maxhp = tonumber(ak.maxhealth)
- local mutilate_damage = .37 * maxhp
- local tooros_damage = .05 * maxhp
- if (hp <= mutilate_damage + tooros_damage) and table.contains(ak.ShadowList, target) then return true else return false end
- end
- --====================================================================================--
- -- MAKE THE MAGIC HAPPEN
- --====================================================================================--
- local affs = aff_select()
- local instill = instill_select()
- -- local atnselect = "wake/stand"
- ----------------------KILL THEM--------------------
- if canDictate() then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/intone tooros/shadow dictate "..target.."/assess "..target)
- elseif canMutilate() then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield dagger/shadow mutilate "..target.." aconite/intone tooros/phylactery list/assess "..target.."/contemplate "..target)
- ----------------------SHIELD/ATTUNE----------------
- elseif ak.defs.shield then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield dagger shield/shadow strike "..target)
- elseif ak.depthswalker.attuned == false then
- if instill == "depression" or instill == "madness" then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield dagger shield/shadow attune "..target.." to madness")
- else
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield dagger shield/shadow attune "..target.." to degeneration")
- end
- ----------------------STANDARDS----------------
- elseif affs.timeloop then
- if affs.timeloop == "chrono loop" then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/wipe scythe/shadow instill scythe with "..instill.."/"..affs.timeloop.."/shadow reap "..target)
- else
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/wipe scythe/shadow instill scythe with "..instill.."/"..affs.timeloop.."/shadow reap "..target.." "..affs.venom)
- end
- elseif affs.venom then
- send("setalias pvp "..atnselect.."/order nisha slay "..target.."/wield scythe shield/order nisha slay "..target.."/wipe scythe/shadow instill scythe with "..instill.."/chrono assert/shadow reap "..target.." "..affs.venom)
- end
- send("queue addclear free pvp")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement