Thread Tools Display Modes
10-29-07, 04:56 PM   #1
Smoothtalkin
A Defias Bandit
Join Date: Oct 2007
Posts: 3
Friend/enemy macro help needed :)

Sorry if this is the wrong area (first post here) but im wondering if anyone can help me with writing a macro.
Basically im looking for a macro that will cast a certain spell if my target is friendly and a different spell if the target is hostile, e.g earth shock and healingwave

I have tried
/cast [harm] [target=player] earth shock(rank 8)
/cast [help] [target=player] healing wave (rank 12)

but it does'nt seem to work >.<
any help on this would be fantastic

Also a macro that uses both trinkets on different cooldown

-Smooth
  Reply With Quote
10-30-07, 11:03 PM   #2
Smoothtalkin
A Defias Bandit
Join Date: Oct 2007
Posts: 3
No-one know's this either? =/
  Reply With Quote
10-30-07, 11:51 PM   #3
Jazradel
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 39
Code:
/cast [harm] Earth Shock
/cast [help,target=player] Healing Wave
Should work fine.
__________________
  Reply With Quote
10-31-07, 04:09 AM   #4
Persen
A Fallenroot Satyr
Join Date: May 2007
Posts: 20
Originally Posted by Smoothtalkin
/cast [harm] [target=player] earth shock(rank 8)
/cast [help] [target=player] healing wave (rank 12)
First, put every conditional in the same set of []. In effect, use [help,target=player]
Also, you can't cast earth shock on yourself, which is exactly what
/cast [harm] [target=player] earth shock(rank 8)
tries to do (see that target=player? What it does makes sense)
Code:
/cast [harm] Earth Shock
/cast [help,target=player] Healing Wave
Should work, but it will only cast healing wave on yourself, even if you have a friend targeted. If that's not what you want, I'd recommend this code:
Code:
/cast [harm] Earth Shock; [help] Healing Wave
  Reply With Quote
10-31-07, 08:44 PM   #5
Smoothtalkin
A Defias Bandit
Join Date: Oct 2007
Posts: 3
Originally Posted by Persen
/cast [harm] Earth Shock
/cast [help,target=player] Healing Wave
Should work, but it will only cast healing wave on yourself, even if you have a friend targeted.
This works fine but like you said only for self casting, is there no way to make this work on all friendly target's as the other one does'nt seem to work, if it's do-able then it's 100% perfect.

-Smooth
  Reply With Quote
11-01-07, 04:39 AM   #6
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by Smoothtalkin
This works fine but like you said only for self casting, is there no way to make this work on all friendly target's as the other one does'nt seem to work, if it's do-able then it's 100% perfect.

-Smooth
Code:
/cast [harm] earth shock
/cast [help]  healing wave
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Friend/enemy macro help needed :)


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