Advertisement
feary

skillup2.xml

Feb 1st, 2014
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 100.14 KB | None | 0 0
  1. <!--
  2. Original Coding Written by: Genesisx (Windower Forums)
  3. Updated Coding Written by: Nimotas
  4. Last Updated: 06/09/13
  5. Current Version: Skillup_v3.7
  6. -->
  7.  
  8. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  9.   <!-- SpellCast Configurations -->
  10.   <config Debug="false" HideErrors="false" ShowSpellInfo="false" ShowGearSwaps="false" />
  11.   <guildwork character="Feary" server="Sylph" description="Nimotas's Skillup" job="BRD"/>
  12.   <!-- SpellCast Variables -->
  13.   <variables clear="True">
  14.     <!-- DO NOT ALTER THESE VARIABLES -->
  15.     <var name="CurrentVersion">v3.7</var>
  16.     <!-- Current Skillup Coding Version DO NOT ALTER -->
  17.     <var name="FirstSetup">1</var>
  18.     <!-- First Run Display Var DO NOT ALTER-->
  19.     <var name="SkillCycle">1</var>
  20.     <!-- Spell Cycle DO NOT ALTER -->
  21.     <var name="CurrentSpell">Cure</var>
  22.     <!-- Spell Cycle NO NOT ALTER -->
  23.     <var name="FoodCycle">1</var>
  24.     <!-- Food Cycle DO NOT ALTER -->
  25.     <var name="SkillUp">1</var>
  26.     <!-- Skill-Up Pause Cycle DO NOT ALTER -->
  27.  
  28.     <!-- YOU MAY ALTER THESE VARIABLES -->
  29.     <var name="Show.Debug">False</var>
  30.     <!-- Show Process/Debug Info True/False -->
  31.  
  32.     <!-- Automatic Script End Variables -->
  33.     <!-- Order of Days: Firesday -> Earthsday -> Watersday -> Windsday -> Iceday -> Lightningday -> Lightsday -> Darksday -->
  34.     <var name="SUEndDay">Windsday</var>
  35.     <!-- Change value to the name of the day you want the script to auto end or leave blank for continuous run. -->
  36.     <var name="SUEndTime">0.00</var>
  37.     <!-- Change value to the time of the day you want the script to auto end -->
  38.  
  39.     <!-- You can alter these variables to use Skill UP food or not. -->
  40.     <var name="UseFood">True</var>
  41.     <!-- Use skill-up food True/False -->
  42.     <var name="FoodName">B.E.W. Pitaru</var>
  43.     <!-- Valid Magic Food: Stuffed Pitaru, Poultry Pitaru, Seafood Pitaru, B.E.W. Pitaru -->
  44.     <!-- Valid Melee Food: Saltena, Elshena, Montagna, Maringna-->
  45.  
  46.     <!-- Time is in seconds. -->
  47.     <var name="WaitTime4SMN">2</var>
  48.     <!-- Set time to wait in-between SMN Skill actions -->
  49.     <var name="WaitTime4Healing">2</var>
  50.     <!-- Set time to wait in-between Healing Skill actions -->
  51.     <var name="WaitTime4Enhancing">2</var>
  52.     <!-- Set time to wait in-between Enhancing Skill actions -->
  53.     <var name="WaitTime4BLU">2</var>
  54.     <!-- Set time to wait in-between Blue Magic Skill actions -->
  55.     <var name="WaitTime4GEO">2</var>
  56.     <!-- Set time to wait in-between Geomancy Skill actions -->
  57.     <var name="WaitTime4BRD">2</var>
  58.     <!-- Set time to wait in-between BRD Skill actions -->
  59.     <var name="WaitTime4Dark">2</var>
  60.     <!-- Set time to wait in-between Dark Skill actions -->
  61.     <var name="WaitTime4Divine">2</var>
  62.     <var name="WaitTime4Enlight">24</var>
  63.     <!-- Set time to wait in-between Divine Skill actions -->
  64.     <var name="WaitTime4Elemental">2</var>
  65.     <!-- Set time to wait in-between Elemental Skill actions -->
  66.     <var name="WaitTime4Enfeebling">2</var>
  67.     <!-- Set time to wait in-between Enfeebling Skill actions -->
  68.     <var name="WaitTime4ninjitsu">2</var>
  69.     <!-- Set time to wait in-between Enfeebling Skill actions -->
  70.  
  71.  
  72.     <!-- Summons: 1= Use, 0= Do not use -->
  73.     <var name="CarbuncleAva">1</var>
  74.     <!-- This must remain set to 1 since all SMN's have Carbuncle -->
  75.     <var name="IfritAva">1</var>
  76.     <var name="TitanAva">1</var>
  77.     <var name="LeviathanAva">1</var>
  78.     <var name="GarudaAva">1</var>
  79.     <var name="ShivaAva">1</var>
  80.     <var name="RamuhAva">1</var>
  81.     <var name="FenrirAva">1</var>
  82.     <var name="DiabolosAva">1</var>
  83.  
  84.   </variables>
  85.  
  86.   <sets>
  87.     <!-- Specify Resting / Standard gear if desired -->
  88.     <group name="SMN" default="yes">
  89.       <set name="Standard">
  90.         <main></main>
  91.         <sub></sub>
  92.         <ammo></ammo>
  93.         <head></head>
  94.         <neck></neck>
  95.         <lear></lear>
  96.         <rear></rear>
  97.         <body></body>
  98.         <hands></hands>
  99.         <lring></lring>
  100.         <rring></rring>
  101.         <back></back>
  102.         <waist></waist>
  103.         <legs></legs>
  104.         <feet></feet>
  105.       </set>
  106.       <set name="Resting Gear" BaseSet="Standard">
  107.        
  108.       </set>
  109.     </group>
  110.  
  111.     <group name="SCH">
  112.       <set name="Standard">
  113.       </set>
  114.       <set name="Resting Gear" BaseSet="Standard">
  115.       </set>
  116.     </group>
  117.  
  118.     <group name="WHM">
  119.       <set name="Standard">
  120.       </set>
  121.       <set name="Resting Gear" BaseSet="Standard">
  122.       </set>
  123.     </group>
  124.  
  125.     <group name="BLU">
  126.       <set name="Standard">
  127.       </set>
  128.       <set name="Resting Gear" BaseSet="Standard">
  129.       </set>
  130.     </group>
  131.  
  132.     <group name="GEO">
  133.       <set name="Standard">
  134.       </set>
  135.       <set name="Resting Gear" BaseSet="Standard">
  136.         <main>Chatoyant Staff</main>
  137.         <neck>Eidolon Pendant</neck>
  138.         <body>Bokwus Robe</body>
  139.         <hands>Serpentes Cuffs</hands>
  140.         <legs>Nares Trews</legs>
  141.         <feet>Chelona Boots</feet>
  142.         <waist>Austerity Belt</waist>
  143.         <back>Felicitas Cape</back>
  144.         <lear>Magnetic Earring</lear>
  145.         <rear>Moonshade Earring</rear>
  146.       </set>
  147.     </group>
  148.  
  149.     <group name="BRD">
  150.       <set name="Standard">
  151.       </set>
  152.       <set name="Resting Gear" BaseSet="Standard">
  153.       </set>
  154.     </group>
  155.  
  156.     <group name="BLM">
  157.       <set name="Standard">
  158.       </set>
  159.       <set name="Resting Gear" BaseSet="Standard">
  160.       </set>
  161.     </group>
  162.  
  163.     <group name="RDM">
  164.       <set name="Standard">
  165.         <main>$Maccstaff</main>
  166.         <!-- Buremte Hat-->
  167.         <head>Nahtirah Hat</head>
  168.         <!-- Wilke Torque-->
  169.         <neck>Enfeebling Torque</neck>
  170.         <body>Estq. Sayon +2</body>
  171.         <hands>Estq. Ganthrt. +2</hands>
  172.         <legs>Bokwus Slops</legs>
  173.         <!-- Uk'uxkaj Boots -->
  174.         <feet>Bokwus Boots</feet>
  175.         <waist>Demonry Sash</waist>
  176.         <back>Refraction Cape</back>
  177.         <lring>Balrahn's ring</lring>
  178.         <rring>Sangoma Ring</rring>
  179.         <lear>Lifestorm Earring</lear>
  180.         <rear>Psystorm Earring</rear>
  181.         <sub>Mephitis Grip</sub>
  182.         <ammo>Aureole</ammo>
  183.       </set>
  184.       <set name="Resting Gear" BaseSet="Standard">
  185.         <main>$RestingStaff</main>
  186.         <ammo>Clarus Stone</ammo>
  187.         <head>Dls. Chapeau +2</head>
  188.         <neck>Eidolon Pendant</neck>
  189.         <body>Bokwus Robe</body>
  190.         <hands>Serpentes Cuffs</hands>
  191.         <legs>Nares Trews</legs>
  192.         <feet>Chelona Boots</feet>
  193.         <waist>Austerity Belt</waist>
  194.         <back>Felicitas Cape</back>
  195.         <lear>Magnetic Earring</lear>
  196.         <rear>Moonshade Earring</rear>
  197.       </set>
  198.     </group>
  199.  
  200.     <group name="RUN">
  201.       <set name="Standard">
  202.       </set>
  203.       <set name="Resting Gear" BaseSet="Standard">
  204.       </set>
  205.     </group>
  206.  
  207.     <group name="DRK">
  208.       <set name="Standard">
  209.       </set>
  210.       <set name="Resting Gear" BaseSet="Standard">
  211.       </set>
  212.     </group>
  213.  
  214.     <group name="PLD">
  215.       <set name="Standard">
  216.         <head lock="true">Tema. Headband</head>
  217.         <body lock="true">Temachtiani Shirt</body>
  218.         <hands lock="true">Temachtiani Gloves</hands>
  219.         <legs lock="true">Temachtiani Pants</legs>
  220.         <feet lock="true">Temachtiani Boots</feet>
  221.         <rring lock="true">Prouesse Ring</rring>
  222.         <lear lock="true">Liminus Earring</lear>
  223.         <rear lock="true">Terminus Earring</rear>
  224.       </set>
  225.       <set name="Resting Gear" BaseSet="Standard">
  226.         <neck>Creed Collar</neck>
  227.         <head>Twilight Helm</head>
  228.         <body>Twilight Mail</body>
  229.         <lear>Magnetic earring</lear>
  230.         <rear>Moonshade earring</rear>
  231.       </set>
  232.     </group>
  233.    
  234.     <group name="NIN">
  235.       <set name="Standard">
  236.         <head lock="true">Tema. Headband</head>
  237.         <body lock="true">Temachtiani Shirt</body>
  238.         <hands lock="true">Temachtiani Gloves</hands>
  239.         <legs lock="true">Temachtiani Pants</legs>
  240.         <feet lock="true">Temachtiani Boots</feet>
  241.         <rring lock="true">Prouesse Ring</rring>
  242.         <lear lock="true">Liminus Earring</lear>
  243.         <rear lock="true">Terminus Earring</rear>
  244.       </set>
  245.       <set name="Resting Gear" BaseSet="Standard">
  246.        
  247.       </set>
  248.     </group>
  249.   </sets>
  250.  
  251.   <rules>
  252.     <!-- Rules for Idle/Resting Equipment Changes -->
  253.     <action type="equip" when="idle" set="Standard" />
  254.     <action type="equip" when="resting" set="Resting Gear" />
  255.  
  256.     <!-- Setup First Run Notification -->
  257.     <if advanced='"$FirstSetup" == "1"'>
  258.       <!-- Set $CurrentSpell variable to the spell cast by user -->
  259.       <var cmd="set CurrentSpell %spell" />
  260.  
  261.       <action type="command">alias SUEnd input /echo --- Exiting SkillUp Script $CurrentVersion ---;unload spellcast;unbind ^escape;unbind f10;unbind f12;wait 3;load spellcast;wait 3;input /ja "Release";</action>
  262.       <action type="command">bind ^escape SUEnd</action>
  263.  
  264.       <action type="command">alias SUReset input /echo --- Resetting SkillUp Script $CurrentVersion ---;sc reload</action>
  265.       <action type="command">bind f10 SUReset</action>
  266.  
  267.       <action type="command">alias DebugOn input /echo --- Show Debug = ON ---;sc var set Show.Debug True;bind f11 DebugOff</action>
  268.       <action type="command">alias DebugOff input /echo --- Show Debug = Off ---;sc var set Show.Debug False;bind f11 DebugOn</action>
  269.       <action type="command">bind f11 DebugOn</action>
  270.  
  271.       <action type="command">alias PauseOn input /echo --- Pausing SkillUp Script $CurrentVersion ---;sc var set SkillUp 0;bind f12 PauseOff</action>
  272.       <action type="command">alias PauseOff input /echo --- Resuming SkillUp Script $CurrentVersion ---;sc var set SkillUp 1;bind f12 PauseOn;input /ma "$currentspell"</action>
  273.       <action type="command">bind f12 PauseOn</action>
  274.  
  275.       <if notspell="Carbuncle|Cure|Protect|Barfira|Barfire|Blaze Spikes|Pollen|Indi-Regen|Fire Carol|Mage's Ballad|Endark|Banish|Enlight|Burn|Fire|Bio|Dia|Sleep|Utsusemi: Ni">
  276.         <action type="AddToChat" color="204">--- SkillUp Script $CurrentVersion Loaded ---</action>
  277.         <action type="AddToChat" color="121">Cast one of the following spells to start the script:</action>
  278.  
  279.         <action type="AddToChat" color="166">Summoning Magic Skill: Carbuncle</action>
  280.         <action type="AddToChat" color="166">Healing Magic Skill: Cure</action>
  281.         <action type="AddToChat" color="166">Enhancing Magic Skill: Protect | Barfira | Barfire | Blaze Spikes</action>
  282.         <action type="AddToChat" color="166">Blue Magic Skill: Pollen</action>
  283.         <action type="AddToChat" color="166">Goemancy/Handbell Skill: Indi-Regen</action>
  284.         <action type="AddToChat" color="166">BRD Singing/Wind/String Skill: Fire Carol</action>
  285.         <action type="AddToChat" color="166">BRD Ballad Loop: Mage's Ballad</action>
  286.         <action type="AddToChat" color="166">Dark Magic Skill: Endark | Bio</action>
  287.         <action type="AddToChat" color="166">Divine Magic Skill: Banish</action>
  288.         <action type="AddToChat" color="166">Self Divine Magic Skill: Enlight</action>
  289.         <action type="AddToChat" color="166">Elemental Magic Skill: Burn | Fire</action>
  290.         <action type="AddToChat" color="166">Enfeebling Magic Skill: Dia</action>
  291.         <action type="AddToChat" color="166">Enfeebling Magic Skill: Sleep</action>
  292.         <action type="AddToChat" color="166">NInjitsu Magic Skill: Utsusemi: Ni</action>
  293.  
  294.  
  295.         <!-- Debug info -->
  296.         <if advanced='"$Show.Debug" == "True"'>
  297.           <addtochat color="207">Debug Process:: Incorrect Start Spell Detected - Show Start Spell List</addtochat>
  298.         </if>
  299.         <action type="AddToChat" color="204">--- Press CTRL+Escape at any time to exit SkillUp Script $CurrentVersion ---</action>
  300.         <cancelspell />
  301.         <return />
  302.       </if>
  303.  
  304.       <action type="AddToChat" color="204">--- Starting SkillUp Script $CurrentVersion - %skill ---</action>
  305.       <action type="AddToChat" color="121">Current Day is %Day, Current Time is %Time</action>
  306.       <action type="AddToChat" color="121">Script will Automatically End on $SUEndDay at or after $SUEndTime time</action>
  307.  
  308.       <!-- Set Equipment Group Using Main Job -->
  309.       <command>sc group %mainjob</command>
  310.       <action type="AddToChat" color="121">%job Detected - Setting Equipment Group to %mainjob</action>
  311.  
  312.       <action type="AddToChat" color="204">--- Press F10 to reset SkillUp Script $CurrentVersion to First Run ---</action>
  313.       <action type="AddToChat" color="204">--- Press F11 to toggle debug messages On/Off ---</action>
  314.       <action type="AddToChat" color="204">--- Press F12 at any time to Pause/Resume SkillUp Script $CurrentVersion ---</action>
  315.       <action type="AddToChat" color="204">--- Press CTRL+Escape at any time to exit SkillUp Script $CurrentVersion ---</action>
  316.       <action type="var" cmd="set FirstSetup 0" />
  317.       <!-- Debug info -->
  318.       <if advanced='"$Show.Debug" == "True"'>
  319.         <addtochat color="207">Debug Process:: Show First Run Note</addtochat>
  320.       </if>
  321.     </if>
  322.  
  323.     <!-- Rule to Auto End Script on specified day and time -->
  324.     <if mode="and" day="$SUEndDay" TimeGT="$SUEndTime">
  325.       <action type="AddToChat" color="121">End Day (%day)/Time (%time) Detected</action>
  326.       <!-- Debug info -->
  327.       <if advanced='"$Show.Debug" == "True"'>
  328.         <addtochat color="207">Debug Process:: End Day/Time Detected - Ending Script</addtochat>
  329.       </if>
  330.       <command>SUEnd</command>
  331.     </if>
  332.  
  333.     <!-- Cancel Trigger Spell if Script is Paused; This will only cancel trigger spells. Other spells will process when paused. -->
  334.     <if advanced='"$SkillUp"=="0"'>
  335.       <if spell="Carbuncle|Cure|Protect|Barfira|Barfire|Blaze Spikes|Pollen|Indi-Regen|Fire Carol|Mages Ballad|Endark|Banish|Enlight|Burn|Fire|Bio|Dia|sleep|Utsusemi: Ni">
  336.         <cancelspell />
  337.         <return />
  338.       </if>
  339.     </if>
  340.  
  341.     <!-- Idle/Resting Rules -->
  342.     <if status ="Idle">
  343.       <action type="equip" set="Standard" />
  344.  
  345.       <if advanced='"$SkillUp"=="1"'>
  346.         <!-- Rule to activate Avatar's Favor if Avatar's Favor not active -->
  347.         <if notbuffactive="Avatar's Favor" job="SMN/*" advanced='"%PetIsValid" == "True"' MainJobLvlGT="54" >
  348.           <changespell spell="Avatar's Favor" />
  349.           <changetarget target="&lt;me&gt;" />
  350.           <command when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</command>
  351.           <!-- Debug info -->
  352.           <if advanced='"$Show.Debug" == "True"'>
  353.             <addtochat color="207">Debug Process:: Avatar's Favor not Detected - Activating Avatar's Favor</addtochat>
  354.           </if>
  355.           <return />
  356.         </if>
  357.  
  358.         <!-- Change spell to Release if SMN avatar is active -->
  359.         <if mode="and" advanced='"%PetIsValid" == "True"' Job="SMN/*|*/SMN">
  360.           <changespell spell="Release" />
  361.           <changetarget target="&lt;me&gt;" />
  362.           <command when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</command>
  363.           <!-- Debug info -->
  364.           <if advanced='"$Show.Debug" == "True"'>
  365.             <addtochat color="207">Debug Process:: %petname Avatar Detected - Changing Action to Release.</addtochat>
  366.           </if>
  367.           <return />
  368.         </if>
  369.  
  370.         <!-- Rules to use Food if $UseFood=True -->
  371.         <if advanced='"$UseFood"=="True"' notbuffactive="food">
  372.           <if advanced='"$FoodCycle"=="1"'>
  373.             <command>input /item "$FoodName" &lt;me&gt;;wait 3;input /ma "$currentspell"</command>
  374.             <action type="var" cmd="set FoodCycle 0" />
  375.             <!-- Debug info -->
  376.             <if advanced='"$Show.Debug" == "True"'>
  377.               <addtochat color="207">Debug Process:: Food Buff not Detected - Using $FoodName</addtochat>
  378.             </if>
  379.             <cancelspell />
  380.             <return />
  381.           </if>
  382.         </if>
  383.         <if mode="AND" advanced='"$UseFood"=="True"' BuffActive="food">
  384.           <if advanced='"$FoodCycle"=="0"'>
  385.             <action type="var" cmd="set FoodCycle 1" />
  386.             <!-- Debug info -->
  387.             <if advanced='"$Show.Debug" == "True"'>
  388.               <addtochat color="207">Debug Process:: Food Buff Detected - Changing FoodCycle to 1</addtochat>
  389.             </if>
  390.           </if>
  391.         </if>
  392.  
  393.         <!-- Rule to activate Light Arts if Light Arts buff not active -->
  394.         <if notbuffactive="Light Arts">
  395.           <if mode="OR" mainjob="SCH" subjob="SCH">
  396.             <changespell spell="Light Arts" />
  397.             <changetarget target="&lt;me&gt;" />
  398.             <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  399.             <!-- Debug info -->
  400.             <if advanced='"$Show.Debug" == "True"'>
  401.               <addtochat color="207">Debug Process:: Light Arts not Detected - Activating Light Arts</addtochat>
  402.             </if>
  403.             <return />
  404.           </if>
  405.         </if>
  406.  
  407.         <if MPPLT="5" notmainjob="NIN">
  408.           <command when="midcast">wait 5;input /heal on;wait 5;input /ma "$currentspell"</command>
  409.           <!-- Debug info -->
  410.           <if advanced='"$Show.Debug" == "True"'>
  411.             <addtochat color="207">Debug Process:: Low MP detected sending /heal on action in 5 sec.</addtochat>
  412.           </if>
  413.           <return />
  414.         </if>
  415.  
  416.         <!-- Rules to cast refresh spell if refresh buff not active -->
  417.         <if notbuffactive="Refresh">
  418.           <if mainjob="GEO" MainJobLvlGT="33">
  419.             <changespell spell="Geo-Refresh" />
  420.             <changetarget target="&lt;me&gt;" />
  421.             <command when="aftercast">wait 3;input /ma "$CurrentSpell"</command>
  422.             <!-- Debug info -->
  423.             <if advanced='"$Show.Debug" == "True"'>
  424.               <addtochat color="207">Debug Process:: Refresh Buff not Detected - Casting Geo-Refresh Spell</addtochat>
  425.             </if>
  426.             <return />
  427.           </if>
  428.           <elseif mainjob="BLU" MainJobLvlGT="78">
  429.             <changespell spell="Battery Charge" />
  430.             <changetarget target="&lt;me&gt;" />
  431.             <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  432.             <!-- Debug info -->
  433.             <if advanced='"$Show.Debug" == "True"'>
  434.               <addtochat color="207">Debug Process:: Refresh Buff not Detected - Casting Battery Charge Spell</addtochat>
  435.             </if>
  436.             <return />
  437.           </elseif>
  438.           <elseif mainjob="RDM" MainJobLvlGT="81" >
  439.             <changespell spell="Refresh II" />
  440.             <changetarget target="&lt;me&gt;" />
  441.             <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  442.             <!-- Debug info -->
  443.             <if advanced='"$Show.Debug" == "True"'>
  444.               <addtochat color="207">Debug Process:: Refresh Buff not Detected - Casting Refresh II Spell</addtochat>
  445.             </if>
  446.             <return />
  447.           </elseif>
  448.           <elseif subjob="RDM" SubJobLvlGT="40" NotMainJob="BLU|GEO|BRD">
  449.             <changespell spell="Refresh" />
  450.             <changetarget target="&lt;me&gt;" />
  451.             <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  452.             <!-- Debug info -->
  453.             <if advanced='"$Show.Debug" == "True"'>
  454.               <addtochat color="207">Debug Process:: Refresh Buff not Detected - Casting Refresh Spell</addtochat>
  455.             </if>
  456.             <return />
  457.           </elseif>
  458.         </if>
  459.  
  460.         <!-- Rules to cast Haste spell if Haste buff not active -->
  461.         <if notbuffactive="Haste" SubJobLvlGT="45" MainJobLvlGT="45">
  462.           <if mode="OR" mainjob="RDM|WHM" subjob="RDM|WHM">
  463.             <if notmainjob="BRD|BLU">
  464.               <changespell spell="Haste" />
  465.               <changetarget target="&lt;me&gt;" />
  466.               <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  467.               <!-- Debug info -->
  468.               <if advanced='"$Show.Debug" == "True"'>
  469.                 <addtochat color="207">Debug Process:: Haste Buff not Detected - Casting Haste Spell</addtochat>
  470.               </if>
  471.               <return />
  472.             </if>
  473.           </if>
  474.           <if mainjob="BLU" MainJobLvlGT="78">
  475.             <changespell spell="Animating Wail" />
  476.             <changetarget target="&lt;me&gt;" />
  477.             <command when="aftercast">wait 2;input /ma "$currentspell"</command>
  478.             <!-- Debug info -->
  479.             <if advanced='"$Show.Debug" == "True"'>
  480.               <addtochat color="207">Debug Process:: Haste Buff not Detected - Casting Animating Wail Spell</addtochat>
  481.             </if>
  482.             <return />
  483.           </if>
  484.         </if>
  485.       </if>
  486.     </if>
  487.  
  488.     <if Status ="Resting">
  489.       <if MPPGT="99">
  490.         <command when="precast">input /heal off;wait 5;input /ma "$currentspell"</command>
  491.         <!-- Debug info -->
  492.         <if advanced='"$Show.Debug" == "True"'>
  493.           <addtochat color="207">Debug Process:: Full MP Detected sending /heal off action.</addtochat>
  494.         </if>
  495.         <cancelspell />
  496.         <return />
  497.       </if>
  498.       <else>
  499.         <command when="precast">wait 5;input /ma "$currentspell"</command>
  500.         <!-- Debug info -->
  501.         <if advanced='"$Show.Debug" == "True"'>
  502.           <addtochat color="207">Debug Process:: Resting, Current MP is at %mpp%. Continue resting.</addtochat>
  503.         </if>
  504.         <cancelspell />
  505.         <return />
  506.       </else>
  507.     </if>
  508.  
  509.     <if advanced='"$SkillUp"=="1"'>
  510.  
  511.       <!-- Summoning Magic Skill-Up Segment -->
  512.       <if spell="Carbuncle">
  513.         <!--- Smn Skill Cycling -->
  514.         <if advanced='"$SkillCycle" == "2" and "$IfritAva" == "0"'>
  515.           <action type="var" cmd="set SkillCycle 3" />
  516.           <!-- Debug info -->
  517.           <if advanced='"$Show.Debug" == "True"'>
  518.             <addtochat color="207">Debug Process:: Ifrit Avatar Not Active - Advancing Skill Cycle</addtochat>
  519.           </if>
  520.         </if>
  521.         <if advanced='"$SkillCycle" == "3" and "$TitanAva" == "0"'>
  522.           <action type="var" cmd="set SkillCycle 4" />
  523.           <!-- Debug info -->
  524.           <if advanced='"$Show.Debug" == "True"'>
  525.             <addtochat color="207">Debug Process:: Titan Avatar Not Active - Advancing Skill Cycle</addtochat>
  526.           </if>
  527.         </if>
  528.         <if advanced='"$SkillCycle" == "4" and "$LeviathanAva" == "0"'>
  529.           <action type="var" cmd="set SkillCycle 5" />
  530.           <!-- Debug info -->
  531.           <if advanced='"$Show.Debug" == "True"'>
  532.             <addtochat color="207">Debug Process:: Leviathan Avatar Not Active - Advancing Skill Cycle</addtochat>
  533.           </if>
  534.         </if>
  535.         <if advanced='"$SkillCycle" == "5" and "$GarudaAva" == "0"'>
  536.           <action type="var" cmd="set SkillCycle 6" />
  537.           <!-- Debug info -->
  538.           <if advanced='"$Show.Debug" == "True"'>
  539.             <addtochat color="207">Debug Process:: Garuda Avatar Not Active - Advancing Skill Cycle</addtochat>
  540.           </if>
  541.         </if>
  542.         <if advanced='"$SkillCycle" == "6" and "$ShivaAva" == "0"'>
  543.           <action type="var" cmd="set SkillCycle 7" />
  544.           <!-- Debug info -->
  545.           <if advanced='"$Show.Debug" == "True"'>
  546.             <addtochat color="207">Debug Process:: Shiva Avatar Not Active - Advancing Skill Cycle</addtochat>
  547.           </if>
  548.         </if>
  549.         <if advanced='"$SkillCycle" == "7" and "$RamuhAva" == "0"'>
  550.           <action type="var" cmd="set SkillCycle 8" />
  551.           <!-- Debug info -->
  552.           <if advanced='"$Show.Debug" == "True"'>
  553.             <addtochat color="207">Debug Process:: Ramuh Avatar Not Active - Advancing Skill Cycle</addtochat>
  554.           </if>
  555.         </if>
  556.         <if advanced='"$SkillCycle" == "8" and "$FenrirAva" == "0"'>
  557.           <action type="var" cmd="set SkillCycle 9" />
  558.           <!-- Debug info -->
  559.           <if advanced='"$Show.Debug" == "True"'>
  560.             <addtochat color="207">Debug Process:: Fenrir Avatar Not Active - Advancing Skill Cycle</addtochat>
  561.           </if>
  562.         </if>
  563.         <if advanced='"$SkillCycle" == "9" and "$DiabolosAva" == "0"'>
  564.           <action type="var" cmd="set SkillCycle 1" />
  565.           <!-- Debug info -->
  566.           <if advanced='"$Show.Debug" == "True"'>
  567.             <addtochat color="207">Debug Process:: Diabolos Avatar Not Active - Advancing Skill Cycle</addtochat>
  568.           </if>
  569.         </if>
  570.  
  571.         <if advanced='"$SkillCycle" == "1"'>
  572.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  573.           <action type="var" cmd="set SkillCycle 2" />
  574.           <action type="changespell" spell="Carbuncle" />
  575.           <action type="Changetarget" target="&lt;me&gt;"/>
  576.           <!-- Debug info -->
  577.           <if advanced='"$Show.Debug" == "True"'>
  578.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  579.           </if>
  580.         </if>
  581.         <elseif advanced='"$SkillCycle" == "2"'>
  582.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  583.           <action type="var" cmd="set SkillCycle 3" />
  584.           <action type="changespell" spell="Ifrit" />
  585.           <action type="Changetarget" target="&lt;me&gt;"/>
  586.           <!-- Debug info -->
  587.           <if advanced='"$Show.Debug" == "True"'>
  588.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  589.           </if>
  590.         </elseif>
  591.         <elseif advanced='"$SkillCycle" == "3"'>
  592.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  593.           <action type="var" cmd="set SkillCycle 4" />
  594.           <action type="changespell" spell="Titan" />
  595.           <action type="Changetarget" target="&lt;me&gt;"/>
  596.           <!-- Debug info -->
  597.           <if advanced='"$Show.Debug" == "True"'>
  598.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  599.           </if>
  600.         </elseif>
  601.         <elseif advanced='"$SkillCycle" == "4"'>
  602.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  603.           <action type="var" cmd="set SkillCycle 5" />
  604.           <action type="changespell" spell="Leviathan" />
  605.           <action type="Changetarget" target="&lt;me&gt;"/>
  606.           <!-- Debug info -->
  607.           <if advanced='"$Show.Debug" == "True"'>
  608.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  609.           </if>
  610.         </elseif>
  611.         <elseif advanced='"$SkillCycle" == "5"'>
  612.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  613.           <action type="var" cmd="set SkillCycle 6" />
  614.           <action type="changespell" spell="Garuda" />
  615.           <action type="Changetarget" target="&lt;me&gt;"/>
  616.           <!-- Debug info -->
  617.           <if advanced='"$Show.Debug" == "True"'>
  618.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  619.           </if>
  620.         </elseif>
  621.         <elseif advanced='"$SkillCycle" == "6"'>
  622.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  623.           <action type="var" cmd="set SkillCycle 7" />
  624.           <action type="changespell" spell="Shiva" />
  625.           <action type="Changetarget" target="&lt;me&gt;"/>
  626.           <!-- Debug info -->
  627.           <if advanced='"$Show.Debug" == "True"'>
  628.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  629.           </if>
  630.         </elseif>
  631.         <elseif advanced='"$SkillCycle" == "7"'>
  632.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  633.           <action type="var" cmd="set SkillCycle 8" />
  634.           <action type="changespell" spell="Ramuh" />
  635.           <action type="Changetarget" target="&lt;me&gt;"/>
  636.           <!-- Debug info -->
  637.           <if advanced='"$Show.Debug" == "True"'>
  638.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  639.           </if>
  640.         </elseif>
  641.         <elseif advanced='"$SkillCycle" == "8"'>
  642.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  643.           <action type="var" cmd="set SkillCycle 9" />
  644.           <action type="changespell" spell="Fenrir" />
  645.           <action type="Changetarget" target="&lt;me&gt;"/>
  646.           <!-- Debug info -->
  647.           <if advanced='"$Show.Debug" == "True"'>
  648.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 8 Processed</addtochat>
  649.           </if>
  650.         </elseif>
  651.         <elseif advanced='"$SkillCycle" == "9"'>
  652.           <action type="command" when="aftercast">wait $WaitTime4SMN;input /ma "$CurrentSpell"</action>
  653.           <action type="var" cmd="set SkillCycle 1" />
  654.           <action type="changespell" spell="Diabolos" />
  655.           <action type="Changetarget" target="&lt;me&gt;"/>
  656.           <!-- Debug info -->
  657.           <if advanced='"$Show.Debug" == "True"'>
  658.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 9 Processed</addtochat>
  659.           </if>
  660.         </elseif>
  661.       </if>
  662.  
  663.       <!-- Healing Magic Skill-Up Segment -->
  664.       <elseif spell="Cure" >
  665.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  666.         <if advanced='$SkillCycle &gt; 4'>
  667.           <action type="var" cmd="set SkillCycle 1" />
  668.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  669.           <action type="cancelspell"/>
  670.           <!-- Debug info -->
  671.           <if advanced='"$Show.Debug" == "True"'>
  672.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  673.           </if>
  674.         </if>
  675.         <!--- Healing Skill Cycling -->
  676.         <elseif advanced='"$SkillCycle" == "1"'>
  677.           <action type="command" when="aftercast">wait $WaitTime4Healing;input /ma "$CurrentSpell"</action>
  678.           <action type="var" cmd="set SkillCycle 2" />
  679.           <action type="changespell" spell="Cure" />
  680.           <action type="Changetarget" target="&lt;me&gt;"/>
  681.           <!-- Debug info -->
  682.           <if advanced='"$Show.Debug" == "True"'>
  683.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  684.           </if>
  685.         </elseif>
  686.         <elseif advanced='"$SkillCycle" == "2"'>
  687.           <action type="command" when="aftercast">wait $WaitTime4Healing;input /ma "$CurrentSpell"</action>
  688.           <action type="var" cmd="set SkillCycle 3" />
  689.           <action type="changespell" spell="Cure II" />
  690.           <action type="Changetarget" target="&lt;me&gt;"/>
  691.           <!-- Debug info -->
  692.           <if advanced='"$Show.Debug" == "True"'>
  693.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  694.           </if>
  695.         </elseif>
  696.         <elseif advanced='"$SkillCycle" == "3"'>
  697.           <action type="command" when="aftercast">wait $WaitTime4Healing;input /ma "$CurrentSpell"</action>
  698.           <action type="var" cmd="set SkillCycle 4" />
  699.           <action type="changespell" spell="Cure" />
  700.           <action type="Changetarget" target="&lt;me&gt;"/>
  701.           <!-- Debug info -->
  702.           <if advanced='"$Show.Debug" == "True"'>
  703.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  704.           </if>
  705.         </elseif>
  706.         <elseif advanced='"$SkillCycle" == "4"'>
  707.           <action type="command" when="aftercast">wait $WaitTime4Healing;input /ma "$CurrentSpell"</action>
  708.           <action type="var" cmd="set SkillCycle 1" />
  709.           <action type="changespell" spell="Cure II" />
  710.           <action type="Changetarget" target="&lt;me&gt;"/>
  711.           <!-- Debug info -->
  712.           <if advanced='"$Show.Debug" == "True"'>
  713.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  714.           </if>
  715.         </elseif>
  716.       </elseif>
  717.  
  718.       <!-- Enhancing Magic Skill-Up Segment -->
  719.       <!-- Enhancing Magic Skill-Up using Protect/Shell spells -->
  720.       <elseif spell="Protect" >
  721.         <!-- Cancel Protect/Shell -->
  722.         <if buffactive="Protect">
  723.           <command >cancel 40</command>
  724.           <!-- Debug info -->
  725.           <if advanced='"$Show.Debug" == "True"'>
  726.             <addtochat color="207">Debug Process:: Protect Detected - Cancelling Protect</addtochat>
  727.           </if>
  728.         </if>
  729.         <if buffactive="Shell">
  730.           <command >cancel 41</command>
  731.           <!-- Debug info -->
  732.           <if advanced='"$Show.Debug" == "True"'>
  733.             <addtochat color="207">Debug Process:: Shell Detected - Cancelling Shell</addtochat>
  734.           </if>
  735.         </if>
  736.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  737.         <if advanced='$SkillCycle &gt; 4'>
  738.           <action type="var" cmd="set SkillCycle 1" />
  739.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  740.           <action type="cancelspell"/>
  741.           <!-- Debug info -->
  742.           <if advanced='"$Show.Debug" == "True"'>
  743.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  744.           </if>
  745.         </if>
  746.         <!--- Enhancing Skill Cycling -->
  747.         <elseif advanced='"$SkillCycle" == "1"'>
  748.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  749.           <action type="var" cmd="set SkillCycle 2" />
  750.           <action type="changespell" spell="Protect" />
  751.           <action type="Changetarget" target="&lt;me&gt;"/>
  752.           <!-- Debug info -->
  753.           <if advanced='"$Show.Debug" == "True"'>
  754.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  755.           </if>
  756.         </elseif>
  757.         <elseif advanced='"$SkillCycle" == "2"'>
  758.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  759.           <action type="var" cmd="set SkillCycle 3" />
  760.           <action type="changespell" spell="Shell" />
  761.           <action type="Changetarget" target="&lt;me&gt;"/>
  762.           <!-- Debug info -->
  763.           <if advanced='"$Show.Debug" == "True"'>
  764.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  765.           </if>
  766.         </elseif>
  767.         <elseif advanced='"$SkillCycle" == "3"'>
  768.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  769.           <action type="var" cmd="set SkillCycle 4" />
  770.           <action type="changespell" spell="Protect II" />
  771.           <action type="Changetarget" target="&lt;me&gt;"/>
  772.           <!-- Debug info -->
  773.           <if advanced='"$Show.Debug" == "True"'>
  774.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  775.           </if>
  776.         </elseif>
  777.         <elseif advanced='"$SkillCycle" == "4"'>
  778.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  779.           <action type="var" cmd="set SkillCycle 1" />
  780.           <action type="changespell" spell="Shell II" />
  781.           <action type="Changetarget" target="&lt;me&gt;"/>
  782.           <!-- Debug info -->
  783.           <if advanced='"$Show.Debug" == "True"'>
  784.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  785.           </if>
  786.         </elseif>
  787.       </elseif>
  788.  
  789.       <!-- Enhancing Magic Skill-Up using WHM Bar spells -->
  790.       <elseif spell="Barfira" >
  791.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  792.         <if advanced='$SkillCycle &gt; 6'>
  793.           <action type="var" cmd="set SkillCycle 1" />
  794.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  795.           <action type="cancelspell"/>
  796.           <!-- Debug info -->
  797.           <if advanced='"$Show.Debug" == "True"'>
  798.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  799.           </if>
  800.         </if>
  801.         <!--- Enhancing Skill Cycling -->
  802.         <elseif advanced='"$SkillCycle" == "1"'>
  803.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  804.           <action type="var" cmd="set SkillCycle 2" />
  805.           <action type="changespell" spell="Barfira" />
  806.           <action type="Changetarget" target="&lt;me&gt;"/>
  807.           <!-- Debug info -->
  808.           <if advanced='"$Show.Debug" == "True"'>
  809.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  810.           </if>
  811.         </elseif>
  812.         <elseif advanced='"$SkillCycle" == "2"'>
  813.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  814.           <action type="var" cmd="set SkillCycle 3" />
  815.           <action type="changespell" spell="Barblizzara" />
  816.           <action type="Changetarget" target="&lt;me&gt;"/>
  817.           <!-- Debug info -->
  818.           <if advanced='"$Show.Debug" == "True"'>
  819.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  820.           </if>
  821.         </elseif>
  822.         <elseif advanced='"$SkillCycle" == "3"'>
  823.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  824.           <action type="var" cmd="set SkillCycle 4" />
  825.           <action type="changespell" spell="Baraera" />
  826.           <action type="Changetarget" target="&lt;me&gt;"/>
  827.           <!-- Debug info -->
  828.           <if advanced='"$Show.Debug" == "True"'>
  829.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  830.           </if>
  831.         </elseif>
  832.         <elseif advanced='"$SkillCycle" == "4"'>
  833.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  834.           <action type="var" cmd="set SkillCycle 5" />
  835.           <action type="changespell" spell="Barstonra" />
  836.           <action type="Changetarget" target="&lt;me&gt;"/>
  837.           <!-- Debug info -->
  838.           <if advanced='"$Show.Debug" == "True"'>
  839.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  840.           </if>
  841.         </elseif>
  842.         <elseif advanced='"$SkillCycle" == "5"'>
  843.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  844.           <action type="var" cmd="set SkillCycle 6" />
  845.           <action type="changespell" spell="Barthundra" />
  846.           <action type="Changetarget" target="&lt;me&gt;"/>
  847.           <!-- Debug info -->
  848.           <if advanced='"$Show.Debug" == "True"'>
  849.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  850.           </if>
  851.         </elseif>
  852.         <elseif advanced='"$SkillCycle" == "6"'>
  853.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  854.           <action type="var" cmd="set SkillCycle 1" />
  855.           <action type="changespell" spell="Barwatera" />
  856.           <action type="Changetarget" target="&lt;me&gt;"/>
  857.           <!-- Debug info -->
  858.           <if advanced='"$Show.Debug" == "True"'>
  859.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  860.           </if>
  861.         </elseif>
  862.       </elseif>
  863.  
  864.       <!-- Enhancing Magic Skill-Up using RDM Bar spells -->
  865.       <elseif spell="Barfire" >
  866.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  867.         <if advanced='$SkillCycle &gt; 6'>
  868.           <action type="var" cmd="set SkillCycle 1" />
  869.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  870.           <action type="cancelspell"/>
  871.           <!-- Debug info -->
  872.           <if advanced='"$Show.Debug" == "True"'>
  873.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  874.           </if>
  875.         </if>
  876.         <!--- Enhancing Skill Cycling -->
  877.         <elseif advanced='"$SkillCycle" == "1"'>
  878.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  879.           <action type="var" cmd="set SkillCycle 2" />
  880.           <action type="changespell" spell="Barfire" />
  881.           <action type="Changetarget" target="&lt;me&gt;"/>
  882.           <!-- Debug info -->
  883.           <if advanced='"$Show.Debug" == "True"'>
  884.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  885.           </if>
  886.         </elseif>
  887.         <elseif advanced='"$SkillCycle" == "2"'>
  888.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  889.           <action type="var" cmd="set SkillCycle 3" />
  890.           <action type="changespell" spell="Barblizzard" />
  891.           <action type="Changetarget" target="&lt;me&gt;"/>
  892.           <!-- Debug info -->
  893.           <if advanced='"$Show.Debug" == "True"'>
  894.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  895.           </if>
  896.         </elseif>
  897.         <elseif advanced='"$SkillCycle" == "3"'>
  898.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  899.           <action type="var" cmd="set SkillCycle 4" />
  900.           <action type="changespell" spell="Baraero" />
  901.           <action type="Changetarget" target="&lt;me&gt;"/>
  902.           <!-- Debug info -->
  903.           <if advanced='"$Show.Debug" == "True"'>
  904.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed.</addtochat>
  905.           </if>
  906.         </elseif>
  907.         <elseif advanced='"$SkillCycle" == "4"'>
  908.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  909.           <action type="var" cmd="set SkillCycle 5" />
  910.           <action type="changespell" spell="Barstone" />
  911.           <action type="Changetarget" target="&lt;me&gt;"/>
  912.           <!-- Debug info -->
  913.           <if advanced='"$Show.Debug" == "True"'>
  914.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  915.           </if>
  916.         </elseif>
  917.         <elseif advanced='"$SkillCycle" == "5"'>
  918.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  919.           <action type="var" cmd="set SkillCycle 6" />
  920.           <action type="changespell" spell="Barthunder" />
  921.           <action type="Changetarget" target="&lt;me&gt;"/>
  922.           <!-- Debug info -->
  923.           <if advanced='"$Show.Debug" == "True"'>
  924.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  925.           </if>
  926.         </elseif>
  927.         <elseif advanced='"$SkillCycle" == "6"'>
  928.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  929.           <action type="var" cmd="set SkillCycle 1" />
  930.           <action type="changespell" spell="Barwater" />
  931.           <action type="Changetarget" target="&lt;me&gt;"/>
  932.           <!-- Debug info -->
  933.           <if advanced='"$Show.Debug" == "True"'>
  934.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  935.           </if>
  936.         </elseif>
  937.       </elseif>
  938.  
  939.       <!-- Enhancing Magic Skill-Up using Spikes spells -->
  940.       <elseif spell="Blaze Spikes" >
  941.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  942.         <if advanced='$SkillCycle &gt; 3'>
  943.           <action type="var" cmd="set SkillCycle 1" />
  944.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  945.           <action type="cancelspell"/>
  946.           <!-- Debug info -->
  947.           <if advanced='"$Show.Debug" == "True"'>
  948.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  949.           </if>
  950.         </if>
  951.         <!--- Enhancing Skill Cycling -->
  952.         <elseif advanced='"$SkillCycle" == "1"'>
  953.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  954.           <action type="var" cmd="set SkillCycle 2" />
  955.           <action type="changespell" spell="Blaze Spikes" />
  956.           <action type="Changetarget" target="&lt;me&gt;"/>
  957.           <!-- Debug info -->
  958.           <if advanced='"$Show.Debug" == "True"'>
  959.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  960.           </if>
  961.         </elseif>
  962.         <elseif advanced='"$SkillCycle" == "2"'>
  963.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  964.           <action type="var" cmd="set SkillCycle 3" />
  965.           <action type="changespell" spell="Ice Spikes" />
  966.           <action type="Changetarget" target="&lt;me&gt;"/>
  967.           <!-- Debug info -->
  968.           <if advanced='"$Show.Debug" == "True"'>
  969.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  970.           </if>
  971.         </elseif>
  972.         <elseif advanced='"$SkillCycle" == "3"'>
  973.           <action type="command" when="aftercast">wait $WaitTime4Enhancing;input /ma "$CurrentSpell"</action>
  974.           <action type="var" cmd="set SkillCycle 1" />
  975.           <action type="changespell" spell="Shock Spikes" />
  976.           <action type="Changetarget" target="&lt;me&gt;"/>
  977.           <!-- Debug info -->
  978.           <if advanced='"$Show.Debug" == "True"'>
  979.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  980.           </if>
  981.         </elseif>
  982.       </elseif>
  983.  
  984.       <!-- Blue Magic Skill-Up Segment -->
  985.       <elseif spell="Pollen" >
  986.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  987.         <if advanced='$SkillCycle &gt; 4'>
  988.           <action type="var" cmd="set SkillCycle 1" />
  989.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  990.           <action type="cancelspell"/>
  991.           <!-- Debug info -->
  992.           <if advanced='"$Show.Debug" == "True"'>
  993.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  994.           </if>
  995.         </if>
  996.         <!--- Blue Magic Skill Cycling -->
  997.         <elseif advanced='"$SkillCycle" == "1"'>
  998.           <action type="command" when="aftercast">wait $WaitTime4BLU;input /ma "$CurrentSpell"</action>
  999.           <action type="var" cmd="set SkillCycle 2" />
  1000.           <action type="changespell" spell="Pollen" />
  1001.           <action type="Changetarget" target="&lt;me&gt;"/>
  1002.           <!-- Debug info -->
  1003.           <if advanced='"$Show.Debug" == "True"'>
  1004.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1005.           </if>
  1006.         </elseif>
  1007.         <elseif advanced='"$SkillCycle" == "2"'>
  1008.           <action type="command" when="aftercast">wait $WaitTime4BLU;input /ma "$CurrentSpell"</action>
  1009.           <action type="var" cmd="set SkillCycle 3" />
  1010.           <action type="changespell" spell="Magic Fruit" />
  1011.           <action type="Changetarget" target="&lt;me&gt;"/>
  1012.           <!-- Debug info -->
  1013.           <if advanced='"$Show.Debug" == "True"'>
  1014.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1015.           </if>
  1016.         </elseif>
  1017.         <elseif advanced='"$SkillCycle" == "3"'>
  1018.           <action type="command" when="aftercast">wait $WaitTime4BLU;input /ma "$CurrentSpell"</action>
  1019.           <action type="var" cmd="set SkillCycle 4" />
  1020.           <action type="changespell" spell="Pollen" />
  1021.           <action type="Changetarget" target="&lt;me&gt;"/>
  1022.           <!-- Debug info -->
  1023.           <if advanced='"$Show.Debug" == "True"'>
  1024.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1025.           </if>
  1026.         </elseif>
  1027.         <elseif advanced='"$SkillCycle" == "4"'>
  1028.           <action type="command" when="aftercast">wait $WaitTime4BLU;input /ma "$CurrentSpell"</action>
  1029.           <action type="var" cmd="set SkillCycle 1" />
  1030.           <action type="changespell" spell="Magic Fruit" />
  1031.           <action type="Changetarget" target="&lt;me&gt;"/>
  1032.           <!-- Debug info -->
  1033.           <if advanced='"$Show.Debug" == "True"'>
  1034.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1035.           </if>
  1036.         </elseif>
  1037.       </elseif>
  1038.  
  1039.       <!-- Geomancy Magic Skill-Up Segment -->
  1040.       <elseif spell="Indi-Regen" >
  1041.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1042.         <if advanced='$SkillCycle &gt; 7'>
  1043.           <action type="var" cmd="set SkillCycle 1" />
  1044.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1045.           <action type="cancelspell"/>
  1046.           <!-- Debug info -->
  1047.           <if advanced='"$Show.Debug" == "True"'>
  1048.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1049.           </if>
  1050.         </if>
  1051.         <!--- Geomancy Skill Cycling -->
  1052.         <elseif advanced='"$SkillCycle" == "1"'>
  1053.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1054.           <action type="var" cmd="set SkillCycle 2" />
  1055.           <action type="changespell" spell="Indi-Regen" />
  1056.           <action type="Changetarget" target="&lt;me&gt;"/>
  1057.           <!-- Debug info -->
  1058.           <if advanced='"$Show.Debug" == "True"'>
  1059.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1060.           </if>
  1061.         </elseif>
  1062.         <elseif advanced='"$SkillCycle" == "2"'>
  1063.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1064.           <action type="var" cmd="set SkillCycle 3" />
  1065.           <action type="changespell" spell="Indi-Poison" />
  1066.           <action type="Changetarget" target="&lt;me&gt;"/>
  1067.           <!-- Debug info -->
  1068.           <if advanced='"$Show.Debug" == "True"'>
  1069.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1070.           </if>
  1071.         </elseif>
  1072.         <elseif advanced='"$SkillCycle" == "3"'>
  1073.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1074.           <action type="var" cmd="set SkillCycle 4" />
  1075.           <action type="changespell" spell="Indi-Refresh" />
  1076.           <action type="Changetarget" target="&lt;me&gt;"/>
  1077.           <!-- Debug info -->
  1078.           <if advanced='"$Show.Debug" == "True"'>
  1079.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1080.           </if>
  1081.         </elseif>
  1082.         <elseif advanced='"$SkillCycle" == "4"'>
  1083.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1084.           <action type="var" cmd="set SkillCycle 5" />
  1085.           <action type="changespell" spell="Indi-Fury" />
  1086.           <action type="Changetarget" target="&lt;me&gt;"/>
  1087.           <!-- Debug info -->
  1088.           <if advanced='"$Show.Debug" == "True"'>
  1089.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1090.           </if>
  1091.         </elseif>
  1092.         <elseif advanced='"$SkillCycle" == "5"'>
  1093.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1094.           <action type="var" cmd="set SkillCycle 6" />
  1095.           <action type="changespell" spell="Indi-Barrier" />
  1096.           <action type="Changetarget" target="&lt;me&gt;"/>
  1097.           <!-- Debug info -->
  1098.           <if advanced='"$Show.Debug" == "True"'>
  1099.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1100.           </if>
  1101.         </elseif>
  1102.         <elseif advanced='"$SkillCycle" == "6"'>
  1103.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1104.           <action type="var" cmd="set SkillCycle 7" />
  1105.           <action type="changespell" spell="Indi-Precision" />
  1106.           <action type="Changetarget" target="&lt;me&gt;"/>
  1107.           <!-- Debug info -->
  1108.           <if advanced='"$Show.Debug" == "True"'>
  1109.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1110.           </if>
  1111.         </elseif>
  1112.         <elseif advanced='"$SkillCycle" == "7"'>
  1113.           <action type="command" when="aftercast">wait $WaitTime4GEO;input /ma "$CurrentSpell"</action>
  1114.           <action type="var" cmd="set SkillCycle 1" />
  1115.           <action type="changespell" spell="Indi-Voidance" />
  1116.           <action type="Changetarget" target="&lt;me&gt;"/>
  1117.           <!-- Debug info -->
  1118.           <if advanced='"$Show.Debug" == "True"'>
  1119.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  1120.           </if>
  1121.         </elseif>
  1122.       </elseif>
  1123.  
  1124.       <!-- BRD Song Skill-Up Segment -->
  1125.       <if spell="Fire Carol">
  1126.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1127.         <if advanced='$SkillCycle &gt; 8'>
  1128.           <action type="var" cmd="set SkillCycle 1" />
  1129.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1130.           <action type="cancelspell"/>
  1131.           <!-- Debug info -->
  1132.           <if advanced='"$Show.Debug" == "True"'>
  1133.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1134.           </if>
  1135.         </if>
  1136.         <!--- BRD Skill Cycling -->
  1137.         <elseif advanced='"$SkillCycle" == "1"'>
  1138.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1139.           <action type="var" cmd="set SkillCycle 2" />
  1140.           <action type="changespell" spell="Fire Carol" />
  1141.           <action type="Changetarget" target="&lt;me&gt;"/>
  1142.           <!-- Debug info -->
  1143.           <if advanced='"$Show.Debug" == "True"'>
  1144.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1145.           </if>
  1146.         </elseif>
  1147.         <elseif advanced='"$SkillCycle" == "2"'>
  1148.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1149.           <action type="var" cmd="set SkillCycle 3" />
  1150.           <action type="changespell" spell="Ice Carol" />
  1151.           <action type="Changetarget" target="&lt;me&gt;"/>
  1152.           <!-- Debug info -->
  1153.           <if advanced='"$Show.Debug" == "True"'>
  1154.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1155.           </if>
  1156.         </elseif>
  1157.         <elseif advanced='"$SkillCycle" == "3"'>
  1158.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1159.           <action type="var" cmd="set SkillCycle 4" />
  1160.           <action type="changespell" spell="Wind Carol" />
  1161.           <action type="Changetarget" target="&lt;me&gt;"/>
  1162.           <!-- Debug info -->
  1163.           <if advanced='"$Show.Debug" == "True"'>
  1164.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1165.           </if>
  1166.         </elseif>
  1167.         <elseif advanced='"$SkillCycle" == "4"'>
  1168.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1169.           <action type="var" cmd="set SkillCycle 5" />
  1170.           <action type="changespell" spell="Earth Carol" />
  1171.           <action type="Changetarget" target="&lt;me&gt;"/>
  1172.           <!-- Debug info -->
  1173.           <if advanced='"$Show.Debug" == "True"'>
  1174.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1175.           </if>
  1176.         </elseif>
  1177.         <elseif advanced='"$SkillCycle" == "5"'>
  1178.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1179.           <action type="var" cmd="set SkillCycle 6" />
  1180.           <action type="changespell" spell="Lightning Carol" />
  1181.           <action type="Changetarget" target="&lt;me&gt;"/>
  1182.           <!-- Debug info -->
  1183.           <if advanced='"$Show.Debug" == "True"'>
  1184.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1185.           </if>
  1186.         </elseif>
  1187.         <elseif advanced='"$SkillCycle" == "6"'>
  1188.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1189.           <action type="var" cmd="set SkillCycle 7" />
  1190.           <action type="changespell" spell="Water Carol" />
  1191.           <action type="Changetarget" target="&lt;me&gt;"/>
  1192.           <!-- Debug info -->
  1193.           <if advanced='"$Show.Debug" == "True"'>
  1194.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1195.           </if>
  1196.         </elseif>
  1197.         <elseif advanced='"$SkillCycle" == "7"'>
  1198.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1199.           <action type="var" cmd="set SkillCycle 8" />
  1200.           <action type="changespell" spell="Light Carol" />
  1201.           <action type="Changetarget" target="&lt;me&gt;"/>
  1202.           <!-- Debug info -->
  1203.           <if advanced='"$Show.Debug" == "True"'>
  1204.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  1205.           </if>
  1206.         </elseif>
  1207.         <elseif advanced='"$SkillCycle" == "8"'>
  1208.           <action type="command" when="aftercast">wait $WaitTime4BRD;input /ma "$CurrentSpell"</action>
  1209.           <action type="var" cmd="set SkillCycle 1" />
  1210.           <action type="changespell" spell="Dark Carol" />
  1211.           <action type="Changetarget" target="&lt;me&gt;"/>
  1212.           <!-- Debug info -->
  1213.           <if advanced='"$Show.Debug" == "True"'>
  1214.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 8 Processed</addtochat>
  1215.           </if>
  1216.         </elseif>
  1217.       </if>
  1218.       <!-- BRD Song Skill-Up Segment -->
  1219.       <if spell="Mages Ballad">
  1220.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1221.         <if advanced='$SkillCycle &gt; 6'>
  1222.           <action type="var" cmd="set SkillCycle 1" />
  1223.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1224.           <action type="cancelspell"/>
  1225.           <!-- Debug info -->
  1226.           <if advanced='"$Show.Debug" == "True"'>
  1227.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1228.           </if>
  1229.         </if>
  1230.         <!--- BRD Skill Cycling -->
  1231.         <elseif advanced='"$SkillCycle" == "1"'>
  1232.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1233.           <action type="var" cmd="set SkillCycle 2" />
  1234.           <action type="changespell" spell="Mage's Ballad III" />
  1235.           <action type="Changetarget" target="&lt;me&gt;"/>
  1236.           <!-- Debug info -->
  1237.           <if advanced='"$Show.Debug" == "True"'>
  1238.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1239.           </if>
  1240.         </elseif>
  1241.         <elseif advanced='"$SkillCycle" == "2"'>
  1242.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1243.           <action type="var" cmd="set SkillCycle 3" />
  1244.           <action type="changespell" spell="Mage's Ballad II" />
  1245.           <action type="Changetarget" target="&lt;me&gt;"/>
  1246.           <!-- Debug info -->
  1247.           <if advanced='"$Show.Debug" == "True"'>
  1248.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1249.           </if>
  1250.         </elseif>
  1251.         <elseif advanced='"$SkillCycle" == "3"'>
  1252.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1253.           <action type="var" cmd="set SkillCycle 4" />
  1254.           <action type="changespell" spell="Tenuto" />
  1255.           <action type="Changetarget" target="&lt;me&gt;"/>
  1256.           <!-- Debug info -->
  1257.           <if advanced='"$Show.Debug" == "True"'>
  1258.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1259.           </if>
  1260.         </elseif>
  1261.         <elseif advanced='"$SkillCycle" == "4"'>
  1262.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1263.           <action type="var" cmd="set SkillCycle 5" />
  1264.           <action type="changespell" spell="Victory March" />
  1265.           <action type="Changetarget" target="&lt;me&gt;"/>
  1266.           <!-- Debug info -->
  1267.           <if advanced='"$Show.Debug" == "True"'>
  1268.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1269.           </if>
  1270.         </elseif>
  1271.         <elseif advanced='"$SkillCycle" == "5"'>
  1272.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1273.           <action type="var" cmd="set SkillCycle 6" />
  1274.           <action type="changespell" spell="Tenuto" />
  1275.           <action type="Changetarget" target="&lt;me&gt;"/>
  1276.           <!-- Debug info -->
  1277.           <if advanced='"$Show.Debug" == "True"'>
  1278.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1279.           </if>
  1280.         </elseif>
  1281.         <elseif advanced='"$SkillCycle" == "6"'>
  1282.           <action type="command" when="aftercast">wait 5;input /ma "$CurrentSpell"</action>
  1283.           <action type="var" cmd="set SkillCycle 1" />
  1284.           <action type="changespell" spell="Advancing March" />
  1285.           <action type="Changetarget" target="&lt;me&gt;"/>
  1286.           <!-- Debug info -->
  1287.           <if advanced='"$Show.Debug" == "True"'>
  1288.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1289.           </if>
  1290.         </elseif>
  1291.       </if>
  1292.       <!-- Dark Magic Skill-Up Segment -->
  1293.       <!-- Dark Magic Skill-Up using Endark spell -->
  1294.       <elseif spell="Endark" >
  1295.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1296.         <if advanced='$SkillCycle &gt; 3'>
  1297.           <action type="var" cmd="set SkillCycle 1" />
  1298.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1299.           <action type="cancelspell"/>
  1300.           <!-- Debug info -->
  1301.           <if advanced='"$Show.Debug" == "True"'>
  1302.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1303.           </if>
  1304.         </if>
  1305.         <!--- Dark Skill Cycling -->
  1306.         <elseif advanced='"$SkillCycle" == "1"'>
  1307.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1308.           <action type="var" cmd="set SkillCycle 2" />
  1309.           <action type="changespell" spell="Endark" />
  1310.           <action type="Changetarget" target="&lt;me&gt;"/>
  1311.           <!-- Debug info -->
  1312.           <if advanced='"$Show.Debug" == "True"'>
  1313.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1314.           </if>
  1315.         </elseif>
  1316.         <elseif advanced='"$SkillCycle" == "2"'>
  1317.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1318.           <action type="var" cmd="set SkillCycle 3" />
  1319.           <action type="changespell" spell="Endark" />
  1320.           <action type="Changetarget" target="&lt;me&gt;"/>
  1321.           <!-- Debug info -->
  1322.           <if advanced='"$Show.Debug" == "True"'>
  1323.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1324.           </if>
  1325.         </elseif>
  1326.         <elseif advanced='"$SkillCycle" == "3"'>
  1327.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1328.           <action type="var" cmd="set SkillCycle 1" />
  1329.           <action type="changespell" spell="Endark" />
  1330.           <action type="Changetarget" target="&lt;me&gt;"/>
  1331.           <!-- Debug info -->
  1332.           <if advanced='"$Show.Debug" == "True"'>
  1333.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1334.           </if>
  1335.         </elseif>
  1336.       </elseif>
  1337.  
  1338.       <!-- Dark Magic Skill-Up using Bio spell -->
  1339.       <elseif spell="Bio" >
  1340.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1341.         <if advanced='$SkillCycle &gt; 3'>
  1342.           <action type="var" cmd="set SkillCycle 1" />
  1343.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1344.           <action type="cancelspell"/>
  1345.           <!-- Debug info -->
  1346.           <if advanced='"$Show.Debug" == "True"'>
  1347.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1348.           </if>
  1349.         </if>
  1350.         <!--- Dark Skill Cycling -->
  1351.         <elseif advanced='"$SkillCycle" == "1"'>
  1352.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1353.           <action type="var" cmd="set SkillCycle 2" />
  1354.           <action type="changespell" spell="Bio" />
  1355.           <action type="Changetarget" target="&lt;t&gt;"/>
  1356.           <!-- Debug info -->
  1357.           <if advanced='"$Show.Debug" == "True"'>
  1358.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1359.           </if>
  1360.         </elseif>
  1361.         <elseif advanced='"$SkillCycle" == "2"'>
  1362.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1363.           <action type="var" cmd="set SkillCycle 3" />
  1364.           <action type="changespell" spell="Bio" />
  1365.           <action type="Changetarget" target="&lt;t&gt;"/>
  1366.           <!-- Debug info -->
  1367.           <if advanced='"$Show.Debug" == "True"'>
  1368.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1369.           </if>
  1370.         </elseif>
  1371.         <elseif advanced='"$SkillCycle" == "3"'>
  1372.           <action type="command" when="aftercast">wait $WaitTime4Dark;input /ma "$CurrentSpell"</action>
  1373.           <action type="var" cmd="set SkillCycle 1" />
  1374.           <action type="changespell" spell="Bio" />
  1375.           <action type="Changetarget" target="&lt;t&gt;"/>
  1376.           <!-- Debug info -->
  1377.           <if advanced='"$Show.Debug" == "True"'>
  1378.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1379.           </if>
  1380.         </elseif>
  1381.       </elseif>
  1382.  
  1383.       <!-- Divine Magic Skill-Up Segment -->
  1384.       <elseif spell="Banish" >
  1385.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1386.         <if advanced='$SkillCycle &gt; 8'>
  1387.           <action type="var" cmd="set SkillCycle 1" />
  1388.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1389.           <action type="cancelspell"/>
  1390.           <!-- Debug info -->
  1391.           <if advanced='"$Show.Debug" == "True"'>
  1392.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1393.           </if>
  1394.         </if>
  1395.         <!--- Divine Skill Cycling -->
  1396.         <elseif advanced='"$SkillCycle" == "1"'>
  1397.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1398.           <action type="var" cmd="set SkillCycle 2" />
  1399.           <action type="changespell" spell="Banish" />
  1400.           <action type="Changetarget" target="&lt;t&gt;"/>
  1401.           <!-- Debug info -->
  1402.           <if advanced='"$Show.Debug" == "True"'>
  1403.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1404.           </if>
  1405.         </elseif>
  1406.         <elseif advanced='"$SkillCycle" == "2"'>
  1407.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1408.           <action type="var" cmd="set SkillCycle 3" />
  1409.           <action type="changespell" spell="Banish II" />
  1410.           <action type="Changetarget" target="&lt;t&gt;"/>
  1411.           <!-- Debug info -->
  1412.           <if advanced='"$Show.Debug" == "True"'>
  1413.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1414.           </if>
  1415.         </elseif>
  1416.         <elseif advanced='"$SkillCycle" == "3"'>
  1417.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1418.           <action type="var" cmd="set SkillCycle 4" />
  1419.           <action type="changespell" spell="Flash" />
  1420.           <action type="Changetarget" target="&lt;t&gt;"/>
  1421.           <!-- Debug info -->
  1422.           <if advanced='"$Show.Debug" == "True"'>
  1423.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1424.           </if>
  1425.         </elseif>
  1426.         <elseif advanced='"$SkillCycle" == "4"'>
  1427.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1428.           <action type="var" cmd="set SkillCycle 5" />
  1429.           <action type="changespell" spell="Phalanx" />
  1430.           <action type="Changetarget" target="&lt;me&gt;"/>
  1431.           <!-- Debug info -->
  1432.           <if advanced='"$Show.Debug" == "True"'>
  1433.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1434.           </if>
  1435.         </elseif>
  1436.         <elseif advanced='"$SkillCycle" == "5"'>
  1437.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1438.           <action type="var" cmd="set SkillCycle 6" />
  1439.           <action type="changespell" spell="Cure IV" />
  1440.           <action type="Changetarget" target="&lt;me&gt;"/>
  1441.           <!-- Debug info -->
  1442.           <if advanced='"$Show.Debug" == "True"'>
  1443.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1444.           </if>
  1445.         </elseif>
  1446.         <elseif advanced='"$SkillCycle" == "6"'>
  1447.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1448.           <action type="var" cmd="set SkillCycle 7" />
  1449.           <action type="changespell" spell="Holy" />
  1450.           <action type="Changetarget" target="&lt;t&gt;"/>
  1451.           <!-- Debug info -->
  1452.           <if advanced='"$Show.Debug" == "True"'>
  1453.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1454.           </if>
  1455.         </elseif>
  1456.         <elseif advanced='"$SkillCycle" == "7"'>
  1457.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1458.           <action type="var" cmd="set SkillCycle 8" />
  1459.           <action type="changespell" spell="Holy II" />
  1460.           <action type="Changetarget" target="&lt;t&gt;"/>
  1461.           <!-- Debug info -->
  1462.           <if advanced='"$Show.Debug" == "True"'>
  1463.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  1464.           </if>
  1465.         </elseif>
  1466.         <elseif advanced='"$SkillCycle" == "8"'>
  1467.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1468.           <action type="var" cmd="set SkillCycle 1" />
  1469.           <action type="changespell" spell="Enlight" />
  1470.           <action type="Changetarget" target="&lt;me&gt;"/>
  1471.           <!-- Debug info -->
  1472.           <if advanced='"$Show.Debug" == "True"'>
  1473.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 8 Processed</addtochat>
  1474.           </if>
  1475.         </elseif>
  1476.       </elseif>
  1477.  
  1478.       <elseif spell="Enlight" >
  1479.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1480.         <if advanced='$SkillCycle &gt; 3'>
  1481.           <action type="var" cmd="set SkillCycle 1" />
  1482.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1483.           <action type="cancelspell"/>
  1484.           <!-- Debug info -->
  1485.           <if advanced='"$Show.Debug" == "True"'>
  1486.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1487.           </if>
  1488.         </if>
  1489.         <!--- Divine Skill Cycling -->
  1490.         <elseif advanced='"$SkillCycle" == "1"'>
  1491.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1492.           <action type="var" cmd="set SkillCycle 2" />
  1493.           <action type="changespell" spell="Enlight" />
  1494.           <action type="Changetarget" target="&lt;me&gt;"/>
  1495.           <!-- Debug info -->
  1496.           <if advanced='"$Show.Debug" == "True"'>
  1497.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1498.           </if>
  1499.         </elseif>
  1500.         <elseif advanced='"$SkillCycle" == "2"'>
  1501.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1502.           <action type="var" cmd="set SkillCycle 3" />
  1503.           <action type="changespell" spell="Enlight" />
  1504.           <action type="Changetarget" target="&lt;me&gt;"/>
  1505.           <!-- Debug info -->
  1506.           <if advanced='"$Show.Debug" == "True"'>
  1507.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1508.           </if>
  1509.         </elseif>
  1510.         <elseif advanced='"$SkillCycle" == "3"'>
  1511.           <action type="command" when="aftercast">wait $WaitTime4Divine;input /ma "$CurrentSpell"</action>
  1512.           <action type="var" cmd="set SkillCycle 1" />
  1513.           <action type="changespell" spell="Enlight" />
  1514.           <action type="Changetarget" target="&lt;me&gt;"/>
  1515.           <!-- Debug info -->
  1516.           <if advanced='"$Show.Debug" == "True"'>
  1517.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1518.           </if>
  1519.         </elseif>
  1520.       </elseif>
  1521.  
  1522.       <!-- Elemental Magic Skill-Up Segment -->
  1523.       <!-- Elemental Magic Skill-Up using D.O.T. spells -->
  1524.       <elseif spell="Burn" >
  1525.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1526.         <if advanced='$SkillCycle &gt; 6'>
  1527.           <action type="var" cmd="set SkillCycle 1" />
  1528.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1529.           <action type="cancelspell"/>
  1530.           <!-- Debug info -->
  1531.           <if advanced='"$Show.Debug" == "True"'>
  1532.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1533.           </if>
  1534.         </if>
  1535.         <!--- Elemental Skill Cycling -->
  1536.         <elseif advanced='"$SkillCycle" == "1"'>
  1537.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1538.           <action type="var" cmd="set SkillCycle 2" />
  1539.           <action type="changespell" spell="Burn" />
  1540.           <action type="Changetarget" target="&lt;t&gt;"/>
  1541.           <!-- Debug info -->
  1542.           <if advanced='"$Show.Debug" == "True"'>
  1543.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1544.           </if>
  1545.         </elseif>
  1546.         <elseif advanced='"$SkillCycle" == "2"'>
  1547.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1548.           <action type="var" cmd="set SkillCycle 3" />
  1549.           <action type="changespell" spell="Frost" />
  1550.           <action type="Changetarget" target="&lt;t&gt;"/>
  1551.           <!-- Debug info -->
  1552.           <if advanced='"$Show.Debug" == "True"'>
  1553.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1554.           </if>
  1555.         </elseif>
  1556.         <elseif advanced='"$SkillCycle" == "3"'>
  1557.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1558.           <action type="var" cmd="set SkillCycle 4" />
  1559.           <action type="changespell" spell="Choke" />
  1560.           <action type="Changetarget" target="&lt;t&gt;"/>
  1561.           <!-- Debug info -->
  1562.           <if advanced='"$Show.Debug" == "True"'>
  1563.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed.</addtochat>
  1564.           </if>
  1565.         </elseif>
  1566.         <elseif advanced='"$SkillCycle" == "4"'>
  1567.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1568.           <action type="var" cmd="set SkillCycle 5" />
  1569.           <action type="changespell" spell="Rasp" />
  1570.           <action type="Changetarget" target="&lt;t&gt;"/>
  1571.           <!-- Debug info -->
  1572.           <if advanced='"$Show.Debug" == "True"'>
  1573.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1574.           </if>
  1575.         </elseif>
  1576.         <elseif advanced='"$SkillCycle" == "5"'>
  1577.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1578.           <action type="var" cmd="set SkillCycle 6" />
  1579.           <action type="changespell" spell="Shock" />
  1580.           <action type="Changetarget" target="&lt;t&gt;"/>
  1581.           <!-- Debug info -->
  1582.           <if advanced='"$Show.Debug" == "True"'>
  1583.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1584.           </if>
  1585.         </elseif>
  1586.         <elseif advanced='"$SkillCycle" == "6"'>
  1587.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1588.           <action type="var" cmd="set SkillCycle 1" />
  1589.           <action type="changespell" spell="Drown" />
  1590.           <action type="Changetarget" target="&lt;t&gt;"/>
  1591.           <!-- Debug info -->
  1592.           <if advanced='"$Show.Debug" == "True"'>
  1593.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1594.           </if>
  1595.         </elseif>
  1596.       </elseif>
  1597.  
  1598.       <!-- Elemental Magic Skill-Up using Nuke spells -->
  1599.       <elseif spell="Fire" >
  1600.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1601.         <if advanced='$SkillCycle &gt; 6'>
  1602.           <action type="var" cmd="set SkillCycle 1" />
  1603.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1604.           <action type="cancelspell"/>
  1605.           <!-- Debug info -->
  1606.           <if advanced='"$Show.Debug" == "True"'>
  1607.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1608.           </if>
  1609.         </if>
  1610.         <!--- Elemental Skill Cycling -->
  1611.         <elseif advanced='"$SkillCycle" == "1"'>
  1612.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1613.           <action type="var" cmd="set SkillCycle 2" />
  1614.           <action type="changespell" spell="Fire" />
  1615.           <action type="Changetarget" target="&lt;t&gt;"/>
  1616.           <!-- Debug info -->
  1617.           <if advanced='"$Show.Debug" == "True"'>
  1618.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1619.           </if>
  1620.         </elseif>
  1621.         <elseif advanced='"$SkillCycle" == "2"'>
  1622.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1623.           <action type="var" cmd="set SkillCycle 3" />
  1624.           <action type="changespell" spell="Blizzard" />
  1625.           <action type="Changetarget" target="&lt;t&gt;"/>
  1626.           <!-- Debug info -->
  1627.           <if advanced='"$Show.Debug" == "True"'>
  1628.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1629.           </if>
  1630.         </elseif>
  1631.         <elseif advanced='"$SkillCycle" == "3"'>
  1632.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1633.           <action type="var" cmd="set SkillCycle 4" />
  1634.           <action type="changespell" spell="Aero" />
  1635.           <action type="Changetarget" target="&lt;t&gt;"/>
  1636.           <!-- Debug info -->
  1637.           <if advanced='"$Show.Debug" == "True"'>
  1638.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed.</addtochat>
  1639.           </if>
  1640.         </elseif>
  1641.         <elseif advanced='"$SkillCycle" == "4"'>
  1642.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1643.           <action type="var" cmd="set SkillCycle 5" />
  1644.           <action type="changespell" spell="Stone" />
  1645.           <action type="Changetarget" target="&lt;t&gt;"/>
  1646.           <!-- Debug info -->
  1647.           <if advanced='"$Show.Debug" == "True"'>
  1648.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1649.           </if>
  1650.         </elseif>
  1651.         <elseif advanced='"$SkillCycle" == "5"'>
  1652.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1653.           <action type="var" cmd="set SkillCycle 6" />
  1654.           <action type="changespell" spell="Thunder" />
  1655.           <action type="Changetarget" target="&lt;t&gt;"/>
  1656.           <!-- Debug info -->
  1657.           <if advanced='"$Show.Debug" == "True"'>
  1658.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1659.           </if>
  1660.         </elseif>
  1661.         <elseif advanced='"$SkillCycle" == "6"'>
  1662.           <action type="command" when="aftercast">wait $WaitTime4Elemental;input /ma "$CurrentSpell"</action>
  1663.           <action type="var" cmd="set SkillCycle 1" />
  1664.           <action type="changespell" spell="Water" />
  1665.           <action type="Changetarget" target="&lt;t&gt;"/>
  1666.           <!-- Debug info -->
  1667.           <if advanced='"$Show.Debug" == "True"'>
  1668.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1669.           </if>
  1670.         </elseif>
  1671.       </elseif>
  1672.  
  1673.       <!-- Enfeebling Magic Skill-Up using Dia spell -->
  1674.       <elseif spell="Dia" >
  1675.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1676.         <if advanced='$SkillCycle &gt; 4'>
  1677.           <action type="var" cmd="set SkillCycle 1" />
  1678.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1679.           <action type="cancelspell"/>
  1680.           <!-- Debug info -->
  1681.           <if advanced='"$Show.Debug" == "True"'>
  1682.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1683.           </if>
  1684.         </if>
  1685.         <!--- Enfeebling Skill Cycling -->
  1686.         <elseif advanced='"$SkillCycle" == "1"'>
  1687.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1688.           <action type="var" cmd="set SkillCycle 2" />
  1689.           <action type="changespell" spell="Dia" />
  1690.           <action type="Changetarget" target="&lt;t&gt;"/>
  1691.           <!-- Debug info -->
  1692.           <if advanced='"$Show.Debug" == "True"'>
  1693.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1694.           </if>
  1695.         </elseif>
  1696.         <elseif advanced='"$SkillCycle" == "2"'>
  1697.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1698.           <action type="var" cmd="set SkillCycle 3" />
  1699.           <action type="changespell" spell="Dia" />
  1700.           <action type="Changetarget" target="&lt;t&gt;"/>
  1701.           <!-- Debug info -->
  1702.           <if advanced='"$Show.Debug" == "True"'>
  1703.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1704.           </if>
  1705.         </elseif>
  1706.         <elseif advanced='"$SkillCycle" == "3"'>
  1707.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1708.           <action type="var" cmd="set SkillCycle 4" />
  1709.           <action type="changespell" spell="Dia" />
  1710.           <action type="Changetarget" target="&lt;t&gt;"/>
  1711.           <!-- Debug info -->
  1712.           <if advanced='"$Show.Debug" == "True"'>
  1713.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1714.           </if>
  1715.         </elseif>
  1716.         <elseif advanced='"$SkillCycle" == "4"'>
  1717.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1718.           <action type="var" cmd="set SkillCycle 1" />
  1719.           <action type="changespell" spell="Silence" />
  1720.           <action type="Changetarget" target="&lt;t&gt;"/>
  1721.           <!-- Debug info -->
  1722.           <if advanced='"$Show.Debug" == "True"'>
  1723.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1724.           </if>
  1725.         </elseif>
  1726.       </elseif>
  1727.       <!-- Enfeebling Magic Skill-Up using Sleep spell -->
  1728.       <elseif spell="Sleep" >
  1729.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1730.         <if advanced='$SkillCycle &gt; 9'>
  1731.           <action type="var" cmd="set SkillCycle 1" />
  1732.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1733.           <action type="cancelspell"/>
  1734.           <!-- Debug info -->
  1735.           <if advanced='"$Show.Debug" == "True"'>
  1736.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1737.           </if>
  1738.         </if>
  1739.         <!--- Enfeebling Skill Cycling -->
  1740.         <elseif advanced='"$SkillCycle" == "1"'>
  1741.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1742.           <action type="var" cmd="set SkillCycle 2" />
  1743.           <action type="changespell" spell="Sleep" />
  1744.           <action type="Changetarget" target="&lt;t&gt;"/>
  1745.           <!-- Debug info -->
  1746.           <if advanced='"$Show.Debug" == "True"'>
  1747.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1748.           </if>
  1749.         </elseif>
  1750.         <elseif advanced='"$SkillCycle" == "2"'>
  1751.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1752.           <action type="var" cmd="set SkillCycle 3" />
  1753.           <action type="changespell" spell="Paralyze" />
  1754.           <action type="Changetarget" target="&lt;t&gt;"/>
  1755.           <!-- Debug info -->
  1756.           <if advanced='"$Show.Debug" == "True"'>
  1757.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1758.           </if>
  1759.         </elseif>
  1760.         <elseif advanced='"$SkillCycle" == "3"'>
  1761.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1762.           <action type="var" cmd="set SkillCycle 4" />
  1763.           <action type="changespell" spell="Silence" />
  1764.           <action type="Changetarget" target="&lt;t&gt;"/>
  1765.           <!-- Debug info -->
  1766.           <if advanced='"$Show.Debug" == "True"'>
  1767.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1768.           </if>
  1769.         </elseif>
  1770.         <elseif advanced='"$SkillCycle" == "4"'>
  1771.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1772.           <action type="var" cmd="set SkillCycle 5" />
  1773.           <action type="changespell" spell="Addle" />
  1774.           <action type="Changetarget" target="&lt;t&gt;"/>
  1775.           <!-- Debug info -->
  1776.           <if advanced='"$Show.Debug" == "True"'>
  1777.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1778.           </if>
  1779.         </elseif>
  1780.         <elseif advanced='"$SkillCycle" == "5"'>
  1781.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1782.           <action type="var" cmd="set SkillCycle 6" />
  1783.           <action type="changespell" spell="Gravity" />
  1784.           <action type="Changetarget" target="&lt;t&gt;"/>
  1785.           <!-- Debug info -->
  1786.           <if advanced='"$Show.Debug" == "True"'>
  1787.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1788.           </if>
  1789.         </elseif>
  1790.         <elseif advanced='"$SkillCycle" == "6"'>
  1791.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1792.           <action type="var" cmd="set SkillCycle 7" />
  1793.           <action type="changespell" spell="Blind" />
  1794.           <action type="Changetarget" target="&lt;t&gt;"/>
  1795.           <!-- Debug info -->
  1796.           <if advanced='"$Show.Debug" == "True"'>
  1797.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1798.           </if>
  1799.         </elseif>
  1800.         <elseif advanced='"$SkillCycle" == "7"'>
  1801.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1802.           <action type="var" cmd="set SkillCycle 8" />
  1803.           <action type="changespell" spell="Sleep II" />
  1804.           <action type="Changetarget" target="&lt;t&gt;"/>
  1805.           <!-- Debug info -->
  1806.           <if advanced='"$Show.Debug" == "True"'>
  1807.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  1808.           </if>
  1809.         </elseif>
  1810.         <elseif advanced='"$SkillCycle" == "8"'>
  1811.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1812.           <action type="var" cmd="set SkillCycle 9" />
  1813.           <action type="changespell" spell="Blind II" />
  1814.           <action type="Changetarget" target="&lt;t&gt;"/>
  1815.           <!-- Debug info -->
  1816.           <if advanced='"$Show.Debug" == "True"'>
  1817.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 8 Processed</addtochat>
  1818.           </if>
  1819.         </elseif>
  1820.         <elseif advanced='"$SkillCycle" == "9"'>
  1821.           <action type="command" when="aftercast">wait $WaitTime4Enfeebling;input /ma "$CurrentSpell"</action>
  1822.           <action type="var" cmd="set SkillCycle 1" />
  1823.           <action type="changespell" spell="Silence" />
  1824.           <action type="Changetarget" target="&lt;t&gt;"/>
  1825.           <!-- Debug info -->
  1826.           <if advanced='"$Show.Debug" == "True"'>
  1827.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 9 Processed</addtochat>
  1828.           </if>
  1829.         </elseif>
  1830.       </elseif>
  1831.      
  1832.       <!-- Ninjitsu -->
  1833.       <elseif spell="Utsusemi: Ni" >
  1834.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1835.         <if advanced='$SkillCycle &gt; 14'>
  1836.           <action type="var" cmd="set SkillCycle 1" />
  1837.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1838.           <action type="cancelspell"/>
  1839.           <!-- Debug info -->
  1840.           <if advanced='"$Show.Debug" == "True"'>
  1841.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1842.           </if>
  1843.         </if>
  1844.         <!--- Ninjitsu Skill Cycling -->
  1845.         <elseif advanced='"$SkillCycle" == "1"'>
  1846.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1847.           <action type="var" cmd="set SkillCycle 2" />
  1848.           <action type="changespell" spell="Utsusemi: Ni" />
  1849.           <action type="Changetarget" target="&lt;me&gt;"/>
  1850.           <!-- Debug info -->
  1851.           <if advanced='"$Show.Debug" == "True"'>
  1852.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  1853.           </if>
  1854.         </elseif>
  1855.         <elseif advanced='"$SkillCycle" == "2"'>
  1856.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1857.           <action type="var" cmd="set SkillCycle 3" />
  1858.           <action type="changespell" spell="Katon: San" />
  1859.           <action type="Changetarget" target="&lt;t&gt;"/>
  1860.           <!-- Debug info -->
  1861.           <if advanced='"$Show.Debug" == "True"'>
  1862.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  1863.           </if>
  1864.         </elseif>
  1865.         <elseif advanced='"$SkillCycle" == "3"'>
  1866.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1867.           <action type="var" cmd="set SkillCycle 4" />
  1868.           <action type="changespell" spell="Suiton: San" />
  1869.           <action type="Changetarget" target="&lt;t&gt;"/>
  1870.           <!-- Debug info -->
  1871.           <if advanced='"$Show.Debug" == "True"'>
  1872.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  1873.           </if>
  1874.         </elseif>
  1875.         <elseif advanced='"$SkillCycle" == "4"'>
  1876.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1877.           <action type="var" cmd="set SkillCycle 5" />
  1878.           <action type="changespell" spell="Doton: San" />
  1879.           <action type="Changetarget" target="&lt;t&gt;"/>
  1880.           <!-- Debug info -->
  1881.           <if advanced='"$Show.Debug" == "True"'>
  1882.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 4 Processed</addtochat>
  1883.           </if>
  1884.         </elseif>
  1885.         <elseif advanced='"$SkillCycle" == "5"'>
  1886.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1887.           <action type="var" cmd="set SkillCycle 6" />
  1888.           <action type="changespell" spell="Hyoton: San" />
  1889.           <action type="Changetarget" target="&lt;t&gt;"/>
  1890.           <!-- Debug info -->
  1891.           <if advanced='"$Show.Debug" == "True"'>
  1892.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 5 Processed</addtochat>
  1893.           </if>
  1894.         </elseif>
  1895.         <elseif advanced='"$SkillCycle" == "6"'>
  1896.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1897.           <action type="var" cmd="set SkillCycle 7" />
  1898.           <action type="changespell" spell="Huton: San" />
  1899.           <action type="Changetarget" target="&lt;t&gt;"/>
  1900.           <!-- Debug info -->
  1901.           <if advanced='"$Show.Debug" == "True"'>
  1902.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 6 Processed</addtochat>
  1903.           </if>
  1904.         </elseif>
  1905.         <elseif advanced='"$SkillCycle" == "7"'>
  1906.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1907.           <action type="var" cmd="set SkillCycle 8" />
  1908.           <action type="changespell" spell="Raiton: San" />
  1909.           <action type="Changetarget" target="&lt;t&gt;"/>
  1910.           <!-- Debug info -->
  1911.           <if advanced='"$Show.Debug" == "True"'>
  1912.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 7 Processed</addtochat>
  1913.           </if>
  1914.         </elseif>
  1915.         <elseif advanced='"$SkillCycle" == "8"'>
  1916.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1917.           <action type="var" cmd="set SkillCycle 9" />
  1918.           <action type="changespell" spell="Curing Waltz III" />
  1919.           <action type="Changetarget" target="&lt;me&gt;"/>
  1920.           <!-- Debug info -->
  1921.           <if advanced='"$Show.Debug" == "True"'>
  1922.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 8 Processed</addtochat>
  1923.           </if>
  1924.         </elseif>
  1925.         <elseif advanced='"$SkillCycle" == "9"'>
  1926.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1927.           <action type="var" cmd="set SkillCycle 10" />
  1928.           <action type="changespell" spell="Katon: Ni" />
  1929.           <action type="Changetarget" target="&lt;t&gt;"/>
  1930.           <!-- Debug info -->
  1931.           <if advanced='"$Show.Debug" == "True"'>
  1932.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 9 Processed</addtochat>
  1933.           </if>
  1934.         </elseif>
  1935.         <elseif advanced='"$SkillCycle" == "10"'>
  1936.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1937.           <action type="var" cmd="set SkillCycle 11" />
  1938.           <action type="changespell" spell="Suiton: Ni" />
  1939.           <action type="Changetarget" target="&lt;t&gt;"/>
  1940.           <!-- Debug info -->
  1941.           <if advanced='"$Show.Debug" == "True"'>
  1942.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 10 Processed</addtochat>
  1943.           </if>
  1944.         </elseif>
  1945.         <elseif advanced='"$SkillCycle" == "11"'>
  1946.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1947.           <action type="var" cmd="set SkillCycle 12" />
  1948.           <action type="changespell" spell="Doton: Ni" />
  1949.           <action type="Changetarget" target="&lt;t&gt;"/>
  1950.           <!-- Debug info -->
  1951.           <if advanced='"$Show.Debug" == "True"'>
  1952.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 11 Processed</addtochat>
  1953.           </if>
  1954.         </elseif>
  1955.         <elseif advanced='"$SkillCycle" == "12"'>
  1956.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1957.           <action type="var" cmd="set SkillCycle 13" />
  1958.           <action type="changespell" spell="Hyoton: Ni" />
  1959.           <action type="Changetarget" target="&lt;t&gt;"/>
  1960.           <!-- Debug info -->
  1961.           <if advanced='"$Show.Debug" == "True"'>
  1962.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 12 Processed</addtochat>
  1963.           </if>
  1964.         </elseif>
  1965.         <elseif advanced='"$SkillCycle" == "13"'>
  1966.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1967.           <action type="var" cmd="set SkillCycle 14" />
  1968.           <action type="changespell" spell="Huton: Ni" />
  1969.           <action type="Changetarget" target="&lt;t&gt;"/>
  1970.           <!-- Debug info -->
  1971.           <if advanced='"$Show.Debug" == "True"'>
  1972.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 13 Processed</addtochat>
  1973.           </if>
  1974.         </elseif>
  1975.         <elseif advanced='"$SkillCycle" == "14"'>
  1976.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  1977.           <action type="var" cmd="set SkillCycle 1" />
  1978.           <action type="changespell" spell="Raiton: Ni" />
  1979.           <action type="Changetarget" target="&lt;t&gt;"/>
  1980.           <!-- Debug info -->
  1981.           <if advanced='"$Show.Debug" == "True"'>
  1982.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 14 Processed</addtochat>
  1983.           </if>
  1984.         </elseif>
  1985.       </elseif>
  1986.      
  1987.       <!-- Range -->
  1988.       <elseif spell="Range" >
  1989.         <!--- Fix the SkillCycle varaible in case the SMN SKILL Segment boinked it -->
  1990.         <if advanced='$SkillCycle &gt; 3'>
  1991.           <action type="var" cmd="set SkillCycle 1" />
  1992.           <action type="command" when="aftercast">wait 3;input /ma "$CurrentSpell"</action>
  1993.           <action type="cancelspell"/>
  1994.           <!-- Debug info -->
  1995.           <if advanced='"$Show.Debug" == "True"'>
  1996.             <addtochat color="207">Debug Process:: Incorrect variable detected for this group, resetting to 1</addtochat>
  1997.           </if>
  1998.         </if>
  1999.         <!--- Ninjitsu Skill Cycling -->
  2000.         <elseif advanced='"$SkillCycle" == "1"'>
  2001.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  2002.           <action type="var" cmd="set SkillCycle 2" />
  2003.           <action type="changespell" spell="Utsusemi: Ni" />
  2004.           <action type="Changetarget" target="&lt;me&gt;"/>
  2005.           <!-- Debug info -->
  2006.           <if advanced='"$Show.Debug" == "True"'>
  2007.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 1 Processed</addtochat>
  2008.           </if>
  2009.         </elseif>
  2010.         <elseif advanced='"$SkillCycle" == "2"'>
  2011.           <action type="command" when="aftercast">wait $WaitTime4Ninjitsu;input /ma "$CurrentSpell"</action>
  2012.           <action type="var" cmd="set SkillCycle 3" />
  2013.           <action type="changespell" spell="Katon: San" />
  2014.           <action type="Changetarget" target="&lt;t&gt;"/>
  2015.           <!-- Debug info -->
  2016.           <if advanced='"$Show.Debug" == "True"'>
  2017.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 2 Processed</addtochat>
  2018.           </if>
  2019.         </elseif>
  2020.         <elseif advanced='"$SkillCycle" == "3"'>
  2021.           <action type="command" when="aftercast">wait $WaitTime4Range;input /ma "$CurrentSpell"</action>
  2022.           <action type="var" cmd="set SkillCycle 4" />
  2023.           <action type="changespell" spell="Suiton: San" />
  2024.           <action type="Changetarget" target="&lt;t&gt;"/>
  2025.           <!-- Debug info -->
  2026.           <if advanced='"$Show.Debug" == "True"'>
  2027.             <addtochat when="aftercast" color="207">Debug Process:: Cycle 3 Processed</addtochat>
  2028.           </if>
  2029.         </elseif>
  2030.       </elseif>
  2031.     </if>
  2032.   </rules>
  2033. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement