benilla-re systems structs docs

Script::GetBattlefieldWinner

function · ui · orchestration

Address
0x4abc40 · 67 bytes, up to 0x4abc82
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the battleground winner once ended, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/battlefield#scores-and-stats

Finding: Scores and stats in ui: battlegrounds

GetNumBattlefieldScores() returns the filtered count, but GetBattlefieldScore(index) is bounded by the wire count, so an index past the filtered count returns a real row of another team. It returns nine values on every path: the name (Name-Realm with a realm), kills, honorable kills, deaths, honor, team, rank, race and class names (nil when unresolved), and nil, 0, 0, 0, 0, 0, 0, nil, nil for a missing row or name. GetBattlefieldWinner() is the winner, nil until ended. GetBattlefieldStatInfo(index) gives a column's text, icon and tooltip, three nils for a negative id and for an index past the count. GetBattlefieldStatData(row, stat) returns the stat word, 0 outside the row, and reads one word past the block for stat 9.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.