Example #1
0
 public static void UpdateServerAvatar(byte[] data)
 {
     server_avatar = Scale(data);
     if (UserPool.Users != null)
     {
         UserPool.Users.ForEach(x => { x.SendPacket(AresTcpPackets.BotAvatar(server_avatar)); });
     }
 }
Example #2
0
 internal static byte[] Server(UserObject client)
 {
     if (server_avatar == null)
     {
         return(AresTcpPackets.BotAvatarCleared(client));
     }
     else
     {
         return(AresTcpPackets.BotAvatar(client, server_avatar));
     }
 }