benilla-re systems structs docs

s_bgSelectedInstance

global · ui

Address
0xb6eba0 · 4 bytes, up to 0xb6eba3
Type
uint32_t
Meaning
Holds the selected battleground instance id, 0 for none
Confidence
verified, proof one
Finding
ui/battlefield#the-list-and-the-selection

Finding: The list and the selection in ui: battlegrounds

GetNumBattlefields() returns the list count and GetBattlefieldInstanceInfo(n) the n-th instance id, nothing when out of range. SetSelectedBattlefield(n) stores the instance id at position n, or 0 for a position outside the list. GetSelectedBattlefield() returns the 1-based position of the stored id by a scan, 0 when absent, so a selection follows the instance id, not the position, and a new list can drop it. GetBattlefieldInfo() returns nine values for the battlemaster's map and none without the player or a Map row: the map name, a description chosen by the player's faction group, three integer and two float columns of the Map row (+0x34, +0x38, +0x40, +0x44, +0x48), then the two bracket levels.

The derivation is in the doc.