Reply
Thread Tools Display Modes
Unread 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!
korlei is offline   Reply With Quote
Unread 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

(:
whoarrior is offline   Reply With Quote
Unread 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
korlei is offline   Reply With Quote
Unread 01-12-12, 04:26 AM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,530
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).
__________________
Nibelheim is offline   Reply With Quote
Unread 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?
korlei is offline   Reply With Quote
Unread 01-12-12, 04:32 AM   #6
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,530
Originally Posted by korlei View Post
Is it even possible?
Nope
__________________
Nibelheim is offline   Reply With Quote
Unread 01-12-12, 04:38 AM   #7
korlei
A Murloc Raider
Join Date: Jan 2012
Posts: 5
Originally Posted by Nibelheim View Post
Nope
Hm ok, well well.

Thanks for the help anyway.
korlei is offline   Reply With Quote
Unread 01-12-12, 05:05 AM   #8
whoarrior
A Deviate Faerie Dragon
 
whoarrior's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 14
"/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
whoarrior is offline   Reply With Quote
Unread 01-12-12, 07:38 PM   #9
cormanthor
A Warpwood Thunder Caller
 
cormanthor's Avatar
AddOn Compiler - Click to view compilations
Join Date: Nov 2008
Posts: 94
/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
__________________
Some days it's just not worth chewing through the restraints...
cormanthor is offline   Reply With Quote
Unread 01-12-12, 07:53 PM   #10
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured
Join Date: Jan 2010
Posts: 1,530
Originally Posted by cormanthor View Post
/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.
__________________
Nibelheim is offline   Reply With Quote
Unread 01-13-12, 01:41 PM   #11
korlei
A Murloc Raider
Join Date: Jan 2012
Posts: 5
Oh nice! Thanks alot!

Last edited by korlei : 01-13-12 at 03:16 PM.
korlei is offline   Reply With Quote
Reply

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

Thread Tools
Display Modes

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