Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function snbTrip()
- local shield = {
- paralysis = "smash mid",
- clumsiness = "smash low",
- blackout = "concuss",
- stun = "club",
- asthma = "drive",
- mental = "smash high",
- -- strikes = {
- -- stun = "shieldstrike high",
- -- sensitivity = "shieldstrike mid",
- -- prone = "shieldstrike low"
- -- }
- }
- 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 prepender = "stand|wield longsword shield|give bomb to target|falcon track "..target.."|falcon slay "..target.."|"
- local aff_priority = {
- "paralysis",
- "clumsiness",
- "weariness",
- "nausea",
- "asthma",
- "slickness",
- "anorexia",
- "stupidity",
- "sensitivity",
- "addiction",
- "darkshade",
- "recklessness",
- "voyria",
- }
- local function sword_select()
- if ak.defs.rebounding or ak.shield then
- return "raze"
- else
- return "slice"
- end
- end
- -- local function venom_select()
- -- for _, aff in ipairs(aff_priority) do
- -- if affstrack.score[aff] < 66 and table.contains(venoms, aff) then
- -- return aff
- -- end
- -- end
- -- end
- --
- --
- -- local function shield_select()
- -- for _, aff in ipairs(aff_priority) do
- -- if
- -- affstrack.score[aff] < 67 and
- -- table.contains(shield, aff) and
- -- aff ~= venom_select()
- -- then
- -- return aff
- -- end
- -- end
- -- return "mental"
- -- end
- local function aff_select()
- results = {}
- for _, aff in ipairs(aff_priority) do
- if affstrack.score[aff] < 67 then
- if table.contains(shield, aff) and not results.shield then
- results.shield = shield[aff]
- elseif table.contains(venoms, aff) and not results.venom then
- results.venom = venoms[aff]
- end
- end
- end
- if not results.shield then
- results.shield = shield["mental"]
- end
- if not results.venom then
- results.venom = venoms["sensitivity"]
- end
- return results
- end
- -- echo("sword: "..sword_select())
- -- echo("limb: "..limb_select())
- -- echo("venom: "..venom_select())
- -- echo("shield: "..shield_select())
- -- echo(target)
- -- echo("prepped: "..tostring(prepped()))
- -- echo("executing: "..tostring(executing()))
- local affs = aff_select()
- -- echo("combination "..target.." "..sword_select().." "..one.." "..two)
- send("queue addclear free "..prepender.."combination "..target.." "..sword_select().." "..affs.venom.." "..affs.shield.."|shieldstrike "..target.." low|engage "..target.."|assess "..target)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement