Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitPVPRank

Last wiki revision 2022-08-01

Returns the specified unit's PvP rank ID. rankID = UnitPVPRank(unit)

  • unit:
  • rankID: - Starts at 5 (not at 1) for the first rank. Returns 0 if the unit has no rank. Can be used in for rank information.

local rankID = UnitPVPRank("target") local rankName, rankNumber = GetPVPRankInfo(rankID) if rankName then print(format("%s is rank ID %d, rank number %d (%s)", UnitName("target"), rankID, rankNumber, rankName)) end

> Koribli is rank ID 12, rank number 8 (Knight-Captain)

Source

https://warcraft.wiki.gg/wiki/API_UnitPVPRank · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.