Doevents.. is there a list of events available

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

worzel
a lesser mummy
a lesser mummy
Posts: 37
Joined: Tue Apr 20, 2004 12:04 pm

Doevents.. is there a list of events available

Post by worzel » Sun Apr 25, 2004 3:42 am

Is there a list of events that the Doevents command uses that I can refer to. I cant seem to find any references on the forums.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Re: Doevents.. is there a list of events available

Post by wassup » Sun Apr 25, 2004 3:55 am

worzel wrote:Is there a list of events that the Doevents command uses that I can refer to. I cant seem to find any references on the forums.
Look at genbot or something like it... you can design your own text based events.

When a certain line of text comes through chat, you can do things when this event happens, from a Sub called Sub Event_EventName.

For example..

Code: Select all

#event SpellFizzle "Your spell fizzles"

Sub Main
   /cast spell "supernal remedy"
   /doevents
   /echo Spell Fizzled: ${If[${Macro.Return},TRUE,FALSE]}
/endmacro

Sub Event_SpellFizzle
   .
   do this stuff
   .
/return 1
Quick dirty explanation, but hope it helps.
Last edited by wassup on Sun Apr 25, 2004 2:04 pm, edited 2 times in total.

worzel
a lesser mummy
a lesser mummy
Posts: 37
Joined: Tue Apr 20, 2004 12:04 pm

Post by worzel » Sun Apr 25, 2004 11:05 am

Ahh Thx Wassup I see it now :lol: