Macro advice

Silk

Well-Known Member
Hey,

Would look this up myself but all the main sites are blocked at work.

Is it possible to do the following, and if so what is the syntax?

IF TARGET = PLAYER(Friendly) cast spell#1
IF TARGET = MOB(hostile npc?) cast spell#2

Is there a means to say "on double tap do this otherwise do this"?

Can you press and hold a key to do different stuff?

I'm really trying to work out some ncie macros to use in tanking. I want to have one button for taunting, if perssed on a mob uses the 1 dmg taunt otherwise if pressed on a player uses the nearest-3-mobs-hitting-a-player taunt.

Also trying to work out how to tie certain things to one key without using castseqeunce or having to hold alt or shift. e.g. Hammer of the righteous on single press of "A" and avengers shield on double press of "A".
 

SwampFae

Super Moderator
Staff member
As far as I am aware, double tapping alone will not work.
But if you use a a modifier to create a combination to bind the key with something else. Then you might have more luck.

Example:
#showtooltip
/cast [mod:shift+<the key you want>] spell1; [mod:ctrl+<the key you want>] spell2; spell3

and so on and so forth.

Note: May bug out if the key of choice is bound to something already.


Targeting:

/cleartarget
Leaves you with no target

/targetexact
Targets a unit with the exact name listed. If the name is spelled wrong or that unit is not near you, your target will not be changed.

/targetlasttarget, /targetlastfriend, /targetlastenemy
As the names suggest, these commands will target your previous target, your last targeted friend, or your last targeted enemy. If you previously had no target, this command will do nothing.

/targetenemy, /targetfriend
These commands cycle through the specified type of unit. /targetenemy is like pressing TAB, and /targetfriend is like pressing CTRL-TAB. You can also add a parameter of 1 which reverses the direction of the cycle (/targetenemy 1 is like pressing SHIFT-TAB).
 

Sasser

New Member
Well I haven't tanked anything past UK normal with my Paladin, but as far as I know, Righteous Defense has been modified so that you can now cast it on a player, or it will automatically cast it on the target of target if you're targeting a mob.

Now, assuming this is the case, a rather simple macro should do the trick for you:

#showtooltip Righteous Defense
/castsequence reset=8 Righteous Defense, Hand of Reckoning


What does it do? It basically casts whatever taunt is off cooldown on your targeted mob, preferring Righteous Defense over Hand of Reckoning (for obvious reasons). You just have to keep in mind to always use it on the mob instead of the player you want to taunt the mob off from.

This could actually work, though I just made this up within a couple of minutes and haven't tested it yet... good luck :cool:
 

Psychosis

In Cryo Sleep
IF TARGET = PLAYER(Friendly) cast spell#1
IF TARGET = MOB(hostile npc?) cast spell#2

Just for this:

/cast [help] spellA; [harm] spellB;

Bind it to your key of choice and hey presto, instant awesome. You could extend this to include mod keys by either making duplicates for the key (It's what I would do but thats due to how I've got my bars set up) or do something similar to whats fae said:

/cast [mod:shift][help] spellA; [mod:ctrl][help] spellA; [mod:shiftl][harm] spellB; [mod:ctrl][harm] spellB;

Long, and the syntax might be a bit iffy. As fae said, make sure your not double binding anything.
 

Silk

Well-Known Member
Just for this:

/cast [help] spellA; [harm] spellB;

Bind it to your key of choice and hey presto, instant awesome. You could extend this to include mod keys by either making duplicates for the key (It's what I would do but thats due to how I've got my bars set up) or do something similar to whats fae said:

/cast [mod:shift][help] spellA; [mod:ctrl][help] spellA; [mod:shiftl][harm] spellB; [mod:ctrl][harm] spellB;

Long, and the syntax might be a bit iffy. As fae said, make sure your not double binding anything.

Awesome, will try it tonight thanks :)
 
Top