Basic Slow Macro

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Chill
Contributing Member
Contributing Member
Posts: 435
Joined: Fri May 07, 2004 5:06 pm
Location: Erie, PA

Basic Slow Macro

Post by Chill » Fri May 07, 2004 10:49 pm

Trying to make a very basic macro for a chanter to slow a mob. I started to code events for fizzles and resists, but then just elected to use the Spellcast.ini file and let it deal with that.

Here is what I have:

Slow.mac

Code: Select all

|slow.mac
|A Simple chanter slow macro
|(C) Chill

#turbo

#Include SpellCast.inc

|#event Fizzle "Your spell fizzles!"
|#event tashed "glances nervously about."
|#event Slowed "slows down."
|#event Resist "Your target resisted the Forlorn Deeds spell."

Sub Main

/if (${Target.PctHPs} < 100) {

/echo Slowing ${Target.Name} at ${Target.PctHPs}%

:tash
/call cast "Howl of Tashan"

:slow
/call cast "Serpent of Vindication" item

:boggle
/if (${Target.TargetOfTarget.ID} == ${Me.ID}) /call cast "Boggle"

} else {
    /echo ${Target.Name} not yet engaged.
}
/return
The macro is tashing and slowing for me, but ${Target.TargetOfTarget} seems to be coming up NULL so that check never evaluates true.

I am trying to see if I am agro, and then boggle if I am...can anyone help me get this working, or suggest a better way to check for agro?

Thanks.

P.S. I do have the ToT LAA and I am getting the mob in the ToT box if that matters.

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Sat May 08, 2004 10:03 am

You might want to try and check it as a name and not an ID so use the

Code: Select all

/if (${Target.TargetofTarge.Name} == ${Me.Name}) 
If that doesn't work I am not sure.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sat May 08, 2004 10:16 am

I noticed you had spaces between your comparisons. That might be the cause, try this:

Code: Select all

|slow.mac 
|A Simple chanter slow macro 
|(C) Chill 

#turbo 

#Include SpellCast.inc 

|#event Fizzle "Your spell fizzles!" 
|#event tashed "glances nervously about." 
|#event Slowed "slows down." 
|#event Resist "Your target resisted the Forlorn Deeds spell." 

Sub Main 

/if (${Target.PctHPs}<100) { 
    /echo Slowing ${Target.CleanName} at ${Target.PctHPs}% 
    :tash 
    /call cast "Howl of Tashan" 

    :slow 
    /call cast "Serpent of Vindication" item 

    :boggle 
    /if (${Target.TargetOfTarget.ID}==${Me.ID}) /call cast "Boggle" 

} else { 
    /echo ${Target.CleanName} not yet engaged. 
} 
/return