The variables seem to be working properly, because in all of the /echo's they display correctly. The problem happens at the:
Code: Select all
/call Cast "${SpellName}" If anyone can help I'd appreciate it, this is my first macro with the new system, and I'm trying to get used to it.
Code: Select all
| skillup.mac
| Work in progress ripped from Bob_the_builder's castgem.mac & Giblet's old Skillupmagic.mac
| CURRENTLY DOES NOT WORK
| Use for skill up
#include spellcast.inc
#event NoComponents "You are missing some required components."
Sub Main
/declare SkillName
/declare LevelName
/declare SpellName
/call RaiseSkill "Abjuration" 120 "Minor Sheilding"
/call RaiseSkill "Alteration" 120 "Shallow Breath"
/call RaiseSkill "Conjuration" 120 "Mesmerize"
/call RaiseSkill "Divination" 120 "True North"
/call RaiseSkill "Evocation" 120 "Chaotic Feedback"
/call RaiseSkill "Channeling" 120 "True North"
/call RaiseSkill "Meditate" 120 "Alacrity"
/call RaiseSkill "Specialize Alteration" 50 "Shallow Breath"
/endmacro
Sub RaiseSkill(SkillName,LevelName,SpellName)
/echo - Raising ${SkillName} to ${LevelName} with ${SpellName}
|/echo Standing if im sitting
/if (${Me.State.Equal[SIT]}) /stand
:CheckMana
|/echo checking mana
/if (${Me.PctMana}<20) /goto :SitDown
:CheckCursor
|/echo checking for sumoned items in cursor
/if (${Cursor.ID}) {
/autoinv
/goto :CheckCursor
}
:CastSpell
/echo current skill in ${SkillName} is ${Me.Skill[${SkillName}]}
/if (${Me.Skill[${SkillName}]}>${LevelName}) /goto :NextSkill
/echo attempting to cast spell ${SpellName}
/call Cast "${SpellName}"
/doevents
/goto :CheckMana
:SitDown
/if (${Me.State.Equal[STAND]}) /sit on
:HowMuchMana
/if (${Me.PctMana}<98) /goto :HowMuchMana
/goto :CheckMana
:NextSkill
/return
Sub Event_NoComponents
/popup No More Items to Make
/endmacro
/return
Thank you.
-Mixy!

