WoW:API UnitPVPRank: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API UnitPVPRank to API UnitPVPRank without leaving a redirect) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
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. |
Latest revision as of 04:47, 15 August 2023
← 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.