benilla-re systems structs docs

ResetTradeTables

function · ui · orchestration

Address
0x4bf0e0 · 309 bytes, up to 0x4bf214
Signature
void __cdecl (void)
Meaning
Zeroes the trade tables, partner, accept flags, header caches and money, not the done flag
Confidence
verified, proof one
Finding
ui/worldenter#window-resets-at-world-entry

Finding: Window resets at world entry in ui: entering and leaving the world

Four of the cascade's calls reset a window's state without signalling a close. The trainer reset zeroes the trainer GUID, selection, total and greeting (ui/trainer). The merchant reset zeroes the vendor GUID, the row count and the 128 rows, registers the buy-back watch on the active player (ui/merchant#the-buy-back-watch) and rebuilds the buy-back list. The trade reset zeroes every trade table: the partner's seven slots and their records, the own offer's containers, GUIDs and bag slots, the partner GUID, both accept flags, both header caches and both money words, but not the done flag 0xb71748. The pet reset calls SetPetGuid(0, 0) (ui/petbar#pet-state) and, when the player's charm GUID, else its summon GUID, is set, sends CMSG_REQUEST_PET_INFO (0x279) with an empty body.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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