
Originally Posted by
hadeset
Hmm yea it's 2031, when you click on npc, that means it is a npc dialog start packet.
Within that packet, there is the npc id it was trying to start dialog with.
You make the server read the npc id. Then make it check if the npc is that or that or that and send the client the packets to return him the text what the npc should say and some link packets, so you could say anything back to the npc.
Then there is 2032 packet, client sends it to the server when it clicks on one answer in the dialog. What you'll do there is the same as in 2031, you just have to make a reminder variable so the server would know which npc the client is talking to, because that packet doesnt contain npc id, it contains control id.