Пример #1
0
 public void SendReply(int replyId)
 {
     NpcDialogReplyMessage msg = new NpcDialogReplyMessage((short)replyId);
     account.SocketManager.Send(msg);
 }
Пример #2
0
 public void SendReply(int replyId)
 {
     using (BigEndianWriter writer = new BigEndianWriter())
     {
         NpcDialogReplyMessage msg = new NpcDialogReplyMessage((short)replyId);
         msg.Serialize(writer);
         MessagePackaging pack = new MessagePackaging(writer);
         pack.Pack((int)msg.ProtocolID);
         account.SocketManager.Send(pack.Writer.Content);
     }
 }