PDA

View Full Version : Auto target self macro for certain spells?



Grimmace
11-15-2008, 08:17 PM
I was wondering if anyone here had any idea of how to write a macro to autocast spells on yourself like for instance im running a 5 blood dk group right now and need to make a macro for them to cast hysteria on themselves even while targetting another player or w/e?

I know its possible just have no idea on how to do it :/

Ualaa
11-15-2008, 09:31 PM
When you do conditionals in a macro, it tries the each in sequence until it finds one that is valid.

For example...
/cast [help] Renew; [help, target=targettarget] Renew; [target=player] Renew

If your target is friendly, it will cast renew on them.
If that does not work, then it will try to cast renew on the target of your target, provided that is also friendly.
If both factors are false, then it will target yourself with a renew.

[target=player] targets the macro at your character.
For a targetable spell, you could include this..

/cast [target=player] Power Word: Fortitude

For a spell which cannot be cast on others, such as inner fire, you wouldn't need to include target=player, since that's the only option.

Obviously you don't have priest spells, but this is easily adapted to whatever.
A last one...

/castsequence [target=player] Inner Fire, Power Word: Fortitude, Divine Spirit

The inner fire doesn't need target=player, but the other two do, and if its part of the sequence then it is redundant for one spell, but required for the other two.

Grimmace
11-15-2008, 11:03 PM
Very nice thank you :-) The problem with hysteria being cast on one person multiple times (other then the 20% damage boost not stacking of course) is that even though the damage boost dosent stack the 1% health drained per second DOES lol so that would really stink to be having happen while fighting a boss who is targetting my main guy... just what he needs -5% health per second >< but now I can make em all crack themselves out :D
When you do conditionals in a macro, it tries the each in sequence until it finds one that is valid.

For example...
/cast [help] Renew; [help, target=targettarget] Renew; [target=player] Renew

If your target is friendly, it will cast renew on them.
If that does not work, then it will try to cast renew on the target of your target, provided that is also friendly.
If both factors are false, then it will target yourself with a renew.

[target=player] targets the macro at your character.
For a targetable spell, you could include this..

/cast [target=player] Power Word: Fortitude

For a spell which cannot be cast on others, such as inner fire, you wouldn't need to include target=player, since that's the only option.

Obviously you don't have priest spells, but this is easily adapted to whatever.
A last one...

/castsequence [target=player] Inner Fire, Power Word: Fortitude, Divine Spirit

The inner fire doesn't need target=player, but the other two do, and if its part of the sequence then it is redundant for one spell, but required for the other two.

warcrazy
11-18-2008, 12:57 AM
you missed the point.
type in exact macro:
"/cast [target=player] hysteria"
it'll auto cast on self.

Grimmace
11-18-2008, 01:45 AM
you missed the point.
type in exact macro:
"/cast [target=player] hysteria"
it'll auto cast on self.I did ;) it worked fine but i've been flipping around the spec's a bit to try and get something more effective going. But the macro worked prefectly :-)

Golle
11-18-2008, 06:49 PM
For example...
/cast [help] Renew; [help, target=targettarget] Renew; [target=player] Renew
That can be rewritten much more efficiently.

/cast [help] [target=targettarget, help] [target=player] Renew

Each [ ] serve as an OR statement, 1st[] OR 2nd[] OR 3rd[]. Just some fun facts :P