Advertisement
Guest User

Untitled

a guest
Sep 4th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. void NPC::ShowDialog(std::string message)
  2. {
  3.     if (message != "0")
  4.     {
  5.         PacketBuilder(builder);
  6.         builder.SetID(PACKET_NPC, PACKET_PLAYER);
  7.         builder.AddByte(255);
  8.         builder.AddByte(255);
  9.         builder.AddChar(this->index);
  10.         builder.AddChar(message.length());
  11.         builder.AddString(message);
  12.  
  13.         UTIL_FOREACH(this->map->characters, character)
  14.         {
  15.             if (character->InRange(this))
  16.             {
  17.                 character->player->client->Send(builder);
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement