<?xml version="1.0" ?>
<!DOCTYPE spellcast PUBLIC "spellcast" "spellcast.dtd">
<spellcast>
<!--
==========================Ivelio's Galka RDM XML==========================
| This is the XML for a 75 Galka RDM. You'll notice that this code is |
| very heavy on MP management. Some of the situational gear can easily |
| be changed to fit a multitude of races. But again, it takes some very |
| heavy MP management and you'll need to break down the sets one at a to |
| see where your MP will be for each scenario. It should also be noted |
| that this code is designed around no food active what so ever. You will|
| have to adjust MP variables depending on what food you have active at |
| the time. |
==========================================================================
-->
<config requireversion="2.22" />
<variables>
<!--Variable for Master Caster's Bracelets -->
<var name="Bracelets">0</var>
<!--Variable for Sleep Timer in Echo. Set to 0 to not use.-->
<var name="SleepTimers">1</var>
<!-- Variable for High Resist Mobs for Nukes -->
<var name="resist">0</var>
<!-- Variable for UggPendant. Set to 0 if you don't have. -->
<var name="UggPendant">0</var>
<!-- Variable for if you are tanking. -->
<var name="tanking">0</var>
<!-- Elemental Staffs, input what staff to use for each element here -->
<var name="IceStaff">Aquilo's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="LightStaff">Light Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="FireStaff">Fire Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="WaterStaff">Neptune's Staff</var>
</variables>
<sets>
<group name="Red Mage" default="yes">
<!-- Start of General Purpose Builds. -->
<set name="Standard"><!--HP:1208 MP:741-->
<main>$EarthStaff</main>
<sub>Staff Strap</sub>
<ammo>Hedgehog Bomb</ammo>
<head>Duelist's Chapeau</head>
<neck>Orochi Nodowa</neck>
<lear>Antivenom Earring</lear>
<rear>Loquacious Earring</rear>
<body>Goliard Saio</body>
<hands>Dune Bracers</hands>
<lring>Serket Ring</lring>
<rring>Ether Ring</rring>
<back>Shadow Mantle</back>
<waist>Desert Rope</waist>
<legs>Tatsumaki Sitagoromo</legs>
<feet>Zenith Pumps</feet>
</set>
<set name="FastCast" baseset="Standard"><!--MP:754-->
<head>Warlock's Chapeau +1</head>
<neck>Beak Necklace</neck>
<body>Duelist's Tabard</body>
</set>
<set name="Haste" baseset="Standard"><!--MP:758-->
<main>Fourth Divison Mace</main>
<sub>Sentinel Shield</sub>
<neck>Morgana's Choker</neck>
<back>Lamia Mantle +1</back>
<waist>Speed Belt</waist>
<legs>Nashira Seraweels</legs>
</set>
<set name="MaxHaste" baseset="Haste"><!--MP:692-->
<hands>Dusk Gloves</hands>
</set>
<set name="Convert" baseset="Standard"> <!--HP:1058 MP:928 -->
<main>Fourth Division Mace</main>
<sub>Astral Aspis</sub>
<head>Zenith Crown</head>
<neck>Morgana's Choker</neck>
<back>Lamia Mantle +1</back>
<legs>Zenith Slacks</legs>
<feet>Zenith Pumps</feet>
</set>
<set name="Resting" baseset="Standard"><!--MP:722-->
<main>$DarkStaff</main>
<sub>Ariesian Grip</sub>
<neck>Beak Necklace</neck>
<body>Warlock's Tabard +1</body>
<waist>Hierarch Belt</waist>
<legs>Yigit Seraweels</legs>
<feet>Goliard Clogs</feet>
</set>
<set name="Stoneskin" baseset="Standard"><!--MP:750 MND:63+25 Enhancing:271-->
<sub>Raptor Leather Strap +1</sub>
<head>Zenith Crown</head>
<neck>Morgana's Choker</neck>
<lear>Antivenom Earring</lear>
<hands>Duelist's Gloves</hands>
<back>Aslan Cape</back>
<legs>Nashira Seraweels</legs>
<feet>Morrigan's Pigaches</feet>
</set>
<set name="SSHaste" baseset="Stoneskin"><!--MP:690-->
<waist>Speed Belt</waist>
</set>
<set name="EnhancingMagic" baseset="Standard">
<hands>Duelist's Gloves</hands>
<legs>Zenith Slacks</legs>
</set>
<set name="DarkMagic" baseset="Standard">
<neck>Dark Torque</neck>
<hands>Crimson Finger Gauntlets</hands>
<legs>Zenith Slacks</legs>
</set>
<set name="BaseCure" baseset="Standard"><!--MP:727-->
<head>Zenith Crown</head>
<neck>Mogana's Choker</neck>
<lring>Sapphire Ring</lring>
<rring>Omega Ring</rring>
<back>Aslan Cape</back>
<feet>Morrigan's Pigaches</feet>
</set>
<set name="MaxCure" baseset="BaseCure"><!--MP:667-->
<waist>Penitent's Rope</waist>
</set>
<!-- End of sets for General Purpose Builds. -->
<!-- Start of sets for Mnd based enfeebling spells. -->
<set name="BaseMndEnfeeb" baseset="Standard"><!--MP:761 MND:63+32 Skill:322-->
<sub>Raptor Leather Strap +1</sub>
<neck>Morgana's Choker</neck>
<body>Warlock's Tabard +1</body>
<lring>Sapphire Ring</lring>
<back>Aslan Cape</back>
<legs>Zenith Slacks</legs>
<feet>Morrigan's Pigaches</feet>
</set>
<set name="MndBoostOne" baseset="BaseMndEnfeeb"><!--MP:723 MND:63+35 Skill:322-->
<rring>Omega Ring</rring>
</set>
<set name="MndBoostTwo" baseset="MndBoostOne"><!--MP:693 MND:63+35 Skill:322-->
<ammo>Sturm's Report</ammo>
</set>
<set name="MndBoostThree" baseset="MndBoostTwo"><!--MP:659 MND:63+45 Skill:307-->
<body>Errant Houppelande</body>
</set>
<set name="MaxMndEnfeeb" baseset="MndBoostThree"><!--MP:599 MND:63+50 Skill:307-->
<waist>Penitent's Rope</waist>
</set>
<!-- End of sets for Mnd based enfeebling spells. -->
<!-- Start of sets for Skill based enfeebling spells. -->
<set name="BaseSkillEnfeeb" baseset="Standard"><!--MP:759 Skill:334-->
<neck>Enfeebling Torque</neck>
<body>Warlock's Tabard +1</body>
<legs>Nashira Seraweels</legs>
</set>
<set name="SkillBoostOne" baseset="BaseSkillEnfeeb"><!--MP:719 Skill:334-->
<sub>Bugard Leather Strap +1</sub>
<ammo>Sturm's Report</ammo>
</set>
<set name="SkillBoostTwo" baseset="SkillBoostOne"><!--MP:689 Skill:334-->
<rring>Omega Ring</rring>
</set>
<set name="SkillBoostThree" baseset="SkillBoostTwo"><!--MP:643 Skill:334-->
<back>Gleeman's Cape</back>
</set>
<set name="SkillBoostFour" baseset="SkillBoostThree"><!--MP:593 Skill:334-->
<lring>Snow Ring</lring>
</set>
<set name="MaxSkillEnfeeb" baseset="SkillBoostFour"><!--MP:543 Skill:334-->
<feet>Goliard Clogs</feet>
</set>
<!-- End of sets for Mnd based enfeebling spells. -->
<!-- Start of sets for Nuking spells. -->
<set name="BaseNuke" baseset="Standard"><!--MP:754 Skill:273-->
<sub>Bugard Leather Strap +1</sub>
<head>Warlock's Chapeau +1</head>
<neck>Elemental Torque</neck>
<lear>Moldavite Earring</lear>
<hands>Zenith Mitts</hands>
<legs>Duelist's Tights</legs>
</set>
<set name="NukeBoostOne" baseset="BaseNuke"><!--MP:632 Skill:273-->
<body>Errant Houppelande</body>
<lring>Snow Ring</lring>
<rring>Snow Ring</rring>
</set>
<set name="NukeBoostTwo" baseset="NukeBoostOne"><!--MP:506 Skill:273-->
<ammo>Sturm's Report</ammo>
<back>Gleeman's Cape</back>
<feet>Goliard Clogs</feet>
</set>
<set name="MaxResist" baseset="NukeBoostTwo"><!--MP:414 Skill:273-->
<hands>Duelist's Gloves</hands>
<waist>Penitent's Rope</waist>
</set>
<set name="MaxMABNuke" baseset="NukeBoostTwo"><!--MP:440 Skill:263-->
<ammo>Phantom Tathlum</ammo>
<waist>Penitent's Rope</waist>
<legs>Mahatma Slops</legs>
</set>
<!-- End of sets for Nuking spells. -->
</group>
</sets>
<rules>
<!-- Standing Gear to return to from casting or resting. -->
<if status="idle">
<action type="equip" when="idle|aftercast" set="Standard" />
</if>
<elseif status="engaged">
<action type="equip" when="engaged|aftercast" set="MaxHaste" />
</elseif>
<!-- Gear to equip when resting -->
<action type="equip" when="Resting" set="Resting" />
<!-- Small piece of code to re-equip standing gear from no gear/locked gear -->
<if spell="Cure V">
<action type="equip" when="precast" set="Standard" />
<action type="cancelspell" />
<action type="return" />
</if>
<!--Simple convert that takes having Composure active into account.-->
<if spell="Convert">
<if buffactive="Composure">
<action type="castdelay" delay=".2"></action>
<action type="equip" when="precast|midcast|aftercast" set="Convert"/>
<action type="command" when="aftercast">input /raw /ma "Cure IV" Ivelios; wait 10; input /raw /ma "Cure IV" Ivelios</action>
</if>
<else>
<action type="castdelay" delay=".2"></action>
<action type="equip" when="precast|midcast|aftercast" set="Convert"/>
<action type="command" when="aftercast">input /raw /ma "Cure IV" Ivelios; wait 8; input /raw /ma "Cure IV" Ivelios</action>
</else>
</if>
<!-- End of convert check. -->
<!-- Check to see if we are casting a spell -->
<if skill="*Magic">
<!--Equip FastCast Gear before every spell-->
<action type="equip" when="precast" set="FastCast" />
<!--Start check for Enfeebling Magic Spells.-->
<if skill="EnfeeblingMagic">
<!--Start check for Mnd based enfeebling spells.-->
<if spell="Paralyze*|Slow*">
<if mplt="600">
<action type="equip" when="midcast" set="MaxMndEnfeeb" />
</if>
<elseif mplt="660">
<action type="equip" when="midcast" set="MndBoostThree" />
</elseif>
<elseif mplt="694">
<action type="equip" when="midcast" set="MndBoostTwo" />
</elseif>
<elseif mplt="724">
<action type="equip" when="midcast" set="MndBoostOne" />
</elseif>
<else>
<action type="equip" when="midcast" set="BaseMndEnfeeb" />
</else>
</if>
<!--End of check for Mnd based enfeebling spells.-->
<!--Start check for Skill based enfeebling spells.-->
<else>
<!-- Check to see if you are tanking a mob. -->
<if advanced="$tanking==1">
<if spell="Sleep*|Dispel|Blind*|Bind">
<action type="equip" when="midcast">
<main lock="true">Macuahuitl +1</main>
<sub lock="true">Avalon Shield</sub>
</action>
</if>
</if>
<if mplt="544">
<action type="equip" when="midcast" set="MaxSkillEnfeeb" />
<if advanced="$Bracelets==1">
<action type="equip" when="midcast">
<hands lock="true">Master Caster's Bracelets</hands>
</action>
</if>
</if>
<elseif mplt="594">
<action type="equip" when="midcast" set="SkillBoostFour" />
</elseif>
<elseif mplt="644">
<action type="equip" when="midcast" set="SkillBoostThree" />
</elseif>
<elseif mplt="690">
<action type="equip" when="midcast" set="SkillBoostTwo" />
</elseif>
<elseif mplt="720">
<action type="equip" when="midcast" set="SkillBoostOne" />
</elseif>
<else>
<action type="equip" when="midcast" set="BaseSkillEnfeeb" />
</else>
</else>
<!--End of check for Skill based enfeebling spells.-->
<!--Equip the right staff to the element.-->
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
</action>
</if>
<!--End of check for Enfeebling Magic spells.-->
<!--Start of check for Elemental Magic spells.-->
<if skill="ElementalMagic">
<!-- Is it a mob that has a High Resistance to Elemental Nukes? -->
<if advanced="$resist==1">
<if mplt="415">
<action type="equip" when="midcast" set="MaxResist"/>
</if>
<elseif mplt="507">
<action type="equip" when="midcast" set="NukeBoostTwo"/>
</elseif>
<elseif mplt="633">
<action type="equip" when="midcast" set="NukeBoostOne"/>
</elseif>
<else>
<action type="equip" when="midcast" set="BaseNuke"/>
</else>
</if>
<else>
<if mplt="441">
<action type="equip" when="midcast" set="MaxMABNuke"/>
</if>
<elseif mplt="507">
<action type="equip" when="midcast" set="NukeBoostTwo"/>
</elseif>
<elseif mplt="633">
<action type="equip" when="midcast" set="NukeBoostOne"/>
</elseif>
<else>
<action type="equip" when="midcast" set="BaseNuke"/>
</else>
<!-- Handles the use of an UggPendant should you have one. -->
<if advanced="$UggPendant==1" mppaftercastlt="50">
<action type="equip" when="midcast">
<neck lock="yes">Uggalepih Pendant</neck>
</action>
</if>
</else>
<!--Equip the right staff to the element.-->
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
</action>
</if>
<!--End of check for Elemental Magic Spells.-->
</if>
<!-- End Checks for if it is a Magic Skill -->
<!-- Start checks for general purpose spells. -->
<!-- Handle gear for Cure spells. -->
<if spell="Cur*">
<if mplt="668">
<action type="equip" when="midcast" set="MaxCure" />
</if>
<else>
<action type="equip" when="midcast" set="BaseCure" />
</else>
<!--Equip the right staff to the element.-->
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
</action>
</if>
<!-- Handle gear for Dark Magic Spells. -->
<if skill="DarkMagic">
<action type="equip" when="midcast" set="DarkMagic" />
</if>
<!-- Handle gear for Enhancing Magic Spells. -->
<if spell="Phalan*|En*">
<action type="equip" when="midcast" set="EnhancingMagic" />
</if>
<!-- Start check and countdown for timers for Sleep spells if you use them. -->
<if advanced='"$SleepTimers"="1"'>
<if spell="Sleep II">
<action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /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>
<!-- End of check of Sleep countdown timers. -->
<!-- Start checks for Stoneskin situations. -->
<if spell="Stoneskin" buffactive="Composure">
<if buffactive="Stoneskin">
<if mplt="691">
<action type="equip" when="midcast" set="SSHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Stoneskin" />
</else>
<action type="command" when="midcast">cancel 37</action>
<action type="midcastdelay" delay="3.9" />
</if>
<else>
<action type="equip" when="midcast" set="Stoneskin" />
</else>
</if>
<if spell="Stoneskin" buffactive="Stoneskin">
<if mplt="691">
<action type="equip" when="midcast" set="SSHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Stoneskin" />
</else>
<action type="command" when="midcast">cancel 37</action>
<action type="midcastdelay" delay="3.5" />
</if>
<if spell="Stoneskin">
<if mplt="691">
<action type="equip" when="midcast" set="SSHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Stoneskin" />
</else>
</if>
<!--End of checks for stoneskin.-->
<!-- Handle Utsusemi spells -->
<if spell="Utsusemi: Ichi" buffactive="Composure">
<if buffactive="Copy Image">
<if mplt="693">
<action type="equip" when="midcast" set="MaxHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Haste" />
</else>
<action type="midcastdelay" delay="2.0" />
<action type="command" when="midcast">cancel 66</action>
</if>
<else>
<if mplt="693">
<action type="equip" when="midcast" set="MaxHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Haste" />
</else>
</else>
</if>
<if spell="Utsusemi: Ichi" buffactive="Copy Image">
<if mplt="693">
<action type="equip" when="midcast" set="MaxHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Haste" />
</else>
<action type="midcastdelay" delay="1.8" />
<action type="command" when="midcast">cancel 66</action>
</if>
<if spell="Utsusemi: Ichi">
<if mplt="693">
<action type="equip" when="midcast" set="MaxHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Haste" />
</else>
</if>
<if spell="Utsusemi: Ni">
<if mplt="693">
<action type="equip" when="midcast" set="MaxHaste" />
</if>
<else>
<action type="equip" when="midcast" set="Haste" />
</else>
</if>
<!-- End of Checks for Utsusemi spells. -->
<!-- End of checks for Genereal purpose spells. -->
</rules>
</spellcast>