Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 07:41

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


Lucky Critical Parse Packet

Discussion on Lucky Critical Parse Packet within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 53
Join Date: Sep 2014
Posts: 128
Received Thanks: 40
Lucky Critical Parse Packet

i have parsed my packet correctly and it is work i can now know the
KillerUniqeID/KilledUniqueID otherwise the player killed or still alive ,the dmg is critical or normal but if the player used a skill the program got error
System.IO.EndOfStreamException: 'Unable to read beyond the end of the stream.'


My parsed packet
Code:
byte isSuccess = current.ReadUInt8();
                                if (isSuccess == 0x01)
                                {
                                    current.ReadUInt8();
                                    current.ReadUInt8();
                                    current.ReadUInt32();
                                    uint KillerUniqueID = current.ReadUInt32();
                                    current.ReadUInt32();
                                    uint KilledUniqueID = current.ReadUInt32();
                                    current.ReadUInt8();
                                    current.ReadUInt8(); //error is here
                                    current.ReadUInt8();
                                    uint KilledUniqueID2 = current.ReadUInt32();
                                    byte isKilled = current.ReadUInt8();
                                    current.ReadInt8();
                                    UInt32 dmg = current.ReadUInt32();

                                    if (isKilled == 0x80)
                                    {
                                        Program.UpdateLogs($"KillerUniqueID {KillerUniqueID} has been killed => {KilledUniqueID2} with dmg => {dmg}", Color.Red);

                                    }
                                    else if (isKilled == 0x00)
                                    {
                                        Program.UpdateLogs($"isStill Alive what a Shame dmg {dmg}", Color.Red);
                                    }

                                }





Loader Packet:
Code:
[S -> C][B070]
01                                                ................
02 30                                             .0..............
02 00 00 00                                       ................
DD A5 06 00                                       ................
C3 0B 00 00                                       ................
F2 A4 06 00                                       ................
01                                                ................
02                                                ................
01                                                ................
F2 A4 06 00                                       ................
00                                                ................
01 E3 00 00                                       ................
00 00 00 00                                       ................
00                                                ................
01 CD 00 00                                       ................
00 00 00 00                                       ................
Note: it works fine if the hit is normal not a skill ,what is worng in my packet?



Mr.Awesome1337 is offline  
Old 05/13/2018, 19:10   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 21
Received Thanks: 12
https://www.elitepvpers.com/forum/sro-coding-corner/4280218-opcode-0xb071.html


illstar is offline  
Reply



« Error While parsing a Spawn Packet | Looking to start a prvt server »

Similar Threads
Parse 0x7074 packet
02/10/2015 - SRO Coding Corner - 1 Replies
Hi, I want tp parse Client 7074 packet. Can you help me for this ?
Parse character data packet
01/20/2015 - SRO Coding Corner - 4 Replies
Hi. My code is : //Header a7 01 //size = 01A7(423) 13 30 //Opcode = 0x3013(vsro) 00 00 //Security & CRC //End //Data ///Self Info
How to parse Image Code Packet?
03/17/2012 - SRO Coding Corner - 2 Replies
My clientless get (opcode=2322) image code packet after login~ Does anyone know how to parse it and make it show on screen? Searched through the forum but lacking of such information~
[HELP] Parse error: parse error in C:\wamp\www\co\config.php on line 140
03/14/2010 - CO2 PServer - Discussions / Questions - 5 Replies
Im getting this error when i try to go to my reg page: Parse error: parse error in C:\wamp\www\co\config.php on line 140 It says that ^ Here is the code: <?php // Configurations $myhost='localhost'; // MySQL database address // :33006 $mypass='test'; // MySQL server login
How to edit Critical Rate/Critical DMG?
11/14/2009 - Cabal Main - Discussions / Questions - 2 Replies
How to edit Critical Rate/Critical DMG with MHS? I need a help to do this... TY



All times are GMT +1. The time now is 07:41.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.