Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 05:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



put item in stall packet C>S

Discussion on put item in stall packet C>S within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
MrMiroBear's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 120
Received Thanks: 13
Unhappy put item in stall packet C>S

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);
MrMiroBear is offline  
Old 09/20/2016, 07:30   #2
 
elite*gold: 0
Join Date: Oct 2014
Posts: 34
Received Thanks: 16
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);
mxii is offline  
Thanks
1 User
Old 09/20/2016, 07:52   #3
 
MrMiroBear's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 120
Received Thanks: 13
so all i need to change
InventorySlot: UINT8?

how i can get ItemTypeIdGroup: ?
MrMiroBear is offline  
Old 09/20/2016, 08:06   #4
 
elite*gold: 0
Join Date: Oct 2014
Posts: 34
Received Thanks: 16
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..
mxii is offline  
Thanks
1 User
Old 09/20/2016, 09:52   #5
 
MrMiroBear's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 120
Received Thanks: 13
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...
MrMiroBear is offline  
Thanks
1 User
Old 09/20/2016, 14:01   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
All stall packets are publicly available on

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.
DaxterSoul is offline  
Thanks
3 Users
Reply

Tags
c#, packet, stall


Similar Threads Similar Threads
[Selling] ISS Item Packet
11/08/2013 - Infestation Trading - 0 Replies
verkauft /close
[Request]Stall Add Item Pkt
12/02/2011 - CO2 Private Server - 6 Replies
Any chance any of you are willing to share the add item packet for 5017 player shops. :D
Any servers with stall / stall network?
01/24/2010 - SRO Private Server - 21 Replies
Any p server with it? NO I DO NOT WANT TO DUPE! Its a simple yes or no answer. (if yes which server) thanks
Special Item from Stall.
06/30/2009 - SRO Private Server - 6 Replies
Hello guys ! I just want to say that when you get this item : (from SjSro) http://img14.imageshack.us/img14/3808/sro20090630 12473741.jpg It isn't because you stall a lot ! For proof it's the first Item I sell on SjSro by Stall ! (Yes today i've been up from lvl 1 to lvl 41) So as I heard this item increase gold ammount droped ?



All times are GMT +1. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.