From OpenKore Wiki
- talknpc <x> <y> <NPC conversation codes>
- Talk to the NPC on the specified coordinate and use the specified sequence of responses.
You should be near the NPC to talk.
- Add moving to the NPC if not near? Should be able to additionally specify map in this case.