Macro to cast spell X when mob Y spawns..

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Frank25
a ghoul
a ghoul
Posts: 136
Joined: Thu Aug 12, 2004 6:38 am

Macro to cast spell X when mob Y spawns..

Post by Frank25 » Mon May 02, 2005 3:59 am

I might try writing this myself if no one has any idea but for the moment i am stuck even on the "Start" phase of the macro.
I've been using macroquest for a year now and editing macros is pretty "simple" but i have issues starting one from scratch.

What i want to do is pretty simple.
On the spawn of a mob WITHOUT a specific word in the name i want the toon to cast a specific spell.

IF it's oor of the spell to move into spellcast range. If said spell wears off i want it to reaquire and recast.

I am not sure if a plugin would be better for this, but if zero knowledge of the plugin coding.

If anyone can at least give me a basic idea of how to write one, or knows if there is something like this already online (i've looked aroudn but not really surew hat to search for ) i would be most appreciative.

If not, thanks for reading my crap to the end anyhow )

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Re: Macro to cast spell X when mob Y spawns..

Post by Fuergrissa » Mon May 02, 2005 8:20 am

Frank25 wrote: On the spawn of a mob WITHOUT a specific word in the name i want the toon to cast a specific spell.
Please explain what you mean then.
Give me a scenario.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

Frank25
a ghoul
a ghoul
Posts: 136
Joined: Thu Aug 12, 2004 6:38 am

Post by Frank25 » Mon May 02, 2005 12:17 pm

i've been doing MPG trials with a few friends, and to speed up the fearing of npc's i was thinking about this.

In that trial mobs spawn named either "a fearless (mobname)" or just "a (mobname)"

what i want is my necro on the spawn of "a (mobname)" to target it, cast Fear and monitor if fear wears off before mobs dies.

That way i can concentrate on dps etc and it automatically checks the fear part.

Hope that is clear

DigitalMocking
a grimling bloodguard
a grimling bloodguard
Posts: 620
Joined: Mon Apr 04, 2005 5:53 pm

Post by DigitalMocking » Mon May 02, 2005 12:26 pm

you just want to cast fear on mobs with $Target.CleanName.Equal[a fearless grue] (not sure on the exact syntax, this is pseudocode)

keep track of the Target.ID number, since its unique, so you can refear, but there's no way of tracking which fear wore off first, since fear doesn't have a set timer and the message is the same for all mobs.

Only thing you can do is refear them all, or maybe do a distance check... if the mob gets closer to you on 3 subsequent ticks, and you're in FearMode, fear it again.










xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Macro to cast spell X when mob Y spawns..

Post by xyilla » Tue Jan 06, 2026 4:16 am