protected override void Read(PacketStream stream)
        {
            // Reduce 3 enchant (ex: +12 to +9)
            var coreSlot     = stream.ReadByte();
            var itemSlot     = stream.ReadByte();
            var extractSlots = new List <ushort>();

            for (var i = 0; i < 4; i++)
            {
                var slot = stream.ReadByte();
                if (slot < byte.MaxValue)
                {
                    extractSlots.Add(slot);
                }
            }

            GearCoreHelper.CoreConvert(Connection, coreSlot, itemSlot, extractSlots);
        }
Beispiel #2
0
        protected override void Read(PacketStream stream)
        {
            // Read values from stream
            var coreSlot     = stream.ReadUInt16();
            var itemSlot     = stream.ReadUInt16();
            var extractSlots = new List <ushort>();

            for (var i = 0; i < 4; i++)
            {
                var slot = stream.ReadUInt16();
                if (slot != ushort.MaxValue)
                {
                    extractSlots.Add(slot);
                }
            }

            GearCoreHelper.CoreUpgrade(Connection, coreSlot, itemSlot, extractSlots);
        }