Enraging

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

insanitywiz
a hill giant
a hill giant
Posts: 250
Joined: Mon Jul 08, 2002 7:50 am

Enraging

Post by insanitywiz » Sun Jan 19, 2003 4:22 am

Is there a way to link a chat event such as has become ENRAGED to the current target, to my pet macs to only turn off attack if it is his, or at least a similar, target?

Thanks

Ariain
a ghoul
a ghoul
Posts: 88
Joined: Fri Oct 11, 2002 10:35 am

...

Post by Ariain » Sun Jan 19, 2003 1:55 pm

Yes

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Sun Jan 19, 2003 3:57 pm

Ariain wrote:Yes
Don't just say yes, and not post anything.

Code: Select all


#event enraged "has become ENRAGED"

Sub Main
 :loop
 /doevents
 /goto :loop
/return

Sub Event_Enranged
 /if $p0~~"$target(name)" {
  /pet back off
 }
/return
$p0==the line that set it off, and ~~ is just to check if the targets name is somewhere in that string.