Nevermind. I figured it out with the old BRD skill up. But in case someone else wants for the Mastop NM or whatever....
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<config />
<variables clear="false">
<var name="SkillUp">1</var>
</variables>
<sets />
<rules>
<if spell="Noctohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Geohelix" <t></command>
</if>
</if>
<elseif spell="Geohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Anemohelix" <t></command>
</if>
</elseif>
<elseif spell="Anemohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Cryohelix" <t></command>
</if>
</elseif>
<elseif spell="Cryohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Pyrohelix" <t></command>
</if>
</elseif>
<elseif spell="Pyrohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Hydrohelix" <t></command>
</if>
</elseif>
<elseif spell="Hydrohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Ionohelix" <t></command>
</if>
</elseif>
<elseif spell="Ionohelix">
<if advanced='"$SkillUp" == "1"'>
<command when="aftercast">wait 2;input /ma "Noctohelix" <t></command>
</if>
</elseif>
</rules>
</spellcast>