Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Packet 0x7034 (buy item) - Game crash

Discussion on [Help] Packet 0x7034 (buy item) - Game crash within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 48
Received Thanks: 75
[Help] Packet 0x7034 (buy item) - Game crash

Hey guys, im currently working on a bot for the VSRO files and im doing some realy good progress. Currently im working on a shopping manager component But somehow the 0x7034 packet crashes the client instantly when sending it.

What I do is the following:
1. Select shop with 0x7045 (Working correctly)
2. Then I query the items I want to buy (bla bla code)
3. Then I want to buy the specific item like this:

Code:
            
var packet = new Packet(0x7034);
packet.WriteByte(0x08); //Buy item flag
packet.WriteByte(tabIndex);
packet.WriteByte(item.SlotIndex);
packet.WriteUShort(amount);
packet.WriteUInt(npc.UniqueId);

PacketManager.SendPacket(packet, PacketDestination.Server);
After sending this packet the game crashes without any warning (but I got the bought items anyway).
I tripple checked the data I provide in this packet. It's correct, so there has to be something else - Do you guys have an idea what?
torstmn is offline  
Old   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 689
Your 0x7034 is correct. You're crashing on 0xB034 - SERVER_AGENT_INVENTORY_OPERATION_ACK because the client has not loaded the ShopTabGroup and can't find the item by the TabIndex and SlotIndex.

You can try to click 1. Purchase/ Sell Chinese Goods for example, this will trigger the loading for the NPC. If you inject your purchase packet again, the client can find the item and won't crash. However user input is not practical for a bot, i guess.

Don't let the packet reach your client if its shop related.
Generate a fake response using a different inventory operation and feed the information from the original response.
DaxterSoul is offline  
Thanks
3 Users
Old   #3
 
elite*gold: 0
Join Date: Jun 2010
Posts: 28
Received Thanks: 14
Someone help me please ı have the same crash in my program but ı dont know how to fake response someone helpme please ?
oksn123 is offline  
Old   #4
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 912
Miss posted.
#HB is offline  
Old   #5
 
elite*gold: 0
Join Date: Jun 2010
Posts: 28
Received Thanks: 14
SomeOne gonna help me ? Please?
oksn123 is offline  
Old   #6
 
homelesshobo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 103
Received Thanks: 17
When you buy items, you receive a B034 response
which you can intercept in your Agent Server's incoming packet stream.
Then you can choose to either
1. Block it from your client
or
2. Use by faking a pickup response, change the item movement type to "pickup", then send the changed packet to your client as a pickup packet instead.

Blocking is easier because you just filter it after sending the 7034 packet to buy an item.
The downside is that it will not update your client, so you will have to teleport to update your inventory.

Sending a fake packet is more difficult, but you will see the updated inventory right away.

(the amount must be FakePickUp.WriteUInt16(Amount))
homelesshobo is offline  
Thanks
2 Users
Old   #7
 
elite*gold: 0
Join Date: Jun 2010
Posts: 28
Received Thanks: 14
Thank You
oksn123 is offline  
Reply


Similar Threads Similar Threads
Crash on opening npc with packet
02/09/2017 - SRO Private Server - 7 Replies
I tried to open npc first with opcode 7045 And it opens, then i send 7046 with id and 1 Like this: Packet p =new packet(0x7046); p.writeuint32(id); p.writeuint8(1); Sendtoserver(p); It gets crash. Iam sure id is right so idk what's wrong am i doing
Channel crash packet?
05/21/2016 - Nostale - 4 Replies
I saw the work of dupe on May 19. Do you know the most recent fixed packets?
Channel Crash packet
05/19/2016 - Nostale - 2 Replies
Holà, search packet for crash channel please.
Packet Senden crash?
02/21/2016 - Nostale - 18 Replies
Hallo ich habe eine kleine frage also ich versuche es mit einem simple packet ("say Hello") aber das client crasht..Ich habe auch denn string null terminated gemacht aber immer noch das gleiche hier ein paar info über was ich gemacht habe: English: I Tried to send a simple packet ("say Hello") but the client crashes , i dont know what to do i terminated the string with null ,i hope anyone can help me :) Here some info about what im doing: void Player::send_packet(std::string packet) {...
[Help Request] Crash when buying a item at Item mall
12/12/2013 - SRO Private Server - 2 Replies
Ok so I'm using ECSRO files and I have a problem with the Item mall. When i buy a item (any item) my silk gets reduced instantly but the item is not showing at my inventory. After that i cant close the item mall for like 5 sec after it closes i can do anything (still no item in inv.) and then after about 5 sec i get a crash... When I log back on the item is in my inv and no more problems untill i try to buy something at the item mall again. Can anyone help me fix this please? Edit: Just...



All times are GMT +1. The time now is 20:17.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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