Page 1 of 1

Bored.mac count your MGB hits and misses

Posted: Fri Jun 04, 2004 12:40 am
by Spanky_Monkey
Ok, I figured I should start learning to write macros. Here is number one:

Code: Select all

|bored.mac
|counts the number of people you hit and those who are too low level to recieve HoV.

#event luckyone "#*#eyes gleam with virtue#*#"
#event lahoozer "#*#spell is too powerful#*#"


sub Main

/declare lucky int outer
/declare unlucky int outer

/delay 7s
/doevents
/echo "There were ${lucky} people who got virtue and ${unlucky} folks who sucked!"
/return

Sub Event_luckyone
/varcalc lucky ${lucky}+1
/return

Sub Event_lahoozer
/varcalc unlucky ${unlucky}+1
/return
I know I could have added spellcast.inc to cast and /alt activated the MGB from in script, but I was feeling lazy and just wanted to do it this way.

weeee

Posted: Fri Jun 04, 2004 3:43 am
by Oid
This macro gets the Oid seal of approval!

Congratulations sir! this is a rare honor indeed!

Posted: Fri Jun 04, 2004 9:43 am
by Drumstix42
Nice :lol:

I'd like to thank the little people...

Posted: Fri Jun 04, 2004 6:20 pm
by Spanky_Monkey
First, I'd like to tank my producers, The MQ devs, The guy who answered my /varcalc question in irc, the losers who aren't high enough level for HoV, the winners who are. I'd like to thank my weedman for his inspiration to go for it, be the ball and throw yourself he said... And I'd also like to thank my mom and dad, for making me the neurotiuc wreck I am. Thank you all! I Love you! *blows kisses*


Wait, who the hell is kisses?

Uggh..
Ok.. yeah hehehe.

Not really, but I'm glad you liked it :)

Spanky