Valyana's BRD/BST/BLM/WAR/etc

The most interesting thing I do here is set things up so that my aftercast set is the same as my idle/tp set, I can also force that set by doing /ma holy2, and I do all of this without having to write any single equipment rule more than once. Look for uses of the “when” variable below to see how that works. Similarly, I equip spell potency gear either at precast or midcast using the “spellwhen” variable.

Note: For me, Firefox cuts off the XML in the middle of the file for some reason. You can see the whole thing in the Edit window.

<?xml version="1.0" ?>
<spellcast>
  <config
    Debug="false"
    ShowSpellInfo="false"
    ShowGearSwaps="false"
    />
  <variables>
    <!-- Should I try to save TP?  Y=yes, N=no, A=depends on job/status  -->
    <var name="SaveTP" NoOverwrite="true">A</var>
    <!-- Sing Ballad with Harp for more range? Y/N -->
    <var name="SBallad" NoOverwrite="true">N</var>
    <!-- Sing Lullaby with Harp? Y/N/H-Horde only -->
    <var name="SLullaby" NoOverwrite="true">N</var>
    <!-- Use recast gear for Lullaby? -->
    <var name="HLullaby" NoOverwrite="true">N</var>
    <!-- Use recast gear for Finale? -->
    <var name="HFinale" NoOverwrite="true">Y</var>
    <var name="WARWEP" NoOverwrite="true">Trial</var>
    <var name="BLMNuke" NoOverwrite="true">Balanced</var>
    <var name="RestMP">0</var>
    <var name="NukeMP">0</var>
  </variables>
  <sets>
    <!-- ===== Generic equipment sets ===== -->
    <group name="Default">
      <set name="FastCast">
	<lear>Loquac. Earring</lear>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="FastSong" baseset="FastCast">
	<body>Yigit Gomlek</body>
      </set>
      <set name="Haste">
	<head>Walahra Turban</head>
	<lear>Loquac. Earring</lear>
	<hands>Dusk Gloves</hands>
	<waist>Swift Belt</waist>
	<legs>Byakko's Haidate</legs>
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="Stoneskin">
	<main>Kirin's Pole</main>
	<sub>Bugard Strap +1</sub>
	<head>Yigit Turban</head>
	<neck>Promise Badge</neck>
	<lear>Geist Earring</lear>
	<body>Errant Hpl.</body>
	<lring>Sapphire Ring</lring>
	<rring>Sapphire Ring</rring>
	<hands>Yigit Gages</hands>
	<back>Rainbow Cape</back>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Suzaku's Sune-Ate</feet>
      </set>
      <set name="Rest">
	<main>Pluto's Staff</main>
	<head>Yigit Turban</head>
	<neck>Grandiose Chain</neck>
	<lear>Relaxing Earring</lear>
	<rear>Antivenom Earring</rear>
	<body>Yigit Gomlek</body>
	<hands>Yigit Gages</hands>
	<lring>Ether Ring</lring>
	<waist>Qiqirn Sash +1</waist>
	<legs>Yigit Seraweels</legs>
	<feet>Yigit Crackows</feet>
      </set>
      <set name="Cure">
	<main>Apollo's Staff</main>
	<sub>Staff Strap</sub>
	<head>Yigit Turban</head>
	<body>Dalmatica</body>
	<lring>Trooper's Ring</lring>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
      </set>
      <!-- default standing gear: -damage and refresh -->
      <set name="Stand" baseset="FastCast">
	<rear>Ethereal Earring</rear>
	<body>Dalmatica</body>
	<rring>Balrahn's Ring</rring>
	<back>Cheviot Cape</back>
      </set>
      <set name="Charm">
	<main>Apollo's Staff</main>
	<sub>Bugard Strap +1</sub>
	<ammo>Imperial Egg</ammo>
	<head>Errant Hat</head>
	<neck>Temp. Torque</neck>
	<lear>Melody Earring +1</lear>
	<body>Kirin's Osode</body>
	<!-- <hands>Marine F Gloves</hands> -->
	<lring>Angel's Ring</lring>
	<rring>Angel's Ring</rring>
	<back>Jester's Cape +1</back>
	<waist>Corsette +1</waist>
	<legs>Mahatma Slops</legs>
	<feet>Volunteer's Nails</feet>
      </set>
      <set name="Waltz" baseset="Charm">
	<main /> <sub />
      </set>
      <set name="Reward" baseset="Stoneskin">
	<body>Kirin's Osode</body>
	<ammo>Pet Food Zeta</ammo>
      </set>
      <set name="TP" baseset="Stand">
	<main /> <sub />
      </set>
      <set name="Ranged">
	<head>Optical Hat</head>
	<neck>Peacock Charm</neck>
	<lring>Woodsman Ring</lring>
	<rring>Jaeger Ring</rring>
      </set>
      <set name="MaxMP">
	<head>Walahra Turban</head>
	<body>Dalmatica</body>
      </set>
 
      <!-- Make explicit sets for HQs -->
      <set name="Ice Staff">
	<main>Aquilo's Staff</main>
      </set>
      <set name="Earth Staff">
	<main>Terra's Staff</main>
      </set>
      <set name="Light Staff">
	<main>Apollo's Staff</main>
      </set>
      <set name="Dark Staff">
	<main>Pluto's Staff</main>
      </set>
      <set name="Thunder Staff">
	<main>Jupiter's Staff</main>
      </set>
      <set name="%SpellElement Staff">
	<main>%SpellElement Staff</main>
      </set>
 
      <!-- Make sets for Obis you have -->
      <set name="Thunder Obi">
	<waist>Rairin Obi</waist>
      </set>
      <set name="Ice Obi">
	<waist>Hyorin Obi</waist>
      </set>
      <set name="Dark Obi">
	<waist>Anrin Obi</waist>
      </set>
      <set name="%SpellElement Obi" />
 
      <!-- "equip" this set to cancel previous equips -->
      <set name="Empty">
	<main /> <sub /> <range /> <ammo />
	<head /> <neck /> <lear /> <rear />
	<body /> <hands /> <lring /> <rring />
	<back /> <waist /> <legs /> <feet />
      </set>
 
      <set name="%Spell" />
    </group>
 
    <!-- ===== Black Mage ===== -->
    <group name="BLM" inherit="Default">
      <set name="Standard">
	<waist>Penitent's Rope</waist>
	<back>Rainbow Cape</back>
      </set>
      <set name="StandNJ" baseset="Standard">
	<head>Wizard's Petasos</head>
	<neck>Uggalepih Pendant</neck>
	<lear>Loquac. Earring</lear>
	<rear>Ethereal Earring</rear>
	<body>Dalmatica</body>
	<hands>Zenith Mitts</hands>
	<lring>Astral Ring</lring>
	<rring>Ether Ring</rring>
	<back>Cheviot Cape</back>
	<waist>Qiqirn Sash +1</waist>
	<legs>Yigit Seraweels</legs>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="StandJ" baseset="StandNJ">
	<lring>Jelly Ring</lring>
      </set>
      <set name="StandX" baseset="StandJ" />
      <set name="Stand" baseset="StandX">
	<main>Terra's Staff</main>
	<sub>Staff Strap</sub>
      </set>
      <set name="Balanced" baseset="Standard">
	<sub>Bugard Strap +1</sub>
	<ammo>Phantom Tathlum</ammo>
        <head>Wizard's Petasos</head>
	<neck>Elemental Torque</neck>
	<lear>Morion Earring</lear>
	<rear>Moldavite Earring</rear>
	<body>Igqira Weskit</body>
	<hands>Wizard's Gloves</hands>
	<lring>Diamond Ring</lring>
	<rring>Balrahn's Ring</rring>
	<!-- <rring>Diamond Ring</rring> -->
	<legs>Mahatma Slops</legs>
	<feet>Yigit Crackows</feet>
      </set>
      <set name="MaxDmg" baseset="Balanced">
	<neck>Philomath Stole</neck>
	<hands>Yigit Gages</hands>
      </set>
      <set name="MaxEle" baseset="Balanced">
	<head>Elite Beret</head>
	<neck lock="t">Elemental Torque</neck>
	<legs>Druid's Slops</legs>
      </set>
      <set name="NoHands" baseset="Balanced">
	<hands>Zenith Mitts</hands>
      </set>
      <set name="NoAF" baseset="NoHands">
	<head>Yigit Turban</head>
      </set>
      <set name="Nuke" baseset="$BLMNuke" />
      <set name="Blink">
	<hands>Yigit Gages</hands>
      </set>
      <set name="EnfeebAcc" baseset="StandX">
	<head>Igqira Tiara</head>
	<neck>Spider Torque</neck>
	<body>Wizard's Coat</body>
	<waist>Swift Belt</waist>
      </set>
      <set name="EnfeebINT" baseset="EnfeebAcc">
	<sub>Bugard Strap +1</sub>
	<ammo>Phantom Tathlum</ammo>
	<lring>Diamond Ring</lring>
      </set>
      <set name="EnfeebMND" baseset="EnfeebAcc">
	<sub>Bugard Strap +1</sub>
	<hands>Yigit Gages</hands>
	<lring>Sapphire Ring</lring>
      </set>
      <set name="Haste" baseset="StandX">
	<head>Walahra Turban</head>
	<waist>Swift Belt</waist>
      </set>
      <set name="Dark" baseset="Haste">
	<neck>Dark Torque</neck>
	<legs>Wizard's Tonban</legs>
	<waist>Swift Belt</waist>
      </set>
      <set name="Rest">
	<sub>Staff Strap</sub>
	<lring>Astral Ring</lring>
	<rring>Ether Ring</rring>
	<back>Rainbow Cape</back>
      </set>
      <set name="Stoneskin">
	<!-- BLM with 200 Enhancing needs 114 MND (62+52) to cap SS -->
	<rear>Antivenom Earring</rear>
	<!-- <feet>Wizard's Sabots</feet> -->
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="Ranged">
	<range>Mamoolbane</range>
      </set>
      <set name="Staff" baseset="Stand">
	<main>Thyrsusstab</main>
	<sub>Sword Strap</sub>
	<neck>Temperance Torque</neck>
      </set>
      <set name="Club" baseset="Stand">
	<main>Perdu Wand</main>
	<sub>Genbu's Shield</sub>
	<neck>Peacock Charm</neck>
      </set>
      <set name="TP" baseset="Club">
	<!-- <head>Optical Hat</head> -->
	<head>Walahra Turban</head>
	<!-- <lear>Diabolos's Earring</lear> -->
	<lear>Brutal Earring</lear>
	<!-- <lring>Woodsman Ring</lring> -->
	<rring>Rajas Ring</rring>
	<waist>Swift Belt</waist>
      </set>
      <set name="WS" baseset="TP">
	<lring>Woodsman Ring</lring>
	<back>Rainbow Cape</back>
	<waist>Life Belt</waist>
	<feet>Yigit Crackows</feet>
      </set>
      <set name="Cure">
	<body>Errant Hpl.</body>
      </set>
      <set name="MHP" baseset="Nuke">
	<main>Terra's Staff</main>
	<head>Zenith Crown</head>
	<!-- <neck>Star Necklace</neck> -->
	<body>Dalmatica</body>
	<hands>Zenith Mitts</hands>
	<lring>Astral Ring</lring>
	<rring>Ether Ring</rring>
	<!-- <back>Blue Cape</back> -->
	<back>Cheviot Cape</back>
	<!-- <back>Rainbow Cape</back> -->
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="MaxMP" baseset="StandX">
	<!-- <main>Kirin's Pole</main> -->
	<head>Zenith Crown</head>
	<rear>Antivenom Earring</rear>
	<lring>Astral Ring</lring>
	<rring>Ether Ring</rring>
	<back>Rainbow Cape</back>
      </set>
      <set name="FastCast">
	<!-- Fast Cast stuff is in standing set, so don't equip it -->
	<!-- in precast -->
	<lear />
	<feet />
      </set>
    </group>
    <group name="BLMHands" inherit="BLM">
      <set name="Nuke" baseset="NoHands" />
    </group>
    <group name="BLMEle" inherit="BLM">
      <set name="Nuke" baseset="MaxEle" />
    </group>
    <group name="BLMNoAF" inherit="BLM">
      <set name="Nuke" baseset="NoAF" />
      <set name="Stand">
	<head>Igqira Tiara</head>
      </set>
    </group>
 
    <!-- ===== Bard ===== -->
    <group name="BRD" default="yes" inherit="Default">
      <set name="Haste">
	<range>Angel Lyre</range>
	<body>Sha'ir Manteel</body>
	<hands>Dusk Gloves</hands>
	<feet>Rostrum Pumps</feet>
	<!-- <feet>Dusk Ledelsens</feet> -->
      </set>
      <set name="SongHaste" baseset="Haste">
	<range />
	<hands>Sheikh Gages</hands>
      </set>
      <set name="StandEnm">
	<!-- 1113 HP -->
	<main>Terra's Staff</main>
	<sub>Bugard Strap +1</sub>
	<head>Yigit Turban</head>
	<neck>Van Pendant</neck>
	<lear>Loquac. Earring</lear>
	<rear>Ethereal Earring</rear>
	<body>Dalmatica</body>
	<hands>Chl. Cuffs +1</hands>
	<lring>Trooper's Ring</lring>
	<rring>Balrahn's Ring</rring>
	<back>Cheviot Cape</back>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="Stand" baseset="StandEnm">
	<head>Genbu's Kabuto</head>
	<!-- <neck>M. No.17's Locket</neck> -->
	<neck>Van Pendant</neck>
	<hands>Chl. Cuffs +1</hands>
	<lring>Minstrel's Ring</lring>
	<legs>Chl. Cannions +1</legs>
      </set>
      <set name="StandDef" baseset="Stand">
	<lear>Minstrel's Earring</lear>
	<rring>Jelly Ring</rring>
	<legs>Byakko's Haidate</legs>
	<feet>Suzaku's Sune-Ate</feet>
      </set>
      <set name="FastSong" baseset="Stand">
	<!-- 1308 HP -->
	<head>Genbu's Kabuto</head>
	<lear>Loquac. Earring</lear>
	<body>Sha'ir Manteel</body>
	<hands>Sheikh Gages</hands>
	<lring>Minstrel's Ring</lring>
	<rring>Bomb Queen Ring</rring>
	<back>Gigant Mantle</back>
	<waist>Corsette +1</waist>
      </set>
      <set name="MHP">
	<!-- 981 HP, exactly 75% of 1308 -->
	<!-- <head>Yigit Turban</head> -->
	<head>Remove</head>
	<neck>Wind Torque</neck>
	<rear>Singing Earring</rear>
	<body>Dalmatica</body>
	<hands>Sheikh Gages</hands>
	<rring>Astral Ring</rring>
	<back>Jester's Cape +1</back>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="MinHP" baseset="MHP">
	<head>Zenith Crown</head>
	<hands>Zenith Mitts</hands>
	<lring>Ether Ring</lring>
      </set>
      <set name="MaxHP" baseset="FastSong">
	<neck>Promise Badge</neck>
	<body>Minstrel's Coat</body>
	<hands>Chl. Cuffs +1</hands>
	<feet>Marine F Boots</feet>
      </set>
      <set name="WindBuff">
	<head>Bard's Roundlet</head>
	<neck>Wind Torque</neck>
	<lear>Musical Earring</lear>
	<rear>Singing Earring</rear>
	<body>Minstrel's Coat</body>
	<hands>Chl. Cuffs +1</hands>
	<lring>Trumpet Ring</lring>
	<rring>Trumpet Ring</rring>
	<!-- <back>Astute Cape</back> WANT -->
	<legs>Chl. Cannions +1</legs>
      </set>
      <set name="Wind" baseset="WindBuff">
	<sub>Bugard Strap +1</sub>
	<body>Sha'ir Manteel</body>
	<hands>Sheikh Gages</hands>
	<rring>Balrahn's Ring</rring>
	<!-- <lring>Angel's Ring</lring> -->
	<back>Jester's Cape +1</back>
	<waist>Corsette +1</waist>
	<feet>Volunteer's Nails</feet>
      </set>
      <set name="String" baseset="Wind">
	<neck>String Torque</neck>
	<body>Chl. Jstcorps +1</body>
	<!-- <hands>Chl. Cuffs +1</hands> -->
	<lring>Angel's Ring</lring>
	<legs>Mahatma Slops</legs>
	<feet>Bard's Slippers</feet>
      </set>
      <set name="Cure" baseset="Stand">
	<main>Apollo's Staff</main>
	<sub>Staff Strap</sub>
	<head>Yigit Turban</head>
	<body>Dalmatica</body>
	<hands>Chl. Cuffs +1</hands>
	<lring>Trooper's Ring</lring>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Bard's Slippers</feet>
      </set>
      <set name="Stoneskin">
	<main>Water Staff</main>
	<!-- <main>Apollo's Staff</main> -->
	<head>Zenith Crown</head>
	<!-- More MP than Errant -->
	<body>Kirin's Osode</body>
      </set>
      <set name="Divine" baseset="Stoneskin">
	<main>Apollo's Staff</main>
	<rring>Balrahn's Ring</rring>
      </set>
      <set name="Joy">
	<main>Joyeuse</main>
	<sub>Genbu's Shield</sub>
	<neck>Peacock Charm</neck>
	<rear>Suppanomimi</rear>
      </set>
      <set name="Thyr">
	<main>Thyrsusstab</main>
	<sub>Pole Strap</sub>
	<!--<neck>Temp. Torque</neck>-->
	<neck>Peacock Charm</neck>
	<rear>Ethereal Earring</rear>
      </set>
      <set name="TP" baseset="Thyr">
	<range>Angel Lyre</range>
	<head>Optical Hat</head>
	<!-- <head>Walahra Turban</head>-->
	<lear>Brutal Earring</lear>
	<!-- <rear>Ethereal Earring</rear> -->
	<!-- <body>Bard's Jstcorps</body> -->
	<!-- <body>Sha'ir Manteel</body> -->
	<body>Dalmatica</body>
	<hands>Dusk Gloves</hands>
	<lring>Woodsman Ring</lring>
	<rring>Rajas Ring</rring>
	<back>Amemet Mantle +1</back>
	<!-- <waist>Swift Belt</waist> -->
	<waist>Life Belt</waist>
	<legs>Byakko's Haidate</legs>
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="WS" baseset="TP">
	<range>Oliphant</range>
	<head>Hecatomb Cap</head>
	<hands>Hecatomb Mittens</hands>
	<waist>Life Belt</waist>
	<legs>Chl. Cannions +1</legs>
	<feet>Hct. Leggings</feet>
      </set>
      <set name="Evisceration">
	<!-- DEX > STR for Evisceration -->
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="SpiritTaker">
	<!-- 15 MND > 6 STR for Spirit Taker -->
	<feet>Suzaku's Sune-Ate</feet>
      </set>
      <set name="Retribution" baseset="SpiritTaker">
	<neck>Soil Gorget</neck>
      </set>
      <set name="Rest">
	<body>Dalmatica</body>
      </set>
      <set name="Ranged" baseset="Stand">
	<range>Mamoolbane</range>
      </set>
      <set name="Blink" baseset="Wind" />
      <set name="Charm|Waltz">
	<head>Bard's Roundlet</head>
	<body>Chl. Jstcorps +1</body>
	<hands>Chl. Cuffs +1</hands>
	<range>Iron Ram Horn</range>
	<ammo />
      </set>
      <set name="MaxMP">
	<hands>Sheikh Gages</hands>
	<rring>Astral Ring</rring>
      </set>
      <set name="Fashion" baseset="Stand">
	<head>Bard's Roundlet</head>
	<hands>Sheikh Gages</hands>
	<rring>Balrahn's Ring</rring>
      </set>
    </group>
    <group name="BRDDef" inherit="BRD">
      <set name="Stand" baseset="StandDef" />
    </group>
    <group name="BRDEnm" inherit="BRD">
      <set name="Stand" baseset="StandEnm" />
    </group>
    <group name="BRDHNM" inherit="BRD">
      <set name="Wind">
	<body>Kirin's Osode</body>
	<hands>Chl. Cuffs +1</hands>
      </set>
    </group>
    <group name="BRDTP" inherit="BRD">
      <set name="Stand">
	<main /> <sub />
      </set>
      <set name="MHP">
	<head>Optical Hat</head>
	<lring>Ether Ring</lring>
	<back>Cheviot Cape</back>
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="TP">
	<!-- <head>Genbu's Kabuto</head> -->
	<lring>Jelly Ring</lring>
	<back>Cheviot Cape</back>
      </set>
      <!-- Hack for Campaign points by spamming cures on myself -->
      <set name="Cure" baseset="FastSong"> 
	<main>Apollo's Staff</main>
      </set>
    </group>
    <group name="BRDNIN" inherit="BRD">
      <set name="FastSong">
	<hands>Chl. Cuffs +1</hands>
      </set>
      <set name="Stand">
	<head>Genbu's Kabuto</head>
	<rear>Minstrel's Earring</rear>
	<lring>Minstrel's Ring</lring>
	<!-- Comment these out for high magic damage situations -->
	<body>Sha'ir Manteel</body>
	<rring>Jelly Ring</rring>
	<body>Chl. Jstcorps +1</body>
	<hands>Chl. Cuffs +1</hands>
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="MHP">
	<!-- 1057 HP -->
	<head>remove</head>
	<waist>Swift Belt</waist>
	<rring>Ether Ring</rring>
	<legs>remove</legs>
      </set>
      <set name="Dual">
	<main>Heart Snatcher</main>
	<sub>Joyeuse</sub>
	<neck>Peacock Charm</neck>
	<rear>Suppanomimi</rear>
      </set>
      <set name="Blau" baseset="Dual">
	<main>Blau Dolch</main>
      </set>
      <set name="TP" baseset="Dual">
	<body>Bard's Jstcorps</body>
	<head>Optical Hat</head>
	<waist>Life Belt</waist>
      </set>
      <set name="WS" baseset="Dual">
	<head>Optical Hat</head>
	<body>Bard's Jstcorps</body>
	<rear>Diabolos's Earring</rear>
	<waist>Life Belt</waist>
      </set>
      <set name="Evisceration">
	<neck>Soil Gorget</neck>
      </set>
    </group>
    <group name="BRDNINTP" inherit="BRDNIN">
      <set name="MHP">
	<head>Optical Hat</head>
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="Haste">
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="Stand">
	<main /> <sub />
      </set>
      <set name="FastSong">
	<main /> <sub />
      </set>
      <set name="Fashion" baseset="Stand">
	<head>Hecatomb Cap</head>
	<hands>Chl. Cuffs +1</hands>
      </set>
    </group>
    <group name="BRDDNC" inherit="BRDNINTP">
      <set name="TP">
	<main>Joyeuse</main>
	<sub>Genbu's Shield</sub>
	<head>Genbu's Kabuto</head>
	<neck>Van Pendant</neck>
	<rear>Minstrel's Earring</rear>
	<lring>Jelly Ring</lring>
	<back>Cheviot Cape</back>
      </set>
      <set name="Stand" baseset="TP">
	<hands>Sheikh Gages</hands>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="Wind">
	<lring>Angel's Ring</lring>
      </set>
    </group>
 
    <!-- ===== White Mage ===== -->
    <group name="WHM" inherit="Default">
      <set name="Stoneskin">
	<body>Noble's Tunic</body>
	<feet>Cleric's Duckbills</feet>
      </set>
      <set name="Cure">
	<head>Walahra Turban</head>
	<lear>Loquac. Earring</lear>
	<rear>Ethereal Earring</rear>
	<body>Noble's Tunic</body>
	<hands>Hlr. Mitts +1</hands>
	<lring>Bomb Queen Ring</lring>
	<rring>Medicine Ring</rring>
	<back>Gigant Mantle</back>
	<legs>Blessed Trousers</legs>
	<feet>Blessed Pumps</feet>
	<!-- <feet>Marine F Boots</feet> -->
	<!-- <feet>Cleric's Duckbills</feet> -->
      </set>
      <set name="Cure5" baseset="Cure">
	<sub>Bugard Strap +1</sub>
	<head>Healer's Cap</head>
	<neck>Promise Badge</neck>
	<lring>Sapphire Ring</lring>
	<back>Rainbow Cape</back>
	<legs>Mahatma Slops</legs>
	<feet>Cleric's Duckbills</feet>
      </set>
      <set name="Haste">
	<hands>Blessed Mitts</hands>
	<legs>Blessed Trousers</legs>
	<feet>Blessed Pumps</feet>
      </set>
      <set name="Stand" baseset="Cure">
	<main>Terra's Staff</main>
	<sub>Staff Strap</sub>
	<head>Walahra Turban</head>
	<neck>Grandiose Chain</neck>
	<lear>Loquac. Earring</lear>
	<lring>Jelly Ring</lring>
	<!-- <lring>Trooper's Ring</lring> -->
	<rring>Balrahn's Ring</rring>
	<back>Cheviot Cape</back>
	<waist>Qiqirn Sash +1</waist>
	<legs>Blessed Trousers</legs>
	<feet>Rostrum Pumps</feet>
      </set>
      <set name="Rest">
	<back>Rainbow Cape</back>
	<rring>Astral Ring</rring>
      </set>
      <set name="EnfeebMND" baseset="Stoneskin">
	<body>Healer's Briault</body>
	<neck>Spider Torque</neck>
	<rring>Balrahn's Ring</rring>
      </set>
      <set name="EnfeebINT">
	<body>Healer's Briault</body>
	<neck>Spider Torque</neck>
	<rring>Balrahn's Ring</rring>
      </set>
      <set name="Blink">
	<feet>Dream Boots +1</feet>
      </set>
      <set name="Charm">
	<body>Errant Hpl.</body>
      </set>
      <set name="Reward">
	<body>Errant Hpl.</body>
	<feet>Cleric's Duckbills</feet>
      </set>
      <set name="TP">
	<main>Kinkobo</main>
	<sub>Sword Strap</sub>
	<!--<head>Optical Hat</head> -->
	<head>Walahra Turban</head>
	<neck>Temp. Torque</neck>
	<lear>Brutal Earring</lear>
	<rear>Ethereal Earring</rear>
	<body>Noble's Tunic</body>
	<hands>Blessed Mitts</hands>
	<!-- <lring>Woodsman Ring</lring> -->
	<lring>Jelly Ring</lring>
	<rring>Rajas Ring</rring>
	<back>Cheviot Cape</back>
	<!-- <back>Ryl. Army Mantle</back> -->
	<waist>Swift Belt</waist>
	<legs>Blessed Trousers</legs>
	<feet>Blessed Pumps</feet>
      </set>
      <set name="WS" baseset="TP">
	<head>Optical Hat</head>
	<body>Tabin Jupon</body>
	<hands>Hlr. Mitts +1</hands>
	<lring>Woodsman Ring</lring>
	<back>Ryl. Army Mantle</back>
	<waist>Life Belt</waist>
	<feet>Cleric's Duckbills</feet>
      </set>
      <set name="Spirit Taker">
	<!-- <head>Yigit Turban</head> -->
	<back>Rainbow Cape</back>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Yigit Crackows</feet>
      </set>	
      <set name="Earth Crusher">
	<hands>Yigit Gages</hands>
	<lring>Diamond Ring</lring>
	<back>Rainbow Cape</back>
	<waist>Penitent's Rope</waist>
	<legs>Mahatma Slops</legs>
	<feet>Yigit Crackows</feet>
      </set>
    </group>
 
    <!-- ===== Beastmaster ===== -->
    <group name="BST" inherit="Default">
      <set name="ManSh">
	<main>Maneater</main>
	<sub>Tatami Shield</sub>
	<!-- <ammo>Tiphia Sting</ammo> -->
	<range>Fiendtrapper</range>
	<ammo>Blank F. Plate</ammo>
	<neck>Temp. Torque</neck>
	<rear>Ethereal Earring</rear>
      </set>
      <set name="Suzy">
	<main>Suzaku's Scythe</main>
	<sub>Pole Strap</sub>
	<ammo>Tiphia Sting</ammo>
	<neck>Peacock Charm</neck>
	<rear>Ethereal Earring</rear>
      </set>
      <set name="ManTemp">
	<main>Maneater</main>
	<sub>Temperance Axe</sub>
	<ammo>Virtue Stone</ammo>
	<neck>Temp. Torque</neck>
	<rear>Suppanomimi</rear>
      </set>
      <set name="Temp" baseset="ManTemp">
	<main>Temperance Axe</main>
	<sub>Tatami Shield</sub>
	<rear>Ethereal Earring</rear>
      </set>
      <set name="WoodMan" baseset="ManTemp">
	<main>Woodville's Axe</main>
	<sub>Maneater</sub>
	<ammo>Tiphia Sting</ammo>
      </set>
      <set name="TP" baseset="ManSh">
	<head>Patroclus's Helm</head>
	<lear>Brutal Earring</lear>
	<body>Adaman Hauberk</body>
	<hands>Adaman Mufflers</hands>
	<lring>Trooper's Ring</lring>
	<!-- <lring>Jelly Ring</lring> -->
	<rring>Rajas Ring</rring>
	<back>Amemet Mantle +1</back>
	<waist>Swift Belt</waist>
	<legs>Bst. Trousers +1</legs>
	<feet>Skadi's Jambeaux</feet>
      </set>
      <set name="Stand" baseset="TP">
	<neck>Van Pendant</neck>
	<body>Kirin's Osode</body>
	<range>Soultrapper</range>
	<ammo>Blank Soul Plate</ammo>
      </set>
      <set name="Fashion" baseset="TP">
	<!-- <head>Walahra Turban</head> -->
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="WS" baseset="TP">
	<rear>Diabolos's Earring</rear>
	<head>Hecatomb Cap</head>
	<!--<hands>Hecatomb Mittens</hands>-->
	<lring>Woodsman Ring</lring>
	<rring>Rajas Ring</rring>
	<waist>Life Belt</waist>
	<legs>Bst. Trousers +1</legs>
	<feet>Hct. Leggings</feet>
      </set>
      <set name="Cure">
	<head>Patroclus's Helm</head>
	<lring>Trooper's Ring</lring>
      </set>
      <set name="Rampage">
	<!-- AF+1 STR is good for Mistral Axe and Decimation, but use -->
	<!-- DEX for Rampage -->
	<neck>Soil Gorget</neck>
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="Charm">
	<head>Monster Helm</head>
	<hands>Bst. Gloves +1</hands>
	<legs>Bst. Trousers +1</legs>
	<!-- <feet>Bst. Gaiters +1</feet> -->
      </set>
      <set name="Waltz">
	<head>Monster Helm</head>
	<hands>Bst. Gloves +1</hands>
	<legs>Bst. Trousers +1</legs>
	<feet>Bst. Gaiters +1</feet>
      </set>
      <set name="Reward">
	<main>Water Staff</main>
	<hands>Ogre Gloves +1</hands>
	<back>Ryl. Army Mantle</back>
	<!-- <feet>Monster Gaiters</feet> -->
	<feet>Bst. Gaiters +1</feet>
      </set>
      <set name="Stoneskin">
	<body>Kirin's Osode</body>
      </set>
      <set name="Blink">
	<hands>Bst. Gloves +1</hands>
      </set>
      <set name="Rest">
	<head>Walahra Turban</head>
	<body>Gaudy Harness</body>
      </set>
      <set name="Ranged">
	<!-- Avoid throwing Imperial Egg -->
	<ammo>Pet Food Zeta</ammo>
      </set>
    </group>
    <group name="BSTD" inherit="BST">
      <set name="TP">
	<head>Walahra Turban</head>
	<lring>Woodsman Ring</lring>
	<rring>Rajas Ring</rring>
	<legs>Byakko's Haidate</legs>
      </set>
    </group>
    <group name="BSTH" inherit="BSTD">
      <set name="TP">
	<!-- <head>Genbu's Kabuto</head> -->
	<hands>Dusk Gloves</hands>
	<feet>Dusk Ledelsens</feet>
	<lring>Jelly Ring</lring>
      </set>
      <set name="Stand" baseset="TP">
	<hands>Adaman Mufflers</hands>
	<feet>Skadi's Jambeaux</feet>
      </set>
    </group>
    <group name="BSTA" inherit="BST">
      <set name="TP">
	<!--<head>Optical Hat</head>-->
	<lring>Woodsman Ring</lring>
	<rring>Rajas Ring</rring>
	<waist>Life Belt</waist>
	<legs>Byakko's Haidate</legs>
      </set>
    </group>
    <group name="BSTK" inherit="BST">
      <set name="Stand">
	<main>Terra's Staff</main>
	<sub>Staff Strap</sub>
	<head>Patroclus's Helm</head>
	<neck>Reraise Gorget</neck>
	<lear>Signal Pearl</lear>
	<rear>Ethereal Earring</rear>
	<body>Kirin's Osode</body>
	<hands>Monster Gloves</hands>
	<lring>Jelly Ring</lring>
	<rring>Trooper's Ring</rring>
	<waist>Corsette +1</waist>
	<legs>Bst. Trousers +1</legs>
	<feet>Skadi's Jambeaux</feet>
      </set>
      <set name="Blink">
	<hands>Andvaranauts</hands>
      </set>
    </group>
    <group name="BSTTank" inherit="BSTD">
      <set name="TP">
	<head>Patroclus's Helm</head>
	<hands>Dusk Gloves</hands>
	<lring>Jelly Ring</lring>
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="Stand" baseset="TP">
	<hands>Adaman Mufflers</hands>
	<feet>Skadi's Jambeaux</feet>
      </set>
    </group>
 
    <!-- ===== Warrior ===== -->
    <group name="WAR" inherit="Default">
      <set name="Fort">
	<main>Fortitude Axe</main>
	<sub>Pole Strap</sub>
	<ammo>Virtue Stone</ammo>
	<!-- <rear>Diabolos's Earring</rear> -->
	<rear>Ethereal Earring</rear>
      </set>
      <set name="Byakko">
	<main>Byakko's Axe</main>
	<sub>Pole Grip</sub>
	<ammo>Bomb Core</ammo>
	<rear>Diabolos's Earring</rear>
	<!-- <rear>Ethereal Earring</rear> -->
      </set>
      <set name="Rune" baseset="Byakko">
	<main>Rune Chopper</main>
      </set>
      <set name="Perdu" baseset="Byakko">
	<main>Perdu Voulge</main>
      </set>
      <set name="Trial" baseset="Byakko">
	<main>Axe of Trials</main>
      </set>
      <set name="Spear">
	<main>Spear +1</main>
	<sub>Sword Strap</sub>
	<ammo>Bomb Core</ammo>
	<rear>Diabolos's Earring</rear>
      </set>
      <set name="ManJoy">
	<main>Maneater</main>
	<sub>Joyeuse</sub>
	<ammo>Bomb Core</ammo>
	<rear>Suppanomimi</rear>
      </set>
      <set name="Joy" baseset="ManJoy">
	<main>Joyeuse</main>
	<sub>Tatami Shield</sub>
      </set>
      <set name="TP" baseset="$WARWep">
	<head>Walahra Turban</head>
	<neck>Peacock Charm</neck>
	<lear>Brutal Earring</lear>
	<body>Adaman Hauberk</body>
	<hands>Dusk Gloves</hands>
	<lring>$WARAccRing</lring>
	<rring>Rajas Ring</rring>
	<back>Amemet Mantle +1</back>
	<waist>Swift Belt</waist>
	<legs>Byakko's Haidate</legs>
	<feet>Amir Boots</feet>
      </set>
      <set name="Stand" baseset="TP">
	<hands>Adaman Mufflers</hands>
      </set>
      <set name="WS" baseset="TP">
	<ammo>Bomb Core</ammo>
	<head>Hecatomb Cap</head>
	<hands>Hecatomb Mittens</hands>
	<waist>Life Belt</waist>
	<!-- <waist>Warwolf Belt</waist> -->
	<feet>Hct. Leggings</feet>
      </set>
      <set name="Rampage">
	<neck>Soil Gorget</neck>
	<!-- <neck>Temp. Torque</neck> -->
	<rear>Diabolos's Earring</rear>
	<!-- <rear>Ethereal Earring</rear> -->
	<legs>Byakko's Haidate</legs>
      </set>
      <set name="Steel Cyclone">
	<head>Genbu's Kabuto</head>
	<body>Kirin's Osode</body>
      </set>
      <set name="MEnm">
	<!-- <sub>Staff Strap</sub> -->
	<ammo />
	<head>Patroclus's Helm</head>
	<lring>Trooper's Ring</lring>
	<rring>Jelly Ring</rring>
	<back>Ryl. Army Mantle</back>
      </set>
      <set name="Blink">
	<head>Patroclus's Helm</head>
      </set>
      <set name="Waltz">
	<head>Genbu's Kabuto</head>
      </set>
    </group>
    <group name="WARD" inherit="WAR">
      <set name="TP">
	<head>Adaman Celata</head>
	<hands>Adaman Mufflers</hands>
      </set>
      <set name="Stand">
	<head>Adaman Celata</head>
      </set>
    </group>
    <group name="WARH" inherit="WAR">
      <set name="TP">
	<hands>Dusk Gloves</hands>
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="Stand">
	<feet>Amir Boots</feet>
      </set>
    </group>
    <group name="WARA" inherit="WAR">
      <set name="TP">
	<head>Optical Hat</head>
	<rear>Diabolos's Earring</rear>
	<hands>Adaman Mufflers</hands>
	<waist>Life Belt</waist>
      </set>
      <set name="Stand" baseset="TP" />
      <set name="WS" baseset="TP" />
    </group>
    <group name="WARE" inherit="WAR">
      <set name="Stand" baseset="MEnm" />
      <set name="TP" baseset="MEnm">
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="WS" baseset="MEnm" />
      <set name="Blink">
	<feet>Suzaku's Sune-Ate</feet>
      </set>
    </group>
    <group name="WARTank" inherit="WAR">
      <set name="TP">
	<head>Genbu's Kabuto</head>
	<lring>Jelly Ring</lring>
	<feet>Dusk Ledelsens</feet>
      </set>
      <set name="Stand">
	<head>Genbu's Kabuto</head>
	<lring>Jelly Ring</lring>
      </set>
    </group>
    <group name="WAR50">
      <set name="Stand|TP|WS">
	<ammo>Happy Egg</ammo>
	<head>Irn.Msk. Armet</head>
	<neck>Peacock Charm</neck>
	<body>Irn.Msk. Cuirass</body>
	<hands>Custom F Gloves</hands>
	<lring>Woodsman Ring</lring>
	<rring>Rajas Ring</rring>
	<waist>Life Belt</waist>
	<legs>Irn.Msk. Cuisses</legs>
	<feet>Irn.Msk. Sabatons</feet>
      </set>
      <set name="FastCast|Berserk|Bergressor|Rest|Aggressor|Sturmwind" />
      <set name="Haste">
	<waist>Swift Belt</waist>
      </set>
    </group>
    <group name="DNC" inherit="Default">
      <set name="Stand" baseset="Empty">
	<head>Emperor Hairpin</head>
	<!-- <neck>Van Pendant</neck> -->
	<lring>Venerer Ring</lring>
	<rring>Rajas Ring</rring>
      </set>
      <set name="Evasion">
	<lear>Dodge Earring</lear>
	<rear>Dodge Earring</rear>
      </set>
      <set name="TP" baseset="Stand">
	<neck>Peacock Charm</neck>
      </set>
      <set name="WS">
	<neck>Spike Necklace</neck>
      </set>
      <set name="Waltz|Charm">
	<head>Noble's Ribbon</head>
	<neck>Bird Whistle</neck>
	<lring>Hope Ring</lring>
	<rring>Hope Ring</rring>
      </set>
      <set name="Shadowstitch">
	<head>Noble's Ribbon</head>
	<neck>Bird Whistle</neck>
	<lring>Hope Ring</lring>
      </set>
      <set name="Blink">
	<head>Noble's Ribbon</head>
      </set>
    </group>
    <group name="SCH" inherit="Default">
      <set name="Stand" baseset="Empty">
	<neck>Van Pendant</neck>
	<!--<lring>San d'Orian Ring</lring> -->
	<!-- <rring>Astral Ring</rring> -->
      </set>
      <set name="TP" baseset="Stand">
	<main>Hushed Dagger</main>
	<rring>Bastokan Ring</rring>
      </set>
      <set name="WS" baseset="TP">
      </set>
      <set name="Cure|EnfeebMND">
	<main>Solid Wand</main>
	<neck>Justice Badge</neck>
	<lring>Saintly Ring</lring>
	<rring>Saintly Ring</rring>
	<waist>Friar's Rope</waist>
      </set>
      <set name="Nuke|EnfeebINT">
	<main>Solid Wand</main>
	<ammo>Morion Tathlum</ammo>
	<head>Seer's Crown +1</head>
	<neck>Black Neckerchief</neck>
	<body>Baron's Saio</body>
	<lring>Eremite's Ring +1</lring>
	<rring>Eremite's Ring +1</rring>
	<waist>Shaman's Belt</waist>
	<legs>Seer's Slacks</legs>
      </set>
      <set name="Rest" baseset="Empty">
	<main>Pilgrim's Wand</main>
	<body>Seer's Tunic</body>
	<rring>Astral Ring</rring>
	<waist>Mohbwa Sash +1</waist>
	<legs>Baron's Slops</legs>
      </set>
    </group>
  </sets>
 
  <rules>
    <if mode="OR" 
      mainjob="WHM|BLM|RDM|SMN|BLU|SCH|PLD|DRK"
      subjob="WHM|BLM|RDM|SMN|BLU|SCH|PLD|DRK">
      <action type="var" cmd="set mpjob Y" />
    </if>
    <else>
      <action type="var" cmd="set mpjob N" />
    </else>
 
    <if area="* Remnants|Lebros*|Ilrusi*|Periqia|Mamool*|Leujaoam*">
      <action type="var" cmd="set Assault Y" />
    </if>
    <else>
      <action type="var" cmd="set Assault N" />
    </else>
 
    <action type="var"
      cmd="set always precast|midcast|aftercast|idle|engaged|resting" />
 
    <if status="resting">
      <action type="equip" when="$always" set="Rest" />
      <if advanced='"$mpjob"="N"'>
	<action type="equip" when="$always">
	  <main /> <sub />
	</action>
      </if>
      <if advanced='"$Assault"="Y" AND "$mpjob"="Y"' >
	<action type="equip" when="$always">
	  <rring>Balrahn's Ring</rring>
	</action>
      </if>
      <if job="BLM/RDM" mpgt="800">
	<action type="equip" when="$always" set="MaxMP" />
      </if>
      <action type="return" />
    </if>
 
    <!-- Save TP? -->
    <if TPGT="10">
      <if advanced='"$SaveTP"="A"'>
	<if mode="OR" mainjob="BST|WAR|DNC" subjob="DNC" 
	  group="*TP" status="Engaged">
	  <action type="var" cmd="set RealSaveTP Y" />
	</if>
	<else>
	  <action type="var" cmd="set RealSaveTP N" />
	</else>
      </if>
      <else>
	<action type="var" cmd="set RealSaveTP $SaveTP" />
      </else>
      <if advanced='"$RealSaveTP"="Y"'>
	<action type="equip" when="$always">
	  <main lock="t" /> <sub lock="t" />
	</action>
      </if>
    </if>
 
    <!-- These rules are for setting up my default gear between spells/ -->
    <!-- abilities.  In order to let me force equip it with a macro, I  -->
    <!-- use /ma holy2 with a cancelspell action so the chat log doesn't -->
    <!-- get cluttered with error messages.  But for this to work, I need -->
    <!-- to equip the gear in precast, not aftercast as normal.  -->
    <if spell="Holy II">
      <action type="var" cmd="set when precast" />
    </if>
    <elseif CastTimeGT="3" validtarget="self">
      <!-- For long self-targeted spells, default to putting standing gear -->
      <!-- back on during casting -->
      <action type="var" cmd="set when midcast|aftercast|idle|engaged" />
    </elseif>
    <else>
      <action type="var" cmd="set when aftercast|idle|engaged" />
    </else>
    <!-- <action type="addtochat" color="206">when: $when</action> -->
 
    <if group="WAR*">
      <if subjob="SAM">
	<action type="var" cmd='set WARAccRing "Ecphoria Ring"' />
      </if>
      <else>
	<action type="var" cmd='set WARAccRing "Woodsman Ring"' />
      </else>
    </if>
 
    <if status="Engaged">
      <if notvalidtarget="Self|Enemy" notspell="Ranged">
	<action type="defaulttarget" target="&lt;st&gt;" />
      </if>
      <action type="equip" when="$when" set="TP" />
      <if buffactive="Berserk" notbuffactive="Defender">
	<action type="equip" when="$when" set="Berserk" />
	<if buffactive="Aggressor">
	  <action type="equip" when="$when" set="Aggressor" />
	  <action type="equip" when="$when" set="Bergressor" />
	</if>
      </if>
      <elseif buffactive="Aggressor">
	<action type="equip" when="$when" set="Aggressor" />
      </elseif>
    </if>
    <else>
      <action type="equip" when="$when" set="Stand" />
      <if advanced='"$Assault"="Y" AND "$mpjob"="Y"' >
	<action type="equip" when="$when">
	  <rring>Balrahn's Ring</rring>
	</action>
      </if>
    </else>
 
    <!-- Equip JSE earring as HP drops, don't wait until it is -->
    <!-- actually active.  -->
    <if hpplt="40">
      <if mainjob="BRD">
	<action type="equip" when="$when">
	  <lear>Minstrel's Earring</lear>
	</action>
      </if>
      <if mainjob="BLM">
	<action type="equip" when="$when">
	  <lear>Sorcerer's Earring</lear>
	</action>
      </if>
    </if>
 
    <if mainjob="BST" subjob="WHM|RDM|PLD">
      <if mplt="49">
	<action type="equip" when="$when">
	  <body>Gaudy Harness</body>
	</action>
      </if>
      <elseif mpaftercastlt="49">
	<action type="equip" when="aftercast">
	  <body>Gaudy Harness</body>
	</action>
      </elseif>
      <if notvalidtarget="Self|Enemy">
	<action type="defaulttarget" target="&lt;me&gt;" />
      </if>
    </if>
 
    <if spell="autoset">
      <action type="return" />
    </if>
 
    <!-- We've put our current default gear in precast, so cancel/return -->
    <!-- to get it equipped.  -->
    <if spell="Holy II">
      <action type="cancelspell" />
      <action type="return" />
    </if>
 
    <!-- ============ END OF RULES FOR BETWEEN-ACTIONS GEAR ============ -->
 
    <if notspell="Ranged" nottype="WeaponSkill">
      <action type="command">input /recast "%spell"</action>
    </if>
 
    <!-- If the spell takes more than 3 sec to cast, equip FastCast -->
    <!-- gear in precast and the spell gear in midcast; otherwise -->
    <!-- just equip the spell gear in precast.  -->
    <if CastTimeGT="4">
      <action type="equip" when="precast" set="FastCast" />
      <action type="midcastdelay" delay="0.8" />
      <action type="var" cmd="set spellwhen midcast" />
    </if>
    <else>
      <action type="var" cmd="set spellwhen precast" />
    </else>      
 
    <if skill="Singing">
      <!-- Equip Wind debuff gear at precast for most songs -->
      <action type="equip" set="Wind" />
      <!-- Use Fast Cast, then Standing gear for buffs -->
      <if CastTimeGT="4">
	<action type="equip" when="precast" set="FastSong" />
	<!-- Need to wait a little for Minstrel's Ring to work -->
	<!-- since I don't stand around in +HP gear -->
	<if mainjob="BRD">
	  <action type="castdelay" delay="0.5" />
	  <if area="* Remnants" buffactive="encumbrance">
	    <!-- I don't have all gear unlocked, so pile on the +HP. -->
	    <action type="equip" when="precast" set="MaxHP" />
	  </if>
	</if>
	<action type="command">wait 3; input /dance4 motion</action>
      </if>
 
      <if validtarget="self, party">
	<!-- Use recast gear for Etudes/Prelude -->
	<action type="equip" when="midcast" set="Stand" />
	<action type="equip" when="midcast" set="SongHaste" />
      </if>
 
      <if buffactive="Pianissimo">
	<action type="defaulttarget" target="&lt;t&gt;" />
      </if>
 
      <!-- Use Angel Lyre for everything without its own instrument. -->
      <action type="equip" when="$spellwhen">
	<range>Angel Lyre</range>
      </action>
      <if spell="* Elegy">
	<action type="equip" when="$spellwhen">
	  <range>Horn +1</range>
	</action>
      </if>
      <elseif spell="* Lullaby">
	<if advanced='"$HLullaby"="Y"'>
	  <action type="equip" when="$spellwhen" set="SongHaste" />
	</if>
 
	<if advanced='"$SLullaby"="N"'>
	  <action type="equip" when="$spellwhen">
	    <range>Mary's Horn</range>
	  </action>
	</if>
	<elseif advanced='"$SLullaby"="H"' spell="Foe Lullaby">
	  <action type="equip" when="$spellwhen">
	    <range>Mary's Horn</range>
	  </action>
	</elseif>
	<else>
	  <action type="equip" when="$spellwhen" set="String">
	    <range>Nursemaid's Harp</range>
	  </action>
	</else>
      </elseif>
      <elseif spell="Mage's Ballad*">
	<if advanced='"$Assault"="Y"'>
	  <action type="equip" when="$spellwhen">
	    <range>Storm Fife</range>
	  </action>
	</if>
	<elseif advanced='"$SBallad"="Y"'>
	  <action type="equip" when="$spellwhen">
	    <range>Angel Lyre</range>
	    <neck>String Torque</neck>
	    <!-- <body>Chl. Jstcorps +1</body> -->
	    <lear>Musical Earring</lear>
	  </action>
	</elseif>
	<else>
	  <action type="equip" when="$spellwhen">
	    <range>Horn +1</range>
	  </action>
	</else>
      </elseif>
      <elseif spell="Foe Requiem*">
	<action type="equip" when="$spellwhen">
	  <range>Requiem Flute</range>
	</action>
      </elseif>
      <elseif spell="Army's Paeon*">
	<action type="equip" when="$spellwhen">
	  <range>Ebony Harp +1</range>
	</action>
      </elseif>
      <elseif spell="Knight's Minne*">
	<action type="equip" when="$spellwhen">
	  <range>Harp +1</range>
	</action>
      </elseif>
      <elseif spell="Valor Minuet*">
	<action type="equip" when="$spellwhen">
	  <range>Cornette +1</range>
	</action>
      </elseif>
      <elseif spell="* Madrigal">
	<action type="equip" when="$spellwhen">
	  <range>Traversiere +1</range>
	</action>
	<if spell="Blade Madrigal">
	  <!-- Blade Madrigal hits +30 acc at 508 skill.  -->
	  <action type="equip" when="$spellwhen" set="WindBuff" />
	</if>
      </elseif>
      <elseif spell="* Prelude">
	<action type="equip" when="$spellwhen">
	  <range>Angel Flute +1</range>
	</action>
      </elseif>
      <elseif spell="* Mambo">
	<action type="equip" when="$spellwhen">
	  <!-- <range>Gemshorn +1</range> -->
	  <range>Hellish Bugle +1</range>
	</action>
      </elseif>
      <elseif spell="* March">
	<action type="equip" when="$spellwhen">
	  <range>Iron Ram Horn</range>
	</action>
	<if spell="Victory March">
	  <!-- Victory March doesn't cap, so pile on the +skill -->
	  <action type="equip" when="$spellwhen" set="WindBuff" />
	</if>
      </elseif>
      <elseif spell="* Etude">
	<action type="equip" when="$spellwhen">
	  <range>Rose Harp +1</range>
	</action>
      </elseif>
      <elseif spell="* Carol">
	<action type="equip" when="$spellwhen">
	  <range>Crumhorn +1</range>
	</action>
      </elseif>
      <elseif spell="* Threnody">
	<action type="equip" when="$spellwhen">
	  <range>Piccolo +1</range>
	  <!-- <range>Sorrowful Harp</range> -->
	</action>
      </elseif>
      <elseif spell="Goddess's Hymnus">
	<action type="equip" when="$spellwhen">
	  <range>Angel Lyre</range>
	</action>
      </elseif>
      <elseif spell="* Mazurka">
	<action type="equip" when="$spellwhen">
	  <range>Harlequin's Horn</range>
	</action>
	<!-- Minimize recast in case some people run out of range -->
	<if spell="Chocobo Mazurka">
	  <action type="equip" when="$spellwhen" set="SongHaste" />
	</if>
	<action type="equip" when="aftercast" set="Fashion" />
      </elseif>
      <!-- Use wind/recast gear for Virelai (4.00 sec) -->
      <elseif spell="Maiden's Virelai">
	<action type="equip" when="midcast" set="SongHaste" />
      </elseif>
      <elseif spell="Magic Finale">
	<action type="equip" when="$spellwhen">
	  <range>Iron Ram Horn</range>
	</action>
	<!-- Usually I want -recast over macc for Finale -->
	<if advanced='"$HFinale"="Y"'>
	  <action type="equip" set="SongHaste" />
	</if>
      </elseif>
    </if>
 
    <elseif Skill="EnfeeblingMagic">
      <if type="BlackMagic">
	<if spell="Sleep*">
	  <!-- INT does not affect Sleep potency.  -->
	  <action type="equip" when="$spellwhen" set="EnfeebAcc" />
	</if>
	<else>
	  <action type="equip" when="$spellwhen" set="EnfeebINT"/>
	</else>
      </if>
      <else>
	<action type="equip" when="$spellwhen" set="EnfeebMND"/>
      </else>
    </elseif>
 
    <elseif Skill="HealingMagic">
      <if spell="Cure*|Curaga*">
	<if Spell="Cure V" MPLT="135"> 
	  <action type="ChangeSpell" Spell="Cure IV" /> 
	</if> 
	<if Spell="Cure IV" MPLT="88"> 
	  <action type="ChangeSpell" Spell="Cure III" /> 
	</if> 
	<if Spell="Cure III" MPLT="46"> 
	  <action type="ChangeSpell" Spell="Cure II" /> 
	</if> 
	<if Spell="Cure II" MPLT="24"> 
	  <action type="ChangeSpell" Spell="Cure" /> 
	</if> 
	<if Spell="Curaga IV" mplt="260">
	  <action type="ChangeSpell" Spell="Curaga III" />
	</if>
	<if Spell="Curaga III" mplt="180">
	  <action type="ChangeSpell" Spell="Curaga II" />
	</if>
	<if Spell="Curaga II" mplt="120">
	  <action type="ChangeSpell" Spell="Curaga" />
	</if>
	<action type="equip" when="$spellwhen" set="Cure" />
	<if spell="Cure V|Curaga IV">
	  <action type="equip" when="$spellwhen" set="Cure5" />
	</if>
      </if>
      <elseif spell="*na|Raise*">
	<!-- Use recast gear for status cures and raises -->
	<action type="equip" when="$spellwhen" set="Haste" />
	<if spell="Cursna">
	  <!-- In case this helps for removing Doom -->
	  <action type="equip" when="$spellwhen">
	    <main>Apollo's Staff</main>
	  </action>
	</if>
      </elseif>
    </elseif>
 
    <elseif skill="ElementalMagic">
      <if BuffActive="Elemental Seal">
	<action type="equip" when="$spellwhen" set="MaxDmg" />
      </if>
      <else>
	<action type="equip" when="$spellwhen" set="Nuke" />
      </else>
 
      <!-- Sorcerer's ring rules -->
      <if mainjob="BLM">
	<if subjob="rdm">
	  <!-- <365 no AF, <378 af head, <384 af head/hand -->
	  <action type="var" cmd="set pendantmp 365" />
	  <action type="var" cmd="set ringhp 742" />
	</if>
	<elseif subjob="whm">
	  <action type="var" cmd="set pendantmp 398" />
	  <!-- 76% is 722, leave some room for auto regen -->
	  <action type="var" cmd="set ringhp 719" />
	</elseif>
	<else>
	  <action type="var" cmd="set pendantmp 0" />
	  <action type="var" cmd="set ringhp 0" />
	</else>
 
	<if advanced='$pendantmp &gt; 0 AND %mpaftercast &lt; $pendantmp'>
	  <action type="equip" when="$spellwhen">
	    <neck>Uggalepih Pendant</neck>
	  </action>
	</if>
 
	<!-- If my HP is too high for Sorc Ring latent, lower -->
	<!-- it, and delay midcast equips so it all works -->
	<if advanced='$ringhp &gt; 0'>
	  <if advanced='%hp &gt; $ringhp'>
	    <action type="equip" when="precast" set="MHP" />
	    <action type="midcastdelay" delay="1.5" />
	  </if>
	  <action type="equip" when="$spellwhen">
	    <lring>Sorcerer's Ring</lring>
	  </action>
	  <if mpgt="779">
	    <!-- Conserve MP as much as I can without breaking -->
	    <!-- Sorcerer's Ring latent -->
	    <action type="equip" when="$spellwhen">
	      <hands>Zenith Mitts</hands>
	    </action>
	    <if mpgt="829">
	      <action type="equip" when="$spellwhen">
		<head>Zenith Crown</head>
	      </action>
	    </if>
	    <if mpgt="854">
	      <action type="equip" when="$spellwhen">
		<rring>Ether Ring</rring>
	      </action>
	    </if>
	    <if mpgt="884">
	      <action type="equip" when="$spellwhen">
		<neck>Uggalepih Pendant</neck>
	      </action>
	    </if>
	    <if mpgt="904">
	      <action type="equip" when="$spellwhen">
		<legs>Yigit Seraweels</legs>
	      </action>
	    </if>
	    <if mpgt="929">
	      <action type="equip"when="$spellwhen">
		<body>Dalmatica</body>
	      </action>
	    </if>
	  </if>
	</if>
      </if>
    </elseif>
 
    <elseif skill="DivineMagic">
      <action type="equip" when="$spellwhen" set="Divine" />
    </elseif>
 
    <elseif skill="DarkMagic">
      <action type="equip" when="$spellwhen" set="Dark" />
    </elseif>
 
    <elseif skill="EnhancingMagic">
      <if spell="haste|regen*|erase|warp ii">
	<action type="equip" when="$spellwhen" set="haste" />
      </if>
      <if Spell="sneak|invisible|deodorize">
	<action type="DefaultTarget" target="&lt;me&gt;" />
	<action type="equip" when="$spellwhen" set="haste">
	  <main>Wind Staff</main>
	  <back>Skulker's Cape</back>
	</action>
	<if spell="sneak">
	  <!-- <action type="addtochat" color="206">Sneaking %Target</action> -->
	  <action type="equip" when="$spellwhen">
	    <feet>Dream Boots +1</feet>
	  </action>
	  <if Advanced='"%Target"="&lt;me&gt;"'>
	    <action type="midcastdelay" delay="2" />
	    <action type="Command" when="MidCast">cancel 71</action> 
	  </if>
	</if>
      </if>
 
      <if spell="Stoneskin">
	<action type="midcastdelay" delay="4" />
	<action type="Command" when="MidCast">cancel 37</action> 
	<!-- Equip spell gear in precast since midcast is late -->
	<action type="equip" when="precast" set="Stoneskin" />
	<action type="equip" when="midcast" set="Empty" />
	<if job="BLM/RDM" mpgt="860">
	  <action type="equip" when="precast" set="MaxMP" />
	</if>
      </if>
    </elseif>
 
    <elseif type="WeaponSkill">
      <if buffactive="blind|flash">
	<action type="cancelspell" />
      </if>
      <elseif notspell="Spirits Within" nottplt="80">
	<action type="equip" set="WS" />
	<action type="equip" set="%Spell" />
      </elseif>
    </elseif>
 
    <elseif type="JobAbility">
      <!-- "Blink-cast" all JAs: equip the "Blink" set to make the -->
      <!-- character blink away and avoid the animation. -->
      <!-- But not DS, so I don't have to target myself again for cure. -->
      <if spell="Call Beast">
	<action type="equip" when="precast">
	  <ammo>Fish Oil Broth</ammo>
	  <!-- <ammo>Seedbed Soil</ammo> -->
	  <hands>Monster Gloves</hands>
	</action>
      </if>
      <elseif spell="Charm|Tame">
	<action type="equip" set="Charm" />
	<!-- Don't leave Imperial Egg equipped -->
	<action type="equip" when="aftercast">
	  <ammo>Pet Food Zeta</ammo>
	</action>
      </elseif>
      <elseif spell="Reward">
	<action type="equip" set="Reward" />
      </elseif>
      <elseif spell="Curing Waltz*|Divine Waltz">
	<action type="equip" set="Waltz">
	  <main /> <sub />
	</action>
	<!-- <action type="castdelay" delay="0.5" /> -->
	<!-- <action type="midcastdelay" delay="3" /> -->
	<!-- <action type="command" when="midcast">ma holy2</action> -->
      </elseif>
      <!-- Waltzes, Sambas and Steps have too much animation -->
      <!-- to blink away, so don't bother trying. -->
      <elseif spell="Healing Waltz|* Samba*|*step|Desperate Flourish" />
      <elseif spell="Spectral Jig">
	<action type="Command" when="PreCast">cancel 71</action> 
      </elseif>
      <elseif notspell="Divine Seal">
	<!-- <action type="equip" when="precast" set="Blink" /> -->
      </elseif>
    </elseif>
 
    <elseif type="PetCommand">
      <action type="equip" when="precast" set="Blink" />
    </elseif>
 
    <elseif skill="Ninj*">
      <if spell="Utsusemi: Ichi">
	<!-- <action type="equip" when="precast" set="Evasion" /> -->
	<!--Utsusemi:Ichi cast time is 4 sec-->
	<action type="midcastdelay" delay="2.5" />
	<!--Technically only need for Ni to Ichi, but no way to tell-->
	<if mode="OR" MLvlGT="73" mainjob="NIN">
	  <action type="command" when="midcast">cancel 66</action>
	</if>
	<action type="equip" when="midcast" set="Haste" />
      </if>
      <elseif spell="Utsusemi: Ni">
	<action type="equip" set="Haste" />
      </elseif>
    </elseif>
 
    <elseif spell="Ranged">
      <action type="equip" when="precast" set="Ranged" />
    </elseif>
 
    <!-- ==== Elemental Staff/Obi rules ==== -->
    <!-- Use CastTimeGT so that we ignore this section for weaponskills -->
    <!-- and enemy-targeted JA.  -->
    <if ValidTarget="Enemy" CastTimeGT="0.1" notElement="Unknown|None"
      MLvlGT="51">
      <action type="equip" when="$spellwhen" set="%SpellElement Staff" />
      <if Element="%WeatherElement|%DayElement">
	<action type="equip" when="$spellwhen" set="%SpellElement Obi" />
      </if>
    </if>
  </rules>
</spellcast>
plugins/spellcast/userxml/multi/valyana.txt · Last modified: 2009/08/08 14:00 (external edit)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0