Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
→ WoW API
|This is no longer a part of the World of Warcraft API.
Get information about a specific rank.
rankName, rankNumber = GetPVPRankInfo(rank [, "unit"])
- Number - Specifies the number of the rank (as returned by UnitPVPRank("unit"))
- String - The UnitId to query (e.g. "player", "party2", "pet", "target", "mouseover" etc.). This argument is needed to return the correct rank for enemy units (otherwise it would return ranks of player's faction only).
- String - The rank's name
- Number - The rank's number
if (UnitPVPRank("mouseover") >= 1) then rankName = GetPVPRankInfo(UnitPVPRank("mouseover"), "mouseover"); -- rankName now contains the localized rank for mousover unit (e.g. grunt or similar). end
- Patch 5.4.0 (2013-09-10): Removed.