<?xml version="1.0" encoding="UTF-8"?>
<spellcast>
<config
Debug="True"
HideErrors="False"
ShowGearSwaps="False"
DefaultAftercast="Standing"
></config>
<variables>
<!-- Staffs. -->
<var name="FireStaff">Vulcan's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="WaterStaff">Neptune's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="IceStaff">Aquilo's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="LightStaff">Apollo's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<!-- use of Ugg Pendant, set to 0 too turn off. -->
<var name="UggPendant">1</var>
<!-- Elemental Obi's, set to 1 for the ones you have. -->
<var name="DarkObi">0</var>
<var name="LightObi">1</var>
<var name="ThunderObi">1</var>
<var name="IceObi">1</var>
<var name="FireObi">1</var>
<var name="WindObi">1</var>
<var name="WaterObi">0</var>
<var name="EarthObi">0</var>
<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<var name="varSleepMessages">1</var>
</variables>
<sets>
<group name="Main" default="yes">
<set name="Standard">
<ammo>Phtm. Tathlum</ammo>
<sub>Bugard Leather Strap +1</sub>
<head>Demon helm +1</head>
<neck>Elemental Torque</neck>
<lear>Moldavite Earring</lear>
<rear>Morion Earring +1</rear>
<body>Igqira Weskit</body>
<hands>Zenith Mitts</hands>
<lring>Omniscient Ring</lring>
<rring>Snow Ring</rring>
<back>Prism Cape</back>
<waist>Forest Rope</waist>
<legs>Mahatma Slops</legs>
<feet>Goliard clogs</feet>
</set>
<set name="ElementalMagic"BaseSet="Standard">
<head>Elite Beret</head>
<hands>Wizard's gloves</hands>
<legs>Druid's slops</legs>
</set>
<set name="Resting" BaseSet="Standard">
<ammo>Hedgehog Bomb</ammo>
<main>Pluto's Staff</main>
<sub>Staff Strap</sub>
<head>Zenith Crown</head>
<neck>Beak Necklace +1</neck>
<lear>Reraise earring</lear>
<rear>Antivenom Earring</rear>
<body>Errant Houppelande</body>
<hands>Zenith Mitts</hands>
<lring>Ether Ring </lring>
<rring>Serket Ring</rring>
<back>Umbra Cape</back>
<waist>Qiqirn sash +1</waist>
<legs>Baron's Slops</legs>
<feet>Goliard clogs</feet>
</set>
<set name="AfterRest" BaseSet="Standing">
<lring>Ether Ring</lring>
</set>
<set name="Standing">
<main>Terra's Staff</main>
<ammo>Hedgehog Bomb</ammo>
<neck>Orochi Nodowa</neck>
<lear>Sorcerer's earring</lear>
<rear>Antivenom Earring</rear>
<body>Royal Cloak</body>
<hands>Zenith Mitts</hands>
<lring>Jelly Ring</lring>
<rring>Serket Ring</rring>
<back>Umbra Cape</back>
<waist>Forest Rope</waist>
<legs>Zenith slacks</legs>
<feet>Rostrum Pumps</feet>
</set>
<set name="Curing">
<main>Apollo's staff</main>
<sub>Bugard Leather Strap +1</sub>
<head>Zenith Crown</head>
<neck>Beak necklace +1</neck>
<lear>Sorcerer's earring</lear>
<rear>Antivenom earring</rear>
<body>Errant Houppelande</body>
<hands>Devotee's Mitts +1</hands>
<lring>Sapphire Ring</lring>
<rring>Sapphire Ring</rring>
<back>Prism Cape</back>
<waist>Forest Rope</waist>
<legs>Mahatma slops</legs>
<feet>Goliard clogs</feet>
</set>
<set name="Enfeebling-BlackMagic">
<ammo>Phantom tathlum</ammo>
<sub>Bugard Leather Strap +1</sub>
<head>Igqira Tiara</head>
<neck>Enfeebling Torque</neck>
<lear>Enfeebling Earring</lear>
<rear>Morion Earring +1</rear>
<body>Wizard's Coat</body>
<hands>Errant cuffs</hands>
<lring>Omniscient Ring</lring>
<rring>Snow Ring</rring>
<back>Altruistic Cape</back>
<waist>Forest Rope</waist>
<legs>Igqira lappas</legs>
<feet>Avocat pigaches</feet>
</set>
<set name="Enfeebling-WhiteMagic" BaseSet="Enfeebling-BlackMagic">
<ammo>Hedgehog Bomb</ammo>
<rear>Antivenom Earring</rear>
<hands>Devotee's Mitts +1</hands>
<lring>Sapphire Ring</lring>
<rring>Sapphire Ring</rring>
</set>
<set name="Dark" BaseSet="Standing">
<main>Pluto's Staff</main>
<head>Walahra Turban</head>
<neck>Dark Torque</neck>
<lear>Sorcerer's earring</lear>
<rear>Morion Earring +1</rear>
<body>Errant Houppelande</body>
<hands>Sorcerer's Gloves</hands>
<lring>Omniscient ring</lring>
<rring>Bomb queen ring</rring>
<back>Prism Cape</back>
<waist>Swift Belt</waist>
<legs>Wizard's Tonban</legs>
<feet>Goliard clogs</feet>
</set>
<set name="Stoneskin" BaseSet="Standard">
<main>Kirin's Pole</main>
<sub>Bugard Leather Strap +1</sub>
<head>Zenith Crown</head>
<neck>Beak necklace +1</neck>
<lear>Morion Earrng +1</lear>
<rear>Antivenom Earring</rear>
<body>Errant Houppelande</body>
<hands>Devotee's Mitts +1</hands>
<lring>Sapphire Ring</lring>
<rring>Sapphire Ring</rring>
<back>Prism Cape</back>
<waist>Forest Rope</waist>
<legs>Zenith Slacks</legs>
<feet>Rostrum Pumps</feet>
</set>
<set name="LatentActivate">
<sub>Thunder Grip</sub>
<head>Zenith Crown</head>
<neck>Star Necklace</neck>
<lear>Morion Earrng +1</lear>
<rear>Antivenom Earring</rear>
<body>Black Cotehardie</body>
<hands>Zenith Mitts</hands>
<lring>Ether Ring </lring>
<rring>Serket Ring</rring>
<back>Blue Cape</back>
<waist>Forest Rope</waist>
<legs>Zenith Slacks</legs>
<feet>Rostrum Pumps</feet>
</set>
</group>
</sets>
<rules>
<!-- auto equips resting, auto latend effect after healing and also aftercast standing gear -->
<if spell="autoset">
<action type="equip" when="Resting" set="Resting"></action>
<action type="equip" when="Idle" set="Resting"></action>
<action type="equip" when="Aftercast" set="Standing"/>
</if>
<if Spell="Stun">
<!-- equip gear that helps stun, and nothing else -->
<action type="equip"><main>$ThunderStaff</main></action>
<!-- these codes just print Stun in auto translate into chat. -->
<action type="command">input /p \xFD\x07\x02\x12\xFC\xFD >> <%SpellTarget></action>
</if>
<if NotSpell="Stun">
<action type="Var" cmd="set PreLand %CastTime"></action>
<action type="Var" cmd="dec PreLand"></action>
<if SubJob="RDM">
<if CastTimeGT="1.8">
<action type="Var" cmd="dec PreLand"></action>
<if CastTimeGT="6.8">
<action type="Var" cmd="dec PreLand"></action>
<if CastTimeGT="12.8">
<action type="Var" cmd="dec PreLand"></action>
</if>
</if>
</if>
</if>
<action type="midcastdelay" delay="$PreLand"></action>
<if Skill="ElementalMagic">
<action type="equip" when="midcast"><main>$%SpellElementStaff</main></action>
<action type="equip" when="midcast" set="Standard"></action>
<if HPLT="830">
<action type="equip" when="midcast"><rring>Sorcerer's Ring</rring></action>
</if>
<if MPPAftercastlt="51">
<action type="equip" when="midcast"><neck>Uggalepih Pendant</neck></action>
</if>
<!-- Handle Elemental Obi's -->
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
<if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
<elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
<elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
<elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
<elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
<elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
<elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
<elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
</if>
</if>
<elseif Skill="EnfeeblingMagic">
<action type="equip" when="midcast"><main>$%SpellElementStaff</main></action>
<action type="equip" when="midcast" set="Enfeebling-%Type"></action>
</elseif>
<elseif Skill="DarkMagic" NotSpell="Stun">
<action type="equip" when="midcast"><main>$%SpellElementStaff</main></action>
<action type="equip" when="midcast" set="Dark"></action>
</elseif>
<elseif Spell="Cur*" NotSpell="Cursna">
<action type="equip" when="midcast" set="Curing"></action>
<if Spell="Cure III" MPLT="46">
<action type="ChangeSpell" Spell="Cure II"></action>
</if>
<elseif Spell="Cure II" MPLT="24">
<action type="ChangeSpell" Spell="Cure"></action>
</elseif>
<elseif Spell="Cure" MPLT="8">
<action type="CancelSpell"></action>
<action type="equip" set="Standing"></action>
<action type="addtochat" color="56">### Not enough MP for Cure! ###</action>
</elseif>
</elseif>
<!-- Equips Stoneskin +(MND) setup and auto cancels stoneskin if its up already -->
<elseif Spell="Stoneskin">
<action type="equip" when="midcast" set="Stoneskin"></action>
<if BuffActive="Stoneskin">
<action type="command" when="midcast">cancel 37</action>
</if>
</elseif>
<if Spell="Sneak" BuffActive="Sneak">
<action type="command" when="midcast">cancel 71</action>
<action type="midcastdelay" delay="2.1" />
</if>
<!-- Timers for when sleep is wearing off. -->
<if Spell="Sleep|Sleepga">
<if Advanced='"$varSleepMessages"="1"'>
<action type="command" when="aftercast">wait 49;input /echo ==== %Spell off @ 0:10 ====</action>
</if>
<if Spell="Sleep II|Sleepga II">
<if Advanced='"$varSleepMessages"="1"'>
<action type="command" when="aftercast">wait 74;input /echo ==== %Spell off @ 0:15 ====</action>
</if>
</rules>
</spellcast>