benilla-re systems structs docs

s_guildStagedRank

global · ui

Address
0x84966c · 4 bytes, up to 0x84966f
Type
int32_t
Meaning
Holds the staged rank index of the rank control functions, -1 for none
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.