Page 1 of 1

Basic Slow Macro

Posted: Fri May 07, 2004 10:49 pm
by Chill
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.

Posted: Sat May 08, 2004 10:03 am
by Mister Peepers
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.

Posted: Sat May 08, 2004 10:16 am
by ml2517
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