benilla-re systems structs docs

s_partyLeaderIndex

global · ui

Address
0x84c150 · 4 bytes, up to 0x84c153
Type
int32_t
Meaning
Holds the party slot of the group leader, -1 for the player or a leader outside the party
Confidence
verified, proof one
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.