Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetPVPRankInfo
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Get information about a specific rank. rankName, rankNumber = GetPVPRankInfo(rank [, unit]); == Arguments == :(rank [, unit]) :;rank : Number - Specifies the number of the rank (as returned by [[API_UnitPVPRank|UnitPVPRank("unit")]]) :;unit : String - The [[API TYPE UnitId|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 == :rankName, rankNumber :; rankName : String - The rank's name :; rankNumber : Number - The rank's number == Examples == 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
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)