0x7034 (Buy item) question.

05/17/2019 07:06 iGamerFD#1
Hi everyone, i have a question about the 0x7034 packet and its structure, so:

[C -> S][7034]
08 ................ //Movement type
09 ................ // Something like a TabID
00 ................ // SlotIndex
01 00 ................ // quantity
36 08 00 00 6............... // ?

hope that someone can help me with the full structure.
05/17/2019 11:40 homelesshobo#2
Code:
// Buy 2 cotton wristlets from protector trader jangan (Protector Trader Mrs Jang)
[C -> S][7034]
08                                                movementType 8 buy
02                                                itemTab 2
0C                                                itemSlot 12
02 00                                             stackAmount 2
5D 00 00 00                                       spawnID (temporary ID for NPC)

// Response
[S -> C][B034]
01                                                successFlag
08                                                movementType 8 buy
02                                                itemTab 2
0C                                                itemTab 12
02                                                numberOfslotsUsed 2 (determines number of toSlots) 
26                                                toSlot 38
27                                                toSlot 39
02 00                                             stackAmount 2
00 00 00 00                                       recipientNPCID ? 0 => self
00 00 00 00                                       recipientNPCID ? 0 => self
05/17/2019 12:05 oksn123#3
Code:
  
case 8:
     MoveShopItemToInv(packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet);//Shop <> Inventory
     break;
Code:
        public static void MoveShopItemToInv(byte tab, byte ItemslotIndex, byte ItemCount, Packet packet)
        {
            if (ItemCount == 1)
            {
                byte inv_slot = packet.ReadByte();
                ushort StackCount = packet.ReadUShort();
            }
            else
            {
                for (int i = 0; i < ItemCount; i++)
                {
                    byte inv_slot = packet.ReadByte();
                }
            }
        }
I parse 0xB034 like this
if you are stuck write me good luck.