//0xAE private static void OnUnicodeMessage(Packet p) { Entity entity = Mobiles.Get(p.ReadUInt()); ushort graphic = p.ReadUShort(); MessageType type = (MessageType)p.ReadByte(); Hue hue = p.ReadUShort(); MessageFont font = (MessageFont)p.ReadUShort(); string lang = p.ReadASCII(4); string name = p.ReadASCII(30); string text = p.ReadUnicode(); if (entity != null) { entity.Graphic = graphic; entity.Name = name; entity.ProcessDelta(); } Chat.OnMessage(entity, new UOMessageEventArgs(text, hue, type, font, lang)); }
//0xCC private static void OnLocalizedMessageAffix(Packet p) { Entity entity = Mobiles.Get(p.ReadUInt()); ushort graphic = p.ReadUShort(); MessageType type = (MessageType)p.ReadByte(); Hue hue = p.ReadUShort(); MessageFont font = (MessageFont)p.ReadUShort(); uint cliloc = p.ReadUInt(); AffixType affixType = (AffixType)p.ReadByte(); string name = p.ReadASCII(30); string affix = p.ReadASCII(); string text = p.ReadUnicode(); if (entity != null) { entity.Graphic = graphic; entity.Name = name; entity.ProcessDelta(); } Chat.OnLocalizedMessage(entity, new UOMessageEventArgs(text, hue, type, font, cliloc, affixType, affix)); }