ResetPetForWorld
function · ui · orchestration
- Address
0x4bc6f0· 161 bytes, up to0x4bc790- Signature
void __cdecl (void)- Meaning
- Clears the pet GUID and asks for the pet bar when the player's charm or summon is set
- 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 5
- CDataStore::PutUInt32 base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SetPetGuid ui
- ClientServices::Send net
Calls and jumps by a bare address, from tables/calls.tsv.