Пример #1
0
        public static byte[] BotAvatar(byte[] data)
        {
            AresTCPPacketWriter packet = new AresTCPPacketWriter();

            packet.WriteString(Settings.Get <String>("bot"));
            packet.WriteBytes(data);
            return(packet.ToAresPacket(ProtoMessage.MSG_CHAT_SERVER_AVATAR));
        }
Пример #2
0
        public static byte[] Avatar(UserObject userobj)
        {
            AresTCPPacketWriter packet = new AresTCPPacketWriter();

            packet.WriteString(userobj.Name);
            packet.WriteBytes(userobj.Avatar);
            return(packet.ToAresPacket(ProtoMessage.MSG_CHAT_SERVER_AVATAR));
        }
Пример #3
0
        public static byte[] Avatar(UserObject client, UserObject target)
        {
            AresTCPPacketWriter packet = new AresTCPPacketWriter();

            packet.WriteString(client, target.Name);
            packet.WriteBytes(target.Avatar);
            return(packet.ToAresPacket(ProtoMessage.MSG_CHAT_SERVER_AVATAR));
        }