Toggle Enemy Player Tab Target
Posted: Aug 29, 2022
Macro that toggles tab from the default targeting behavior to targeting the nearest enemy player for pvp. The addon ReTabber does this automatically, so this was just another way to do it without using an addon.
/run local a=GetBindingKey("TARGETNEARESTENEMY")if a=="TAB"then SetBinding("TAB","TARGETNEARESTENEMYPLAYER")SaveBindings(2)print("\124cffDA70D6-- PVP Tab --")else SetBinding("TAB","TARGETNEARESTENEMY")SaveBindings(2)print("\124cffffcc00-- PVE Tab --")end