Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2010
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. void NPC::ShowDialog(std::string message)
  2. {
  3.     PacketBuilder(builder);
  4.     builder.SetID(PACKET_NPC, PACKET_PLAYER);
  5.     builder.AddByte(255);
  6.     builder.AddByte(255);
  7.     builder.AddChar(this->index);
  8.     builder.AddChar(message.length());
  9.     builder.AddString(message);
  10.     UTIL_PTR_LIST_FOREACH(this->map->characters, Character, character)
  11.     {
  12.         if (character->InRange(this))
  13.         {
  14.             character->player->client->SendBuilder(builder);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement