PDA

View Full Version : [WoW] HoP Macro



Perrigrin
12-23-2009, 04:45 AM
I want a HoP macro that

Casts Hand of Protection on the focus target if there is a friendly focus target, if not, it casts it on my current target if that's friendly.

Then as an option, I might want it either on me or on the targets target if all else fails.

I'm thinking:

/cast [help] [target=focus, help] [target=target, help] Hand of Protection

Is that anywhere near? ;)

ElectronDF
12-23-2009, 05:08 AM
/cast [help] [target=focus, help] [target=target, help] Hand of Protection


No target choice is your target. So [help] and [target=target, help] are the same thing. You want [target=target-target] for your targets target. You also mentioned focus' target, so that would be [target=focus-target, help]. Remember, the macro does things in the order you tell it, so if there is a restrictive condition, you have to put it first. Just for example:
[mod:shift] Spell 1
[mod:shift, ctrl] Spell 2
You will get spell 1 to go off, but spell 2 won't work. You have to put the most limiting condition first. For your situtation, you don't have anything that will fail, but just figure out what you want to happen in what order.

Hope that helps and good luck.

Perrigrin
12-23-2009, 05:56 AM
But... wouldnt

/cast [help] [target=focus, help] [target=target, help] Hand of Protection

First cast on focus target, if there is no focus target cast on my target?

Strumur
12-23-2009, 06:31 AM
Could this be something close to what you want?


/cast [target=focus,help][help][target=targettarget,help][target=player]Hand of Protection

If the unit saved as your focus target is a friend then:
Cast Hand of Protection on the unit saved as your focus target.

Else, if the currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit.

Else, if the currently targeted unit's currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit's currently targeted unit.

Otherwise:
Cast Hand of Protection on you.


Try using http://www.macroexplain.com/, I find it helps a lot when trying to figure out complicated macros.

Strumur
12-23-2009, 06:51 AM
If you want you can also add in modifiers to the macro which makes the last part optional.

/cast [target=focus,help][help][target=targettarget,help][target=player,mod:shift]Hand of Protection

If the unit saved as your focus target is a friend then:
Cast Hand of Protection on the unit saved as your focus target.

Else, if the currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit.

Else, if the currently targeted unit's currently targeted unit is a friend then:
Cast Hand of Protection on the currently targeted unit's currently targeted unit.

Else, if you are holding the shift key then:
Cast Hand of Protection on you.

Perrigrin
12-23-2009, 08:09 AM
ahh thanks a bunch!

Niley
12-23-2009, 10:55 AM
wouldn't it be easier to do it as mouseover(on grid for example)?
That's how i have my bop, sacrifice, salv and freedom setup.