Page 1 of 1

Doevents.. is there a list of events available

Posted: Sun Apr 25, 2004 3:42 am
by worzel
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.

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

Posted: Sun Apr 25, 2004 3:55 am
by wassup
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.

Posted: Sun Apr 25, 2004 11:05 am
by worzel
Ahh Thx Wassup I see it now :lol: