Example #1
0
 private void Agression(int targetid)
 {
     GameRolePlayPlayerFightRequestMessage packet = new GameRolePlayPlayerFightRequestMessage
                     {
                         friendly = false,
                         targetCellId = -1,
                         targetId = targetid
                     };
     using (BigEndianWriter writer = new BigEndianWriter())
     {
         packet.Serialize(writer);
         MessagePackaging pack = new MessagePackaging(writer);
         pack.Pack((int)packet.ProtocolID);
         account.SocketManager.Send(pack.Writer.Content);
     }
 }
Example #2
0
        private void Agression(int targetid)
        {
            GameRolePlayPlayerFightRequestMessage packet = new GameRolePlayPlayerFightRequestMessage
                            {
                                friendly = false,
                                targetCellId = -1,
                                targetId = targetid
                            };

                account.SocketManager.Send(packet);
        }