Register for your free account! | Forgot your password?

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

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

Advertisement



opcode for silk and how to buy from item mall

Discussion on opcode for silk and how to buy from item mall within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2011
Posts: 29
Received Thanks: 14
opcode for silk and how to buy from item mall

hi,

sorry but I cant find it out by myself:

how do I get my current silk and how can I buy from item mall clientless, cant find any opcodes for this

thanks
maryqueen is offline  
Old 12/22/2018, 23:07   #2
 
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
It is not based on packets iirc
qqdev is offline  
Old 12/23/2018, 07:28   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
You can get your current Silk from 0x3153 - SERVER_AGENT_SILK_UPDATE.

Buying items is an inventory operation and therefore part of 0x7034 - CLIENT_AGENT_INVENTORY_OPERATION_REQUEST.
DaxterSoul is offline  
Thanks
1 User
Old 12/23/2018, 17:14   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 29
Received Thanks: 14
Quote:
Originally Posted by DaxterSoul View Post
You can get your current Silk from 0x3153 - SERVER_AGENT_SILK_UPDATE.

Buying items is an inventory operation and therefore part of 0x7034 - CLIENT_AGENT_INVENTORY_OPERATION_REQUEST.
thank u

one more question: I only get this Paket when I log into the Gameworld / relog, is there anyway to invoke an update on this information, I already tested teleporting but it didnt work.
maryqueen is offline  
Old 12/23/2018, 19:23   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
Quote:
Originally Posted by maryqueen View Post
thank u

one more question: I only get this Paket when I log into the Gameworld / relog, is there anyway to invoke an update on this information, I already tested teleporting but it didnt work.
I'm not sure if you get one after buying something with silk but teleportation should definitely triggers an update.
DaxterSoul is offline  
Old 01/02/2019, 19:02   #6
 
elite*gold: 0
Join Date: Dec 2011
Posts: 29
Received Thanks: 14
Quote:
Originally Posted by DaxterSoul View Post
I'm not sure if you get one after buying something with silk but teleportation should definitely triggers an update.
yep, teleporting triggers an update

Im having another problem: understanding Paket 0x7034

I used xsniff to lookup whats happening when I buy a Tiger from the Item Mall, thats the Packet which gets send to the Server:

[0000000000] 18 1B 04 03 02 01 1F 00 50 41 43 4B 41 47 45 5F
[0000000016] 49 54 45 4D 5F 43 4F 53 5F 43 5F 54 49 47 45 52
[0000000032] 5F 53 43 52 4F 4C 4C 01 00 00 00 00 00 00 00 00
[0000000048] 00 91 04 00 00

Ascii: ........PACKAGE_ITEM_COS_C_TIGER_SCROLL........... ..

my -not working code-

Code:
     
Packet BuyTiger = new Packet(0x7034);
BuyTiger.WriteUInt8(0x18);
BuyTiger.WriteUInt8(0x1B);
BuyTiger.WriteUInt8(0x04);
BuyTiger.WriteUInt8(0x03);
BuyTiger.WriteUInt8(0x02);
BuyTiger.WriteUInt8(0x01);
BuyTiger.WriteUInt8(0x1F);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteAscii("PACKAGE_ITEM_COS_C_TIGER_SCROLL");
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x91);
BuyTiger.WriteUInt8(0x04);
BuyTiger.WriteUInt8(0x00);
BuyTiger.WriteUInt8(0x00);
C.AG.Security.Send(BuyTiger);
I dont get how the Packet is structured, since I found its used for a lot of different things.
maryqueen is offline  
Old 01/02/2019, 20:40   #7
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
"1F 00" is the string length and already written by the WriteAscii function.

I suggest you look into public bot/emulator source code to get a general idea of how the packet is structured.
DaxterSoul is offline  
Old 01/03/2019, 02:35   #8
 
elite*gold: 0
Join Date: Dec 2011
Posts: 29
Received Thanks: 14
Quote:
Originally Posted by DaxterSoul View Post
"1F 00" is the string length and already written by the WriteAscii function.

I suggest you look into public bot/emulator source code to get a general idea of how the packet is structured.
thanks for the info my function is now working

I looked into some different bots and their buy control but they dont even have a txt file with item mall items parsed.

I made some difference tests with xsniff and thats what I found so far:

Code:
18 //storetype - uint8 - 24
1B //UNKNOWN - uint8 - 27
04 //UNKNOWN - uint8 - 4
03 //tab/pagenumber - uint8 - 3
02 01 //UNKNOWN - uint16 - 258
PACKAGE_ITEM_COS_C_TIGER_SCROLL //Ascii - 50 41 43 4b 41 47 45 5f 49 54 45 4d 5f 43 4f 53 5f 43 5f 54 49 47 45 52 5f 53 43 52 4f 4c 4c
01 00 //count - uint16 - 1
00 00 00 00 //count? - uint32 - 0
00 00 00 00 //count? - uint32 - 0
91 04 00 00 //item id - uint32 - 1169
maryqueen is offline  
Old 01/03/2019, 11:02   #9
 
elite*gold: 0
Join Date: Jun 2010
Posts: 28
Received Thanks: 14
Inventory movement MallShopto Inventory starts with 24
Code:
case 24:
                        MoveItemMallToInv(packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet.ReadByte(), packet.ReadUShort());//Mall <> Invetory
Code:
 public static void MoveItemMallToInv(byte a1, byte a2, byte Kategori, byte SubKategori, byte ItemIndex, byte a3, byte Slot, ushort Count)
        {
           // byte a1 = packet.ReadByte();//Icant find what this is always 27
           // byte a2 = packet.ReadByte(); //Icant find what this is always 4
           // byte categori = packet.ReadByte();//Item Mall Kategori index id
           // byte Subcategori = packet.ReadByte();//Item Mall SubKategori index id
           // byte ItemIndex = packet.ReadByte();//İnside the subcategory - item index like global index = 0
           // byte a3 = packet.ReadByte();//Icant find what this is always 1
           // byte Slot = packet.ReadByte();//Inventory slot
           //ushort Count = packet.ReadUShort();//Count

            FindMallItemAdd(Kategori, SubKategori, ItemIndex, Slot, Count);


        }
oksn123 is offline  
Reply


Similar Threads Similar Threads
Item Mall, i bought item and became ap back..
03/05/2014 - Shaiya PServer Development - 1 Replies
Hello Guys, I have an problem on my server... I buy an item and after an few minutes my ap is the old one Example 3k AP > bought item for 3k ap > after 3 minutes 3k ap again.. Abd my dbo.PointLog is clean.. have anyone an fix? Help pls..
Metin2 United! <3 Join Today! Mall/Non-Mall Server.
10/30/2013 - Metin2 PServer Advertising - 8 Replies
Join Metin2United today! There are 3 Servers, Mall Server - Weak Mall Server - Non-Mall server! And plus we have our own launcher! Visit our site http://metin2.gamezunited.com. We currenlty have 7 Different private servers! Be sure to check it out at http://gamezunited.com :) We supports all kinds of languages, so you have the option to change English to Spanish in client and lots of more. See you ingame :o
[Mall] Item Mall Problem
02/01/2013 - SRO Private Server - 0 Replies
when buying items in ITEM MALL = dc but have item in inv after log in again we want fix it
[REQUEST] Item mall item for 0 silk
12/02/2011 - SRO Private Server - 11 Replies
Hello , I am trying to make some item mall items to 0 silk but there is a problem when i put the cost to 0 silk the users can not purchase the items. Only cost to 1 or more is working ... Any idea where is the restriction about this ( maybe a stored procedure ? ) Cordialy,



All times are GMT +1. The time now is 02:16.


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.