benilla-re systems structs docs

Script::GetPVPRankInfo

function · ui · primitive

Address
0x51a930 · 352 bytes, up to 0x51aa8f
Signature
int __fastcall (lua_State *L)
Meaning
Returns the title and badge number of a rank 1 to 18 for a side, else nil and 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/honor#pvp-rank-info

Finding: PvP rank info in ui: the PvP honor functions

GetPVPRankInfo(rank [, unit-or-side]) returns the title of a rank and its badge number. A non-number rank raises Usage: GetPVPRankInfo(rank [, unit]). A rank outside 1 to 18 returns nil, 0. The side is a number, used as given, or a unit token whose player's side is taken (0 for a token that is not a player), or the active player's side when the argument is absent. The title is the text PVP_RANK_<rank>_<side>; a missing or empty text returns nil, 0. The badge number is rank minus 5 for ranks 1 to 4 and rank minus 4 for 5 to 18.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.