Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void NPC::ShowDialog(std::string message)
- {
- if (message != "0")
- {
- PacketBuilder(builder);
- builder.SetID(PACKET_NPC, PACKET_PLAYER);
- builder.AddByte(255);
- builder.AddByte(255);
- builder.AddChar(this->index);
- builder.AddChar(message.length());
- builder.AddString(message);
- UTIL_FOREACH(this->map->characters, character)
- {
- if (character->InRange(this))
- {
- character->player->client->Send(builder);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement