I've gotten better at this gig, so here it is, all complicated-like! (If you find an error or want something added, edit in a comment at the bottom and I'll get to it. Or just say hi!)
I wouldn't recommend using anyone's template without reading it first. This is because each XML is tailored to someone's own set of logic and assumptions. For the longest time, I couldn't be bothered to calculate Stoneskin amounts, now this is tailored to conserve roughly 100 MP that I was basically throwing out the window while achieving a 350 SS. As I progress I will basically be turning this into an altar to hume RDM tiers, borders and bounds. As such there may/will be a few changes you'd like to make.
All that business said, this won't explode when you turn it on (assuming its turned on correctly). It's a pain to alter all the sets but after that this baby will:
Put on your rest set when you /heal, and swap into Errant after 15s
Swap to an idle set
Equip DD gear (new: based upon SJ)
Swap to Fastcast precast (new: doesn't proc on JAs)
Potency sets for Slow, Paralyze, Blind
Potent accuracy for Slow II, Paralyze II, Blind II
Accuracy for all other enfeebs
Skill based equip swaps (Dark, Healing…)
Auto-equip the right stave (CONFIGURE)
Skulker's Cape support
Assumes that typed spells like ”/ma slow” are to be <stnpc> (will catch “enemy” PCs)
Assumes that typed spells like ”/ma stoneskin” are to be <stme> (if that command existed)
Assumes that spells like ”/ma cure” that can go either way are “st”
Gives reminders for Sleep/Sleep II/Sleepga mobs (dont spam your sleep macro or it will get confusing)
Phalanx II reminders
Auto-cancel Sneak, Blink, Stoneskin, Shadows for Utsusemi: Ichi
Stoneskin set
Composure reminder for Refresh and Haste (had all buffs but it became spam more than help)
Obi Swaps
Fencer's Ring ~_~
Puts your standing gear back on after all those spells!
<?xml version="1.0" ?>
<spellcast>
<config HideErrors="False" Debug="True" />
<variables>
<var name="IceStaff">Aquilo's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="FireStaff">Vulcan's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="LightStaff">Apollo's Staff</var>
<var name="WaterStaff">Neptune's Staff</var>
<var Name="EarthObi">Dorin Obi</var>
<var Name="ThunderObi">Rairin Obi</var>
<var Name="IceObi">Hyorin Obi</var>
<var Name="LightObi">Korin Obi</var>
<var Name="DarkObi">Anrin Obi</var>
</variables>
<sets>
<group name="Main" default="yes" subjob="WHM,BLM,SMN">
<set name="Unknown">
<sub>Nms. Shield +1</sub>
<lring>Fencer's Ring</lring>
<neck>Uggalepih Pendant</neck>
<main>Mythic Wand +1</main>
<main>Fourth Mace</main>
<main>Virtue Sword</main>
<item>Vrt, Stone Pouch</item>
<back>Skulker's Cape</back>
<sub>Bugard Strap +1</sub>
<item>4Leaf Mandra Bud</item>
<main>Vulcan's Staff</main>
<main>Pluto's Staff</main>
<main>Apollo's Staff</main>
<main>Neptune's Staff</main>
<main>Jupiter's Staff</main>
<main>Auster's Staff</main>
<main>Aquilo's Staff</main>
</set>
<set name="idle">
<sub>Raptor Strap +1</sub>
<ammo>Hedgehog Bomb</ammo>
<neck>Beak Necklace +1</neck>
<rear>Insomnia Earring</rear>
<lring>Tamas Ring</lring>
<lear>Loquac. Earring</lear>
<body>Vermillion Cloak</body>
<hands>Zenith Mitts</hands>
<rring>Serket Ring</rring>
<lring>Tamas Ring</lring>
<back>Intensifying Cape</back>
<waist>Hierarch Belt</waist>
<legs>Crimson Cuisses</legs>
<feet>Cobra Crackows</feet>
</set>
<set name="DB">
<ammo>Tiphia Sting</ammo>
<head>Goliard Chapeau</head>
<neck>Fortitude Torque</neck>
<lear>Loquacious Earring</lear>
<rear>Suppanomimi</rear>
<body>Scorpion Harness</body>
<hands>Dvt. Mitts +1</hands>
<lring>Tamas Ring</lring>
<rring>Woodsman Ring</rring>
<back>Amemet Mantle +1</back>
<waist>Penitent's Rope</waist>
<legs>Zenith Slacks</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="rest" BaseSet="idle">
<rear>Antivenom Earring</rear>
<sub>Ariesian Grip</sub>
<lear>Relaxing Earring</lear>
<waist>Qiqirn Sash +1</waist>
<main>Pluto's Staff</main>
<back>Invigorating Cape</back>
<legs>Baron's Slops</legs>
</set>
<set name="Fastcast">
<head>Wlk. Chapeau +1</head>
<lear>Loquac. Earring</lear>
<body>Warlock's Tabard</body>
</set>
<set name="Lightfeebling">
<head>Goliard Chapeau</head>
<neck>Spider Torque</neck>
<body>Warlock's Tabard</body>
<hands>Dvt. Mitts +1</hands>
<rring>Sapphire Ring</rring>
<lring>Tamas Ring</lring>
<back>Altruistic Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="Blackfeebling">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<neck>Spider Torque</neck>
<body>Warlock's Tabard</body>
<hands>Marine M Gloves</hands>
<rring>Diamond Ring</rring>
<lring>Tamas Ring</lring>
<back>Altruistic Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Wise Pigaches</feet>
</set>
<set name="SS">
<ammo>Hedgehog Bomb</ammo>
<head>Zenith Crown</head>
<neck>Beak Necklace +1</neck>
<body>Warlock's Tabard</body>
<hands>Marine M Gloves</hands>
<lring>Tamas Ring</lring>
<rring>Serket Ring</rring>
<back>Prism Cape</back>
<waist>Hierarch Belt</waist>
<legs>Zenith Slacks</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="POT">
<head>Goliard Chapeau</head>
<neck>Promise Badge</neck>
<body>Errant Hpl.</body>
<hands>Marine M Gloves</hands>
<rring>Sapphire Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="Nuke">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<rear>Moldavite Earring</rear>
<body>Errant Hpl.</body>
<rring>Diamond Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<neck>Elemental Torque</neck>
<waist>Penitent's Rope</waist>
<hands>Zenith Mitts</hands>
<legs>Duelist's Tights</legs>
<feet>Cobra Crackows</feet>
</set>
<set name="Enhance">
<neck>Enhancing Torque</neck>
<hands>Duelist's Gloves</hands>
<legs>Warlock's Tights</legs>
<body>Glamor Jupon</body>
</set>
<set name="Dark">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<body>Errant Hpl.</body>
<hands>Crimson Fng. Gnt.</hands>
<rring>Diamond Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Wise Pigaches</feet>
<neck>Dark Torque</neck>
<rear>Moldavite Earring</rear>
</set>
<set name="Ability" />
<set name="melee">
<main>Justice Sword</main>
<neck>Fortitude Torque</neck>
<head>Walahra Turban</head>
<lear>Novia Earring</lear>
<rear>Suppanomimi</rear>
<hands>Dusk Gloves</hands>
<back>Amemet Mantle +1</back>
<waist>Swift Belt</waist>
<legs>Duelist's Tights</legs>
<feet>Dusk Ledelsens</feet>
<ammo>Virtue Stone</ammo>
<rring>Woodsman Ring</rring>
<body>Scorpion Harness</body>
<sub>Joyeuse</sub>
</set>
<set name="mmelee">
<main>Joyeuse</main>
<sub>Genbu's Shield</sub>
<neck>Fortitude Torque</neck>
<head>Walahra Turban</head>
<lear>Novia Earring</lear>
<rear>Suppanomimi</rear>
<body>Scorpion Harness</body>
<hands>Dusk Gloves</hands>
<back>Amemet Mantle +1</back>
<waist>Swift Belt</waist>
<legs>Duelist's Tights</legs>
<feet>Dusk Ledelsens</feet>
<lring>Tamas Ring</lring>
<rring>Woodsman Ring</rring>
</set>
<set name="cure">
<head>Goliard Chapeau</head>
<neck>Promise Badge</neck>
<body>Errant Hpl.</body>
<rear>Novia Earring</rear>
<hands>Marine M Gloves</hands>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Zenith Slacks</legs>
<feet>Mahatma Pigaches</feet>
</set>
<set name="haste">
<head>Wlk. Chapeau +1</head>
<body>Warlock's Tabard</body>
<waist>Swift Belt</waist>
<hands>Dusk Gloves</hands>
<feet>Dusk Ledelsens</feet>
</set>
<set name="Aspir">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<body>Errant Hpl.</body>
<hands>Crimson Fng. Gnt.</hands>
<rring>Serket Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Wise Pigaches</feet>
<neck>Dark Torque</neck>
<rear>Moldavite Earring</rear>
</set>
<set name="Stun">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<body>Errant Hpl.</body>
<hands>Crimson Fng. Gnt.</hands>
<rring>Serket Ring</rring>
<lring>Tamas Ring</lring>
<rear>Novia Earring</rear>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Mahatma Pigaches</feet>
<neck>Dark Torque</neck>
<rear>Moldavite Earring</rear>
</set>
<set name="Divine">
<head>Goliard Chapeau</head>
<neck>Promise Badge</neck>
<body>Errant Hpl.</body>
<hands>Marine M Gloves</hands>
<rring>Sapphire Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Mahatma Pigaches</feet>
<rear>Moldavite Earring</rear>
</set>
<set name="INT">
<ammo>Phtm. Tathlum</ammo>
<head>Wlk. Chapeau +1</head>
<body>Errant Hpl.</body>
<hands>Marine M Gloves</hands>
<rring>Diamond Ring</rring>
<lring>Tamas Ring</lring>
<back>Prism Cape</back>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Wise Pigaches</feet>
<rear>Moldavite Earring</rear>
</set>
</group>
</sets>
<rules>
<if spell="Dia*">
<if notstatus="engaged">
<action type="equip" when="midcast">
<main>Fourth Mace</main>
<sub>Genbu's Shield</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
</if>
<if spell="Cur*">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Cure" />
<action type="equip" when="midcast">
<main>Apollo's Staff</main>
<sub>Raptor Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Cure" />
</if>
</if>
<if spell="Ston*|Wate*|Aer*|Fir*|Bliz*|Thun*">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Nuke" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Nuke" />
</if>
</if>
<if spell="Barsto*|Barwate*|Barae*|Barfi*|Barbli*|Barthu*">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Enhance" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Raptor Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Enhance" />
</if>
</if>
<if spell="Paralyze|Slow">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="POT" />
<action type="equip" when="midcast">
<main>Mythic Wand +1</main>
<sub>Nms. Shield +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="POT" />
</if>
</if>
<if spell="Paralyze II|Slow II|Silence">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Lightfeebling" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Raptor Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Lightfeebling" />
</if>
</if>
<if spell="Bio*|Drain">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Dark" />
<action type="equip" when="midcast">
<main>Pluto's Staff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Dark" />
</if>
</if>
<if spell="Aquaveil|En*|*Spikes|Phal*">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Enhance" />
<action type="equip" when="midcast">
<main>Fourth Mace</main>
<sub>Genbu's Shield</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Enhance" />
</if>
</if>
<if spell="Gravity|Sleep*|Dispel|Bind|Poison*|Blind">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Blackfeebling" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Blackfeebling" />
</if>
</if>
<if spell="Stoneskin">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="" />
<action type="equip" when="midcast">
<main>Fourth Mace</main>
<sub>Genbu's Shield</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="" />
</if>
</if>
<if spell="Refresh|Haste|Erase">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast">
<main>Fourth Mace</main>
<sub>Genbu's Shield</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
</if>
</if>
<if spell="Aspir">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Aspir" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Aspir" />
</if>
</if>
<if spell="Shock|Frost|Burn|Rasp|Drown|Choke">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="INT" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="INT" />
</if>
</if>
<if spell="Stun">
<if notstatus="engaged">
<action type="equip" when="precast" set="stun" />
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
<sub>Bugard Strap +1</sub>
</action>
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="stun" />
</if>
</if>
<if spell="Utsusemi*">
<if notstatus="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Haste" />
<action type="equip" when="aftercast" set="idle" />
</if>
<if status="engaged">
<action type="equip" when="precast" set="fastcast" />
<action type="equip" when="midcast" set="Haste" />
</if>
</if>
<if spell="Ability" />
<if ValidTarget="Self">
<action type="DefaultTarget" target="<me>" />
</if>
<if ValidTarget="Enemy">
<action type="DefaultTarget" target="<stnpc>" />
</if>
<elseif ValidTarget="*Enemy*|Unknown">
<action type="DefaultTarget" target="<st>" />
</elseif>
<else>
<action type="DefaultTarget" target="<stpc>" />
</else>
<if Spell="Sleep II">
<action type="command" when="aftercast">spellcast var inc sleepid;wait 4; /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$sleepid:%spell] <%target> Wearing off in 45s</action>
<action type="command" when="aftercast">wait 75;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$sleepid:%spell] <%target> Wearing off in 15s</action>
<action type="command" when="aftercast">wait 85;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</action>
</if>
<elseif Spell="Sleep|Sleepga">
<action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$sleepid:%spell] <%target> Wearing off in 15s</action>
<action type="command" when="aftercast">wait 55;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</action>
</elseif>
<if Spell="Phalanx II">
<action type="command" when="aftercast">spellcast var inc phalid;wait 0200;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$phalid:%spell] <%target> Wearing off in 10s</action>
</if>
<if Spell="Bio III">
<action type="command" when="aftercast">spellcast var inc phalid;wait 0110;input /echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[$phalid:%spell] <%target> Wearing off in 10s</action>
</if>
<if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTargetName"="%PlayerName"'>
<action type="command" when="midcast">cancel 71</action>
<action type="midcastdelay" delay="2" />
</if>
<if Spell="Sneak|Invisible|Deodorize">
<action type="equip" when="midcast">
<back>Skulker's Cape</back>
</action>
</if>
<elseif Spell="Stoneskin">
<action type="midcastdelay" delay="3" />
<action type="equip" when="midcast" set="SS" />
<action type="command" when="midcast">cancel 37</action>
</elseif>
<elseif Spell="Blink">
<action type="command" when="midcast">cancel 36</action>
<action type="midcastdelay" delay="3" />
</elseif>
<elseif spell="Utsusemi: Ichi">
<action type="midcastdelay" delay="2" />
<action type="Command" when="midcast">cancel 66</action>
</elseif>
<if Advanced='"%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement"'>
<action Type="Equip" When="MidCast">
<waist Lock="Yes">$%SpellElementObi</waist>
</action>
</if>
<if Status="Engaged">
<action type="equip" when="aftercast" set="melee" />
<if advanced='("%HPP"<"76") AND ("%TP"<"100")' Buffactive="En*">
<action type="equip" when="aftercast">
<lring>Fencer's Ring</lring>
</action>
</if>
</if>
<if spell="Sublimation">
<action type="changespell" spell="Composure" />
</if>
<if notadvanced='"%SpellTargetName"="%PlayerName"'>
<action type="command" when="midcast">cancel 419</action>
</if>
<if spell="autoset">
<action type="equip" when="resting" set="rest" />
<action type="command" when="resting">wait 15;input /equip body "Errant Hpl."</action>
<action type="command" when="resting">wait 15;input /equip head "Goliard Chapeau"</action>
<if status="engaged">
<if SubJob="NIN">
<action type="equip" when="engaged" set="melee" />
</if>
<if NotSubJob="NIN">
<action type="equip" when="engaged" set="mmelee" />
</if>
</if>
</if>
<if Advanced='"%MPPaftercast"<"50"'>
<if spell="Stone*|Aero*|Fire*|Water*|Blizzard*|Thunder*">
<action type="equip" when="midcast">
<neck lock="yes">Uggalepih Pendant</neck>
<waist lock="yes">Hierarch Belt</waist>
</action>
</if>
</if>
<action type="equip" when="idle" set="idle" />
<if notstatus="engaged">
<action type="equip" when="aftercast" set="idle" />
</if>
<if advanced='"%TP"<"5"'>
<action type="equip" when="aftercast">
<main>Terra's Staff</main>; wait 1
<sub>Earth Grip</sub>
</action>
</if>
<if spell="Death Blossom">
<action type="equip" when="precast" set="DB" />
<action type="aftercastdelay" delay="5" />
<if SubJob="NIN">
<action type="equip" when="aftercast" set="melee" />
</if>
<if NotSubJob="NIN">
<action type="equip" when="aftercast" set="mmelee" />
</if>
</if>
</rules>
</spellcast>