WoW:API UnitPVPRank: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''rankNumber = UnitPVPRank("unit")'''
<center>'''UnitPVPRank''' ''-Documentation by [[user:Chef_de_Loup|Chef_de_Loup]]-''</center>


Return PVP rank information for a unit.
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.
 
----
{{Template:WoW API}}

Revision as of 05:40, 28 June 2005

UnitPVPRank -Documentation by Chef_de_Loup-

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.

Template:WoW API