put item in stall packet C>S

09/20/2016 05:10 MrMiroBear#1
i got this packet for put items in stall

Code:
[C -> S][70BA]
02                         
01                                                    
15                                             
01 00                            
01 00 00 00 00 00 00 00                 
2A 00 00 00                                      
00 00

i put it in C# like this but didn't work for me any help?

Code:
                Packet PutItem = new Packet((ushort)Opcode.CLIENT_OPCODES.CLIENT_CHANGESTALL);
                PutItem.WriteUInt8(02);
                PutItem.WriteUInt8(01);
                PutItem.WriteUInt16(0x0E); 
                PutItem.WriteUInt16(01); 
                PutItem.WriteUInt32(1); 
                PutItem.WriteUInt32(0x2A); 
                PutItem.WriteUInt8(00); 
                Agent.Send(PutItem);
09/20/2016 07:30 mxii#2
This is the structure:

Command: UINT8 (2 = put item into stall)
StallSlot: UINT8
InventorySlot: UINT8
ItemStackCount: UINT16
Price: UINT64
ItemTypeIdGroup: UINT8 (get it from the Media.pk2 .. or use hard coded number!)
Unknown: UINT8[5]

Your code:

Code:
PutItem.WriteUInt8(02); // command
PutItem.WriteUInt8(01); // stall slot 1
PutItem.WriteUInt16(0x0E); // WRONG !!
PutItem.WriteUInt16(01); 
PutItem.WriteUInt32(1); 
PutItem.WriteUInt32(0x2A); 
PutItem.WriteUInt8(00);
09/20/2016 07:52 MrMiroBear#3
so all i need to change
InventorySlot: UINT8?

how i can get ItemTypeIdGroup: ?
09/20/2016 08:06 mxii#4
To reproduce the sniffed packet:

Code:
PutItem.WriteUInt8(02); // command
PutItem.WriteUInt8(01); // stall slot 1
PutItem.WriteUInt8(0x15); // inv slot 0x15
PutItem.WriteUInt16(1); // stack count
PutItem.WriteUInt64(1); // price: 1 gold
PutItem.WriteUInt8(0x2A); // TypeIdGroup
PutItem.WriteUInt8(00); // fix
PutItem.WriteUInt8(00); // fix
PutItem.WriteUInt8(00); // fix
PutItem.WriteUInt8(00); // fix
PutItem.WriteUInt8(00); // fix
Its not that easy to get the TypeIdGroup..
You have to parse the Media.pk2..
09/20/2016 09:52 MrMiroBear#5
worked with me after change type of Uint to 64


and just give me idea how can get TypeIdGroup and i will searching for it...
09/20/2016 14:01 DaxterSoul#6
All stall packets are publicly available on [Only registered and activated users can see links. Click Here To Register...]

You can get the FleaMarketNetworkTidGroup from "Media\server_dep\silkroad\textdata\fmntidgroupmap data.txt"

ServiceGroupIDTypeID1TypeID2TypeID3TypeID4
113162
123163
133164
143165

This will match RefObj[Items] with their TypeIDs into a FMN-TidGroup with same TypeIDs.