Пример #1
0
        //0xC1
        private static void OnLocalizedMessage(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();
            string name = p.ReadASCII(30);
            string text = p.ReadUnicodeReversed();

            if (entity != null)
            {
                entity.Graphic = graphic;
                entity.Name = name;
                entity.ProcessDelta();
            }
            Chat.OnLocalizedMessage(entity, new UOMessageEventArgs(text, hue, type, font, cliloc));
        }