<?xml version="1.0" ?>
<spellcast>
<!-- SpellCast Configurations -->
<config Debug="false" HideErrors="false" ShowSpellInfo="false" ShowGearSwaps="false" />
<!-- SpellCast Variables -->
<variables clear="false">
<var name="SkillUp">1</var> <!-- /Heal Break DO NOT ALTER -->
<var name="FirstSetup">1</var> <!-- First Run Display Var DO NOT ALTER-->
<var name="SkillCycle">1</var> <!-- Spell Cycle DO NOT ALTER -->
<!-- You can alter these variables, 180 is 3 min. of resting -->
<var name="RestTime">180</var> <!-- Set REST time for segments -->
</variables>
<sets>
</sets>
<rules>
<!-- Setup First Run Notification -->
<if advanced='"$FirstSetup" == "1"'>
<action type="command">bind ^escape input /echo Exiting.;unload spellcast;unbind ^escape;</action>
<action type="AddToChat" color="121">--- SkillUp.Xml v1.1 ---</action>
<action type="AddToChat" color="121">Press CTRL+Escape at anytime to unload spellcast and exit SkillUp.Xml</action>
<action type="var" cmd="set FirstSetup 0" />
</if>
<!-- Summoning Magic Skill-Up Segment -->
<if spell="Carbuncle">
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="15" MP="15">
<if notspell="release">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
</else>
</if>
<!-- Smn Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Carbuncle" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Ifrit" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Titan" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Leviathan" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Garuda" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 7" />
<action type="changespell" spell="Shiva" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "7"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 8" />
<action type="changespell" spell="Ramuh" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "8"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 9" />
<action type="changespell" spell="Fenrir" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "9"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Diabolos" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</if>
<!-- Healing Magic Skill-Up Segment -->
<elseif spell="Cure" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "4|5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="46" MP="46">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cure"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cure"</action>
</else>
</if>
<!-- Healing Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Cure" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Cure II" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Cure III" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Enhancing Magic Skill-Up Segment -->
<elseif spell="Protect" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="18" MP="18">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Protect"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Protect"</action>
</else>
</if>
<!-- Enhancing Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Barfira" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Barblizzara" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Baraera" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Barstonra" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Barthundra" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Barwatera" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Singing/Wind/String Magic Skill-Up Segment -->
<elseif spell="Army's Paeon VI" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="18" MP="18">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Army's Paeon VI"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Army's Paeon VI"</action>
</else>
</if>
<!-- BRD Skills Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Mage's Ballad III" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Knight's Minne V" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Valor Minuet V" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Fire Carol II" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Blue-Magic Skill-Up Segment -->
<elseif spell="Cocoon" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "4|5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="46" MP="46">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cocoon"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cocoon"</action>
</else>
</if>
<!-- Blue-Magic Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Pollen" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Wild Carrot" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Healing Breeze" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Geomancy Skill-Up Segment -->
<elseif spell="Indi-Poison" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="38" MP="38">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Indi-Poison"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Indi-Poison"</action>
</else>
</if>
<!-- Geomancy Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Indi-Precision" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Indi-Voidance" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Indi-Regen" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Indi-Attunement" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Indi-Focus" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Indi-Barrier" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
</rules>
</spellcast>
<spellcast>
<!-- SpellCast Configurations -->
<config Debug="false" HideErrors="false" ShowSpellInfo="false" ShowGearSwaps="false" />
<!-- SpellCast Variables -->
<variables clear="false">
<var name="SkillUp">1</var> <!-- /Heal Break DO NOT ALTER -->
<var name="FirstSetup">1</var> <!-- First Run Display Var DO NOT ALTER-->
<var name="SkillCycle">1</var> <!-- Spell Cycle DO NOT ALTER -->
<!-- You can alter these variables, 180 is 3 min. of resting -->
<var name="RestTime">180</var> <!-- Set REST time for segments -->
</variables>
<sets>
</sets>
<rules>
<!-- Setup First Run Notification -->
<if advanced='"$FirstSetup" == "1"'>
<action type="command">bind ^escape input /echo Exiting.;unload spellcast;unbind ^escape;</action>
<action type="AddToChat" color="121">--- SkillUp.Xml v1.1 ---</action>
<action type="AddToChat" color="121">Press CTRL+Escape at anytime to unload spellcast and exit SkillUp.Xml</action>
<action type="var" cmd="set FirstSetup 0" />
</if>
<!-- Summoning Magic Skill-Up Segment -->
<if spell="Carbuncle">
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="15" MP="15">
<if notspell="release">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
</else>
</if>
<!-- Smn Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Carbuncle" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Ifrit" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Titan" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Leviathan" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Garuda" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 7" />
<action type="changespell" spell="Shiva" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "7"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 8" />
<action type="changespell" spell="Ramuh" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "8"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 9" />
<action type="changespell" spell="Fenrir" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "9"'>
<action type="command" when="aftercast">wait 2;input /ja "Release";wait 2;input /ma "Carbuncle"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Diabolos" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</if>
<!-- Healing Magic Skill-Up Segment -->
<elseif spell="Cure" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "4|5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="46" MP="46">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cure"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cure"</action>
</else>
</if>
<!-- Healing Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Cure" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Cure II" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Cure"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Cure III" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Enhancing Magic Skill-Up Segment -->
<elseif spell="Protect" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="18" MP="18">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Protect"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Protect"</action>
</else>
</if>
<!-- Enhancing Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Barfira" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Barblizzara" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Baraera" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Barstonra" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Barthundra" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 3;input /ma "Protect"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Barwatera" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Singing/Wind/String Magic Skill-Up Segment -->
<elseif spell="Army's Paeon VI" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="18" MP="18">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Army's Paeon VI"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Army's Paeon VI"</action>
</else>
</if>
<!-- BRD Skills Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Mage's Ballad III" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Knight's Minne V" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Valor Minuet V" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Army's Paeon VI"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Fire Carol II" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Blue-Magic Skill-Up Segment -->
<elseif spell="Cocoon" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "4|5|6|7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="46" MP="46">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cocoon"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Cocoon"</action>
</else>
</if>
<!-- Blue-Magic Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Pollen" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Wild Carrot" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Cocoon"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Healing Breeze" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
<!-- Geomancy Skill-Up Segment -->
<elseif spell="Indi-Poison" >
<!-- Check if /Heal Break is active -->
<if advanced='"$SkillUp" == "1"'>
<!-- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
<if advanced='"$SkillCycle" == "7|8|9"'>
<action type="var" cmd="set SkillCycle 1" />
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="cancelspell"/>
</if>
<!-- Check if your MP is low -->
<if Mode="OR" NOTMPGT="38" MP="38">
<if notspell="blink">
<action type="command" when="precast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Indi-Poison"</action>
<action type="cancelspell"/>
</if>
<else>
<action type="command" when="aftercast">input /heal on;wait $RestTime;input /heal off;wait 2;input /ma "Indi-Poison"</action>
</else>
</if>
<!-- Geomancy Skill Cycling -->
<elseif advanced='"$SkillCycle" == "1"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 2" />
<action type="changespell" spell="Indi-Precision" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "2"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 3" />
<action type="changespell" spell="Indi-Voidance" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "3"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 4" />
<action type="changespell" spell="Indi-Regen" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "4"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 5" />
<action type="changespell" spell="Indi-Attunement" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "5"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 6" />
<action type="changespell" spell="Indi-Focus" />
<action type="Changetarget" target="<me>"/>
</elseif>
<elseif advanced='"$SkillCycle" == "6"'>
<action type="command" when="aftercast">wait 3;input /ma "Indi-Poison"</action>
<action type="var" cmd="set SkillCycle 1" />
<action type="changespell" spell="Indi-Barrier" />
<action type="Changetarget" target="<me>"/>
</elseif>
</if>
</elseif>
</rules>
</spellcast>