ResetMerchantForWorld
function · ui · orchestration
- Address
0x4fac50· 72 bytes, up to0x4fac97- Signature
void __cdecl (void)- Meaning
- Zeroes the vendor and its rows, watches the buy-back fields and rebuilds the buy-back list
- 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
- EnterWorldUI ui
Callees 3
- ClntObjMgrSetObjectMirrorHandler objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- RebuildBuybackList ui
Calls and jumps by a bare address, from tables/calls.tsv.