A macro where i can mouse over counter shot?

ive tried to combine what ive found on the internet but i havent gotten an answer… seems like it wouldnt be too complex though. bonus points if i can mouse over and interrupt the spell without shifting from my target focus :slight_smile:

Here’s a basic mouseover macro for use on hostile targets:

#showtooltip
/cast [@mouseover,harm,nodead][]Counter Shot
3 Likes

thank you so much this is super helpful !!

i was also wondering if anything like this could exist ? not sure how to finish it so it even works

/castsequence reset=18 [@mouseover,harm,nodead]Counter Shot, Tranquilizing Shot

The macro you posted worked as expected for me in game. There are a couple of important things to note for cast sequences. First, reset=X will reset the macro X seconds after you last hit the macro button (whether it successfully cast anything or not) not when you started the sequence. Second, if the next thing in the sequence can’t be case for some reason (such as it’s on cooldown) the macro will get stuck there until it can.

I’m not sure what your goal is with that castsequence. You’re not using either of those as part of a rotation. You’d be better off setting them up with a modifier macro if you want them on the same keybind.

#showtooltip
/cast [mod:shift,@mouseover,harm,nodead][mod:shift]Tranquilizing Shot;[@mouseover,harm,nodead][]Counter Shot

That macro will cast Tranquilizing Shot when holding the shift key, and Countershot otherwise. You can replace both instances “mod:shift” with “mod:ctrl” or “mod:alt” if you prefer, or just use use plain old “mod” if you want it to work with any modifier.

2 Likes

You don’t want to use castsequence. The two spells serve very different purposes and you will often need to use one and not the other (counter shot to interrupt, tranquilizing shot removes a buff). Counter shot has a 24 sec cd, tranq shot is a 10 sec cd. the last thing you want is to be unable to cast one ability when its “locked” behind using the other. Either castsequence will prevent you from casting an ability you need (castsequence only progresses if the previous spell successfully cast) or it will force you to waste an ability to cycle back to what you need.

What Udiza posted is a much, much better option. Use a modifier key to toggle switching between the two spells.

i was curious on the format so i tried it with hunter’s mark but i cant actually target my opponent with it – “you have no target” – any tips ?

/cast [@mouseover,nodead][]Hunter’s Mark

You’re missing an existence check (exists, help, or harm) on your mouseover test so it always assumes a mouseover target exists and doesn’t move on to the next condition set.

#showtooltip
/cast [@mouseover,harm,nodead] [] Hunter's Mark

/target [@mouseover,nodead]
/cast [@mouseover,harm,nodead] [] Hunter’s Mark

this was the macro i was looking for but thank you guys for the help so much ! im still having trouble figuring out scatter shot but maybe i should focus on landing my counter shots first

The target line in that macro is pointless… or makes the mouseover in the following line pointless…

does something like this seem viable

/target [@mouseover,nodead]
/cast [@mouseover,harm,nodead][]Explosive Shot;[mod:shift,@mouseover,harm,nodead][mod:shift]Hunter’s Mark

? cause i cant get it really to work

Put the more complex condition sets (ones with the mods) first.

/cast [mod:shift,@mouseover,harm,nodead] [mod:shift] Hunter's Mark; [@mouseover,harm,nodead] [] Explosive Shot

As Elvenbane said, this target line sort of defeats the purpose of the mouseover macro, as it will swap your target to your mouseover target instead of letting you keep your current target. Here’s the target line I add to my macros:

/tar [harm,nodead][@mouseover,harm,nodead]

If I’ve already got a living enemy target, it won’t swap my target. But, if I don’t, it will set my enemy mouseover to the target. Be aware though that targeting line isn’t really designed to improve target swapping. It’s mostly useful when farming as it lets me start in on a new target after killing the last one without having to click on them first. (I still have to click to swap targets when fighting multiple things — although with the mouseover stuff in the cast line, you don’t have to swap targets to cast on other targets.)

With Elvenbane’s macro:

/tar [harm,nodead][@mouseover,harm,nodead]
/cast [mod:shift,@mouseover,harm,nodead] [mod:shift] Hunter's Mark; [@mouseover,harm,nodead] [] Explosive Shot
1 Like

so im wondering why this isnt actually switching my target to the mouseover even though i can stil cast my hunter’s mark

/cast [target=focus,@mouseover,exists,nodead] [] Hunter’s Mark

cause when i add /target [@mouseover,nodead]
i can ONLY use the spell during mouseover

*edit - i figured it out

/target [nodead,@mouseover]
/cast Hunter’s Mark

have to do it in the right order

Because the whole point of mouseover macros is to do something to the unit you’re mousing over without changing your current target.

Because the whole point of mouseover macros is to do something to the UNIT you’re mousing over without changing your TARGET.

Please, I’m begging you, precision in language here is crucial.

TARGET is a specific UNIT.

MOUSEOVER is a specific UNIT.

FOCUS is a specific UNIT.

There is only one TARGET unit at a time.

This kind of fuzzy, sloppy language (mostly in the Wikis) is probably responsible for half the questions asked on these forums.

sometimes my set focus wont work until theyre my main target or from the raid window (tukui) … is that my interface or is there some sort of fix

Sounds like possible taint. /focus should work regardless.

is there any way i could have these
/focus arena1
/focus arena2
/focus arena3

on a /castsequence ?

No /focus is a command not an ability.

https://wowpedia.fandom.com/wiki/Macro_conditionals

I agree with the need for precision; however, in editing the wiki I have found that temporary targeting is better to explain this:

/cast target=cursor Flamestrike