Code
<?xml version="1.0"?> <spellcast> <config RequireVersion="2.16" HideErrors = "false" Debug="true" ShowGearSwaps="false" /> <variables> <!-- Staves --> <var name="IceStaff">Venabulum</var> <var name="WindStaff">Venabulum</var> <var name="EarthStaff">Venabulum</var> <var name="ThunderStaff">Venabulum</var> <var name="WaterStaff">Venabulum</var> <var name="FireStaff">Venabulum</var> <var name="DarkStaff">Venabulum</var> <var name="LightStaff">Venabulum</var> <!-- Obi's --> <var name="IceObi">Hyorin Obi</var> <var name="WindObi">Furin Obi</var> <var name="EarthObi"></var> <var name="ThunderObi">Rairin Obi</var> <var name="WaterObi"></var> <var name="FireObi">Karin Obi</var> <var name="DarkObi"></var> <var name="LightObi">Korin Obi</var> </variables> <sets> <group Name="GEO" default="yes"> <set name="Idle"> <main>Owleyes</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Geomancy Galero +1</head> <neck>Twilight Torque</neck> <lear>Moonshade Earring</lear> <rear>Magnetic Earring</rear> <body>Geomancy Tunic +1</body> <hands>Geomancy Mitaines +1</hands> <lring>Defending Ring</lring> <rring>Shadow Ring</rring> <back>Shadow Mantle</back> <waist>Witful Belt</waist> <legs>Nares Trews</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- HMP Resting set --> <set name="Resting" Baseset="Idle"> <main></main> <sub>Genbu's Shield</sub> <ammo>Clarus Stone</ammo> <head></head> <neck>Beak necklace</neck> <lear>Antivenom Earring</lear> <rear>Magnetic Earring</rear> <body>Errant Hpl.</body> <hands>Nares Cuffs</hands> <lring>Star Ring</lring> <rring>Star Ring</rring> <back>Vita Cape</back> <waist>Austerity Belt</waist> <legs>Nisse Slacks</legs> <feet></feet> </set> <set name="Engaged" Baseset="Idle"> <main>Mondaha Cudgel</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Asperity Necklace</neck> <lear>Steelflash Earring</lear> <rear>Bladeborn Earring</rear> <body>Geomancy Tunic +1</body> <hands>Geomancy Mitaines +1</hands> <lring>Rajas Ring</lring> <rring>K'ayres Ring</rring> <back>Shadow Mantle</back> <waist>Goading Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <set name="WS" Baseset="Engaged"> <main>Mondaha Cudgel</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Asperity Necklace</neck> <lear>Steelflash Earring</lear> <rear>Bladeborn Earring</rear> <body>Geomancy Tunic +1</body> <hands>Yaoyotl Gloves</hands> <lring>Rajas Ring</lring> <rring>Pyrosoul Ring</rring> <back></back> <waist>Prosilio Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <set name="Hexa" Baseset="Engaged"> <main>Mondaha Cudgel</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Asperity Necklace</neck> <lear>Steelflash Earring</lear> <rear>Bladeborn Earring</rear> <body>Geomancy Tunic +1</body> <hands>Yaoyotl Gloves</hands> <lring>Rajas Ring</lring> <rring>Pyrosoul Ring</rring> <back></back> <waist>Prosilio Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- Base Fastcast --> <set name="Fastcast" Baseset="Idle"> <main></main> <sub></sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Orunmila's Torque</neck> <lear>Loquac. Earring</lear> <rear></rear> <body>Anhur Robe</body> <hands>Repartie Gloves</hands> <lring></lring> <rring></rring> <back>Lifestream Cape</back> <waist>Goading Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- Fastcast for Spells like Sneak/Cursna/Haste ect. --> <set name="Quick Magic" BaseSet="FastCast"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Orunmila's Torque</neck> <lear>Loquacious Earring</lear> <rear></rear> <body>Dalmatica</body> <hands>Repartie Gloves</hands> <lring>Veneficium Ring</lring> <rring>Prolix Ring</rring> <back>Lifestream Cape</back> <waist>Witful Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- Fastcast for Cures --> <set name="Quick Cure" BaseSet="FastCast">> <main>Tamaxchi</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Orunmila's Torque</neck> <lear>Loquacious Earring</lear> <rear></rear> <body>Heka's Kalasiris</body> <hands>Repartie Gloves</hands> <lring>Veneficium Ring</lring> <rring>Prolix Ring</rring> <back>Pahtli Cape</back> <waist>Witful Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- -%Enhancing cast time gear --> <set name="EnhaFast" Baseset="Fastcast"> <waist>Siegel Sash</waist> </set> <!-- Cure Set --> <set name="Curing"> <main>Tamaxchi</main> <sub>Genbu's Shield</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Phalaina Locket</neck> <lear>Star Earring</lear> <rear>Novia Earring</rear> <body>Heka's Kalasiris</body> <hands>Bokwus Gloves</hands> <lring>Star Ring</lring> <rring>Sangoma Ring</rring> <back>Lifestream Cape</back> <waist>Cascade Belt</waist> <legs>Nares Trews</legs> <feet>Rubeus Boots</feet> </set> <!-- Enhancing Skill --> <set name="Enhancing" Baseset="Idle"> <main>Kirin's Pole</main> <sub>Fulcio Grip</sub> <range>Filiae Bell</range> <head></head> <neck>Colossus's Torque</neck> <rear></rear> <lear></lear> <body>Anhur Robe</body> <hands>Ayao's Gages</hands> <back>Merciful Cape</back> <waist>Cascade Belt</waist> <legs>Portent Pants</legs> <feet>Rubeus Boots</feet> </set> <!-- Geo Skill Set --> <set name="Geo"> <main></main> <sub></sub> <range>Filiae Bell</range> <head></head> <neck></neck> <lear></lear> <rear>Magnetic Earring</rear> <body>Bagua Tunic</body> <hands>Geomancy Mitaines +1</hands> <lring></lring> <rring></rring> <back>Lifestream Cape</back> <waist>Austerity Belt</waist> <legs>Bagua Pants</legs> <feet></feet> </set> <!-- Loupan DT Set --> <!--NO RULE FOR THIS SET TO EQUIP: "/sc set LDT" macro in game--> <set name="LDT" baseset="idle"> <main></main> <sub></sub> <range>Filiae Bell</range> <head>Selenian Cap </head> <neck></neck> <lear></lear> <rear></rear> <body></body> <hands>Geomancy Mitaines +1</hands> <lring></lring> <rring></rring> <back></back> <waist>Isa Belt</waist> <legs></legs> <feet>Bagua Sandals</feet> </set> <!-- Enfeebling Magic Set --> <set name="Enfeebling"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Imbodla Necklace</neck> <lear>Lifestorm Earring</lear> <rear>Psystorm Earring</rear> <body>Artsieq Jubbah</body> <hands>Ayao's Gages</hands> <lring>Maquette Ring</lring> <rring>Sangoma Ring</rring> <back>Lifestream Cape</back> <waist>Casso Sash</waist> <legs>Portent Pants</legs> <feet>Bagua Sandals</feet> </set> <!-- Dark Magic Set --> <set name="Dark" > <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head>Bagua Galero</head> <neck>Dark Torque</neck> <lear>Lifestorm Earring</lear> <rear>Psystorm Earring</rear> <body>Geomancy Tunic +1</body> <hands>Avesta Bangles</hands> <lring>Maquette Ring</lring> <rring>Sangoma Ring</rring> <back>Merciful Cape</back> <waist>Casso Sash</waist> <legs>Portent Pants</legs> <feet>Nares Clogs</feet> </set> <!-- Stun Set --> <set name="Stun" Baseset="Dark"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head>Nahtirah Hat</head> <neck>Dark Torque</neck> <lear>Lifestorm Earring</lear> <rear>Psystorm Earring</rear> <body>Geomancy Tunic +1</body> <hands>Avesta Bangles</hands> <lring>Maquette Ring</lring> <rring>Sangoma Ring</rring> <back>Merciful Cape</back> <waist>Goading Belt</waist> <legs>Portent Pants</legs> <feet>Nares Clogs</feet> </set> <!-- Nuking Set --> <set name="Nuking"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head>Hagondes Hat</head> <neck>Eddy Necklace</neck> <lear>Friomisi Earring</lear> <rear>Crematio Earring</rear> <body>Bokwus Robe</body> <hands>Yaoyotl Gloves</hands> <lring>Snow Ring</lring> <rring>Strendu Ring</rring> <back>Toro Cape</back> <waist>Maniacus Sash</waist> <legs>Hagondes Pants</legs> <feet>Hagondes sabots</feet> </set> <!-- Pre-Impact Set --> <set name="PreImpact"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head></head> <neck>Orunmila's Torque</neck> <lear>Loquac. Earring</lear> <rear></rear> <body>Twilight Cloak</body> <hands>Bagua Mitaines</hands> <lring>Maquette Ring</lring> <rring>Sangoma Ring</rring> <back>Lifestream Cape</back> <waist>Goading Belt</waist> <legs>Geomancy Pants +1</legs> <feet>Geomancy Sandals +1</feet> </set> <!-- Impact Set --> <set name="Impact" baseset="PreImpact"> <main>Venabulum</main> <sub>Mephitis Grip</sub> <range>Filiae Bell</range> <head></head> <neck>Eddy Necklace</neck> <lear>Lifestorm Earring</lear> <rear>Psystorm Earring</rear> <body>Twilight Cloak</body> <hands>Repartie Gloves</hands> <lring>Maquette Ring</lring> <rring>Sangoma Ring</rring> <back>Merciful Cape</back> <waist>Demonry Sash</waist> <legs>Hagondes Pants</legs> <feet>Rubeus Boots</feet> </set> </group> </sets> <!-- Rules --> <rules> <!-- Autoload Macro Book --> <command>input /macro book 19</command> <!-- Special case rules first --> <if status = "dead"> <cancelspell /> <return /> </if> <!--Rules to stop parsing if you can't perform an action--> <if BuffActive="Sleep|Petrification|Stun|Terror|Charm"> <return/> </if> <if Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence"> <return/> </if> <if Type="Weaponskill|JobAbility|PetCommand" BuffActive="Amnesia"> <cancelspell/> <return/> </if> <!-- Idle/Engaged Rules --> <if status="engaged"> <equip when="engaged|aftercast" set="Engaged" /> </if> <if status="idle"> <equip when="idle|aftercast" set="Idle" /> </if> <if status="Resting"> <action type="equip" when="resting" set="Resting"/> </if> <!-- Clean Transportation --> <if Spell="Teleport*|Warp*|Retrace|Escape|Recall*"> <return /> </if> <!-- Ability Rules --> <!-- Job Ability Rules --> <if type="jobability"> <if Spell="Bolster"> <aftercastdelay delay = ".4" /> <equip when="precast"> <body>Bagua Tunic</body> </equip> <equip when="aftercast" set="%status" /> </if> <elseif spell="Full Circle"> <aftercastdelay delay = ".4" /> <equip when="Precast"> <hands>Bagua Mitaines</hands> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Lasting Emanation"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Ecliptic Attrition"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Collimated Fervor"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Life Cycle"> <aftercastdelay delay = ".4" /> <equip when="Precast"> <body>Geomancy Tunic +1</body> </equip> </elseif> <elseif spell="Blaze of Glory"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Dematerialize"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Mending Halation"> <aftercastdelay delay = ".4" /> <equip when="Precast"> <legs>Bagua Pants</legs> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Radial Arcana"> <aftercastdelay delay = ".4" /> <equip when="Precast"> <feet>Bagua Sandals</feet> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Theurgic Focus"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Concentric Pulse"> <aftercastdelay delay = ".4" /> <equip when="Precast"> </equip> <equip when="aftercast" set="%status" /> </elseif> <elseif spell="Spectral Jig"> <command when="Precast">cancel 71</command> </elseif> </if> <!-- WS Rules --> <if type="Weaponskill"> <if spell="Hexa Strike"> <precastdelay delay="0.5" /> <aftercastdelay delay="0.5" /> <equip when="precast" set="Hexa" /> <equip when="aftercast" set="%status" /> </if> <else> <castdelay delay=".2" /> <equip when="precast" set="WS" /> <equip when="aftercast" set="%status" /> </else> </if> <!-- Magic Rules --> <!-- Geomancy Rules --> <if skill="Geomancy"> <if Spell="Indi-*|Geo-*"> <equip when="precast" set="Fastcast" /> <equip when="midcast" set="Geo" /> <equip when="aftercast" set="%status" /> </if> </if> <!-- White Magic Rules --> <if skill="HealingMagic"> <if Spell="Cure*"> <action type="equip" when="precast" set="Quick Cure" /> <action type="equip" when="midcast" set="Curing" /> <equip when="aftercast" set="%status" /> </if> <else> <action type="equip" when="precast" set="Quick Magic" /> <action type="equip" when="midcast" set="Quick Magic" /> <equip when="aftercast" set="%status" /> </else> </if> <!-- Enhancing Magic Rules --> <if skill="EnhancingMagic"> <if spell="Refresh*|Haste|Regen*|*Spikes|Teleport*|Sneak|Invisible"> <equip when="precast" set="Quick Magic"/> <equip when="midcast" set="Quick Magic"/> <equip when="aftercast" set="%status" /> </if> <elseif spell="Stoneskin"> <equip when="precast" set="EnhaFast"/> <equip when="midcast" set="Enhancing"> <waist>Siegel Sash</waist> </equip> <equip when="aftercast" set="%status" /> </elseif> <else> <action type="equip" set="EnhaFast" /> <equip when="midcast" set="Enhancing"/> <equip when="aftercast" set="%status" /> </else> </if> <!-- Black Magic Rules --> <if Skill="ElementalMagic"> <equip when="precast" set="Fastcast"> <main>$%SpellElementStaff</main> <hands>Bagua Mitaines</hands> </equip> <equip when="midcast" set="Nuking"/> <if Advanced='"%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement"'> <equip when="midcast"> <waist >$%SpellElementObi</waist> <back >Twilight Cape</back> </equip> </if> <if spell="Impact"> <action type="castdelay" delay="1.0"/> <action type="equip" when="precast" set="PreImpact"/> <action type="midcastdelay" delay="1.9"/> <action type="equip" when="midcast" set="Impact"/> </if> </if> <!-- Enfeebling Magic Rules --> <if Skill="EnfeeblingMagic"> <equip when="precast" set="Fastcast"> <main>$%SpellElementStaff</main> </equip> <equip when="midcast" set="Enfeebling"/> <equip when="aftercast" set="%status" /> </if> <!--Dark Magic Rules --> <if Skill="DarkMagic"> <if spell="Stun" > <equip when="precast" set="Quick Magic" /> <equip when="midcast" set="Stun" /> <equip when="aftercast" set="%status" /> </if> <else> <equip when="precast" set="Fastcast"> <main>$%SpellElementStaff</main> </equip> <equip when="midcast" set="Dark"/> </else> </if> <!-- Ninjutsu Magic Rules --> <if Skill="Ninjutsu"> <if spell="Utsusemi: Ichi"> <defaulttarget target="<me>" /> <castdelay delay=".2" /> <equip when="precast" set="Fastcast" /> <!-- The next 4 lines are used to cancel shadows incase you have Ni active --> <!-- 66 is for 1 shadow, 446 is for 2 shadows, 445 is if you have 3 shadows active --> <!-- No way to program Spellcast to discern if Ichi or Ni is active w/o auto exec --> <midcastdelay delay="2.5" /> <command when="midcast">cancel 66</command> <command when="midcast">cancel 446</command> <command when="midcast">cancel 445</command> <equip when="aftercast" set="%status" /> </if> <elseif spell="Utsusemi: Ni"> <defaulttarget target="<me>" /> <castdelay delay=".2" /> <equip when="precast" set="Fastcast" /> <equip when="aftercast" set="%status" /> </elseif> <else> <equip when="precast" set="Fastcast"> <main>$%SpellElementStaff</main> </equip> <equip when="aftercast" set="%status" /> </else> </if> <!-- Closing Spellcast --> </rules> </spellcast>