StageGuildRankFlags
function · ui · primitive
- Address
0x4d1080· 67 bytes, up to0x4d10c2- Signature
void __fastcall (int32_t rank)- Meaning
- Stores the staged rank index and stages each rank flag as its mask AND the rank's rights
- Confidence
- verified, proof one
- Finding
- ui/guild#rank-control
Finding: Rank control in ui: the guild roster and its Lua API
Thirteen flags are indexed 1 to 13 by the table 0x849670, in the order of the masks 0x1, 0x2, 0x4, 0x8, 0x80,
0x100, 0x10, 0x20, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000. GuildControlSetRank(rank) takes a 1-based rank,
stores rank - 1 in 0x84966c and stages each flag as its mask AND that rank's rights; when rank - 1 is below
0 or at least 13 it stores -1 instead. It returns no value. GuildControlGetRankFlags() returns thirteen values,
1 or nil, from the live rights of the staged rank and not from the staged flags. GuildControlSetRankFlag(index, enabled) stores the boolean in the staged slot; an index outside 1 to 13 is ignored.
The derivation is in the doc.
Callers 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.