WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Friend/enemy macro help needed :) (https://www.wowinterface.com/forums/showthread.php?t=13182)

Smoothtalkin 10-29-07 04:56 PM

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

Smoothtalkin 10-30-07 11:03 PM

No-one know's this either? =/

Jazradel 10-30-07 11:51 PM

Code:

/cast [harm] Earth Shock
/cast [help,target=player] Healing Wave

Should work fine.

Persen 10-31-07 04:09 AM

Quote:

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

Smoothtalkin 10-31-07 08:44 PM

Quote:

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

Slakah 11-01-07 04:39 AM

Quote:

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



All times are GMT -6. The time now is 11:48 PM.

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