Wikia

WoWWiki

API UnitPVPRank

Talk0
102,281pages on
this wiki
Revision as of 16:00, November 1, 2007 by Pcj (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < UnitPVPRank

Returns PVP info for the selected target

UnitPVPRank("unit");

Arguments
"unit" : UnitID of the requested Unit like "target","player"....

Returns
Integer rankNumber
rankNumber 
Display the rank as a number. Starts at 5(!) not at 1 for first rank. 0 if the unit has no rank.

Example
local rankNumber = UnitPVPRank("player");

Result
5

Description
Returns the rank as a Number for player.

Around Wikia's network

Random Wiki