Reputation xp bar switching macro

I would like (if possible) to make a button to switch my xp bar, which is tracking a certain reputation, to switch it to another reputation.

Specifically, currently tracking rustbolt resistance, but i then want to puch a button to change it to wavebalde ankoan.

basically showing rep as xp bar without going through all the menus. :wink:

Cheers!

Hello, you should use SetWatchedFactionIndex(index) function to set current faction to track, where index is a number of line in default reputation menu, e.g.: SetWatchedFactionIndex(2) will track guild reputation, SetWatchedFactionIndex(4) will track Courth of Harvesters, etc.

Please note that faction you want to track has to be not collapsed!

If you don’t want to deal with indexes when new reputations are added or you collapse unwanted, you can use

/run for i=1,GetNumFactions() do local f=GetFactionInfo(i) if f=="FACTION_NAME" then SetWatchedFactionIndex(i) end end

Just replace FACTION_NAME with EXACT faction name.
If you don’t want to deal with writing down faction names you can use Faction ID version instead.

/run for i=1,GetNumFactions() do local _,_,_,_,_,_,_,_,_,_,_,_,_,f=GetFactionInfo(i) if f==FACTION_ID then SetWatchedFactionIndex(i) end end

You can find Faction ID on wowhead pages, for example:
https://www.wowhead.com/faction=2432/venari
Shows that Ve’nari Faction ID is 2432.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.