Page 1 of 1

SpellCast.mac (Missing Spell Components)

Posted: Tue Jan 07, 2003 12:30 pm
by MacroMaker
Thought this might be helpful to some. When using SpellCast.mac I noticed that it wasn't responding as I expected to missing spell components, so I added the following to the library:

Code: Select all

 
[color=blue]#event [/color]MissingComponent "[color=cyan]You are missing some required spell components.[/color]"

[color=blue]#define[/color] CAST_MISSING 8

[color=green]|** Under the :WaitCast Label **|[/color]
[color=blue]/doevents[/color] MissingComponent

[color=blue]Sub [/color]Event_MissingComponent
   [color=blue]/varset[/color] CastStatus CAST_MISSING
/return
I'm working on the assumption that you can glean what was snipped and know the appropriate place to stick each line in the code.

Re: SpellCast.mac (Missing Spell Components)

Posted: Fri Jan 10, 2003 7:14 am
by lifewolf
MacroMaker wrote:

Code: Select all

 
[color=blue]#event [/color]MissingComponent "[color=cyan]You are missing some required spell components.[/color]"

[color=blue]#define[/color] CAST_MISSING 8

[color=green]|** Under the :WaitCast Label **|[/color]
[color=blue]/doevents[/color] MissingComponent

[color=blue]Sub [/color]Event_MissingComponent
   [color=blue]/varset[/color] CastStatus CAST_MISSING
/return

Looks good to me. Have not tried it though. Yay color works in code tags now!

Re: SpellCast.mac (Missing Spell Components)

Posted: Fri Jan 10, 2003 4:39 pm
by SingleServing
Looks good to me. Have not tried it though. Yay color works in code tags now!
Aye but makes it hard to read depending on colors you use and your MB "theme".