public static SpawnNpcPacket Create(uint _id, ushort _mesh, Point _location, NpcType _type = NpcType.Task)
        {
            var packet = new SpawnNpcPacket();

            packet.UID  = _id;
            packet.X    = (ushort)_location.X;
            packet.Y    = (ushort)_location.Y;
            packet.Mesh = _mesh;
            packet.Type = _type;
            return(packet);
        }
        public static SpawnNpcPacket Create(Npc _npc)
        {
            var packet = new SpawnNpcPacket();

            packet.UID  = _npc.UID;
            packet.X    = _npc.X;
            packet.Y    = _npc.Y;
            packet.Mesh = _npc.Mesh;
            packet.Type = _npc.Type;
            if (_npc.Name != null && _npc.Name.Length > 0)
            {
                packet.Name = new NetStringPacker();
                packet.Name.AddString(_npc.Name);
            }

            return(packet);
        }