Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Alchemist--
- function alchemistHealing(event, affliction, class)
- if classTimerExists("alchemist") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and Aff.impatience and (Aff.slickness or Aff.stupidity or Aff.weariness or Aff.clumsiness or Aff.sensitivity or Aff.darkshade) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if affSwapped ~= "asthma" and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "alchemistHealing")
- registerAnonymousEventHandler("reset aff prios", "alchemistHealing")
- function alchemistLost(event, affliction, class)
- if classTimerExists("alchemist") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "alchemistLost")
- --Apostate--
- function apostateHealing(event, affliction, class)
- if classTimerExists("apostate") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and (Aff.impatience or Aff.hellsight or Aff.weariness or Aff.clumsiness or Aff.healthleech or Aff.sensitivity) and (Aff.impatience or Aff.hellsight or Aff.weariness or Aff.clumsiness or Aff.healthleech or Aff.sensitivity) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if affSwapped ~= "asthma" and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif Aff.paralysis and Aff.asthma and Aff.impatience and Aff.slickness and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if affSwapped ~= "impatience" and canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "apostateHealing")
- registerAnonymousEventHandler("reset aff prios", "apostateHealing")
- function apostateManaHandling(event, affliction, class)
- prioMana = (tonumber(currentMana/maxMana)*100)
- prioHealth = (tonumber(currentHealth/maxHealth)*100)
- if classTimerExists("apostate") then
- if event == "got aff" then
- if manaPrio then
- if prioMana > 80 then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- elseif prioMana > 80 then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- end
- elseif healthPrio then
- if not Aff.masochism then
- if prioMana <= 72 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- elseif Aff.masochism then
- if prioMana <= 75 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "apostateManaHandling")
- registerAnonymousEventHandler("reset aff prios", "apostateManaHandling")
- function apostateLost(event, affliction, class)
- if classTimerExists("apostate") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "apostateLost")
- --Bard--
- function bardHealing(event, affliction, class)
- if classTimerExists("bard") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and (Aff.weariness or Aff.clumsiness or Aff.vertigo or Aff.sensitivity or Aff.hallucinations or Aff.stupidity) and (Aff.weariness or Aff.clumsiness or Aff.vertigo or Aff.sensitivity or Aff.hallucinations or Aff.stupidity) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if affSwapped ~= "asthma" and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif Aff.paralysis and Aff.impatience and Aff.asthma and Aff.slickness and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) then
- if affSwapped ~= "impatience" and canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "bardHealing")
- registerAnonymousEventHandler("reset aff prios", "bardHealing")
- function bardLost(event, affliction, class)
- if classTimerExists("bard") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "bardLost")
- --Blademaster--
- function blademasterHealing(event, affliction, class)
- if classTimerExists("blademaster") then
- if event == "got aff" then
- if affliction == "damagedhead" and not raid then
- if Aff.damagedhead and canPredict then
- send("curing predict mildtrauma")
- canPredict = false
- end
- elseif affliction == "damagedleftarm" or affliction == "damagedrightarm" and not raid then
- if (affPosition("addiction") ~= afflictionPrioritiesDefault["aeon"]) then
- if affSwapped ~= "addiction" and canSwap then
- send("curing priority addiction 1")
- canSwap = false
- end
- end
- elseif affliction == "damagedleftarm" or affliction == "damagedrightarm" and not raid then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["blindness"]) then
- send("curing priority damagedleftarm 26")
- send("curing priority damagedrightarm 26")
- if canPredict then
- send("curing predict damagedleftleg")
- canPredict = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "blademasterHealing")
- registerAnonymousEventHandler("reset aff prios", "blademasterHealing")
- function blademasterLostAff(event, affliction, class)
- if classTimerExists("blademaster") then
- if event == "lost aff" then
- if affliction == "damagedhead" then
- if (affPosition("damagedhead") ~= afflictionPrioritiesDefault["damagedhead"]) then
- affPrioRestore( "damagedhead" )
- end
- elseif affliction == "damagedleftleg" or affliction == "damagedrightleg" then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["damagedleftarm"]) then
- affPrioRestore( "damagedleftarm" )
- affPrioRestore( "damagedrightarm" )
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "blademasterLostAff")
- --Depthswalker--
- function depthsHandle(event, affliction, class)
- if classTimerExists("depthswalker") then
- if event == "got aff" then
- if affliction == "timeloop" then
- if not Aff.paralysis then
- if (affPosition("timeloop") ~= afflictionPrioritiesDefault["aeon"]) then
- send("curing priority timeloop 1")
- end
- elseif Aff.paralysis then
- if (affPosition("paralysis") ~= afflictionPrioritiesDefault["aeon"]) then
- send("curing priority paralysis 1")
- end
- end
- elseif affliction == "depression" or affliction == "shadowmadness" or affliction == "parasite" then
- if not Aff.timeloop and not Aff.paralysis and Def.speed then
- if (affPosition(affliction) ~= afflictionPrioritiesDefault["aeon"]) then
- send("curing priority " ..affliction.. " 1")
- end
- elseif not Aff.paralysis and Aff.asthma and Def.speed then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) then
- send("curing priority asthma 1")
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("depthsHandle", "got aff")
- registerAnonymousEventHandler("depthsHandle", "reset aff prios")
- function DepthManaHandling(event, affliction, class)
- prioMana = (tonumber(currentMana/maxMana)*100)
- prioHealth = (tonumber(currentHealth/maxHealth)*100)
- if classTimerExists("depthswalker") then
- if event == "got aff" then
- if manaPrio then
- if prioMana > 80 and not Aff.retribution then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- elseif prioMana > 80 and Aff.retribution then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- end
- elseif healthPrio then
- if not Aff.retribution then
- if prioMana <= 52 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- elseif Aff.retribution then
- if prioMana <= 60 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "DepthManaHandling")
- registerAnonymousEventHandler("reset aff prios", "DepthManaHandling")
- function depthsReset(event, affliction, class)
- if classTimerExists("depthswalker") then
- if event == "lost aff" then
- if affliction == "timeloop" then
- if not Aff.timeloop then
- if (affPosition("timeloop") ~= afflictionPrioritiesDefault["aeon"]) then
- affPrioRestore( "timeloop" )
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("depthsReset", "lost aff")
- --Dragon--
- function dragonHealing(event, affliction, class)
- if classTimerExists("dragon") then
- if event == "got aff" then
- if affliction == "damagedleftleg" or affliction == "damagedrightleg" and not raid then
- if Aff.prone then
- if (affPosition("sensitivity") ~= afflictionPrioritiesDefault["aeon"]) and canSwap then
- send("curing priority sensitivity 1")
- send("curing priority asthma 2")
- send("curing priority impatience 3")
- send("curing priority paralysis 26")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "dragonHealing")
- function dragonHealReset(event, affliction, class)
- if classTimerExists("dragon") then
- if event == "lost aff" then
- if affliction == "sensitivity" or affliction == "damagedleftleg" or affliction == "damagedrightleg" then
- if (affPosition("sensitivity") ~= afflictionPrioritiesDefault["sensitivity"]) then
- if canSwap then
- affPrioRestore( "sensitivity" )
- affPrioRestore( "asthma" )
- affPrioRestore( "impatience" )
- affPrioRestore( "paralysis" )
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "dragonHealReset")
- --Jester--
- function jesterHealing(event, affliction, class)
- if classTimerExists("jester") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and (Aff.clumsiness or Aff.slickness or Aff.Aeon) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade and not Aff.impatience then
- if affSwapped ~= "asthma" and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif Aff.paralysis and Aff.impatience and (Aff.asthma or Aff.clumsiness or Aff.slickness) and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade and not raid then
- if affSwapped ~= "impatience" and canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "jesterHealing")
- registerAnonymousEventHandler("reset aff prios", "jesterHealing")
- function jesterLost(event, affliction, class)
- if classTimerExists("jester") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "jesterLost")
- --Magi--
- function fuckSalves(event, affliction, class)
- if classTimerExists("magi") then
- if event == "got aff" then
- if affliction == "brokenleftarm" or affliction == "brokenrightarm" then
- if (Aff.brokenleftarm or Aff.brokenrightarm) and canSwap and (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["aeon"]) and not Aff.prone then
- send("curing priority brokenleftarm 1")
- send("curing priority brokenrightarm 1")
- canSwap = false
- end
- elseif affliction == "brokenleftleg" or affliction == "brokenrightleg" then
- if (Aff.brokenleftleg or Aff.brokenleftleg) and canSwap and Aff.prone and (affPosition("damagedrightleg") ~= afflictionPrioritiesDefault["aeon"]) and not Aff.damagedleftleg and not Aff.damagedrightleg then
- send("curing priority brokenrightleg 1")
- send("curing priority brokenleftleg 1")
- canSwap = false
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "fuckSalves")
- registerAnonymousEventHandler("reset aff prios", "fuckSalves")
- function magiLost(event, affliction, class)
- if classTimerExists("magi") then
- if event == "lost aff" then
- if affliction == "dehydrated" or affliction == "burning" then
- if not Aff.burning and (affPosition("burning") ~= afflictionPrioritiesDefault["burning"]) then
- affPrioRestore( "burning" )
- canSwap = true
- end
- elseif affliction == "brokenleftarm" or affliction == "brokenrightarm" then
- if not Aff.brokenleftarm and not Aff.brokenrightarm and (affPosition("brokenleftarm") ~= afflictionPrioritiesDefault["brokenleftarm"]) then
- affPrioRestore( "brokenleftarm" )
- affPrioRestore( "brokenrightarm" )
- end
- elseif affliction == "brokenrightleg" or affliction == "brokenleftleg" then
- if not Aff.brokenrightleg and not Aff.brokenleftleg and (affPosition("brokenrightleg") ~= afflictionPrioritiesDefault["brokenrightleg"]) then
- affPrioRestore( "brokenrightleg" )
- affPrioRestore( "brokenleftleg" )
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "magiLost")
- --Monk--
- function monkHandling(event, affliction, class)
- if event == "got aff" then
- if affliction == "damagedleftarm" or affliction == "damagedhead" and not raid then
- if classTimerExists("monk") then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["blindness"]) then
- if canSwap then
- send("curing priority damagedleftarm 26")
- send("curing priority damagedrightarm 26")
- send("curing priority damagedhead 26")
- canSwap = false
- end
- end
- end
- elseif affliction == "concussion" and not raid then
- if (currentHealth/maxHealth)*100 > 65 then
- if (affPosition("concussion") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap and Aff.damagedleftleg and Aff.damagedrightleg then
- send("curing priority concussion 2")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "monkHandling")
- function monkDwForce(event, affliction, class)
- if event == "lost def" then
- if not Def.antiforce then
- if gmcp.Char.Status.class == "Depthswalker" then
- if not Aff.prone and not intoned and not sys.paused then
- send("intone gaiartha")
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost def", "monkDwForce")
- function monkReset(event, affliction, class)
- if event == "lost aff" then
- if affliction == "prone" then
- if not Aff.prone then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["damagedleftarm"]) then
- if canSwap then
- affPrioRestore("damagedleftarm")
- affPrioRestore("damagedrightarm")
- affPrioRestore("damagedhead")
- canSwap = false
- end
- end
- end
- elseif affliction == "concussion" then
- if (affPosition("concussion") ~= afflictionPrioritiesDefault["concussion"]) then
- if canSwap then
- affPrioRestore("concussion")
- affPrioRestore("damagedleftarm")
- affPrioRestore("damagedrightarm")
- affPrioRestore("damagedhead")
- canSwap = false
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "monkReset")
- --Occultist--
- function occieHealing(event, affliction, class)
- if classTimerExists("occultist") then
- if event == "got aff" then
- if affliction == "lethargy" and not raid then
- if Aff.lethargy and (affPosition("lethargy") ~= afflictionPrioritiesDefault["aeon"]) then
- if affSwapped ~= "lethargy" and canSwap then
- send("curing priority lethargy 1")
- canSwap = false
- end
- end
- elseif affliction == "vertigo" and not raid then
- if not Aff.lethargy then
- if (affPosition("vertigo") ~= afflictionPrioritiesDefault["aeon"]) then
- if affSwapped ~= "vertigo" and canSwap then
- send("curing priority vertigo 1")
- canSwap = false
- end
- end
- end
- elseif affliction == "stupidity" and not raid then
- if (affPosition("stupidity") ~= afflictionPrioritiesDefault["aeon"]) then
- if affSwapped ~= "stupidity" and canSwap then
- send("curing priority stupidity 1")
- canSwap = false
- end
- end
- elseif affliction == "lovers" and not raid then
- if (affPosition("lovers") ~= afflictionPrioritiesDefault["aeon"]) and not Aff.cadmus and not Aff.hecate then
- if canSwap then
- send("curing priority lovers 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "occieHealing")
- registerAnonymousEventHandler("reset aff prios", "occieHealing")
- function occieCadmus(event, affliction, class)
- if classTimerExists("occultist") then
- if event == "got aff" then
- if affliction == "cadmuscurse" then
- if settings.usefocus == true then
- send("curing focus off")
- end
- end
- elseif event == "lost aff" then
- if affliction == "cadmusecurse" then
- if settings.usefocus == false then
- send("curing focus on")
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "occieCadmus")
- registerAnonymousEventHandler("reset aff prios", "occieCadmus")
- function occieLost(event, affliction, class)
- if classTimerExists("occultist") then
- if event == "lost aff" then
- if affliction == "lethargy" then
- if not Aff.lethargy and (affPosition("lethargy") ~= afflictionPrioritiesDefault["lethargy"]) and canSwap then
- affPrioRestore( "lethargy" )
- canSwap = true
- end
- elseif affliction == "vertigo" then
- if (affPosition("vertigo") ~= afflictionPrioritiesDefault["vertigo"]) then
- affPrioRestore( "vertigo" )
- canSwap = true
- end
- elseif affliction == "stupidity" then
- if (affPosition("stupidity") ~= afflictionPrioritiesDefault["stupidity"]) then
- affPrioRestore( "stupidity" )
- canSwap = true
- end
- elseif affliction == "lovers" then
- if (affPosition("lovers") ~= afflictionPrioritiesDefault["lovers"]) then
- affPrioRestore( "lovers" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "occieLost")
- --Priest--
- function paladinHandle(event, affliction, class)
- if classTimerExists("paladin") then
- if event == "got aff" then
- if affliction == "hellsight" and not raid then
- if Aff.asthma and canFit then
- send("fitness")
- elseif Aff.asthma and (Aff.paralysis or Aff.stupidity or Aff.paranoia or Aff.hallucinations or Aff.asthma or Aff.slickness or Aff.dementia or Aff.weariness or Aff.sensitivity) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade and not canFit and not raid then
- if affSwapped ~= "impatience" and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- end
- end
- if not Def.blindness then
- if gmcp.Char.Status.class == "Blademaster" then
- if sendBlind == true or sendBlind == nil then
- send("blind")
- sendBlind = false
- end
- end
- end
- if not Def.deafness then
- if gmcp.Char.Status.class == "Blademaster" then
- send("deaf")
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "paladinHandle")
- registerAnonymousEventHandler("reset aff prios", "paladinHandle")
- function paladinLost(event, affliction, class)
- if classTimerExists("paladin") then
- if event == "lost aff" then
- if affliction == "hellsight" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "paladinLost")
- --Priest--
- function priestHealing(event, affliction, class)
- if classTimerExists("priest") then
- if event == "got aff" then
- if affliction == "earthdisrupt" and not raid then
- if (affPosition("earthdisrupt") ~= afflictionPrioritiesDefault["scytherus"]) then
- if not Aff.asthma and not Aff.hellsight and canSwap then
- send("curing priority earthdisrupt 5")
- send("curing priority spiritdisrupt 5")
- send("curing priority waterdisrupt 5")
- send("curing priority airdisrupt 5")
- send("curing priority firedisrupt 5")
- send("curing priority justice 6")
- canSwap = false
- end
- end
- elseif affliction == "hellsight" and not raid then
- if (affPosition("hellsight") ~= afflictionPrioritiesDefault["aeon"]) and canSwap then
- send("curing priority hellsight 1")
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif affliction == "asthma" and not raid then
- if Aff.asthma then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) and canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "priestHealing")
- registerAnonymousEventHandler("reset aff prios", "priestHealing")
- function priestFocusing(event, affliction, class)
- if classTimerExists("priest") then
- if event == "got aff" then
- if affliction == "spiritdisrupt" then
- if settings.usefocus == true then
- if Aff.spiritdisrupt and (Aff.earthdisrupt or Aff.waterdisrupt or Aff.airdisrupt or Aff.firedisrupt) then
- send("curing focus off")
- settings.usefocus = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "priestFocusing")
- registerAnonymousEventHandler("reset aff prios", "priestFocusing")
- function disruptLost(event, affliction, class)
- if classTimerExists("priest") then
- if event == "lost aff" then
- if affliction == "spiritdisrupt" then
- if not Aff.spiritdisrupt and not settings.usefocus then
- send("curing focus on")
- settings.usefocus = true
- end
- elseif affliction == "earthdisrupt" then
- if (affPosition("earthdisrupt") ~= afflictionPrioritiesDefault["earthdisrupt"]) then
- if not Aff.spiritdisrupt then
- affPrioRestore( "earthdisrupt" )
- canSwap = true
- end
- end
- elseif affliction == "waterdisrupt" then
- if (affPosition("waterdisrupt") ~= afflictionPrioritiesDefault["waterdisrupt"]) then
- if not Aff.earthdisrupt then
- affPrioRestore( "waterdisrupt" )
- canSwap = true
- end
- end
- elseif affliction == "firedisrupt" then
- if (affPosition("firedisrupt") ~= afflictionPrioritiesDefault["firedisrupt"]) then
- if not Aff.earthdisrupt then
- affPrioRestore( "firedisrupt" )
- canSwap = true
- end
- end
- elseif affliction == "airdisrupt" then
- if (affPosition("airdisrupt") ~= afflictionPrioritiesDefault["airdisrupt"]) then
- if not Aff.earthdisrupt then
- affPrioRestore( "airdisrupt" )
- canSwap = true
- end
- end
- elseif affliction == "hellsight" then
- if (affPosition("hellsight") ~= afflictionPrioritiesDefault["hellsight"]) then
- if not Aff.hellsight then
- affPrioRestore( "hellsight" )
- affPrioRestore( "asthma" )
- canSwap = true
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "disruptLost")
- function priestManaHandling(event, affliction, class)
- prioMana = (tonumber(currentMana/maxMana)*100)
- prioHealth = (tonumber(currentHealth/maxHealth)*100)
- if classTimerExists("priest") then
- if event == "got aff" then
- if manaPrio then
- if prioMana > 80 and not Aff.inquisition then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- elseif prioMana > 80 and Aff.inquisition then
- send("curing priority health")
- healthPrio = true
- manaPrio = false
- end
- elseif healthPrio then
- if not Aff.inquisition then
- if prioMana <= 72 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- elseif Aff.inquisition then
- if prioMana <= 75 then
- send("curing priority mana")
- manaPrio = true
- healthPrio = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "priestManaHandling")
- registerAnonymousEventHandler("reset aff prios", "priestManaHandling")
- --Sentinel--
- function sentinelHealing(event, affliction, class)
- if classTimerExists("sentinel") then
- if event == "got aff" then
- if affliction == "impatience" and not raid then
- if Aff.impatience and Aff.paralysis and (Aff.stupidity or Aff.paranoia or Aff.hallucinations or Aff.dementia or Aff.dizziness or Aff.epilepsy or Aff.confusion) and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- if not Def.blindness then
- if gmcp.Char.Status.class == "Blademaster" then
- send("blind")
- end
- end
- end
- elseif affliction == "prone" and not raid then
- if Aff.prone and (Aff.damagedleftleg or Aff.damagedrightleg) then
- if not Def.deafness then
- send("curing priority defense deafness 1")
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "sentinelHealing")
- registerAnonymousEventHandler("reset aff prios", "sentinelHealing")
- function sentinelLost(event, affliction, class)
- if classTimerExists("sentinel") then
- if event == "lost aff" then
- if affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "sentinelLost")
- --Serpent--
- function serpentHealing(event, affliction, class)
- if classTimerExists("serpent") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and (Aff.weariness or Aff.sensitivity or Aff.hypochondria or Aff.clumsiness or Aff.lethargy or Aff.addiction or Aff.darkshade) and (Aff.weariness or Aff.sensitivity or Aff.hypochondria or Aff.clumsiness or Aff.lethargy or Aff.addiction or Aff.darkshade) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade and not Aff.impatience then
- if canSwap then
- send("curing priority asthma 1")
- send("curing priority hypochondria 2")
- send("curing priority impatience 3")
- canSwap = false
- end
- end
- elseif affliction == "paralysis" and not raid then
- if Aff.asthma and (Aff.weariness or Aff.sensitivity or Aff.clumsiness or Aff.hypochondria) and (Aff.weariness or Aff.sensitivity or Aff.clumsiness or Aff.hypochondria) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- end
- elseif affliction == "impatience" and not raid then
- if Aff.asthma and (Aff.weariness or Aff.sensitivity or Aff.hypochondria or Aff.clumsiness or Aff.asthma or Aff.lethargy or Aff.addiction or Aff.darkshade) and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority impatience 1")
- send("curing priority asthma 2")
- send("curing priority hypochondria 3")
- canSwap = false
- end
- end
- elseif affliction == "scytherus" and not raid then
- if not Aff.anorexia and not Aff.impatience and not Aff.hypochondria and (affPosition("scytherus") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if canSwap then
- send("curing priority scytherus 1")
- canSwap = false
- end
- end
- elseif affliction == "slickness" and not raid then
- if Aff.asthma and Aff.paralysis and (Aff.weariness or Aff.clumsiness or Aff.sensitivity) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) and not trueShade then
- if canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif Aff.asthma and Aff.slickness and Aff.impatience and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- end
- elseif affliction == "hypochondria" and not raid then
- if (affPosition("hypochondria") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority hypochondria 1")
- canSwap = false
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "serpentHealing")
- registerAnonymousEventHandler("reset aff prios", "serpentHealing")
- function serpentLost(event, affliction, class)
- if classTimerExists("serpent") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- elseif affliction == "scytherus" then
- if (affPosition("scytherus") ~= afflictionPrioritiesDefault["scytherus"]) then
- affPrioRestore( "scytherus" )
- canSwap = true
- end
- elseif affliction == "hypochondria" then
- if (affPosition("hypochondria") ~= afflictionPrioritiesDefault["hypochondria"]) then
- affPrioRestore( "hypochondria" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "serpentLost")
- --Shikudo--
- function shikudoHandling(event, affliction, class)
- if event == "got aff" then
- if affliction == "asthma" then
- if classTimerExists("shikudo") then
- if (affPosition("slickness") ~= afflictionPrioritiesDefault["aeon"]) and canSwap then
- send("curing priority slickness 1")
- canSwap = false
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "shikudoHandling")
- function shikudoReset(event, affliction, class)
- if event == "lost aff" then
- if affliction == "asthma" then
- if classTimerExists("shikudo") then
- if (affPosition("slickness") ~= afflictionPrioritiesDefault["slickness"]) then
- affPrioRestore("slickness")
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost off", "shikudoReset")
- --SnB--
- function snbHealing(event, affliction, class)
- if classTimerExists("SnB") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and Aff.asthma and (Aff.clumsiness or Aff.sensitivity or Aff.weariness) and (Aff.clumsiness or Aff.sensitivity or Aff.weariness) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- end
- elseif affliction == "prone" and not raid then
- if Aff.sensitivity and (Aff.asthma or Aff.weariness or Aff.clumsiness or Aff.slickness) and (affPosition("sensitivity") ~= afflictionPrioritiesDefault["aeon"]) then
- if (Aff.damagedleftleg or Aff.damagedrightleg) then
- if canSwap then
- send("curing priority sensitivity 1")
- canSwap = false
- end
- end
- elseif Aff.paralysis and (Aff.asthma or Aff.slickness or Aff.anorexia) and Aff.prone and sys.bals.focus then
- if (affPosition("paralysis") ~= afflictionPrioritiesDefault["paralysis"]) then
- if canSwap then
- send("curing priority paralysis 2")
- canSwap = false
- end
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "snbHealing")
- registerAnonymousEventHandler("reset aff prios", "snbHealing")
- function snbLost(event, affliction, class)
- if classTimerExists("SnB") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if not Aff.asthma and (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "prone" then
- if not Aff.prone and not Aff.weariness and (affPosition("sensitivity") ~= afflictionPrioritiesDefault["sensitivity"]) then
- affPrioRestore( "sensitivity" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "snbLost")
- --Sylvan--
- function sylvanHealing(event, affliction, class)
- if classTimerExists("sylvan") then
- if event == "got aff" then
- if affliction == "asthma" and not raid then
- if Aff.paralysis and (Aff.clumsiness or Aff.sensitivity or Aff.weariness or Aff.healthleech) and (affPosition("asthma") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority asthma 1")
- canSwap = false
- end
- elseif Aff.paralysis and Aff.impatience and (Aff.clumsiness or Aff.sensitivity or Aff.asthma or Aff.weariness or Aff.healthleech) and (affPosition("impatience") ~= afflictionPrioritiesDefault["aeon"]) then
- if canSwap then
- send("curing priority impatience 1")
- canSwap = false
- end
- end
- elseif affliction == "damagedleftarm" or affliction == "damagedrightarm" and not raid then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["blindness"]) and canSwap then
- send("curing priority damagedleftarm 26")
- send("curing priority damagedrightarm 26")
- send("curing priority damagedhead 26")
- canSwap = false
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "sylvanHealing")
- registerAnonymousEventHandler("reset aff prios", "sylvanHealing")
- function sylvanLost(event, affliction, class)
- if classTimerExists("sylvan") then
- if event == "lost aff" then
- if affliction == "asthma" then
- if (affPosition("asthma") ~= afflictionPrioritiesDefault["asthma"]) then
- affPrioRestore( "asthma" )
- canSwap = true
- end
- elseif affliction == "prone" then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["damagedleftarm"]) and canSwap then
- affPrioRestore( "damagedleftarm" )
- affPrioRestore( "damagedrightarm" )
- affPrioRestore( "damagedhead" )
- canSwap = true
- end
- elseif affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) then
- affPrioRestore( "impatience" )
- canSwap = true
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "sylvanLost")
- --Active Curing Script--
- -----------------------------Phoenix for affliction----------------------------------------
- function impatienceNoTreeGained2(event, affliction, class)
- if event == "got aff" then
- if affliction == "impatience" or affliction == "asthma" or affliction == "anorexia" or affliction == "slickness" then
- if gmcp.Char.Status.class == "Blademaster" and Aff.paralysis and Aff.asthma and Aff.slickness and Aff.anorexia and Aff.weariness and stats.shin > "85" and sys.bals.b and sys.bals.e and not Aff.prone and not sys.retard then
- send("shin phoenix")
- elseif Aff.paralysis and Aff.asthma and Aff.slickness and Aff.anorexia and Aff.impatience and sys.bals.b and sys.bals.e and gmcp.Char.Status.race == "Dragon" and dheal and not Aff.recklessness and not sys.retard then
- send("dragonheal")
- dheal = false
- elseif Aff.paralysis and Aff.asthma and Aff.impatience and gmcp.Char.Status.class == "Serpent" and shrug and sys.bals.b and sys.bals.e and not Aff.weariness and not sys.retard then
- send("shrugging")
- shrug = false
- elseif Aff.prone and Aff.anorexia and Aff.impatience and shaman and gmcp.Char.Status.class == "Serpent" and shrug and sys.bals.b and sys.bals.e and not Aff.weariness and not sys.retard then
- send("shrugging")
- shrug = false
- elseif (gmcp.Char.Status.class == "Blademaster" or gmcp.Char.Status.class == "Paladin" or gmcp.Char.Status.class == "Runewarden") and Aff.Anorexia and Aff.impatience and Aff.paralysis and Aff.asthma and sys.bals.b and sys.bals.e and canFit and (gmcp.Char.Status.class == "Paladin" or gmcp.Char.Status.class == "Blademaster") and not Aff.weariness and not sys.retard then
- send("fitness")
- canFit = false
- elseif gmcp.Char.Status.class == "Jester" and Aff.asthma and Aff.slickness and Aff.anorexia and not Aff.paralysis and not Aff.prone then
- send("fling fool at me")
- elseif gmcp.Char.Status.class == "Depthswalker" and Aff.asthma and Aff.slickness and Aff.anorexia and not Aff.recklessness and sys.bals.e and sys.bals.b and canAcc then
- send("chrono accelerate boost")
- canAcc = false
- end
- end
- end
- end --func
- registerAnonymousEventHandler("got aff", "impatienceNoTreeGained2")
- registerAnonymousEventHandler("reset aff prios", "impatienceNoTreeGained2")
- function impatienceLost2(event, affliction)
- if event == "lost aff" then
- if affliction == "impatience" then
- if (affPosition("impatience") ~= afflictionPrioritiesDefault["impatience"]) and not Aff.impatience then
- send("curing priority impatience 3")
- canSwap = true
- end
- end
- end
- end --func
- registerAnonymousEventHandler("lost aff", "impatienceLost2")
- --Alleviate--
- function alleviateHandling(event, affliction, class)
- if event == "got aff" then
- if Aff.asthma and (Aff.weariness or Aff.clumsiness or Aff.sensitivity or Aff.lethargy or Aff.dementia or Aff.addiction or Aff.darkshade) and (Aff.weariness or Aff.clumsiness or Aff.sensitivity or Aff.lethargy or Aff.dementia or Aff.addiction or Aff.darkshade) then
- if sys.bals.a and gmcp.Char.Status.class == "Blademaster" and not Aff.paralysis and not (Aff.brokenleftarm or Aff.damagedleftarm or Aff.brokenrightarm or Aff.damagedrightarm) and not (Aff.brokenleftarm or Aff.damagedleftarm or Aff.brokenrightarm or Aff.damagedrightarm) then
- if sys.bals.b and sys.bals.e and not Aff.aeon and not Aff.stupidity then
- send("alleviate")
- sys.bals.a = false
- elseif sys.bals.b and sys.bals.e and not Aff.aeon and Aff.stupidity then
- send("alleviate")
- send("alleviate")
- send("alleviate")
- send("alleviate")
- sys.bals.a = false
- end
- end
- elseif (Aff.damagedleftleg or Aff.damagedrightleg) and Aff.impatience and Aff.anorexia then
- if sys.bals.a and gmcp.Char.Status.class == "Blademaster" and not Aff.paralysis and not (Aff.brokenleftarm or Aff.damagedleftarm or Aff.brokenrightarm or Aff.damagedrightarm) and not (Aff.brokenleftarm or Aff.damagedleftarm or Aff.brokenrightarm or Aff.damagedrightarm) then
- if sys.bals.b and sys.bals.e then
- if not sys.bals.salve and not Aff.aeon then
- send("alleviate")
- end
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "alleviateHandling")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement