Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Script isActive="yes" isFolder="no">
- <name>hunter</name>
- <packageName></packageName>
- <script>-------------------------------------------------
- -- Put your Lua functions here. --
- -- --
- -- Note that you can also use external Scripts --
- -------------------------------------------------
- keepAssessing = keepAssessing or false
- doCombo = false
- triggerAff = "sunallergy"
- noTriggers = false
- --toxins = toxins or {mercury="asthma", hemotoxin="hemotoxin", arsenic="weariness",
- --butisol="butisol", ether="clumsiness", atropine="recklessness", avidya="ignorance",
- --digitalis="shyness", lindane="dizziness", ciguatoxin="paralysis", metrazol="metrazol",
- --strychnine="sensitivity", xeroderma="sunallergy", botulinum="nausea", aconite="stupidity",
- --oxalis="sight/hearing", bromine="anorexia", mazanor="slow herbs", calotropis="calotropis",
- --luminal="slow elixirs", ketamine="withered throat", benzene="broken arm",
- --benzedrine="broken leg", actinium="actinium", iodine="slickness", noctec="slow balance",
- --vitriol="disloyalty", mebaral="slow equilibrium", chloroform="epilepsy"}
- toxinStack2 = {"hemotoxin", "sunallergy", "nausea", "numbness", "asthma", "stupidity",
- "clumsiness", "recklessness", "metrazol", "slickness", "sensitivity", "nausea",
- "butisol", "anorexia", "calotropis",
- "slow balance", "slow equilibrium", "disloyalty", "dizziness"}
- toxinStack1 = {"sunallergy", "clumsiness", "hemotoxin", "numbness", "stupidity", "metrazol",
- "nausea", "butisol", "anorexia", "calotropis"}
- toxinStack3 = {"hemotoxin", "clumsiness", "sunallergy", "numbness", "stupidity", "metrazol",
- "nausea", "butisol", "anorexia", "calotropis"}
- mentalStack2 = {"impatience", "stupidity", "hallucinations", "numbness", "masochism",
- "hypersomnia", "paranoia", "dementia", "vertigo", "loneliness", "claustrophobia"}
- --mentalStack1 = {"trigger", "anorexia", "impatience", "instability", "stupidity",
- -- "hallucinations", "numbness", "insanity", "sensitivity", "masochism", "peace",
- -- "hypersomnia", "paranoia", "dementia", "vertigo", "loneliness", "claustrophobia",
- -- "probe"}
- mentalStack1 = {"impatience", "stupidity", "hallucinations", "numbness",
- "masochism", "peace", "hypersomnia", "paranoia", "dementia",
- "vertigo", "loneliness", "claustrophobia"}
- --mentalStack1 = {"impatience", "stupidity", "hallucinations", "numbness",
- -- "sensitivity", "masochism", "peace", "hypersomnia", "paranoia", "dementia",
- -- "vertigo", "loneliness", "claustrophobia"}
- --(Ring): Cassius says, "Toxins {"hemotoxin", "sunallergy", "nausea", "numbness", "asthma",
- --"stupidity", "clumsiness", "recklessness", "metrazol", "slickness", "sensitivity", "nausea",
- --"butisol", "anorexia", "crippled right arm", "crippled left leg", "calotropis", "slow balance",
- --"slow equilibrium", "disloyalty", "dizziness",}."
- --<390/390h 421/445m 0b <eb db> <44 0>> 78.76 0 [Septus RAID(clt)]
- --(Ring): Cassius says, "Basilisk {[1] = "trigger", [2] = "anorexia", [3] = "impatience", [4] =
- --"instability", [6] = "stupidity", [7] = "hallucinations", [5] = "numbness", [8] = "insanity", [9] =
- --"sensitivity", [10] = "masochism", [11] = "peace", [12] = "hypersomnia", [13] = "paranoia", [14] =
- --"dementia", [15] = "vertigo", [16] = "loneliness", [17] = "claustrophobia", [18] = "probe"}."
- function nextCombo()
- -- doCombo = true
- toxin = nil
- mental1 = nil
- mental2 = nil
- local wyvernString = nil
- local basiliskString = nil
- for i, v in ipairs(toxinStack1) do
- if not t.afflictedWith(v) then toxin = affToTox(v) break end
- end
- wyvernString = "wyvern claw " .. target .. " " .. toxin .. "\\"
- -- cecho("(" .. wyvernString .. ")")
- --if not trigger1 then form trigger1 (if trigger2, avoid trigger2 affs)
- --elseif not trigger2 then form trigger2 (if trigger1 avoid trigger1 affs)
- --else then mental afflict (avoid trigger1 and 2 affs
- --
- --
- --
- if not t.trigger1 and not noTriggers then
- debug("t1")
- local trig2Aff1, trig2Aff2 = "nomatch", "nomatch"
- if t.trigger2 then
- --debug("(t2 exists)")
- trig2Aff1 = t.trigger2.affliction1
- trig2Aff2 = t.trigger2.affliction2
- end
- --debug("start loop")
- for i, v in ipairs(mentalStack1) do
- --cecho("(" .. v .. ")\n")
- if not t.afflictedWith(v) and not v:match(trig2Aff1) and not v:match(trig2Aff2) then
- -- cecho("!")
- if not mental1 then
- -- debug("found mental1")
- mental1 = v
- elseif not mental2 then
- -- debug("found mental2")
- mental2 = v
- end
- end
- end
- --debug("finished loop")
- --display(mental1)
- --display(mental2)
- basiliskString = "basilisk trigger " .. target .. " " .. mental1 .. " " .. mental2 ..
- " affliction " .. triggerAff .. "\\"
- pendingTrigger = {}
- pendingTrigger["trigger"] = triggerAff
- pendingTrigger["affliction1"] = mental1
- pendingTrigger["affliction2"] = mental2
- --debug("bstring generated")
- --cecho("(" .. basiliskString .. ")")
- elseif not t.trigger2 and not noTriggers then
- debug("2")
- local trig1Aff1, trig1Aff2 = "", ""
- if t.trigger1 then
- trig1Aff1 = t.trigger1.affliction1
- trig1Aff2 = t.trigger1.affliction2
- end
- for i, v in ipairs(mentalStack1) do
- if not t.afflictedWith(v) and not v:match(trig1Aff1) and not v:match(trig1Aff2) then
- if not mental1 then mental1 = v
- elseif not mental2 then mental2 = v
- end
- end
- end
- basiliskString = "basilisk trigger " .. target .. " " .. mental1 .. " " .. mental2 ..
- " affliction " .. triggerAff .. "\\"
- --cecho("(" .. basiliskString .. ")")
- pendingTrigger = {}
- pendingTrigger["trigger"] = triggerAff
- pendingTrigger["affliction1"] = mental1
- pendingTrigger["affliction2"] = mental2
- else
- local trig1Aff1, trig1Aff2, trig2Aff1, trig2Aff2 = "nomatch", "nomatch", "nomatch", "nomatch"
- debug("1")
- if t.trigger1 then
- trig1Aff1 = t.trigger1.affliction1
- trig1Aff2 = t.trigger1.affliction2
- end
- if t.trigger2 then
- trig2Aff1 = t.trigger2.affliction1
- trig2Aff2 = t.trigger2.affliction2
- end
- for i, v in ipairs(mentalStack1) do
- if not t.afflictedWith(v) and not v:match(trig1Aff1) and not v:match(trig1Aff2)
- and not v:match(trig2Aff1) and not v:match(trig2Aff2) then
- if not mental1 then mental1 = v
- end
- end
- end
- basiliskString = "basilisk " .. mental1 .. " " .. target .. "\\"
- --cecho("(" .. basiliskString .. ")")
- end
- local assessString = ""
- if keepAssessing then
- assessString = "\\trueassess " .. target .. "\\"
- else
- assessString = ""
- end
- --if me.afflictedWith("peace") then
- -- rageString = "\\rage"
- --else
- -- rageString = ""
- --end
- if t.shield then
- wyvernString = "wyvern iceblast " .. target .. "\\"
- end
- send("queue eqbal touch amnesia\\stand\\mount 99192\\" .. wyvernString .. "\\" .. basiliskString .. assessString, false)
- end
- function queueToxin(tox)
- if not toxin then toxin = tox end
- end
- function queueMental(aff)
- if not mental then mental = aff end
- end</script>
- <eventHandlerList/>
- </Script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement