Script::GuildControlSetRank
function · ui · orchestration
- Address
0x4d1fa0· 64 bytes, up to0x4d1fdf- Signature
int __fastcall (lua_State *L)- Meaning
- Stages the rank flags of a 1-based rank
- 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
- __ftol crt
- StageGuildRankFlags ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.