ESODecoded

GetUnitAvARank

ESO Lua API function — used by 33 of the 3,030 addons we indexed (combined 4,568,842 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitAvARank(string unitTag)

Returns: integer rank, integer subRank

Real usage — from Urich's Skill Point Finder

local function USPF_SetAllianceWarRankPoints()
	USPF.ptsData.PvPRank = GetUnitAvARank("player") == nil and 0 or GetUnitAvARank("player")

Short excerpt from the shipping addon Urich's Skill Point Finderits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Urich's Skill Point Finder1,834,266
Foundry Tactical Combat (FTC)1,097,601
Wykkyd Toolbar567,448
LootDrop Reborn192,278
LibCharacter143,064
Votan's Group Pins96,300