benilla-re systems structs docs

Script::GuildControlSetRankFlag

function · ui · primitive

Address
0x4d2070 · 88 bytes, up to 0x4d20c7
Signature
int __fastcall (lua_State *L)
Meaning
Stores a staged value for one of the thirteen rank flags
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 5

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