Code
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config
Debug="false"
HideErrors="false"
ShowSpellInfo="false"
ShowGearSwaps="false"
/>
<variables clear="false">
<var name="SkillUp">1</var>
</variables>
<sets>
<group default="yes" name="Job">
<set name = "Standard" />
<set name="Resting">
<main>$DarkStaff</main>
<sub>Staff Strap</sub>
<body>Errant Hpl.</body>
<neck>Eidolon Pendant</neck>
<waist>Austerity Belt</waist>
<legs>Sagacity Lappas</legs>
<rear>Antivenom Earring</rear>
<back>Felicitas Cape</back>
<head>Goliard Chapeau</head>
</set>
</group>
</sets>
<rules>
<equip when="resting" set="Resting" />
<if NOTMPGT="15">
<command when="precast">input /heal on;wait 180;input /heal off;wait 3;input /ma "Barwater"</command>
</if>
<if spell="Barwater">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Barstone"</command>
</if>
</if>
<elseif spell="Barstone">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Baraero"</command>
</if>
</elseif>
<elseif spell="Baraero">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Barthunder"</command>
</if>
</elseif>
<elseif spell="Barthunder">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Barblizzard"</command>
</if>
</elseif>
<elseif spell="Barblizzard">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Barfire"</command>
</if>
</elseif>
<elseif spell="Barfire">
<if advanced='"$SkillUp" == "1"'>
<if notbuffactive = "Refresh*">
<command when="aftercast">wait 2;input /ma "Refresh II"</command>
</if>
<elseif buffactive="Refresh">
<command when="aftercast"> wait 2;input /ma "Barwater"</command>
</elseif>
</if>
</elseif>
<elseif spell="Refresh*">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Barwater"</command>
</if>
</elseif>
</rules>
</spellcast>
Download Spellcast drop into plugins folder, put this file saved as .xml into spellcast folder, in the plugins directory.
Add load spellcast to init.txt, Spellcast is more efficient than using windower macros to loop, it can cause pol to crash.
If you don't want to edit init.txt type //load spellcast into game chat
and type //sc load nameoffile to load the file or just name it whm.xml and spellcast will auto load it when you change jobs. Just rename the barspells and adjust wait times as needed.
Edit:plugins directory, scripts folder are for the windower macros, and where init.txt is.