What its doing:
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config
Debug="true"
HideErrors="false"
ShowGearSwaps="false"
ShowSpellInfo="false"
/>
<variables>
<!-- BUFF GEAR -->
<var name="TPHands">Timarli Dastanas</var>
<var name="WSFeet">Rvg. Calligae +2</var>
<var name="WSLegs">Rvg. Cuisses +2</var>
<var name="WSNeck">Ire Torque +1</var>
<var name="WSBody">Grim Cuirass +1</var>
</variables>
<sets>
<group name="Main" default="yes">
<set name="Idle">
<ammo>Ravager's Orb</ammo>
<head>Champion's Galea</head>
<neck>Ravager's Gorget</neck>
<lear>Ravager's Earring</lear>
<rear>Brutal Earring</rear>
<body>Ravager's Lorica +2</body>
<hands>Timarli Dastanas</hands>
<lring>Mars's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Goading Belt</waist>
<legs>Ravager's Cuisses +2</legs>
<feet>Ravager's Calligae +2</feet>
</set>
<!-- OUTSIDE ABYSSEA SETS -->
<set name="TP" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Champion's Galea</head>
<neck>Ravager's Gorget</neck>
<lear>Ravager's Earring</lear>
<rear>Brutal Earring</rear>
<body>Ravager's Lorica +2</body>
<hands>$TPHands</hands>
<lring>Mars's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Goading Belt</waist>
<legs>Ravager's Cuisses +2</legs>
<feet>Ravager's Calligae +2</feet>
</set>
<set name="Ukko's Fury" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's mask +2</head>
<lear>Ravager's Earring</lear>
<neck>$WSNeck</neck>
<body>$WSBody</body>
<lring>Pyrosoul Ring</lring>
<hands>Rvg. Mufflers +2</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<legs>$WSLegs</legs>
<feet>Ravager's Calligae +2</feet>
<back>Atheling Mantle</back>
</set>
<set name="King's Justice" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's Mask +2</head>
<neck>$WSNeck</neck>
<body>Grim Cuirass +1</body>
<lring>Pyrosoul Ring</lring>
<hands>Heafoc Mitts</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<lear>Ravager's Earring</lear>
<legs>$WSLegs</legs>
<feet>Ravager's Calligae +2</feet>
<back>Athleing Mantle</back>
</set>
<set name="FC" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's Mask +2</head>
<neck>$WSNeck</neck>
<body>Grim Cuirass +1</body>
<lring>Pyrosoul Ring</lring>
<hands>Heafoc Mitts</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<lear>Ravager's Earring</lear>
<legs>Calmecac Subligar</legs>
<feet>Ravager's Calligae +2</feet>
<back>Athleing Mantle</back>
</set>
<set name="BeserkWSUF" BaseSet="Ukko's Fury">
<legs>Calmecac Subligar</legs>
<body>Zahak's Mail</body>
<neck>Rancor Collar</neck>
</set>
<set name="BeserkWSKJ" BaseSet="King's Justice">
<legs>Calmecac Subligar</legs>
<body>Zahak's Mail</body>
<neck>Rancor Collar</neck>
</set>
<set name="PDT" BaseSet="Idle">
<ammo>Angha Gem</ammo>
<head>Chersos Helm</head>
<neck>Wiglen Gorget</neck>
<rear>Ravager's Earring</rear>
<lear>Brutal Earring</lear>
<body>Mekira Toshugai +1</body>
<hands>Magma Gauntlets</hands>
<lring>Dark Ring</lring>
<back>Mollusca Mantle</back>
<rring>Dark Ring</rring>
<waist>Flume Belt</waist>
<legs>Blitzer Poleyn</legs>
<feet>Jingang Greaves</feet>
</set>
<set name="MDT" BaseSet="Idle">
<ammo>Demonry Stone</ammo>
<head>Noesis Helm</head>
<neck>Twilight Torque</neck>
<rear>Merman's Earring</rear>
<body>Merman's Harness</body>
<lear>Merman's Earring</lear>
<hands>Magma Gauntlets</hands>
<lring>Dark Ring</lring>
<rring>Minerva's Ring</rring>
<back>Mollusca Mantle</back>
<waist>Nierenschutz</waist>
<legs>Merman's Subligar</legs>
<feet>Askar Gambieras</feet>
</set>
<set name="Blood Rage">
<body>Rvg. Lorica +2</body>
</set>
<set name="Retaliation">
<feet>Ravager's Calligae +2</feet>
</set>
<set name="Warcry">
<head>Warrior's Mask</head>
</set>
<set name="Aggressor">
<body>Warrior's Lorica</body>
</set>
<set name="Berserk">
<feet>Warrior's Calligae</feet>
</set>
<set name="Restraint">
<hands>Rvg. Mufflers +2</hands>
</set>
<set name="Reraise">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
</set>
</group>
</sets>
<rules>
<equip when="Idle" set="Idle" />
<if Area="Abyssea*">
<if status="engaged">
<equip when="engaged" set="TPA" />
<defaulttarget Target="<t>" />
</if>
</if>
<else>
<if status="engaged">
<equip when="engaged" set="TP" />
<defaulttarget Target="<t>" />
</if>
</else>
<if spell="Raise*">
<equip when="precast" set="Reraise" />
<equip when="aftercast" set="Reraise" />
</if>
<if spell="Stone V">
<equip when="precast|midcast|aftercast" set="PDT" />
</if>
<elseif spell="Water V">
<equip when="precast|midcast|aftercast" set="MDT" />
</elseif>
<if mode="and" spell="Utsusemi*" status="engaged">
<equip when="precast" set="FaCa" />
<equip when="aftercast" set="TP" />
</if>
<if mode="and" spell="Utsusemi*" status="idle">
<equip when="precast" set="FaCa" />
<equip when="aftercast" set="Idle" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image|Copy Image (2)" NotBuffActive="Silence|Mute|Omerta|Obliviscence">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<if spell="Restraint|Blood Rage|Retaliation|Warcry|Aggressor|Berserk">
<castdealy delay=".2"/>
<equip when="precast" set="%Spell" />
<equip when="aftercast" set="tp" />
</if>
<if status="engaged" BuffActive="Restraint">
<equip when="engaged|aftercast">
<hands lock="yes">Rvg. Mufflers +2</hands>
</equip>
</if>
<if type = "Weaponskill">
<if status = "Engaged" NotTPLT = "100">
<castdelay delay = "0.2" />
<aftercastdelay delay = "0.8" />
<if buffactive = "Berserk">
<if spell = "Ukko's Fury">
<equip when="engaged|precast" set = "BerserkWSUF" />
<addtochat>***** Gear Equipped: Berserk %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</if>
<else>
<equip when="precast" set = "%Spell" />
<addtochat>***** Gear Equipped: %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</else>
<if spell = "King's Justice">
<equip when="engaged|precast" set = "BerserkWSKJ" />
<addtochat>***** Gear Equipped: Berserk %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</if>
<else>
<equip when="precast" set = "%Spell" />
<addtochat>***** Gear Equipped: %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</else>
</if>
<if spell="Fell Cleave">
<equip when="precast" set="FC" />
<defaulttarget Target="<t>" />
<equip when="aftercast" set="TP" />
</if>
</if>
</if>
</rules>
</spellcast>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config
Debug="true"
HideErrors="false"
ShowGearSwaps="false"
ShowSpellInfo="false"
/>
<variables>
<!-- BUFF GEAR -->
<var name="TPHands">Timarli Dastanas</var>
<var name="WSFeet">Rvg. Calligae +2</var>
<var name="WSLegs">Rvg. Cuisses +2</var>
<var name="WSNeck">Ire Torque +1</var>
<var name="WSBody">Grim Cuirass +1</var>
</variables>
<sets>
<group name="Main" default="yes">
<set name="Idle">
<ammo>Ravager's Orb</ammo>
<head>Champion's Galea</head>
<neck>Ravager's Gorget</neck>
<lear>Ravager's Earring</lear>
<rear>Brutal Earring</rear>
<body>Ravager's Lorica +2</body>
<hands>Timarli Dastanas</hands>
<lring>Mars's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Goading Belt</waist>
<legs>Ravager's Cuisses +2</legs>
<feet>Ravager's Calligae +2</feet>
</set>
<!-- OUTSIDE ABYSSEA SETS -->
<set name="TP" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Champion's Galea</head>
<neck>Ravager's Gorget</neck>
<lear>Ravager's Earring</lear>
<rear>Brutal Earring</rear>
<body>Ravager's Lorica +2</body>
<hands>$TPHands</hands>
<lring>Mars's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling Mantle</back>
<waist>Goading Belt</waist>
<legs>Ravager's Cuisses +2</legs>
<feet>Ravager's Calligae +2</feet>
</set>
<set name="Ukko's Fury" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's mask +2</head>
<lear>Ravager's Earring</lear>
<neck>$WSNeck</neck>
<body>$WSBody</body>
<lring>Pyrosoul Ring</lring>
<hands>Rvg. Mufflers +2</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<legs>$WSLegs</legs>
<feet>Ravager's Calligae +2</feet>
<back>Atheling Mantle</back>
</set>
<set name="King's Justice" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's Mask +2</head>
<neck>$WSNeck</neck>
<body>Grim Cuirass +1</body>
<lring>Pyrosoul Ring</lring>
<hands>Heafoc Mitts</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<lear>Ravager's Earring</lear>
<legs>$WSLegs</legs>
<feet>Ravager's Calligae +2</feet>
<back>Athleing Mantle</back>
</set>
<set name="FC" BaseSet="Idle">
<ammo>Ravager's Orb</ammo>
<head>Ravager's Mask +2</head>
<neck>$WSNeck</neck>
<body>Grim Cuirass +1</body>
<lring>Pyrosoul Ring</lring>
<hands>Heafoc Mitts</hands>
<rring>Pyrosoul Ring</rring>
<waist>Beir Belt +1</waist>
<lear>Ravager's Earring</lear>
<legs>Calmecac Subligar</legs>
<feet>Ravager's Calligae +2</feet>
<back>Athleing Mantle</back>
</set>
<set name="BeserkWSUF" BaseSet="Ukko's Fury">
<legs>Calmecac Subligar</legs>
<body>Zahak's Mail</body>
<neck>Rancor Collar</neck>
</set>
<set name="BeserkWSKJ" BaseSet="King's Justice">
<legs>Calmecac Subligar</legs>
<body>Zahak's Mail</body>
<neck>Rancor Collar</neck>
</set>
<set name="PDT" BaseSet="Idle">
<ammo>Angha Gem</ammo>
<head>Chersos Helm</head>
<neck>Wiglen Gorget</neck>
<rear>Ravager's Earring</rear>
<lear>Brutal Earring</lear>
<body>Mekira Toshugai +1</body>
<hands>Magma Gauntlets</hands>
<lring>Dark Ring</lring>
<back>Mollusca Mantle</back>
<rring>Dark Ring</rring>
<waist>Flume Belt</waist>
<legs>Blitzer Poleyn</legs>
<feet>Jingang Greaves</feet>
</set>
<set name="MDT" BaseSet="Idle">
<ammo>Demonry Stone</ammo>
<head>Noesis Helm</head>
<neck>Twilight Torque</neck>
<rear>Merman's Earring</rear>
<body>Merman's Harness</body>
<lear>Merman's Earring</lear>
<hands>Magma Gauntlets</hands>
<lring>Dark Ring</lring>
<rring>Minerva's Ring</rring>
<back>Mollusca Mantle</back>
<waist>Nierenschutz</waist>
<legs>Merman's Subligar</legs>
<feet>Askar Gambieras</feet>
</set>
<set name="Blood Rage">
<body>Rvg. Lorica +2</body>
</set>
<set name="Retaliation">
<feet>Ravager's Calligae +2</feet>
</set>
<set name="Warcry">
<head>Warrior's Mask</head>
</set>
<set name="Aggressor">
<body>Warrior's Lorica</body>
</set>
<set name="Berserk">
<feet>Warrior's Calligae</feet>
</set>
<set name="Restraint">
<hands>Rvg. Mufflers +2</hands>
</set>
<set name="Reraise">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
</set>
</group>
</sets>
<rules>
<equip when="Idle" set="Idle" />
<if Area="Abyssea*">
<if status="engaged">
<equip when="engaged" set="TPA" />
<defaulttarget Target="<t>" />
</if>
</if>
<else>
<if status="engaged">
<equip when="engaged" set="TP" />
<defaulttarget Target="<t>" />
</if>
</else>
<if spell="Raise*">
<equip when="precast" set="Reraise" />
<equip when="aftercast" set="Reraise" />
</if>
<if spell="Stone V">
<equip when="precast|midcast|aftercast" set="PDT" />
</if>
<elseif spell="Water V">
<equip when="precast|midcast|aftercast" set="MDT" />
</elseif>
<if mode="and" spell="Utsusemi*" status="engaged">
<equip when="precast" set="FaCa" />
<equip when="aftercast" set="TP" />
</if>
<if mode="and" spell="Utsusemi*" status="idle">
<equip when="precast" set="FaCa" />
<equip when="aftercast" set="Idle" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image|Copy Image (2)" NotBuffActive="Silence|Mute|Omerta|Obliviscence">
<midcastdelay delay="3.0" />
<command when="midcast">cancel 66</command>
</if>
<if spell="Restraint|Blood Rage|Retaliation|Warcry|Aggressor|Berserk">
<castdealy delay=".2"/>
<equip when="precast" set="%Spell" />
<equip when="aftercast" set="tp" />
</if>
<if status="engaged" BuffActive="Restraint">
<equip when="engaged|aftercast">
<hands lock="yes">Rvg. Mufflers +2</hands>
</equip>
</if>
<if type = "Weaponskill">
<if status = "Engaged" NotTPLT = "100">
<castdelay delay = "0.2" />
<aftercastdelay delay = "0.8" />
<if buffactive = "Berserk">
<if spell = "Ukko's Fury">
<equip when="engaged|precast" set = "BerserkWSUF" />
<addtochat>***** Gear Equipped: Berserk %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</if>
<else>
<equip when="precast" set = "%Spell" />
<addtochat>***** Gear Equipped: %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</else>
<if spell = "King's Justice">
<equip when="engaged|precast" set = "BerserkWSKJ" />
<addtochat>***** Gear Equipped: Berserk %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</if>
<else>
<equip when="precast" set = "%Spell" />
<addtochat>***** Gear Equipped: %Spell *****</addtochat>
<equip when="aftercast" set="TP" />
</else>
</if>
<if spell="Fell Cleave">
<equip when="precast" set="FC" />
<defaulttarget Target="<t>" />
<equip when="aftercast" set="TP" />
</if>
</if>
</if>
</rules>
</spellcast>