Script::IsPartyLeader
function · ui · primitive
- Address
0x4e9130· 76 bytes, up to0x4e917b- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes 1 when the player is the nonzero group leader, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/party#the-group-leader
Finding: The group leader in ui: the party, its leader and its members' records
The leader GUID is 0xbc75f8, one cell for party and raid. 0x4e8250(guid) stores it when it differs from the stored one, resets the leader index 0x84c150 to -1, scans the four
slots and stores the slot number found (0 to 3), and signals PARTY_LEADER_CHANGED; an unchanged GUID returns without an event. 0x4e84a0(notify) releases every member's
unit token flags, empties the slots, zeroes the leader cell and sets the index to 0, and signals PARTY_MEMBERS_CHANGED when notify is set. IsPartyLeader() pushes 1 when the cell is nonzero and is the
active player's GUID, else nil. GetPartyLeaderIndex() pushes 0x84c150 + 1.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.