This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Need help with a focus target macro
Post Reply
Return to board index
Post by
600976
This post was from a user who has deleted their account.
Post by
TheReal
Hmmm...
I'll attempt this and even though I usually get corrected, I think I have made some progress on the easier stuff.
#showtooltip Dispel Magic
/cast Dispel Magic
/cast Dispel Magic
/cast Shackle Undead
Casts Dispel Magic on your mouseover if you have one and you hold shift.
Casts Dispel Magic on your friendly target if it's not dead.
Casts Shackle Undead on your target if it's not friendly and not dead.
The only thing I would complain about is that Dispel Magic would be shown regardless of what you're casting. You could put on the Shackle Undead part and take "Dispel Magic" off the first line to solve that problem though. In that case:
#showtooltip
/cast Shackle Undead
Try it and let me know. = )
Post by
260392
This post was from a user who has deleted their account.
Post by
TheReal
If I understand macros correctly, @target is the default behavior, so it's never really needed. Also, you give two conditions and only one spell. Again, IIRC, then your macro may not fire any spell at all if the conditions are not met (which I guess is fine given the situation in which you'd be casting).
The in my macro means that if the first set of conditions is not met, then the spell will fire with default behavior, that being at your target.
Wildhorn, pelf, Wanderingfox, why aren't you guys camping this forum tonight? o.0
Post by
600976
This post was from a user who has deleted their account.
Post by
TheReal
Assuming the DK's pet is called "gargoyle" or "ghoul," you could do it. I'm pretty sure targeting a DK's ghoul requires the ghoul's name though. Lichborne is also a buff, so there's no macro that can read buffs and cast a spell accordingly. You'll have to target or focus those units individually.
Also, I now realize you want two separate macros. Reading FTW. Change the first one to:
#showtooltip
/cast Dispel Magic
/cast Dispel Magic
The help, nodead stuff is just to prevent the red error text I believe. You could conceivably leave them out and the macro would still function like you want it to. You can even leave nomod off the third line.
Also, I changed the "@mouseover" from my original attempt to "@focus." I'm used to writing my own mouseover healing macros and had a brain lapse.
Post by
mineka
I would recommend the following and then use the question mark icon for the button.
#showtooltip
/cast Dispel Magic
You'll want to make sure that the combination of shift and the key you have set for the action button aren't already setup as a keybind since keybinds have higher priority.
^-- is correct. A smaller macro would be :
#showtooltip
/cast
As for the shackle macro:
It's impossible for a macro to check if your target has a buff and cast a spell accordingly.
The Gargoyle exact name is
Ebon Gargoyle
.
Untalented ghoul exact names is
Risen Ghoul
.
I haven't found a complete list of ghoul name prefix
(see here for a small part)
, but the list is still very long, so talented ghoul would be near impossible to "target with a macro". Not to mention player with "ghoul names".
/cast Shackle Undead
If the target is not an undead, the cast will fail, with our beloved red error text saying hello, and the macro will stop.
A paging could swap your action bar depending of the unit type of your target, but that's a bit more difficult, and I'm quite not sure if it would work - or worth the hassle.
Post by
Wildhorn
Wildhorn, pelf, Wanderingfox, why aren't you guys camping this forum tonight? o.0
"¡Superwildhorn al rescate!" (5 points if you find out where it come from)
#showtooltip Dispel Magic
/cast
Here is your fixed macro.
Post by
TheReal
My limited multilingual abilities and the given context lead me to believe "Super Wildhorn to the rescue!" would be the proper translation. No idea where that came from though.
Macro looks good though. I swear I'm getting better. Really.
Post by
260392
This post was from a user who has deleted their account.
Post by
pelf
Wildhorn, pelf, Wanderingfox, why aren't you guys camping this forum tonight? o.0
Sorry :).
Wildhorn's right, though I think nodead is a reasonable thing to put in there.
#showtooltip
/cast
The points about there being too many combinations of ghoul names is correct. From the list I found, it's 27x27=729 possible combinations. You're going to have to click the thing you want to shackle.
Post by
Wildhorn
Actually you only need 27 combination for ghoul. Dont need to have full name, only first word + a space :)
Post by
TheReal
The points about there being too many combinations of ghoul names is correct. From the list I found, it's 27x27=729 possible combinations. You're going to have to click the thing you want to shackle.
Since a targeting macro really only needs the first few characters of a name, "/tar Gra" would target anything whose name starts with Gra, like Gravesucker or any other inane combination. I pretty much just posted this for the sake of argument though since putting 27 lines of /tar xxx would exceed a macro's character limit anyway.
OP: Get yourself some Arena unit frames and click those for targeting purposes. Just keep your friendly and enemy UFs close together. You can customize most UF add-ons to color a frame with the existence of a buff, so you can always set up Lichborne as a visual cue.
Post by
pelf
I guess, but how far do you have to go to make sure they don't also match player names? I'm going to name my next player Pebble.
Post by
TheReal
And that's another reason it won't work. = )
Post by
Wildhorn
There is a condition to target only players, so the nocondition will target only mobs/pet :P
Post by
pelf
I don't know what you're talking about.
Post by
Wildhorn
Ah damn, I failed I think.
/targetenemyplayer
/targetfriendplayer
I forgot they are /target, so you cant use "no" in front of them.
But you can probaly target the owner and via him target his pet with
/use Shackle
Post by
pelf
Pretty sure the pet suffix only works for friendly targets and possibly only for targets with whom you are grouped.
Post by
Wildhorn
Pretty sure the pet suffix only works for friendly targets and possibly only for targets with whom you are grouped.
Would need testing.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.