<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config
RequireVersion="2.22"
/>
<variables>
<var name="sleepid" nooverwrite="true">0</var>
<var name="BLMAF2Pants">1</var>
<var name="Ring">1</var>
<var name="UggPendant">1</var>
<var name="RDMRingHP">640</var>
<var name="WHMRingHP">642</var>
<var name="NINRingHP">642</var>
<var name="IceStaff">Varuna's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="ThunderStaff">Indra's Staff +1</var>
<var name="WaterStaff">Neptune's Staff</var>
<var name="FireStaff">Vulcan's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="LightStaff">Light Staff</var>
<var name="CureStaff">Light Staff</var>
<var name="IceObi">1</var>
<var name="WindObi">Furin Obi</var>
<var name="EarthObi">1</var>
<var name="ThunderObi">1</var>
<var name="WaterObi">Suirin Obi</var>
<var name="FireObi">Karin Obi</var>
<var name="DarkObi">Anrin Obi</var>
<var name="LightObi">Korin Obi</var>
</variables>
<sets>
<group name="BLM" default="yes">
<set name="Standard">
<main>$EarthStaff</main>
<sub>Bugard Strap +1</sub>
<lear>Magnetic Earring</lear>
<rear>Sorcerer's Earring</rear>
<body>Morrigan's robe</body>
<hands>Serpentes Cuffs</hands>
<neck>Orochi nodowa</neck>
<back>Umbra Cape</back>
<waist>Swift Belt</waist>
<legs>Tatsumaki sitagoromo</legs>
</set>
<set name="FastCast">
<lear>Loquac. Earring</lear>
</set>
<set name="Resting" BaseSet="Standard">
<main>$DarkStaff</main>
<sub>Ariesian Grip</sub>
<neck>Beak Necklace +1</neck>
<lear>Magnetic Earring</lear>
<rear>Antivenom Earring</rear>
<body>Errant Hpl.</body>
<hands>Oracle's Gloves</hands>
<rring>Serket Ring</rring>
<waist>Qiqirn Sash +1</waist>
<legs>Oracle's Braconi</legs>
<feet>Goliard Clogs</feet>
<back>Invigorating Cape</back>
<head>Goliard Chapeau</head>
</set>
<set name="MinusHP">
<head>Zenith Crown</head>
<hands>Zenith Mitts</hands>
<body>Flora Cotehardie</body>
<lring>Serket Ring</lring>
<legs>Zenith Slacks</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="FullDamage" BaseSet="Standard">
<head>Demon Helm +1</head>
<neck>Lemegeton medallion</neck>
<lear>Novio Earring</lear>
<rear>Moldavite Earring</rear>
<body>Morrigan's robe</body>
<hands>Vicious Mufflers</hands>
<rring>Snow Ring</rring>
<back>Goetia Mantle</back>
<waist>Cognition Belt</waist>
<legs>Teal Slops</legs>
<feet>Yigit Crackows</feet>
<lring>Sorcerer's Ring</lring>
<sub>Bugard Strap +1</sub>
</set>
<set name="HighResist" BaseSet="FullDamage">
<body>Morrigan's robe</body>
<hands>Wzd. Gloves</hands>
<feet>Goliard Clogs</feet>
<neck lock="true">Elemental Torque</neck>
</set>
<set name="DarkMagic">
<head>Walahra Turban</head>
<neck>Dark Torque</neck>
<lear>Magnetic Earring</lear>
<rear>Loquac. Earring</rear>
<body>Goliard Saio</body>
<hands>Sorcerer's Gloves</hands>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Swift Belt</waist>
<legs>Wizard's Tonban</legs>
<feet>Igqira Huaraches</feet>
<lring>Balrahn's Ring</lring>
</set>
<set name="EnfeeblingMagic">
<head>Igqira Tiara</head>
<neck>Enfeebling Torque</neck>
<lear>Magnetic Earring</lear>
<rear>Enfeebling Earring</rear>
<body>Wizard's Coat</body>
<hands>Oracle's Gloves</hands>
<lring>Balrahn's Ring</lring>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Witch sash</waist>
<legs>Igqira Lappa</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="HealingMagic">
<main>Light Staff</main>
<head>Zenith Crown</head>
<neck>Enlightened Chain</neck>
<lear>Loquacious Earring</lear>
<lear>Magnetic Earring</lear>
<body>Goliard Saio</body>
<hands>Sorcerer's Gloves</hands>
<back>Ixion Cape</back>
<waist>Witch Sash</waist>
<legs>Mahatma slops</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="EnhancingMagic">
<body>Goliard Saio</body>
<lear>Magnetic Earring</lear>
</set>
<set name="DivineMagic" />
<set name="Intelligence">
<main lock="yes">Kirin's Pole</main>
<head>Demon Helm +1</head>
<neck>Lemegeton medallion</neck>
<lear>Phantom Earring</lear>
<body>Errant Hpl.</body>
<hands>Mahatma Cuffs</hands>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Witch sash</waist>
<legs>Mahatma Slops</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="Stoneskin">
<main lock="yes">Kirin's Pole</main>
<head>Zenith Crown</head>
<neck>Enlightened Chain</neck>
<lear>Magnetic Earring</lear>
<body>Errant Hpl.</body>
<back>Ixion cape</back>
<waist>Witch Sash</waist>
<legs>Mahatma slops</legs>
<feet>Morrigan's pigaches</feet>
</set>
</group>
</sets>
<rules>
<equip when="Idle|aftercast" set="Standard" />
<equip when="Resting" set="Resting" />
<if Spell="Stun">
<equip set="DarkMagic|FastCast">
<main>$ThunderStaff</main>
</equip>
</if>
<if Spell="Stoneskin">
<equip when="midcast" set="Stoneskin" />
</if>
<else>
<equip Set="FastCast" />
<if Skill="*Magic">
<if Skill="ElementalMagic">
<if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
<equip when="precast|midcast" Set="Intelligence" />
</if>
<else>
<if Target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Long-Bowed Chariot|Long-Armed Chariot|Battleclad Chariot|Armored Chariot|Nuhn|Experimental Lamia|Gotoh Zha the Redolent">
<equip when="precast|midcast" Set="HighResist" />
</if>
<else>
<equip when="precast|midcast" Set="FullDamage">
<main lock="yes">$%SpellElementStaff</main>
</equip>
<if MPPAfterCastLT="50" Advanced="$UggPendant==1">
<equip when="midcast">
<neck lock="yes">Uggalepih Pendant</neck>
</equip>
</if>
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
<if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
<elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
<elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
<elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
<elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
<elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
<elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
<elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
</if>
<if Advanced='("%SpellElement" = "%DayElement") AND "$BLMAF2Pants" = "1"'>
<equip when="midcast">
<legs lock="yes">Sorcerer's Tonban</legs>
</equip>
</if>
</else>
<if advanced='$Ring == 1'>
<if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
<if Advanced='%HP > $%SubJobRingHP'>
<equip set="MinusHP" />
</if>
</if>
<else>
<equip set="MinusHP" />
</else>
<equip when="midcast">
<lring>Sorcerer's Ring</lring>
</equip>
</if>
</else>
</if>
<else>
<equip when="precast|midcast" Set="%Skill" />
</else>
</if>
<if Spell="Sleep II|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @90s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> @15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @60s</command>
<command when="aftercast">wait 45;input /echo [$sleepid:%spell] <%target> @15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
</elseif>
<if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
<command when="midcast">cancel 71</command>
<midcastdelay delay="2.1" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<equip when="midcast">
<main>$%SpellElementStaff</main>
</equip>
</else>
</rules>
</spellcast>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config
RequireVersion="2.22"
/>
<variables>
<var name="sleepid" nooverwrite="true">0</var>
<var name="BLMAF2Pants">1</var>
<var name="Ring">1</var>
<var name="UggPendant">1</var>
<var name="RDMRingHP">640</var>
<var name="WHMRingHP">642</var>
<var name="NINRingHP">642</var>
<var name="IceStaff">Varuna's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="ThunderStaff">Indra's Staff +1</var>
<var name="WaterStaff">Neptune's Staff</var>
<var name="FireStaff">Vulcan's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="LightStaff">Light Staff</var>
<var name="CureStaff">Light Staff</var>
<var name="IceObi">1</var>
<var name="WindObi">Furin Obi</var>
<var name="EarthObi">1</var>
<var name="ThunderObi">1</var>
<var name="WaterObi">Suirin Obi</var>
<var name="FireObi">Karin Obi</var>
<var name="DarkObi">Anrin Obi</var>
<var name="LightObi">Korin Obi</var>
</variables>
<sets>
<group name="BLM" default="yes">
<set name="Standard">
<main>$EarthStaff</main>
<sub>Bugard Strap +1</sub>
<lear>Magnetic Earring</lear>
<rear>Sorcerer's Earring</rear>
<body>Morrigan's robe</body>
<hands>Serpentes Cuffs</hands>
<neck>Orochi nodowa</neck>
<back>Umbra Cape</back>
<waist>Swift Belt</waist>
<legs>Tatsumaki sitagoromo</legs>
</set>
<set name="FastCast">
<lear>Loquac. Earring</lear>
</set>
<set name="Resting" BaseSet="Standard">
<main>$DarkStaff</main>
<sub>Ariesian Grip</sub>
<neck>Beak Necklace +1</neck>
<lear>Magnetic Earring</lear>
<rear>Antivenom Earring</rear>
<body>Errant Hpl.</body>
<hands>Oracle's Gloves</hands>
<rring>Serket Ring</rring>
<waist>Qiqirn Sash +1</waist>
<legs>Oracle's Braconi</legs>
<feet>Goliard Clogs</feet>
<back>Invigorating Cape</back>
<head>Goliard Chapeau</head>
</set>
<set name="MinusHP">
<head>Zenith Crown</head>
<hands>Zenith Mitts</hands>
<body>Flora Cotehardie</body>
<lring>Serket Ring</lring>
<legs>Zenith Slacks</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="FullDamage" BaseSet="Standard">
<head>Demon Helm +1</head>
<neck>Lemegeton medallion</neck>
<lear>Novio Earring</lear>
<rear>Moldavite Earring</rear>
<body>Morrigan's robe</body>
<hands>Vicious Mufflers</hands>
<rring>Snow Ring</rring>
<back>Goetia Mantle</back>
<waist>Cognition Belt</waist>
<legs>Teal Slops</legs>
<feet>Yigit Crackows</feet>
<lring>Sorcerer's Ring</lring>
<sub>Bugard Strap +1</sub>
</set>
<set name="HighResist" BaseSet="FullDamage">
<body>Morrigan's robe</body>
<hands>Wzd. Gloves</hands>
<feet>Goliard Clogs</feet>
<neck lock="true">Elemental Torque</neck>
</set>
<set name="DarkMagic">
<head>Walahra Turban</head>
<neck>Dark Torque</neck>
<lear>Magnetic Earring</lear>
<rear>Loquac. Earring</rear>
<body>Goliard Saio</body>
<hands>Sorcerer's Gloves</hands>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Swift Belt</waist>
<legs>Wizard's Tonban</legs>
<feet>Igqira Huaraches</feet>
<lring>Balrahn's Ring</lring>
</set>
<set name="EnfeeblingMagic">
<head>Igqira Tiara</head>
<neck>Enfeebling Torque</neck>
<lear>Magnetic Earring</lear>
<rear>Enfeebling Earring</rear>
<body>Wizard's Coat</body>
<hands>Oracle's Gloves</hands>
<lring>Balrahn's Ring</lring>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Witch sash</waist>
<legs>Igqira Lappa</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="HealingMagic">
<main>Light Staff</main>
<head>Zenith Crown</head>
<neck>Enlightened Chain</neck>
<lear>Loquacious Earring</lear>
<lear>Magnetic Earring</lear>
<body>Goliard Saio</body>
<hands>Sorcerer's Gloves</hands>
<back>Ixion Cape</back>
<waist>Witch Sash</waist>
<legs>Mahatma slops</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="EnhancingMagic">
<body>Goliard Saio</body>
<lear>Magnetic Earring</lear>
</set>
<set name="DivineMagic" />
<set name="Intelligence">
<main lock="yes">Kirin's Pole</main>
<head>Demon Helm +1</head>
<neck>Lemegeton medallion</neck>
<lear>Phantom Earring</lear>
<body>Errant Hpl.</body>
<hands>Mahatma Cuffs</hands>
<rring>Snow Ring</rring>
<back>Ixion Cape</back>
<waist>Witch sash</waist>
<legs>Mahatma Slops</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="Stoneskin">
<main lock="yes">Kirin's Pole</main>
<head>Zenith Crown</head>
<neck>Enlightened Chain</neck>
<lear>Magnetic Earring</lear>
<body>Errant Hpl.</body>
<back>Ixion cape</back>
<waist>Witch Sash</waist>
<legs>Mahatma slops</legs>
<feet>Morrigan's pigaches</feet>
</set>
</group>
</sets>
<rules>
<equip when="Idle|aftercast" set="Standard" />
<equip when="Resting" set="Resting" />
<if Spell="Stun">
<equip set="DarkMagic|FastCast">
<main>$ThunderStaff</main>
</equip>
</if>
<if Spell="Stoneskin">
<equip when="midcast" set="Stoneskin" />
</if>
<else>
<equip Set="FastCast" />
<if Skill="*Magic">
<if Skill="ElementalMagic">
<if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
<equip when="precast|midcast" Set="Intelligence" />
</if>
<else>
<if Target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Long-Bowed Chariot|Long-Armed Chariot|Battleclad Chariot|Armored Chariot|Nuhn|Experimental Lamia|Gotoh Zha the Redolent">
<equip when="precast|midcast" Set="HighResist" />
</if>
<else>
<equip when="precast|midcast" Set="FullDamage">
<main lock="yes">$%SpellElementStaff</main>
</equip>
<if MPPAfterCastLT="50" Advanced="$UggPendant==1">
<equip when="midcast">
<neck lock="yes">Uggalepih Pendant</neck>
</equip>
</if>
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
<if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
<elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
<elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
<elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
<elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
<elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
<elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
<elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
</if>
<if Advanced='("%SpellElement" = "%DayElement") AND "$BLMAF2Pants" = "1"'>
<equip when="midcast">
<legs lock="yes">Sorcerer's Tonban</legs>
</equip>
</if>
</else>
<if advanced='$Ring == 1'>
<if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
<if Advanced='%HP > $%SubJobRingHP'>
<equip set="MinusHP" />
</if>
</if>
<else>
<equip set="MinusHP" />
</else>
<equip when="midcast">
<lring>Sorcerer's Ring</lring>
</equip>
</if>
</else>
</if>
<else>
<equip when="precast|midcast" Set="%Skill" />
</else>
</if>
<if Spell="Sleep II|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @90s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> @15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 1;input /echo [$sleepid:%spell] <%target> @60s</command>
<command when="aftercast">wait 45;input /echo [$sleepid:%spell] <%target> @15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> @5s;spellcast var dec sleepid;</command>
</elseif>
<if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
<command when="midcast">cancel 71</command>
<midcastdelay delay="2.1" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<equip when="midcast">
<main>$%SpellElementStaff</main>
</equip>
</else>
</rules>
</spellcast>