Script::CanViewOfficerNote
function · ui · orchestration
- Address
0x4d1bd0· 106 bytes, up to0x4d1c39- 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.
| function | address | bit |
|---|---|---|
CanGuildInvite | 0x4d19a0 | 0x10 |
CanGuildRemove | 0x4d1a10 | 0x20 |
CanGuildPromote | 0x4d18c0 | 0x80 |
CanGuildDemote | 0x4d1930 | 0x100 |
CanEditMOTD | 0x4d1a80 | 0x1000 |
CanEditPublicNote | 0x4d1af0 | 0x2000 |
CanViewOfficerNote | 0x4d1bd0 | 0x4000 |
CanEditOfficerNote | 0x4d1b60 | 0x8000 |
CanEditGuildInfo | 0x4d1c40 | 0x10000 |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.