<if spell="Barstone">
<cmd when="aftercast">wait 5;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 10;input /ma "Barwater" <me></cmd>
<cmd when="aftercast">wait 15;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 20;input /ma "Baraero" <me></cmd>
<cmd when="aftercast">wait 25;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 30;input /ma "Barblizzard" <me></cmd>
<cmd when="aftercast">wait 35;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 40;input /ma "Barthunder" <me></cmd>
<cmd when="aftercast">wait 45;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 50;input /ma "Barfire" <me></cmd>
<cmd when="aftercast">wait 55;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 60;input /ma "Barwater" <me></cmd>
<cmd when="aftercast">wait 65;input /ma "Cure" <me></cmd>
<cmd when="aftercast">wait 70;input /ma "Barstone" <me></cmd>
</if>
I'm baffeled. I copied and pasted this text into a TXT file and then changed the TXT extension to LUA. I named the LUA file "skillup.LUA" When I type "lua e skillup" into the command line, it tells me syntax error in line 1. I'm not a programmer so I don't know what else to do but call for help.