benilla-re systems structs docs

Script::GuildControlAddRank

function · ui · primitive

Address
0x4d2210 · 207 bytes, up to 0x4d22de
Signature
int __fastcall (lua_State *L)
Meaning
Sends a new rank name while fewer than ten ranks exist
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/guild#rank-edits

Finding: Rank edits in ui: the guild roster and its Lua API

GuildControlGetRankName(index) is 1-based and returns the masked rank name, or nil past the rank count. GuildControlGetNumRanks() returns the rank count. GuildControlSaveRank(name) sends opcode 0x231 with the staged rank, the rights and the name. The rights start from the live rights of the staged rank; each of the thirteen flags sets its mask when staged on and clears it when off, and other bits stay. It does nothing for a staged rank past the rank count, an empty name or a name outside 1 to 16 characters. GuildControlAddRank(name) sends 0x232 with the name under the same length rule while fewer than 10 ranks exist. GuildControlDelRank() reads no argument and sends 0x233 without a body while over 5 ranks exist.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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