Code:
if (ChatType == 2001)
{
bool Sent = false;
foreach (DictionaryEntry DE in AllChars)
{
Character Charr = (Character)DE.Value;
if (Charr.Name == To)
{
Charr.MyClient.SendPacket(Data);
Sent = true;
[COLOR="Red"]Charr.Avatar.ToString();[/COLOR]
}
}
if (!Sent)
Char.MyClient.SendPacket(General.MyPackets.SendMsg(Char.MyClient.MessageId, "SYSTEM", Char.Name, "The character is offline at the moment.", 2000));
}
}






