s_guildRankRights
global · ui
- Address
0xb726d0· 40 bytes, up to0xb726f7- Type
uint32_t[10]- Meaning
- Holds the rights bit mask of each of the ten ranks
- Confidence
- verified, proof one
- 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.