I am new with MQ been using it for about a month now GREAT program!
I do not know how to code for these macros though I do seem to make some sense out of them when I look at them...
Anyhow for my question...
I found this Macro in the macros forum and tried to use it but I got some errors and have a few questions. It is a macro that sends tells to your group telling them what you are doing such as snaring, rooting, casting a dot, etc.
here is the code:
Code: Select all
|Groupalert.mac
|This macro will tell your group info about your spells for you.
|It's pretty basic, to change it just change the syntax in the events.
|It's set up for a druid so that my group knows what I've snared, doted, charmed, etc
|and when these respective spells break.
|by: Malachi
#event Snared "Your target has been ensnared"
#event Root "Your target is bound by ensnaring roots"
#event Charmed "Your target blinks"
#event Snarebroke "Your ensnare spell has worn off"
#event Rootbroke "The roots fall away"
#event Charmbroke "Your charm spell has worn off"
#event Doted "surrounded by a swarm"
sub Main
:MainLoop
/doevents flush
/doevents
sub Event_Snared
/g My mob has successfully been snared.
/goto :MainLoop
sub Event_Root
/g My mob has successfully been rooted...for now.
/goto :MainLoop
sub Event_Charmed
/g My mob is now my pet, at least for a few seconds.
/goto :MainLoop
sub Event_Snarebroke
/g My ensnare spell has worn off, caution that's one fast mob!
/goto :MainLoop
sub Event_Rootbroke
/g My roots have fallen away, that bugger's on the loose!
/goto :MainLoop
sub Event_Doted
/g That nasty mob has been doted.
/goto :MainLoop
/return
/end
1) is this a good piece of working code as it would not work for me.
2) In the #events where it designates the text it looks for like the above says :
#event Snared "Your target has been ensnared"
Shouldnt 'Your Target' be replaced with something to designate and insert the exact name of my target? when I snare something in the game my message says "a 'Targetname' has been ensnared"
so the macro would never see the right text to match the #event?
I remember that one of the 2 errors I got was that it could not parse the Sub Event_snared
Anyhow, I hope that I have been clear with my question and certainly hope someone will lend me some help with getting this to work...once i have it working I will expand it quite a bit....I am using the New UI btw if that matters. (didnt think it would ...as from all the forum reading I have done it does not include any click actions like some of the tradeskill macros require)
Thankx again and as you can probably tell I hate using hotkeys...this seems like a much better solution.
einsteins

