SpellCast.mac (Missing Spell Components)

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

MacroMaker
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Jan 04, 2003 11:01 pm

SpellCast.mac (Missing Spell Components)

Post by MacroMaker » Tue Jan 07, 2003 12:30 pm

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.

lifewolf
a ghoul
a ghoul
Posts: 143
Joined: Fri Oct 18, 2002 6:29 pm

Re: SpellCast.mac (Missing Spell Components)

Post by lifewolf » Fri Jan 10, 2003 7:14 am

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!

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Re: SpellCast.mac (Missing Spell Components)

Post by SingleServing » Fri Jan 10, 2003 4:39 pm

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".
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]