Script::UnitPVPRank
function · ui · primitive
- Address
0x51a8a0· 139 bytes, up to0x51a92a- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the current honor rank of a player unit, 0 for anything else
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/honor#unit-pvp-rank
Finding: Unit PvP rank in ui: the PvP honor functions
UnitPVPRank(unit) returns the honor rank of a player unit. A non-string argument raises
Usage: UnitPVPRank("unit"). The token is resolved to a unit object; for a player object the result is the byte at
+0x1f of that object's own block, for anything else (a creature, an unresolvable token) the number 0, never nil. It is
the current rank, not the highest.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- GetUnitFromToken ui
- lua_isstring lua
- lua_tostring lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.