I have shamelessly stolen Prothescar's Blue Mage XML to finally replace my own outdated one (stolen from someone else years ago). Everything is working perfectly, except for one small thing: If I cast a spell outside of combat, it stays in that set and will not change back to my idle gear. Did I do something to mess it up when I inputted my own gear? I understand computer code about as much as I understand Chinese.
Here is the code; I think the problem is near the bottom(?)
<?xml version="1.0" ?>
<spellcast>
<config debug="false" requiredversion="2.17"/>
<variables>
<var name="DarkObi">1</var>
</variables>
<sets>
<group name="Blue Mage|BLU" default="yes">
<!-- Standard Sets -->
<set name="TP">
<head>Nemetona cap</head>
<neck>Rancor collar</neck>
<rear>Brutal earring</rear>
<lear>Suppanomimi</lear>
<body>Thaumas coat</body>
<hands>Thaumas Gloves</hands>
<lring>Epona's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Twilight belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski Needle</ammo>
</set>
<set name="Idle">
<head>Wivre Hairpin</head>
<neck>Wiglen Gorget</neck>
<lear>Suppanomimi</lear>
<rear>Moonshade Earring</rear>
<body>Mirage Jubbah +2</body>
<hands>Serpentes Cuffs</hands>
<lring>Sheltered Ring</lring>
<rring>Paguroidea Ring</rring>
<back>Shadow Mantle</back>
<waist>Flume belt</waist>
<legs>Crimson Cuisses</legs>
<feet>Serpentes Sabots</feet>
<ammo>Cheruski Needle</ammo>
</set>
<!-- Weaponskill Sets -->
<set name="Chant du Cygne">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Thunder Pearl</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Epona's ring</lring>
<waist>Cuchulain's belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Vorpal Blade">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Expiacion">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Sanguine Blade">
<head>Nemetona Cap</head>
<neck>Stoicheion medal</neck>
<lear>Moldavite Earring</lear>
<rear>Hecate's earring</rear>
<body>Thaumas Coat</body>
<hands>Mavi Bazubands +2</hands>
<lring>Ragas Ring</lring>
<rring>Pyrosoul Ring</rring>
<back>Zaffre Cape</back>
<waist>Warwolf Belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Mavi Basmak +2</feet>
<ammo>Phtm. Tathlum</ammo>
</set>
<set name="Savage Blade">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Requiescat">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Epona's ring</lring>
<waist>Cuchulain's belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Flash Nova">
<head>Thaumas hat</head>
<neck>Stoicheion medal</neck>
<lear>Hecate's Earring</lear>
<lear>Moldavite Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<lring>Pyrosoul Ring</lring>
<rring>Aquasoul Ring</rring>
<back>Hecate's Cape</back>
<waist>Warwolf Belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="True Strike">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<!-- Stat Sets -->
<set name="STR">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="STRDEX">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="STRVIT">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDCures">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Oretania's Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDNukes">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDDebuffs">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre cape</back>
<ammo>Cheruski needle</ammo>
</set>
<!-- Specific Spell Sets -->
<set name="Head Butt">
<head>Mavi kavuk +2</head>
<neck>Rancor collar</neck>
<lear>Loquacious earring</lear>
<body>Magus Jubbah +1</body>
<hands>Enif Manopolas</hands>
<back>Zaffre Cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Basmak +2</feet>
<ammo>Mavi Tathlum</ammo>
</set>
<set name="Charged Whisker">
<head>Ocelomeh headpiece +1</head>
<neck>Stoicheion medal</neck>
<lear>Hecate's earring</lear>
<rear>Moldavite earring</rear>
<body>Morrigan's Robe</body>
<hands>Mavi Bazubands +2</hands>
<rring>Rajas ring</rring>
<lring>Diamond Ring</lring>
<back>Romanus cape</back>
<waist>Cuchulain's belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Mavi basmak +2</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Heavy Strike">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<lear>Suppanomimi</lear>
<rear>Ghillie Earring +1</rear>
<body>Toci's harness</body>
<hands>Myrmex Mittens</hands>
<rring>Rajas ring</rring>
<lring>Vulcan's ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Kacura leggings +1</feet>
<ammo>Mantis eye</ammo>
</set>
<set name="Tourbillion">
<head>Aias bonnet</head>
<neck>Ire torque +1</neck>
<rear>Flame pearl</rear>
<lear>Flame Pearl</lear>
<body>Magus Jubbah +1</body>
<hands>Myrmex mittens</hands>
<rring>Rajas ring</rring>
<lring>Vulcan's ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Kacura leggings +1</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="Reaving Wind">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Mavi mintan +2</body>
<hands>Dusk Gloves +1</hands>
<back>Zaffre Cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Bamask +2</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="White Wind">
<head>Mirage keffiyeh +2</head>
<neck>Grandiose Chain</neck>
<lear>Ethereal earring</lear>
<rear>Bloodgem earring</rear>
<body>Magus Jubbah +1</body>
<hands>Serpentes cuffs</hands>
<back>Oretania's cape</back>
<waist>Cuchulain's belt</waist>
<legs>Enif cosciales</legs>
<feet>Serpentes sabots</feet>
</set>
<set name="Breaths">
<head>Mirage Keffiyeh +2</head>
<neck>Promise Badge</neck>
<lear>Ethereal earring</lear>
<rear>Bloodgem earring</rear>
<body>Morrigan's Robe</body>
<hands>Enif manopolas</hands>
<back>Zaffre cape</back>
<waist>Cuchulain's belt</waist>
<legs>Crimson Cuisses</legs>
<feet>Enif Gambieras</feet>
<ammo>Mavi Tathlum</ammo>
</set>
<set name="Drainkiss">
<head>Mirage Keffiyeh +2</head>
<neck>Jeweled collar</neck>
<lear>Loquacious earring</lear>
<body>Magus jubbah +1</body>
<hands>Mavi bazubands +2</hands>
<back>Zaffre Cape</back>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Thaumas Nails</feet>
</set>
<set name="Occultation">
<head>Ocelomeh headpiece +1</head>
<neck>Mavi scarf</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Mavi bazubands +2</hands>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
<set name="Amorphic Spikes">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<lear>Thunder Pearl</lear>
<rear>Ghillie Earring +1</rear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas Nails</feet>
<ammo>Cheruski Needle</ammo>
</set>
<!-- Buff Sets -->
<set name="Stoneskin">
<head>Thaumas hat</head>
<neck>Stone Gorget</neck>
<body>Thaumas coat</body>
<hands>Mavi Bazubands +2</hands>
<rring>Aquasoul Ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Twilight Belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas Nails</feet>
</set>
<set name="Phalanx">
<head>Ocelomeh headpiece +1</head>
<neck>Mavi scarf</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Mavi bazubands +2</hands>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
<set name="Efflux">
<legs>Mavi Tayt +2</legs>
</set>
<set name="Chain Affinity">
<head>Mavi Kavuk +2</head>
</set>
<set name="Burst Affinity">
<feet>Mavi Basmak +2</feet>
</set>
<!-- Utility Sets -->
<set name="Steps">
<head>Ocelomeh headpiece +1</head>
<neck>Rancor collar</neck>
<lear>Brutal earring</lear>
<rear>Suppanomimi</rear>
<body>Toci's harness</body>
<hands>Dusk Gloves +1</hands>
<lring>Epona's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Tarutaru sash</waist>
<legs>Athos's tights</legs>
<feet>Thaumas boots</feet>
<ammo>Mantis eye</ammo>
</set>
<set name="Magic Accuracy">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Mavi mintan +2</body>
<hands>Symbios Gloves</hands>
<lring>Omega Ring</lring>
<back>Zaffre cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Bamask +2</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="Blue Magic Skill">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Magus Jubbah +1</body>
<hands>Symbios Gloves</hands>
<back>Zaffre cape</back>
<legs>Mavi Tayt +2</legs>
</set>
<set name="Fast Cast">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Witful belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<lear>Loquacious earring</lear>
<back>Swith cape</back>
</set>
<set name="Blue Magic Fast Cast">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Witful belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<lear>Loquacious earring</lear>
<back>Swith cape</back>
</set>
<set name="Max Haste">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Twilight belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
</group>
</sets>
<rules>
<!-- Spell Rules -->
<if spell="Vertical Cleave|Death Scissors|Empty Thrash|Whirl of Rage|Dimensional Death|Quadrastrike|Bloodrake|Tourbillion">
<action type="equip" when="precast" set="STR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Heavy Strike|Bilgestorm">
<action type="equip" when="precast" set="Heavy Strike" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Disseverment|Hysteric Barrage|Frenetic Rip|Seedspray|Vanity Dive|Goblin Rush|Barbed Crescent">
<action type="equip" when="precast" set="STRDEX" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Amorphic Spikes">
<action type="equip" when="precast" set="Amorphic Spikes" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Gates of Hades">
<action type="equip" when="precast" set="Gates of Hades" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Quad. Continuum|Delta Thrust|Cannonball">
<action type="equip" when="precast" set="STR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Benthic Typhoon|Final Sting|Spiral Spin">
<action type="equip" when="precast" set="AGI" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Pollen|Wild Carrot|Magic Fruit|Plenilune Embrace|Healing Breeze|Cure*">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDCures" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sub-zero smash|Filamented Hold|Cimicine Discharge">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDDebuffs" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Mind Blast|Magic Hammer">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDNukes" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Leafstorm|Firespit|Regurgitation|Corrosive Ooze|Acrid Stream|Blazing Bound|Thermal Pulse|Reactor Cool|Plasma Charge|Evryone. Grudge|Water Bomb|Dark Orb|Thunderbolt">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="INT" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Eyes on Me">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="CHR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Head Butt|Sudden Lunge">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Head Butt" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Charged Whisker">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Charged Whisker" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Digest|Blood Saber|Blood Drain|Osmosis|Diamondhide|Metallic Body|O. Counterstance|Mortal Ray">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Blue Magic Skill" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Cold Wave">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Blue Magic Skill" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="MP Drainkiss|Osmosis">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Osmosis" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Occultation|Magic Barrier">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Occultation" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sandspin">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Magic Accuracy" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Triumphant Roar|Cocoon|Dream Flower|Yawn|Blank Gaze|Sheep Song|Soporific|Winds of Promy.|Regeneration|Battery Charge|Actinic Burst|Saline Coat|Demoralizing Roar|Amplification|Warm-Up|Auroral Drape|Animating Wail|Zephyr Mantle|Frightful Roar|Chaotic Eye|Infrasonics|Fantod|Temporal Shift|Barrier Tusk">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Max Haste" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Reaving Wind">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Reaving Wind" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="White Wind">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="White Wind" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Frost Breath|Heat Breath|Magnetite Cloud|Poison Breath|Bad Breath|Hecatomb Wave|Flying Hip press|Thunder Breath|Wind Breath|Vapor Spray">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Breaths" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Weaponskill Rules -->
<if spell="Vorpal Blade">
<action type="equip" when="precast" set="Vorpal Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Chant du Cygne">
<action type="equip" when="precast" set="Chant du Cygne" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Savage Blade">
<action type="equip" when="precast" set="Savage Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Expiacion">
<action type="equip" when="precast" set="Expiacion" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sanguine Blade">
<action type="equip" when="precast" set="Sanguine Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Requiescat">
<action type="equip" when="precast" set="Requiescat" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="True Strike">
<action type="equip" when="precast" set="True Strike" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Judgment|Black Halo|Brainshaker">
<action type="equip" when="precast" set="Black Halo" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Flash Nova">
<action type="equip" when="precast" set="Flash Nova" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Buff Rules -->
<if spell="Efflux">
<action type="equip" when="precast" set="Efflux" />
</if>
<if buffActive="Efflux">
<action type="equip" when="precast" set="Efflux" />
</if>
<if spell="Chain Affinity">
<action type="equip" when="precast" set="Chain Affinity" />
</if>
<if buffActive="Chain Affinity">
<action type="equip" when="precast" set="Chain affinity" />
</if>
<if spell="Burst Affinity">
<action type="equip" when="precast" set="Burst Affinity" />
</if>
<if buffActive="Burst Affinity">
<action type="equip" when="precast" set="Burst Affinity" />
</if>
<if spell="Stoneskin">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Stoneskin" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Utsusemi: Ichi|Utsusemi: Ni|Enfire|Enblizzard|Enaero|Enstone|Enthunder|Enwater|Aquaveil|Blink|Refresh|Haste">
<action type=aftercastdelay delay=".5" />
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Max Haste" />
<action type="equip" when="midcast">
<back>Shadow Mantle</back>
</action>
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Blaze Spikes|Ice Spikes">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="INT" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Phalanx">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Phalanx" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Bar*">
<action type="equip" when="precast" set="Phalanx" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Utility Rules -->
<if spell="Autoset">
<if status="idle">
<action type="equip" when="idle" set="Idle" />
</if>
<elseif status="engaged">
<action type="equip" when="engaged" set="TP" />
</elseif>
<elseif status="resting">
<action type="equip" when="resting" set="hMP" />
</elseif>
</if>
<if spell="*Step|*Flourish">
<action type="equip" when="precast" set="Steps" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Obi Rules -->
<if Spell="Osmosis|Sanguine Blade|Evryone. Grudge|Dark Orb">
<if Advanced='"$DarkObi" = "1" AND "%WeatherElement" = "Dark"'>
<action type="equip" when="midcast">
<back>Twilight cape</back>
<waist>Anrin Obi</waist>
</action>
<action type=equip when=aftercast set="TP" />
</if>
<if Advanced='"$DarkObi" = "1" AND "%DayElement" = "Dark"'>
<action type="equip" when="midcast">
<back>Twilight cape</back>
<waist>Anrin Obi</waist>
<lring>Zodiac Ring</lring>
</action>
<action type=equip when=aftercast set="TP" />
</if>
</if>
</rules>
</spellcast>
<spellcast>
<config debug="false" requiredversion="2.17"/>
<variables>
<var name="DarkObi">1</var>
</variables>
<sets>
<group name="Blue Mage|BLU" default="yes">
<!-- Standard Sets -->
<set name="TP">
<head>Nemetona cap</head>
<neck>Rancor collar</neck>
<rear>Brutal earring</rear>
<lear>Suppanomimi</lear>
<body>Thaumas coat</body>
<hands>Thaumas Gloves</hands>
<lring>Epona's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Twilight belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski Needle</ammo>
</set>
<set name="Idle">
<head>Wivre Hairpin</head>
<neck>Wiglen Gorget</neck>
<lear>Suppanomimi</lear>
<rear>Moonshade Earring</rear>
<body>Mirage Jubbah +2</body>
<hands>Serpentes Cuffs</hands>
<lring>Sheltered Ring</lring>
<rring>Paguroidea Ring</rring>
<back>Shadow Mantle</back>
<waist>Flume belt</waist>
<legs>Crimson Cuisses</legs>
<feet>Serpentes Sabots</feet>
<ammo>Cheruski Needle</ammo>
</set>
<!-- Weaponskill Sets -->
<set name="Chant du Cygne">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Thunder Pearl</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Epona's ring</lring>
<waist>Cuchulain's belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Vorpal Blade">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Expiacion">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Sanguine Blade">
<head>Nemetona Cap</head>
<neck>Stoicheion medal</neck>
<lear>Moldavite Earring</lear>
<rear>Hecate's earring</rear>
<body>Thaumas Coat</body>
<hands>Mavi Bazubands +2</hands>
<lring>Ragas Ring</lring>
<rring>Pyrosoul Ring</rring>
<back>Zaffre Cape</back>
<waist>Warwolf Belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Mavi Basmak +2</feet>
<ammo>Phtm. Tathlum</ammo>
</set>
<set name="Savage Blade">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Requiescat">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Brutal Earring</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Epona's ring</lring>
<waist>Cuchulain's belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Atheling mantle</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="Flash Nova">
<head>Thaumas hat</head>
<neck>Stoicheion medal</neck>
<lear>Hecate's Earring</lear>
<lear>Moldavite Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<lring>Pyrosoul Ring</lring>
<rring>Aquasoul Ring</rring>
<back>Hecate's Cape</back>
<waist>Warwolf Belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="True Strike">
<head>Thaumas Hat</head>
<neck>Ire torque +1</neck>
<rear>Ghillie Earring +1</rear>
<lear>Brutal Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul ring</lring>
<back>Atheling mantle</back>
<waist>Warwolf belt</waist>
<legs>Thaumas kecks</legs>
<feet>Thaumas nails</feet>
<ammo>Cheruski needle</ammo>
</set>
<!-- Stat Sets -->
<set name="STR">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="STRDEX">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="STRVIT">
<head>Thaumas Hat</head>
<neck>Rancor Collar</neck>
<rear>Thunder Pearl</rear>
<lear>Ghillie Earring +1</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDCures">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Oretania's Cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDNukes">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre cape</back>
<ammo>Cheruski needle</ammo>
</set>
<set name="MNDDebuffs">
<head>Thaumas Hat</head>
<rear>Suppanomimi</rear>
<lear>Loquac. Earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Omega ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Witful belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas nails</feet>
<back>Zaffre cape</back>
<ammo>Cheruski needle</ammo>
</set>
<!-- Specific Spell Sets -->
<set name="Head Butt">
<head>Mavi kavuk +2</head>
<neck>Rancor collar</neck>
<lear>Loquacious earring</lear>
<body>Magus Jubbah +1</body>
<hands>Enif Manopolas</hands>
<back>Zaffre Cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Basmak +2</feet>
<ammo>Mavi Tathlum</ammo>
</set>
<set name="Charged Whisker">
<head>Ocelomeh headpiece +1</head>
<neck>Stoicheion medal</neck>
<lear>Hecate's earring</lear>
<rear>Moldavite earring</rear>
<body>Morrigan's Robe</body>
<hands>Mavi Bazubands +2</hands>
<rring>Rajas ring</rring>
<lring>Diamond Ring</lring>
<back>Romanus cape</back>
<waist>Cuchulain's belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Mavi basmak +2</feet>
<ammo>Cheruski needle</ammo>
</set>
<set name="Heavy Strike">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<lear>Suppanomimi</lear>
<rear>Ghillie Earring +1</rear>
<body>Toci's harness</body>
<hands>Myrmex Mittens</hands>
<rring>Rajas ring</rring>
<lring>Vulcan's ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Kacura leggings +1</feet>
<ammo>Mantis eye</ammo>
</set>
<set name="Tourbillion">
<head>Aias bonnet</head>
<neck>Ire torque +1</neck>
<rear>Flame pearl</rear>
<lear>Flame Pearl</lear>
<body>Magus Jubbah +1</body>
<hands>Myrmex mittens</hands>
<rring>Rajas ring</rring>
<lring>Vulcan's ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Kacura leggings +1</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="Reaving Wind">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Mavi mintan +2</body>
<hands>Dusk Gloves +1</hands>
<back>Zaffre Cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Bamask +2</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="White Wind">
<head>Mirage keffiyeh +2</head>
<neck>Grandiose Chain</neck>
<lear>Ethereal earring</lear>
<rear>Bloodgem earring</rear>
<body>Magus Jubbah +1</body>
<hands>Serpentes cuffs</hands>
<back>Oretania's cape</back>
<waist>Cuchulain's belt</waist>
<legs>Enif cosciales</legs>
<feet>Serpentes sabots</feet>
</set>
<set name="Breaths">
<head>Mirage Keffiyeh +2</head>
<neck>Promise Badge</neck>
<lear>Ethereal earring</lear>
<rear>Bloodgem earring</rear>
<body>Morrigan's Robe</body>
<hands>Enif manopolas</hands>
<back>Zaffre cape</back>
<waist>Cuchulain's belt</waist>
<legs>Crimson Cuisses</legs>
<feet>Enif Gambieras</feet>
<ammo>Mavi Tathlum</ammo>
</set>
<set name="Drainkiss">
<head>Mirage Keffiyeh +2</head>
<neck>Jeweled collar</neck>
<lear>Loquacious earring</lear>
<body>Magus jubbah +1</body>
<hands>Mavi bazubands +2</hands>
<back>Zaffre Cape</back>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Thaumas Nails</feet>
</set>
<set name="Occultation">
<head>Ocelomeh headpiece +1</head>
<neck>Mavi scarf</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Mavi bazubands +2</hands>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
<set name="Amorphic Spikes">
<head>Thaumas Hat</head>
<neck>Ire Torque +1</neck>
<lear>Thunder Pearl</lear>
<rear>Ghillie Earring +1</rear>
<body>Thaumas Coat</body>
<hands>Thaumas Gloves</hands>
<rring>Rajas ring</rring>
<lring>Pyrosoul Ring</lring>
<back>Zaffre Cape</back>
<waist>Warwolf belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas Nails</feet>
<ammo>Cheruski Needle</ammo>
</set>
<!-- Buff Sets -->
<set name="Stoneskin">
<head>Thaumas hat</head>
<neck>Stone Gorget</neck>
<body>Thaumas coat</body>
<hands>Mavi Bazubands +2</hands>
<rring>Aquasoul Ring</rring>
<lring>Aquasoul Ring</lring>
<waist>Twilight Belt</waist>
<legs>Thaumas Kecks</legs>
<feet>Thaumas Nails</feet>
</set>
<set name="Phalanx">
<head>Ocelomeh headpiece +1</head>
<neck>Mavi scarf</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Mavi bazubands +2</hands>
<waist>Witful belt</waist>
<legs>Mavi tayt +2</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
<set name="Efflux">
<legs>Mavi Tayt +2</legs>
</set>
<set name="Chain Affinity">
<head>Mavi Kavuk +2</head>
</set>
<set name="Burst Affinity">
<feet>Mavi Basmak +2</feet>
</set>
<!-- Utility Sets -->
<set name="Steps">
<head>Ocelomeh headpiece +1</head>
<neck>Rancor collar</neck>
<lear>Brutal earring</lear>
<rear>Suppanomimi</rear>
<body>Toci's harness</body>
<hands>Dusk Gloves +1</hands>
<lring>Epona's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Tarutaru sash</waist>
<legs>Athos's tights</legs>
<feet>Thaumas boots</feet>
<ammo>Mantis eye</ammo>
</set>
<set name="Magic Accuracy">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Mavi mintan +2</body>
<hands>Symbios Gloves</hands>
<lring>Omega Ring</lring>
<back>Zaffre cape</back>
<legs>Mavi Tayt +2</legs>
<feet>Mavi Bamask +2</feet>
<ammo>Mavi tathlum</ammo>
</set>
<set name="Blue Magic Skill">
<head>Mirage Keffiyeh +2</head>
<neck>Mavi scarf</neck>
<body>Magus Jubbah +1</body>
<hands>Symbios Gloves</hands>
<back>Zaffre cape</back>
<legs>Mavi Tayt +2</legs>
</set>
<set name="Fast Cast">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Witful belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<lear>Loquacious earring</lear>
<back>Swith cape</back>
</set>
<set name="Blue Magic Fast Cast">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Witful belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<lear>Loquacious earring</lear>
<back>Swith cape</back>
</set>
<set name="Max Haste">
<head>Ocelomeh headpiece +1</head>
<neck>Jeweled collar</neck>
<lear>Loquacious earring</lear>
<body>Thaumas Coat</body>
<hands>Thaumas gloves</hands>
<waist>Twilight belt</waist>
<legs>Enif cosciales</legs>
<feet>Enif Gambieras</feet>
<back>Swith cape</back>
</set>
</group>
</sets>
<rules>
<!-- Spell Rules -->
<if spell="Vertical Cleave|Death Scissors|Empty Thrash|Whirl of Rage|Dimensional Death|Quadrastrike|Bloodrake|Tourbillion">
<action type="equip" when="precast" set="STR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Heavy Strike|Bilgestorm">
<action type="equip" when="precast" set="Heavy Strike" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Disseverment|Hysteric Barrage|Frenetic Rip|Seedspray|Vanity Dive|Goblin Rush|Barbed Crescent">
<action type="equip" when="precast" set="STRDEX" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Amorphic Spikes">
<action type="equip" when="precast" set="Amorphic Spikes" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Gates of Hades">
<action type="equip" when="precast" set="Gates of Hades" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Quad. Continuum|Delta Thrust|Cannonball">
<action type="equip" when="precast" set="STR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Benthic Typhoon|Final Sting|Spiral Spin">
<action type="equip" when="precast" set="AGI" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Pollen|Wild Carrot|Magic Fruit|Plenilune Embrace|Healing Breeze|Cure*">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDCures" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sub-zero smash|Filamented Hold|Cimicine Discharge">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDDebuffs" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Mind Blast|Magic Hammer">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="MNDNukes" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Leafstorm|Firespit|Regurgitation|Corrosive Ooze|Acrid Stream|Blazing Bound|Thermal Pulse|Reactor Cool|Plasma Charge|Evryone. Grudge|Water Bomb|Dark Orb|Thunderbolt">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="INT" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Eyes on Me">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="CHR" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Head Butt|Sudden Lunge">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Head Butt" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Charged Whisker">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Charged Whisker" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Digest|Blood Saber|Blood Drain|Osmosis|Diamondhide|Metallic Body|O. Counterstance|Mortal Ray">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Blue Magic Skill" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Cold Wave">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Blue Magic Skill" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="MP Drainkiss|Osmosis">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Osmosis" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Occultation|Magic Barrier">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Occultation" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sandspin">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Magic Accuracy" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Triumphant Roar|Cocoon|Dream Flower|Yawn|Blank Gaze|Sheep Song|Soporific|Winds of Promy.|Regeneration|Battery Charge|Actinic Burst|Saline Coat|Demoralizing Roar|Amplification|Warm-Up|Auroral Drape|Animating Wail|Zephyr Mantle|Frightful Roar|Chaotic Eye|Infrasonics|Fantod|Temporal Shift|Barrier Tusk">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Max Haste" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Reaving Wind">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Reaving Wind" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="White Wind">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="White Wind" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Frost Breath|Heat Breath|Magnetite Cloud|Poison Breath|Bad Breath|Hecatomb Wave|Flying Hip press|Thunder Breath|Wind Breath|Vapor Spray">
<action type="equip" when="precast" set="Blue Magic Fast Cast" />
<action type="equip" when="midcast" set="Breaths" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Weaponskill Rules -->
<if spell="Vorpal Blade">
<action type="equip" when="precast" set="Vorpal Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Chant du Cygne">
<action type="equip" when="precast" set="Chant du Cygne" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Savage Blade">
<action type="equip" when="precast" set="Savage Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Expiacion">
<action type="equip" when="precast" set="Expiacion" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Sanguine Blade">
<action type="equip" when="precast" set="Sanguine Blade" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Requiescat">
<action type="equip" when="precast" set="Requiescat" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="True Strike">
<action type="equip" when="precast" set="True Strike" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Judgment|Black Halo|Brainshaker">
<action type="equip" when="precast" set="Black Halo" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Flash Nova">
<action type="equip" when="precast" set="Flash Nova" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Buff Rules -->
<if spell="Efflux">
<action type="equip" when="precast" set="Efflux" />
</if>
<if buffActive="Efflux">
<action type="equip" when="precast" set="Efflux" />
</if>
<if spell="Chain Affinity">
<action type="equip" when="precast" set="Chain Affinity" />
</if>
<if buffActive="Chain Affinity">
<action type="equip" when="precast" set="Chain affinity" />
</if>
<if spell="Burst Affinity">
<action type="equip" when="precast" set="Burst Affinity" />
</if>
<if buffActive="Burst Affinity">
<action type="equip" when="precast" set="Burst Affinity" />
</if>
<if spell="Stoneskin">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Stoneskin" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Utsusemi: Ichi|Utsusemi: Ni|Enfire|Enblizzard|Enaero|Enstone|Enthunder|Enwater|Aquaveil|Blink|Refresh|Haste">
<action type=aftercastdelay delay=".5" />
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Max Haste" />
<action type="equip" when="midcast">
<back>Shadow Mantle</back>
</action>
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Blaze Spikes|Ice Spikes">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="INT" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Phalanx">
<action type="equip" when="precast" set="Fast Cast" />
<action type="equip" when="midcast" set="Phalanx" />
<action type="equip" when="aftercast" set="TP" />
</if>
<if spell="Bar*">
<action type="equip" when="precast" set="Phalanx" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Utility Rules -->
<if spell="Autoset">
<if status="idle">
<action type="equip" when="idle" set="Idle" />
</if>
<elseif status="engaged">
<action type="equip" when="engaged" set="TP" />
</elseif>
<elseif status="resting">
<action type="equip" when="resting" set="hMP" />
</elseif>
</if>
<if spell="*Step|*Flourish">
<action type="equip" when="precast" set="Steps" />
<action type="equip" when="aftercast" set="TP" />
</if>
<!-- Obi Rules -->
<if Spell="Osmosis|Sanguine Blade|Evryone. Grudge|Dark Orb">
<if Advanced='"$DarkObi" = "1" AND "%WeatherElement" = "Dark"'>
<action type="equip" when="midcast">
<back>Twilight cape</back>
<waist>Anrin Obi</waist>
</action>
<action type=equip when=aftercast set="TP" />
</if>
<if Advanced='"$DarkObi" = "1" AND "%DayElement" = "Dark"'>
<action type="equip" when="midcast">
<back>Twilight cape</back>
<waist>Anrin Obi</waist>
<lring>Zodiac Ring</lring>
</action>
<action type=equip when=aftercast set="TP" />
</if>
</if>
</rules>
</spellcast>
Thanks in advance for any help!
Oh as an aside, I noticed in the raw data I copied from the link that it lists "Thaumas Nails" as "Thaumas Boots" in the script. Is that supposed to be there?
