Thread Tools Display Modes
01-12-12, 03:04 AM   #1
korlei
A Murloc Raider
Join Date: Jan 2012
Posts: 5
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!
  Reply With Quote
01-12-12, 04:02 AM   #2
whoarrior
A Deviate Faerie Dragon
 
whoarrior's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 14
/cast [@target1,nodead][@target2,nodead][@target3,nodead][@target4,nodead][@target5,nodead][] Fel Flame

(:
  Reply With Quote
01-12-12, 04:15 AM   #3
korlei
A Murloc Raider
Join Date: Jan 2012
Posts: 5
Thanks a lot!

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?
It doesn't do anything for me at all, no errors either. :s
  Reply With Quote
01-12-12, 04:26 AM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by korlei View Post
Thanks a lot!

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?
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).
  Reply With Quote
01-12-12, 04:28 AM   #5
korlei
A Murloc Raider
Join Date: Jan 2012
Posts: 5
Oh ok
Does anybody know how I can make it work for npc names?
Is it even possible?
  Reply With Quote
01-12-12, 04:32 AM   #6
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by korlei View Post
Is it even possible?
Nope
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Cast spell if target is not dead, else on target2.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off