<?xml version="1.0" ?>
<spellcast>
<config RequireVersion="2.22" />
<variables>
<var name="SleepTimers">1</var>
<var name="IceStaff">Chatoyant Staff</var>
<var name="DarkStaff">Chatoyant Staff</var>
<var name="ThunderStaff">Chatoyant Staff</var>
<var name="WindStaff">Chatoyant Staff</var>
<var name="FireStaff">Chatoyant Staff</var>
<var name="EarthStaff">Chatoyant Staff</var>
<var name="LightStaff">Chatoyant Staff</var>
<var name="WaterStaff">Chatoyant Staff</var>
<var name="Obi-Light">Korin Obi</var>
<var name="Storm-Light">Aurorastorm</var>
<var name="TwilightCape">Twilight Cape</var>
<!-- Toggle Idle Sets. Switch between: Refresh - Standard, Treasures - Assault/Salvage/Nyzul -->
<var name="VAR-IDLE">Refresh</var>
<!-- Variables : LowEva - Standard regular TP set, HighEva - When you need more accuracy -->
<var name="Engaged">LowEva</var>
</variables>
<!-- Gearsets -->
<sets>
<group name="WHM" default="yes">
<!-- Idle Sets -->
<set name="Idle-Refresh">
<main lock="True">Terra's Staff</main>
<head>Orison Cap +2</head>
<body>Clr. Briault +2</body>
<feet>Serpentes Sabots</feet>
<hands>Serpentes Cuffs</hands>
<neck>Twilight Torque</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Stearc Subligar</legs>
<rring>Dark Ring</rring>
<lear>Medicine Earring</lear>
<waist>Slipor Sash</waist>
<rear>Loquac. Earring</rear>
<back>Cheviot Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="Idle-Treasures" BaseSet="Idle-Refresh">
<rring>Balrahn's Ring</rring>
</set>
<set name="Resting">
<main>Chatoyant Staff</main>
<feet>Chelona Boots</feet>
<rear>Magnetic Earring</rear>
</set>
<!-- FastCast Sets -->
<set name="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CurePrecastSCH">
<main>Arka IV</main>
<head>Clr. Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CurePrecastNotSCH">
<main>Arka IV</main>
<head>Clr. Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="HealingMagicPrecast" BaseSet="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="EnhancingPrecast" BaseSet="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands>Carapacho Cuffs</hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist>Siegel Sash</waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="DivinePrecast" BaseSet="Precast">
<main>Arka I</main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<!-- Cures -->
<set name="CureSolace">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Orison Bliaud +2</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CureMisery" BaseSet="CureSolace">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="Curaga" BaseSet="CureMisery">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<!-- Cursna -->
<set name="HealingSkill">
<main></main>
<head></head>
<body>Orison Bliaud +2</body>
<feet></feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Gifted Earring</lear>
<waist></waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo></ammo>
</set>
<!-- Enfeebles -->
<set name="RegularEnfeeble">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Clr. Mitts +2</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring></lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="MndEnfeeble">
<main>Chatoyant Staff</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Swith Cape</back>
<ammo></ammo>
</set>
<!-- Nukes -->
<set name="DivineMagicAcc">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Clr. Mitts +2</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="DivineMagicMAB" BaseSet="DivineMagicAcc">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Eradico Mitts</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Moldavite Earring</lear>
<waist>Searing Sash</waist>
<rear>Hecate's Earring</rear>
<back>Searing Cape</back>
<ammo>Witchstone</ammo>
</set>
<!-- Buffs -->
<set name="EnhancingSkill" >
<main></main>
<head></head>
<body></body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring></lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Stoneskin" BaseSet="EnhancingSkill">
<main></main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Siegel Sash</waist>
<rear>Magnetic Earring</rear>
<back>Swith Cape</back>
<ammo></ammo>
</set>
<set name="Bar" BaseSet="EnhancingSkill">
<main></main>
<head>Orison Cap +2</head>
<body>Orison Bliaud +2</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Orison Mitts +1</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring></lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Regen" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body>Clr. Briault +2</body>
<feet>Blessed Pumps</feet>
<hands>Orison Mitts +1</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Shellra" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring>Sheltered Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Protectra" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring>Sheltered Ring</lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Auspice" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<!-- Dark Magic -->
<set name="DarkMagic" BaseSet="Haste">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Stun" BaseSet="DarkMagic">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Blessed Trousers</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<!-- GearCollector -->
<set name="GC">
<main>Moepapa Mace</main>
<main>Warp Cudgel</main>
<sub>Thuellaic Ecu</sub>
<lear>Reraise Earring</lear>
<rear>Signal Pearl</rear>
<rear>Tactics Pearl</rear>
<back>Nexus Cape</back>
<feet>Desert Boots</feet>
<item>instant warp</item>
<item>instant reraise</item>
<item>instant retrace</item>
<item>echo drops</item>
<waist>Korin Obi</waist>
<back>Twilight Cape</back>
</set>
<!-- Engaged -->
<set name="TPLowEva">
<head>Khthonios Mask</head>
<body>Clr. Briault +2</body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Peacock Charm</neck>
<sub>Pole Grip</sub>
<lring>Tyrant's ring</lring>
<legs>Blessed Trousers</legs>
<rring>Rajas Ring</rring>
<lear>Ghillie Earring +1</lear>
<waist>Goading Belt</waist>
<rear>Brutal Earring</rear>
<back>Rancorous Mantle</back>
<ammo>Bibiki Seashell</ammo>
</set>
<set name="TPHighEva">
</set>
<set name="HexaLowEva">
</set>
<set name="HexaHighEva">
</set>
<set name="RetributionLowEva">
<head>Khthonios Mask</head>
<body>Nefer Kalasiris</body>
<feet>Magavan Clogs</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Peacock Charm</neck>
<sub>Pole Grip</sub>
<lring>Tyrant's ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring>Rajas Ring</rring>
<lear>Ghillie Earring +1</lear>
<waist>Cascade Belt</waist>
<rear>Brutal Earring</rear>
<back>Rancorous Mantle</back>
<ammo>Bibiki Seashell</ammo>
</set>
<set name="RetHighEva">
</set>
<set name="RealmrazerLowEva">
</set>
<set name="RealmrazerHighEva">
</set>
<set name="MysticBoon">
</set>
<set name="RandgrithLowEva">
</set>
<set name="RandgrithHighEva">
</set>
<set name="WeaponskillAcc">
</set>
</group>
</sets>
<rules>
<!-- Ignore strategem if incorrect book is active -->
<if BuffActive="Light Arts|Addendum: White">
<if Spell="Parsimony|Alacrity|Addendum: Black|Manifestation">
<cancelspell />
<return />
</if>
</if>
<elseif BuffActive="Dark Arts|Addendum: Black">
<if Spell="Penury|Celerity|Addendum: White|Accession">
<cancelspell />
<return />
</if>
</elseif>
<!-- Spell targeting rules -->
<if Spell="Warp*|Teleport*|Recall*|Retrace" SpellTargetType="SELF">
<return />
</if>
<if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
<changetarget target="<me>" />
</if>
<if SpellTargetType="NONE" ValidTarget="*stpc*">
<changetarget target="<me>" />
</if>
<!-- Resting -->
<equip when="Resting" set="Resting" />
<!-- Lock Weapon -->
<if status="Engaged">
<lock slot="main|sub" when="All" lock="yes" />
</if>
<if TPGT="30">
<lock slot="main|sub" when="All" lock="yes" />
</if>
<equip when="aftercast|idle" set="Idle-$VAR-IDLE" />
<!-- Subjob/Afflatus Rules -->
<if Skill="HealingMagic">
<if spell="Cure*">
<if subjob="SCH">
<if BuffActive="Afflatus Solace">
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="CureSolace" />
</if>
<else>
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="CureMisery" />
</else>
</if>
<else>
<if BuffActive="Afflatus Solace">
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="CureSolace" />
</if>
<else>
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="CureMisery" />
</else>
</else>
</if>
<elseif spell="Cura*">
<if subjob="SCH">
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="Curaga" />
</if>
<else>
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="Curaga" />
</else>
</elseif>
<elseif spell="Cursna">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="HealingSkill" />
</elseif>
<elseif spell="Esuna">
<if BuffActive="Afflatus Misery">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="Haste" />
</if>
<else>
<changespell spell="Afflatus Misery" />
<command when="aftercast">pause 1;input /ma "Esuna" <me></command>
</else>
</elseif>
<elseif spell="Sacrifice">
<if BuffActive="Afflatus Solace">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="Haste" />
</if>
<else>
<changespell spell="Afflatus Solace" />
<command when="aftercast">pause 1;input /ma "Sacrifice" <me></command>
</else>
</elseif>
<elseif spell="Reraise*">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
<elseif spell="Raise*">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
<elseif spell="Arise">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
</if>
<!-- Enfeebles -->
<elseif Skill="EnfeeblingMagic">
<equip when="precast" set="Precast" />
<if Spell="Slow|Paralyze">
<equip when="midcast" set="MndEnfeeble" />
</if>
<else>
<equip when="midcast" set="RegularEnfeeble" />
</else>
</elseif>
<!-- Divine -->
<elseif Skill="DivineMagic">
<equip when="precast" set="DivinePrecast" />
<if Spell="Flash|Repose">
<equip when="midcast" set="DivineMagicAcc" />
</if>
<elseif Spell="Banish*|Holy*">
<equip when="midcast" set="DivineMagicMAB" />
</elseif>
</elseif>
<!-- Enhancing -->
<elseif Skill="EnhancingMagic">
<equip when="precast" set="EnhancingPrecast" />
<if spell="Stoneskin">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Stoneskin" />
</if>
<elseif spell="Bar*">
<equip when="precast" set="Bar" />
<equip when="midcast" set="Bar" />
</elseif>
<elseif spell="Haste">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Haste" />
</elseif>
<elseif spell="Auspice">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Auspice" />
</elseif>
<elseif spell="Regen*">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Regen" />
</elseif>
<elseif spell="Protectra V">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Protectra" />
</elseif>
<elseif spell="Shellra V">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Shellra" />
</elseif>
<elseif spell="Boost*">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="EnhancingSkill" />
</elseif>
<elseif spell="Aquaveil|Blink|Sneak|Invisible">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Haste" />
</elseif>
<else>
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="EnhancingSkill" />
</else>
</elseif>
<!-- Dark -->
<elseif Skill="DarkMagic">
<equip when="precast" set="Precast" />
<if Spell="Stun">
<equip when="midcast" set="Stun" />
</if>
<else>
<equip when="midcast" set="DarkMagic" />
</else>
</elseif>
<!-- Ninjutsu -->
<elseif Skill="Ninjutsu">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Haste" />
</elseif>
<!-- Engaged rules -->
<if Status="engaged">
<if advanced='"$Engaged"="LowEva"'>
<equip when="engaged|aftercast" set="TPLowEva" />
<elseif spell="Hexa*">
<equip when="precast" set="HexaLowEva" />
</elseif>
<elseif spell="Realmrazer">
<equip when="precast" set="RealmrazerLowEva" />
</elseif>
<elseif spell="Retribution">
<equip when="precast" set="RetributionLowEva" />
</elseif>
<elseif spell="Mystic*">
<equip when="precast" set="Mystic Boon" />
</elseif>
<elseif spell="Randgrith">
<equip when="precast" set="RandgrithLowEva" />
</elseif>
<elseif spell="Judgment">
<equip when="precast" set="WeaponskillAcc" />
</elseif>
</if>
<elseif advanced='"$Engaged"="HighEva"'>
<equip when="engaged|aftercast" set="TPHighEva" />
<elseif spell="Hexa*">
<equip when="precast" set="HexaHighEva" />
</elseif>
<elseif spell="Realmrazer">
<equip when="precast" set="RealmrazerHighEva" />
</elseif>
<elseif spell="Retribution">
<equip when="precast" set="RetHighEva" />
</elseif>
<elseif spell="Mystic*">
<equip when="precast" set="Mystic Boon" />
</elseif>
<elseif spell="Randgrith">
<equip when="precast" set="RandgrithHighEva" />
</elseif>
<elseif spell="Judgment">
<equip when="precast" set="WeaponskillAcc" />
</elseif>
</elseif>
</if>
<!-- Lightsday Twilight/Obi rules -->
<if Element="%DayElement">
<if Spell="Cure*|Curaga*|Cura*">
<if Advanced='"$Obi-%SpellElement"!="0"'>
<equip when="midcast">
<waist>$Obi-%SpellElement</waist>
</equip>
</if>
<if Advanced='"TwilightCape"!="0"'>
<equip when="midcast">
<back>Twilight Cape</back>
</equip>
</if>
</if>
</if>
<elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
<if Advanced='"$Obi-%SpellElement"!="0"'>
<if Spell="Cure*|Cura*">
<equip when="midcast">
<waist>$Obi-%SpellElement</waist>
</equip>
<if Advanced='"TwilightCape"!="0"'>
<equip when="midcast">
<back>Twilight Cape</back>
</equip>
</if>
</if>
</if>
</elseif>
<!-- Sleep timer warnings -->
<if advanced='"$SleepTimers"="1"'>
<if Spell="Sleep II|Repose|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</elseif>
</if>
<!-- Auto cancels -->
<if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
<command when="midcast">cancel 71</command>
<midcastdelay delay="1.8" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<elseif Spell="Stoneskin" BuffActive="Stoneskin">
<command when="midcast">cancel 37</command>
<midcastdelay delay="4.5" />
</elseif>
<elseif Spell="Blink" BuffActive="Blink">
<command when="midcast">cancel 36</command>
<midcastdelay delay="4.0" />
</elseif>
<equip when="precast">
<main>$%SpellElementStaff</main>
</equip>
</rules>
</spellcast>
<spellcast>
<config RequireVersion="2.22" />
<variables>
<var name="SleepTimers">1</var>
<var name="IceStaff">Chatoyant Staff</var>
<var name="DarkStaff">Chatoyant Staff</var>
<var name="ThunderStaff">Chatoyant Staff</var>
<var name="WindStaff">Chatoyant Staff</var>
<var name="FireStaff">Chatoyant Staff</var>
<var name="EarthStaff">Chatoyant Staff</var>
<var name="LightStaff">Chatoyant Staff</var>
<var name="WaterStaff">Chatoyant Staff</var>
<var name="Obi-Light">Korin Obi</var>
<var name="Storm-Light">Aurorastorm</var>
<var name="TwilightCape">Twilight Cape</var>
<!-- Toggle Idle Sets. Switch between: Refresh - Standard, Treasures - Assault/Salvage/Nyzul -->
<var name="VAR-IDLE">Refresh</var>
<!-- Variables : LowEva - Standard regular TP set, HighEva - When you need more accuracy -->
<var name="Engaged">LowEva</var>
</variables>
<!-- Gearsets -->
<sets>
<group name="WHM" default="yes">
<!-- Idle Sets -->
<set name="Idle-Refresh">
<main lock="True">Terra's Staff</main>
<head>Orison Cap +2</head>
<body>Clr. Briault +2</body>
<feet>Serpentes Sabots</feet>
<hands>Serpentes Cuffs</hands>
<neck>Twilight Torque</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Stearc Subligar</legs>
<rring>Dark Ring</rring>
<lear>Medicine Earring</lear>
<waist>Slipor Sash</waist>
<rear>Loquac. Earring</rear>
<back>Cheviot Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="Idle-Treasures" BaseSet="Idle-Refresh">
<rring>Balrahn's Ring</rring>
</set>
<set name="Resting">
<main>Chatoyant Staff</main>
<feet>Chelona Boots</feet>
<rear>Magnetic Earring</rear>
</set>
<!-- FastCast Sets -->
<set name="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CurePrecastSCH">
<main>Arka IV</main>
<head>Clr. Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CurePrecastNotSCH">
<main>Arka IV</main>
<head>Clr. Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="HealingMagicPrecast" BaseSet="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="EnhancingPrecast" BaseSet="Precast">
<main></main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands>Carapacho Cuffs</hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist>Siegel Sash</waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="DivinePrecast" BaseSet="Precast">
<main>Arka I</main>
<head></head>
<body></body>
<feet>Chelona Boots</feet>
<hands></hands>
<neck>Orison Locket</neck>
<sub></sub>
<lring>Prolix Ring</lring>
<legs></legs>
<rring></rring>
<lear></lear>
<waist></waist>
<rear>Loquac. Earring</rear>
<back>Swith Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<!-- Cures -->
<set name="CureSolace">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Orison Bliaud +2</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="CureMisery" BaseSet="CureSolace">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<set name="Curaga" BaseSet="CureMisery">
<main>Arka IV</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Orsn. pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Roundel Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo>Incantor Stone</ammo>
</set>
<!-- Cursna -->
<set name="HealingSkill">
<main></main>
<head></head>
<body>Orison Bliaud +2</body>
<feet></feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Ephedra Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring>Sirona's Ring</rring>
<lear>Gifted Earring</lear>
<waist></waist>
<rear>Magnetic Earring</rear>
<back>Tempered Cape</back>
<ammo></ammo>
</set>
<!-- Enfeebles -->
<set name="RegularEnfeeble">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Clr. Mitts +2</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring></lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="MndEnfeeble">
<main>Chatoyant Staff</main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back>Swith Cape</back>
<ammo></ammo>
</set>
<!-- Nukes -->
<set name="DivineMagicAcc">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Clr. Mitts +2</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="DivineMagicMAB" BaseSet="DivineMagicAcc">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body>Magavan Frock</body>
<feet>Magavan Clogs</feet>
<hands>Eradico Mitts</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Moldavite Earring</lear>
<waist>Searing Sash</waist>
<rear>Hecate's Earring</rear>
<back>Searing Cape</back>
<ammo>Witchstone</ammo>
</set>
<!-- Buffs -->
<set name="EnhancingSkill" >
<main></main>
<head></head>
<body></body>
<feet>Orsn. Duckbills +2</feet>
<hands>Augur's Gloves</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring></lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Stoneskin" BaseSet="EnhancingSkill">
<main></main>
<head>Orison Cap +2</head>
<body>Nefer Kalasiris</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring>Aquasoul Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Siegel Sash</waist>
<rear>Magnetic Earring</rear>
<back>Swith Cape</back>
<ammo></ammo>
</set>
<set name="Bar" BaseSet="EnhancingSkill">
<main></main>
<head>Orison Cap +2</head>
<body>Orison Bliaud +2</body>
<feet>Orsn. Duckbills +2</feet>
<hands>Orison Mitts +1</hands>
<neck>Colossus's Torque</neck>
<sub></sub>
<lring></lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Cascade Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Regen" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body>Clr. Briault +2</body>
<feet>Blessed Pumps</feet>
<hands>Orison Mitts +1</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Shellra" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring>Sheltered Ring</lring>
<legs>Clr. Pantaln. +2</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Protectra" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring>Sheltered Ring</lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Auspice" BaseSet="Haste">
<main></main>
<head>Zelus Tiara</head>
<body></body>
<feet>Orsn. Duckbills +2</feet>
<hands>Iuvenalis Mittens</hands>
<neck></neck>
<sub></sub>
<lring></lring>
<legs>Blessed Trousers</legs>
<rring></rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<!-- Dark Magic -->
<set name="DarkMagic" BaseSet="Haste">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Teal Slops</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<set name="Stun" BaseSet="DarkMagic">
<main>Chatoyant Staff</main>
<head>Nefer Khat</head>
<body></body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Stoicheion Medal</neck>
<sub></sub>
<lring>Dark Ring</lring>
<legs>Blessed Trousers</legs>
<rring>Balrahn's Ring</rring>
<lear>Gifted Earring</lear>
<waist>Goading Belt</waist>
<rear>Magnetic Earring</rear>
<back></back>
<ammo></ammo>
</set>
<!-- GearCollector -->
<set name="GC">
<main>Moepapa Mace</main>
<main>Warp Cudgel</main>
<sub>Thuellaic Ecu</sub>
<lear>Reraise Earring</lear>
<rear>Signal Pearl</rear>
<rear>Tactics Pearl</rear>
<back>Nexus Cape</back>
<feet>Desert Boots</feet>
<item>instant warp</item>
<item>instant reraise</item>
<item>instant retrace</item>
<item>echo drops</item>
<waist>Korin Obi</waist>
<back>Twilight Cape</back>
</set>
<!-- Engaged -->
<set name="TPLowEva">
<head>Khthonios Mask</head>
<body>Clr. Briault +2</body>
<feet>Blessed Pumps</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Peacock Charm</neck>
<sub>Pole Grip</sub>
<lring>Tyrant's ring</lring>
<legs>Blessed Trousers</legs>
<rring>Rajas Ring</rring>
<lear>Ghillie Earring +1</lear>
<waist>Goading Belt</waist>
<rear>Brutal Earring</rear>
<back>Rancorous Mantle</back>
<ammo>Bibiki Seashell</ammo>
</set>
<set name="TPHighEva">
</set>
<set name="HexaLowEva">
</set>
<set name="HexaHighEva">
</set>
<set name="RetributionLowEva">
<head>Khthonios Mask</head>
<body>Nefer Kalasiris</body>
<feet>Magavan Clogs</feet>
<hands>Iuvenalis Mittens</hands>
<neck>Peacock Charm</neck>
<sub>Pole Grip</sub>
<lring>Tyrant's ring</lring>
<legs>Orsn. Pantaln. +2</legs>
<rring>Rajas Ring</rring>
<lear>Ghillie Earring +1</lear>
<waist>Cascade Belt</waist>
<rear>Brutal Earring</rear>
<back>Rancorous Mantle</back>
<ammo>Bibiki Seashell</ammo>
</set>
<set name="RetHighEva">
</set>
<set name="RealmrazerLowEva">
</set>
<set name="RealmrazerHighEva">
</set>
<set name="MysticBoon">
</set>
<set name="RandgrithLowEva">
</set>
<set name="RandgrithHighEva">
</set>
<set name="WeaponskillAcc">
</set>
</group>
</sets>
<rules>
<!-- Ignore strategem if incorrect book is active -->
<if BuffActive="Light Arts|Addendum: White">
<if Spell="Parsimony|Alacrity|Addendum: Black|Manifestation">
<cancelspell />
<return />
</if>
</if>
<elseif BuffActive="Dark Arts|Addendum: Black">
<if Spell="Penury|Celerity|Addendum: White|Accession">
<cancelspell />
<return />
</if>
</elseif>
<!-- Spell targeting rules -->
<if Spell="Warp*|Teleport*|Recall*|Retrace" SpellTargetType="SELF">
<return />
</if>
<if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
<changetarget target="<me>" />
</if>
<if SpellTargetType="NONE" ValidTarget="*stpc*">
<changetarget target="<me>" />
</if>
<!-- Resting -->
<equip when="Resting" set="Resting" />
<!-- Lock Weapon -->
<if status="Engaged">
<lock slot="main|sub" when="All" lock="yes" />
</if>
<if TPGT="30">
<lock slot="main|sub" when="All" lock="yes" />
</if>
<equip when="aftercast|idle" set="Idle-$VAR-IDLE" />
<!-- Subjob/Afflatus Rules -->
<if Skill="HealingMagic">
<if spell="Cure*">
<if subjob="SCH">
<if BuffActive="Afflatus Solace">
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="CureSolace" />
</if>
<else>
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="CureMisery" />
</else>
</if>
<else>
<if BuffActive="Afflatus Solace">
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="CureSolace" />
</if>
<else>
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="CureMisery" />
</else>
</else>
</if>
<elseif spell="Cura*">
<if subjob="SCH">
<equip when="precast" set="CurePrecastSCH" />
<equip when="midcast" set="Curaga" />
</if>
<else>
<equip when="precast" set="CurePrecastNotSCH" />
<equip when="midcast" set="Curaga" />
</else>
</elseif>
<elseif spell="Cursna">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="HealingSkill" />
</elseif>
<elseif spell="Esuna">
<if BuffActive="Afflatus Misery">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="Haste" />
</if>
<else>
<changespell spell="Afflatus Misery" />
<command when="aftercast">pause 1;input /ma "Esuna" <me></command>
</else>
</elseif>
<elseif spell="Sacrifice">
<if BuffActive="Afflatus Solace">
<equip when="precast" set="HealingMagicPrecast" />
<equip when="midcast" set="Haste" />
</if>
<else>
<changespell spell="Afflatus Solace" />
<command when="aftercast">pause 1;input /ma "Sacrifice" <me></command>
</else>
</elseif>
<elseif spell="Reraise*">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
<elseif spell="Raise*">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
<elseif spell="Arise">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Precast" />
</elseif>
</if>
<!-- Enfeebles -->
<elseif Skill="EnfeeblingMagic">
<equip when="precast" set="Precast" />
<if Spell="Slow|Paralyze">
<equip when="midcast" set="MndEnfeeble" />
</if>
<else>
<equip when="midcast" set="RegularEnfeeble" />
</else>
</elseif>
<!-- Divine -->
<elseif Skill="DivineMagic">
<equip when="precast" set="DivinePrecast" />
<if Spell="Flash|Repose">
<equip when="midcast" set="DivineMagicAcc" />
</if>
<elseif Spell="Banish*|Holy*">
<equip when="midcast" set="DivineMagicMAB" />
</elseif>
</elseif>
<!-- Enhancing -->
<elseif Skill="EnhancingMagic">
<equip when="precast" set="EnhancingPrecast" />
<if spell="Stoneskin">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Stoneskin" />
</if>
<elseif spell="Bar*">
<equip when="precast" set="Bar" />
<equip when="midcast" set="Bar" />
</elseif>
<elseif spell="Haste">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Haste" />
</elseif>
<elseif spell="Auspice">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Auspice" />
</elseif>
<elseif spell="Regen*">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Regen" />
</elseif>
<elseif spell="Protectra V">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Protectra" />
</elseif>
<elseif spell="Shellra V">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Shellra" />
</elseif>
<elseif spell="Boost*">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="EnhancingSkill" />
</elseif>
<elseif spell="Aquaveil|Blink|Sneak|Invisible">
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="Haste" />
</elseif>
<else>
<equip when="precast" set="EnhancingPrecast" />
<equip when="midcast" set="EnhancingSkill" />
</else>
</elseif>
<!-- Dark -->
<elseif Skill="DarkMagic">
<equip when="precast" set="Precast" />
<if Spell="Stun">
<equip when="midcast" set="Stun" />
</if>
<else>
<equip when="midcast" set="DarkMagic" />
</else>
</elseif>
<!-- Ninjutsu -->
<elseif Skill="Ninjutsu">
<equip when="precast" set="Precast" />
<equip when="midcast" set="Haste" />
</elseif>
<!-- Engaged rules -->
<if Status="engaged">
<if advanced='"$Engaged"="LowEva"'>
<equip when="engaged|aftercast" set="TPLowEva" />
<elseif spell="Hexa*">
<equip when="precast" set="HexaLowEva" />
</elseif>
<elseif spell="Realmrazer">
<equip when="precast" set="RealmrazerLowEva" />
</elseif>
<elseif spell="Retribution">
<equip when="precast" set="RetributionLowEva" />
</elseif>
<elseif spell="Mystic*">
<equip when="precast" set="Mystic Boon" />
</elseif>
<elseif spell="Randgrith">
<equip when="precast" set="RandgrithLowEva" />
</elseif>
<elseif spell="Judgment">
<equip when="precast" set="WeaponskillAcc" />
</elseif>
</if>
<elseif advanced='"$Engaged"="HighEva"'>
<equip when="engaged|aftercast" set="TPHighEva" />
<elseif spell="Hexa*">
<equip when="precast" set="HexaHighEva" />
</elseif>
<elseif spell="Realmrazer">
<equip when="precast" set="RealmrazerHighEva" />
</elseif>
<elseif spell="Retribution">
<equip when="precast" set="RetHighEva" />
</elseif>
<elseif spell="Mystic*">
<equip when="precast" set="Mystic Boon" />
</elseif>
<elseif spell="Randgrith">
<equip when="precast" set="RandgrithHighEva" />
</elseif>
<elseif spell="Judgment">
<equip when="precast" set="WeaponskillAcc" />
</elseif>
</elseif>
</if>
<!-- Lightsday Twilight/Obi rules -->
<if Element="%DayElement">
<if Spell="Cure*|Curaga*|Cura*">
<if Advanced='"$Obi-%SpellElement"!="0"'>
<equip when="midcast">
<waist>$Obi-%SpellElement</waist>
</equip>
</if>
<if Advanced='"TwilightCape"!="0"'>
<equip when="midcast">
<back>Twilight Cape</back>
</equip>
</if>
</if>
</if>
<elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
<if Advanced='"$Obi-%SpellElement"!="0"'>
<if Spell="Cure*|Cura*">
<equip when="midcast">
<waist>$Obi-%SpellElement</waist>
</equip>
<if Advanced='"TwilightCape"!="0"'>
<equip when="midcast">
<back>Twilight Cape</back>
</equip>
</if>
</if>
</if>
</elseif>
<!-- Sleep timer warnings -->
<if advanced='"$SleepTimers"="1"'>
<if Spell="Sleep II|Repose|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</elseif>
</if>
<!-- Auto cancels -->
<if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
<command when="midcast">cancel 71</command>
<midcastdelay delay="1.8" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<elseif Spell="Stoneskin" BuffActive="Stoneskin">
<command when="midcast">cancel 37</command>
<midcastdelay delay="4.5" />
</elseif>
<elseif Spell="Blink" BuffActive="Blink">
<command when="midcast">cancel 36</command>
<midcastdelay delay="4.0" />
</elseif>
<equip when="precast">
<main>$%SpellElementStaff</main>
</equip>
</rules>
</spellcast>
Apologies in advance for no indentions, another problem I'm facing as I copy/paste lol, I did bold the parts I believed to be important to try and make them easier to find. If someone could help it'd be greatly appreciated