Fandom

WoWWiki

API GetPVPRankInfo

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetPVPRankInfo


Get information about a specific rank.

rankName, rankNumber = GetPVPRankInfo(rank [, unit]);


Arguments Edit

(rank [, unit])
rank 
Number - Specifies the number of the rank (as returned by UnitPVPRank("unit"))
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).


Returns Edit

rankName, rankNumber
rankName 
String - The rank's name
rankNumber 
Number - The rank's number


Examples Edit

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

Also on Fandom

Random Wiki