CGPlayer_C::PetUnlearnDialog
function · objectlayer · primitive
- Address
0x5dfba0· 385 bytes, up to0x5dfd20- Meaning
- Asks to confirm a pet unlearn and its cost, or with 0 accepts within range when the money covers it
- Confidence
- verified, proof one
- Finding
- objectlayer/interaction#confirmation-dialogs
- Test
objectlayer::range_gate_5df980_clone_family_difftest
Finding: Confirmation dialogs in objectlayer: interaction
The spirit healer, talent wipe, pet unlearn and binder each run twice: with a GUID they remember
it and signal the confirmation; with 0 they act on the remembered one, if its unit is still in
range. The spirit healer needs a ghost and shows CONFIRM_XP_LOSS with 5% of the next level's
experience; the talent and pet dialogs remember the cost, show it, and on accept refuse with
ERR_NOT_ENOUGH_MONEY when it exceeds the money; the binder shows the inn's area name or
HOME_INN. The server's 0x222, 0x2aa, 0x2f1 and 0x2eb open them.
| dialog | GUID | event | accept |
|---|---|---|---|
0x5df730 | 0xc4d798 | CONFIRM_XP_LOSS | 0x21c |
0x5df980 | 0xc4d7a0, cost 0xc4d7a8 | CONFIRM_TALENT_WIPE | 0x2aa |
0x5dfba0 | 0xc4d7b0, cost 0xc4d7b8 | CONFIRM_PET_UNLEARN | 0x2f0 |
0x5dfdc0 | 0xc4d7c0 | CONFIRM_BINDER | 0x1b5 |
The derivation is in the doc.
Callers 2
- Script::ConfirmPetUnlearn ui
- HandlePlayerNotice objectlayer
Callees 7
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- ClientServices::Send net
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.