benilla-re systems structs docs

s_newWorldMapId

global · client

Address
0x88262c · 4 bytes, up to 0x88262f
Type
uint32_t
Meaning
Holds the map id of the world being entered, which NewWorldHandler reads from the packet
Confidence
verified, proof one
Finding
ui/worldenter#a-world-transfer

Finding: A world transfer in ui: entering and leaving the world

SMSG_NEW_WORLD (opcode 0x3e, 0x401b00) schedules 0x401bc0, which destroys the object manager (0x467700) and builds a new one for the new map. The destruction destroys the player, which runs the leave function and fires PLAYER_LEAVING_WORLD. The initializer does not run, so PLAYER_LOGIN does not fire again. When the server sends the player's create block the arrival takes the fresh-login route and fires PLAYER_ENTERING_WORLD.

The derivation is in the doc.