WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Cast spell if target is not dead, else on target2. (https://www.wowinterface.com/forums/showthread.php?t=42351)

korlei 01-12-12 03:04 AM

Cast spell if target is not dead, else on target2.
 
Hello.
How can I make a macro that casts Fel Flame on target1, but if target1 is dead I want it to cast Fel Flame on target2. And if target2 is dead cast Fel Flame on target3.
And I want this for five different targets.

I have been looking for something like this for 2 hours now and have gotten nowhere, any help would be approciated.

Thanks!

whoarrior 01-12-12 04:02 AM

/cast [@target1,nodead][@target2,nodead][@target3,nodead][@target4,nodead][@target5,nodead][] Fel Flame

(:

korlei 01-12-12 04:15 AM

Thanks a lot! :D

However I can't seem to get it to work.
This is what I modified it to:

/cast [@Shakes O'Breen,nodead][@First Mate Nilzlix,nodead][@Captain Steelgut,nodead][@Doctor Draxlegauge,nodead][@Deckhand Moishe,nodead][] Fel Flame

Should that work? :o
It doesn't do anything for me at all, no errors either. :s

Nibelheim 01-12-12 04:26 AM

Quote:

Originally Posted by korlei (Post 250894)
Thanks a lot! :D

However I can't seem to get it to work.
This is what I modified it to:

/cast [@Shakes O'Breen,nodead][@First Mate Nilzlix,nodead][@Captain Steelgut,nodead][@Doctor Draxlegauge,nodead][@Deckhand Moishe,nodead][] Fel Flame

Should that work? :o
It doesn't do anything for me at all, no errors either. :s

You won't be able to use NPC names. Only player names if they're in your group or target identifiers (target / focus / etc).

korlei 01-12-12 04:28 AM

Oh ok :(
Does anybody know how I can make it work for npc names? :)
Is it even possible?

Nibelheim 01-12-12 04:32 AM

Quote:

Originally Posted by korlei (Post 250896)
Is it even possible?

Nope :(

korlei 01-12-12 04:38 AM

Quote:

Originally Posted by Nibelheim (Post 250897)
Nope :(

Hm ok, well well. :(

Thanks for the help anyway. :)

whoarrior 01-12-12 05:05 AM

"/target [nodead] NPCName" won't function?

/target [nodead] Shakes O'Breen
/cast [nodead] Fel Flame
/target [nodead] First Mate Nilzlix
/cast [nodead] Fel Flame
/target [nodead] Captain Steelgut
/cast [nodead] Fel Flame
/target [nodead] Doctor Draxlegauge
/cast [nodead] Fel Flame
/target [nodead] Deckhand Moishe
/cast [nodead] Fel Flame

cormanthor 01-12-12 07:38 PM

/target NPC works fine, but you can shorten your macro quite a bit.
Code:

/tar [dead][noexists] Shakes O'Breen
/tar [dead][noexists] First Mate Nilzlix
/tar [dead][noexists] Captain Steelgut
/tar [dead][noexists] Doctor Draxlegauge
/tar [dead][noexists] Deckhand Moishe
/cast [harm] Fel Flame


Nibelheim 01-12-12 07:53 PM

Quote:

Originally Posted by cormanthor (Post 250944)
/target NPC works fine, but you can shorten your macro quite a bit.
Code:

/tar [dead][noexists] Shakes O'Breen
/tar [dead][noexists] First Mate Nilzlix
/tar [dead][noexists] Captain Steelgut
/tar [dead][noexists] Doctor Draxlegauge
/tar [dead][noexists] Deckhand Moishe
/cast [harm] Fel Flame


Ohh, neato.

korlei 01-13-12 01:41 PM

Oh nice! Thanks alot! :D


All times are GMT -6. The time now is 07:50 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI