CGPlayer_C::InteractWithNpc
function · objectlayer · primitive
- Address
0x5f0130· 1189 bytes, up to0x5f05d4- Meaning
- Walks up to an NPC or starts the service its first matching NPC flag names
- Confidence
- verified, proof one
- Finding
- objectlayer/interaction#talking-to-an-npc
- Test
objectlayer::p3_dist2_f32deltas_5f0130,objectlayer::p3_in_range_gate_5f0130
Finding: Talking to an NPC in objectlayer: interaction
0x5f0130(unit, walk) refuses with ERR_CANT_INTERACT_SHAPESHIFTED while the player is in a form
whose SpellShapeshiftForm row lacks flag 0x8, or has none. Beyond 5.5555553 yards it returns,
starting the walk up first when walk is set; a NaN distance passes. The unit whose GUID is at
0xb4e2d0 does nothing, a quest giver of status 1 raises tutorial 0x2a, and then the first NPC
flag that matches picks the service. After any send the player plays the talk emote.
| flag | service |
|---|---|
| 0x1 | 0x17b gossip |
| 0x2, with status other than 0 and 1 | 0x184 quest giver |
| 0x4 | the vendor: sells the cursor's item (0x1a0), else lists (0x19e) |
| 0x8, 0x10 | 0x1ac taxi; 0x1b0 trainer, remembered in 0xc4d788 |
| 0x20, 0x40, 0x80 | the spirit healer dialog; the spirit guide (0x4921c0); the binder dialog |
| 0x100, 0x200, 0x400 | 0x1b7 banker; 0x1bb petitions; 0x1f2 tabard, refused while shapeshifted |
| 0x800, 0x1000, 0x2000 | 0x2d7 battlemaster; 0x255 auction; 0x26f stable |
The derivation is in the doc.
Callers 2
- CGUnit_C::Interact objectlayer
- CGUnit_C::CompleteInteractMove objectlayer
Callees 21
- SetVector3 spline
- CGGameUI::DisplayError ui
- FireTutorial ui
- IsQuestGiverToTalk objectlayer
- SendGossipHello objectlayer
- SendQuestGiverHello objectlayer
- TalkToVendor objectlayer
- TalkToTrainer objectlayer
- CGPlayer_C::SpiritHealerDialog objectlayer
- TalkToSpiritGuide objectlayer
- BinderDialog objectlayer
- SendBankerActivate objectlayer
- SendPetitionShowList objectlayer
- CGPlayer_C::TalkToTabardVendor objectlayer
- SendBattlemasterHello objectlayer
- SendAuctionHello objectlayer
- SendListStabledPets objectlayer
- SendTaxiQueryNodes objectlayer
- CGUnit_C::RequestTalkEmote objectlayer
- CGUnit_C::IsShapeShifted objectlayer
- CGUnit_C::StartAutoMoveToObject objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.