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 Finder — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Urich's Skill Point Finder | 1,834,266 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| Wykkyd Toolbar | 567,448 |
| LootDrop Reborn | 192,278 |
| LibCharacter | 143,064 |
| Votan's Group Pins | 96,300 |