Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 06:48

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

Advertisement



Crash on opening npc with packet

Discussion on Crash on opening npc with packet within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Crash on opening npc with packet

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
Kardil is offline  
Old 02/07/2017, 23:15   #2
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
distance between your char and the npc?
B1Q is offline  
Old 02/08/2017, 01:25   #3
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
it was enough to select npc
Kardil is offline  
Old 02/08/2017, 08:22   #4
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
i've never tried parsing the packet. i'll parse it & let you know

okay...

the packet should work like this.

first you should select the npc

packet sel = new packet(0x7045);
sel.writeuint32(npcuniqueid);
sel.sendtosrv();

and then you can send the npc Open packet

packet pck = new packet(0x7046);
pck.writeuint32(npcuniqueid); // parse group/spawn packet to get the unique id of the npc
pck.writeuint8(1); // tab (weapons,2 is avatar alchemy or whatever you wanna call it)
pck.sendtosrv();

i tested this packet on a blacksmith npc no crashes.

PS: server will send a select confirmation packet along with other data related to the selected object. (0xB045) it's not that hard to figure out. gl
B1Q is offline  
Old 02/08/2017, 11:52   #5
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by B1QB0SS :3 View Post
i've never tried parsing the packet. i'll parse it & let you know

okay...

the packet should work like this.

first you should select the npc

packet sel = new packet(0x7045);
sel.writeuint32(npcuniqueid);
sel.sendtosrv();

and then you can send the npc Open packet

packet pck = new packet(0x7046);
pck.writeuint32(npcuniqueid); // parse group/spawn packet to get the unique id of the npc
pck.writeuint8(1); // tab (weapons,2 is avatar alchemy or whatever you wanna call it)
pck.sendtosrv();

i tested this packet on a blacksmith npc no crashes.

PS: server will send a select confirmation packet along with other data related to the selected object. (0xB045) it's not that hard to figure out. gl
I know it's a piece a cake and i did exactily what u did but in vain.
Could be a damaged sroclient?
Kardil is offline  
Old 02/08/2017, 16:56   #6
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
Quote:
Originally Posted by Kardil View Post
I know it's a piece a cake and i did exactily what u did but in vain.
Could be a damaged sroclient?
i'm not sure. but it works with me i parsed the group spawn packet got the blacksmith's (Constantinople) unique id sent the packet no crash.
B1Q is offline  
Old 02/08/2017, 22:19   #7
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by B1QB0SS :3 View Post
i'm not sure. but it works with me i parsed the group spawn packet got the blacksmith's (Constantinople) unique id sent the packet no crash.
Packet p3 = new Packet(0x7045);
p3.WriteUInt8(0x26);
p3.WriteUInt8(0x00);
p3.WriteUInt8(0x00);
p3.WriteUInt8(0x00);
Sendtosrv(p3);

Packet p2 = new Packet(0x7046);
p2.WriteUInt8(0x26);
p2.WriteUInt8(0x00);
p2.WriteUInt8(0x00);
p2.WriteUInt8(0x00);
p2.WriteUInt8(1);
Sendtosrv(p2);

26 00 00 00 is npc unique id, i parse it from loader and it's always fixed
Kardil is offline  
Old 02/09/2017, 00:03   #8
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
Quote:
Originally Posted by Kardil View Post
Packet p3 = new Packet(0x7045);
p3.WriteUInt8(0x26);
p3.WriteUInt8(0x00);
p3.WriteUInt8(0x00);
p3.WriteUInt8(0x00);
Sendtosrv(p3);

Packet p2 = new Packet(0x7046);
p2.WriteUInt8(0x26);
p2.WriteUInt8(0x00);
p2.WriteUInt8(0x00);
p2.WriteUInt8(0x00);
p2.WriteUInt8(1);
Sendtosrv(p2);

26 00 00 00 is npc unique id, i parse it from loader and it's always fixed

but... npcid should be uint????
B1Q is offline  
Reply


Similar Threads Similar Threads
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) {...
Packet Sending gift opening?
05/31/2015 - Battle of the Immortals - 0 Replies
Hey, Is it possible to open gifts with packets (that way it would be faster) in private servers? I can't seem to figure out what exactly the packet looks like
Help Core 1 Crash , Packet Error
08/06/2013 - Metin2 Private Server - 0 Replies
Hi i have this error in my syser: SYSERR: Aug 6 21:31:50 :: Analyze: login phase does not handle this packet! header 61 Nothing else....only the core 1 crash.. please help me ... i wait for the solution thanks. up



All times are GMT +1. The time now is 06:48.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.