PvP targeting vs PvE targeting in a macro?

Any pvp zone conditionals that can help me determine which /target I should use so i dont get pets?
/targetenemy or /targetenemyplayer

1 Like
/run C_CVar.SetCVar("TargetPriorityPvp",3)

1 - default
2 - all pvp targets
3 - players only

So in a macro, I would need to write a toggle condition for that? Any tips? Cause i can do it in lua, but space is limited in macros.

Basically toggle between 1 and 3.

Just set it to 3. It’ll only affect targeting in PVP.

Oh, I see…and when in normal pve content, my /targetenemy macros will target mobs?

Correct.

10char

Last question(s). If i set this in my wow cvars file that should stick for good right? And…im in a pvp server, will this work for world pvp where a player can jump you(or jump them) and this cvar sees the pvp flag as to apply pvp priority? Its not zone dependent

I’d just run the command in-game rather than messing with the file. It’ll be permanent regardless. You can always verify it with something like AdvancedInterfaceOptions.
[added]
If you’re worried about the “you’re executing a custom script” warning you can also do it as /console TargetPriorityPvp 3
[/added]

I’m not sure if it applies during open world pvp or only applies in BGs/Arena.
Description reads: “When in pvp, give higher priority to players and important pvp targets.”

1 Like

Thanks for taking the time! I’ll try it out.

Hmm…any idea if this works in Wotlk classic? Seems to not save to the config files. Says 7.0.3 patch for this command in the cvar wiki.

This works for cataclysm too?