benilla-re systems structs docs

s_bgEnded

global · ui

Address
0xb6ebcc · 4 bytes, up to 0xb6ebcf
Type
uint32_t
Meaning
Holds 1 once a score message reported the battleground ended
Confidence
verified, proof one
Finding
ui/battlefield#joining-and-leaving

Finding: Joining and leaving in ui: battlegrounds

JoinBattlefield(index [, asGroup]) runs 0x4a9f60. With asGroup set it shows ERR_GROUP_JOIN_BATTLEGROUND_TOO_MANY (442) and sends nothing unless the Map row's +0x3c is at least the party count and the raid count. It then sends opcode 0x2ee (u64 battlemaster, u32 mapId, u32 instanceId, u8 asGroup) when a battlemaster GUID is stored, else opcode 0x23e without the GUID; the instance id is the list entry or 0. AcceptBattlefieldPort(index, accept) sends 0x2d5 (u32 mapId, u8 accept), ShowBattlefieldList(index) 0x23c with the map id. LeaveBattlefield() sends 0x2e1 with the active slot's map id (0 for a negative slot), only once a score message reported the end. RequestBattlefieldScoreData sends 0x2e0 and RequestBattlefieldPositions 0x2e9, each at most once per 5000 ms.

The derivation is in the doc.