benilla-re systems structs docs

Script::CanViewOfficerNote

function · ui · orchestration

Address
0x4d1bd0 · 106 bytes, up to 0x4d1c39
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 when the player's rank may view officer notes, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/guild#rank-rights

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

Nine functions take no argument and return 1 or nil for one bit of the player's rank rights. The rights are the entry of the rank array 0xb726d0 for the player's PLAYER_GUILDRANK, 0 for a rank past 9. Not in a guild, or the player missing, returns nil. There is no guild-leader shortcut: rank 0 is tested like any other. IsInGuild() is 1 when PLAYER_GUILDID is nonzero; IsGuildLeader() is 1 when PLAYER_GUILDRANK is 0.

functionaddressbit
CanGuildInvite0x4d19a00x10
CanGuildRemove0x4d1a100x20
CanGuildPromote0x4d18c00x80
CanGuildDemote0x4d19300x100
CanEditMOTD0x4d1a800x1000
CanEditPublicNote0x4d1af00x2000
CanViewOfficerNote0x4d1bd00x4000
CanEditOfficerNote0x4d1b600x8000
CanEditGuildInfo0x4d1c400x10000

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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