Bored.mac count your MGB hits and misses
Posted: Fri Jun 04, 2004 12:40 am
Ok, I figured I should start learning to write macros. Here is number one:
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
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
/returnweeee