Script::JoinBattlefield
function · ui · primitive
- Address
0x4ab290· 84 bytes, up to0x4ab2e3- Signature
int __fastcall (lua_State *L)- Meaning
- Joins the battleground instance at a 1-based list index, optionally as a group
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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.
Callers 0
None by a direct call or jump.
Callees 6
- __ftol crt
- SendBattlefieldJoin ui
- GetScriptFlagArg ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.