Register for your free account! | Forgot your password?

You last visited: Today at 07:53

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

Advertisement



Help GroupSpawn Parse

Discussion on Help GroupSpawn Parse within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2009
Posts: 5
Received Thanks: 3
Angry Help GroupSpawn Parse

I can't parse it
where the error ?

using SilkroadSecurityAPI
Code:
8D 07 00 00 27 05 53 00 A8 60 C8 BE 64 44 6D 46 35 C2 CE A1 01 44 5A 3E 01 00 A8 60 92 03 D3 FF 06 02 01 00 00 00 00 00 00 00 41 00 00 B0 41 00 00 C8 42 00 02 01 05 00
Code:
                                        uint id = packet.ReadUInt(); // MOB ID
                                        byte xsec = packet.ReadByte();
                                        byte ysec = packet.ReadByte();
                                        float xcoord = packet.ReadUShort();
                                        packet.ReadUShort();
                                        float ycoord = packet.ReadUShort();
                                        packet.ReadUShort(); // Position
                                        byte move = packet.ReadByte(); // Moving
                                        packet.ReadByte(); // Running
                                        if (move == 1)
                                        {
                                            xsec = packet.ReadByte();
                                            ysec = packet.ReadByte();
                                            if (ysec == 0x80)
                                            {
                                                xcoord = packet.ReadUShort() - packet.ReadUShort();
                                                packet.ReadUShort();
                                                packet.ReadUShort();
                                                ycoord = packet.ReadUShort() - packet.ReadUShort();
                                            }
                                            else
                                            {
                                                xcoord = packet.ReadUShort();
                                                packet.ReadUShort();
                                                ycoord = packet.ReadUShort();
                                            }
                                        }
                                        else
                                        {
                                            packet.ReadByte(); // Unknown
                                            packet.ReadUShort(); // Unknwon
                                        }
                                        int xas = Convert.ToInt32((xsec - 135) * 192 + (xcoord / 10));
                                        int yas = Convert.ToInt32((ysec - 92) * 192 + (ycoord / 10));
                                        //int dist = Math.Abs((xas - Character.X)) + Math.Abs((yas - Character.Y));
                                        byte alive = packet.ReadByte(); // Alive
                                        packet.ReadByte(); // Unknown
                                        packet.ReadByte(); // Unknown
                                        packet.ReadByte(); // Zerk Active
                                        packet.ReadUShort(); // Walk Speed
                                        packet.ReadUShort(); // Run Speed
                                        packet.ReadUShort(); // Zerk Speed
                                        packet.ReadUInt(); // Unknown
                                        byte mtype = packet.ReadByte();
djbm is offline  
Old 03/24/2013, 15:36   #2
 
detCode's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 104
Received Thanks: 73
group spawn is multiple spawn with items, mobs chars.. together. not only monster
use can use single monster,chars,items spawn
detCode is offline  
Thanks
1 User
Old 03/25/2013, 00:26   #3

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
First you should get the RefObjID and check if it's an Item/Mob/Npc/Character/Pet.
Later, spawn according to that.

And in groupspawn there isn't 1 item but more. They come in a loop. Like:

00 03 // spawn amount

-start-
............. ]
............. ] NPC
............. ]

............. ]
............. ] MOB
............. ]

............. ]
............. ] PET
............. ]

-end-

Also, there is a Spawn Byte measurement, this packet may be a Despawn packet aswell. (Your packet seems more like a spawn). They will all come in 3019 so careful.
sarkoplata is offline  
Thanks
1 User
Old 03/25/2013, 22:12   #4
 
elite*gold: 0
Join Date: Mar 2009
Posts: 5
Received Thanks: 3
thx man ı found problem
djbm is offline  
Reply


Similar Threads Similar Threads
Unknown GroupSpawn Packet
08/31/2012 - SRO Coding Corner - 24 Replies
Well i wonder what this groupspawn packet is for. It always makes my parser fail. Its not player, its not pet , or not a monster , not a npc.. It has objectid also. 82 4A 00 00 02 00 00 00 4F 69 00 00 2F 44 00 00 48 43 00 80 5D 44 00 00 even what is it , it has Model , object id , xy sectors, float xyz and angle ? i guess.
[Need Help]Parsing groupspawn packet[3019]
10/27/2011 - SRO Coding Corner - 2 Replies
i have problem with buffs of groupspawn packet sometimes silkroad sends 06 ................ 0B 26 00 00 .&.............. B1 9A 04 00 ................ 17 26 00 00 .&.............. 36 90 05 00 6............... 02 ................ D2 26 00 00 ...
[HELP] Parse error: parse error in C:\wamp\www\co\config.php on line 140
03/14/2010 - CO2 Private Server - 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
Anyone Able to Parse packets?
04/21/2009 - Silkroad Online - 3 Replies
I have over 300+ sniffed packets on cSRO. More to come. I have only just started parsing them, taking a long time cause its not a 1 person job. Does anyone else have skills in this to speed up the process xD. [email protected] I will send you .txts once you contact me. These are an example. Some can be quite hard, some are fairly easy.



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


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.