Register for your free account! | Forgot your password?

You last visited: Today at 02:09

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

Advertisement



[Help] Target Packet

Discussion on [Help] Target Packet within the SRO Coding Corner forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
ramy_11_1's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
[Help] Target Packet

Hi everyone ,
i got a small problem but i think it hasn't a solution
so here is my problem ,
Target packet its need a unknown parameter its called object id of monster or npc or character .. etc.
from where i can select this id ? cuz its changed every time i target a character after relog.
i mean every login each character get a new object id and i want to make a system using target a characters by text box (Character Name)

this is a simple parser for target object opcode analyzing :

[C -> S][7045]
7E B5 01 00 ~...............

[S -> C][B045]
01 ................
7E B5 01 00 ~...............
01 ................
05 ................
04 ................

i wait any help :/
ramy_11_1 is offline  
Old 06/09/2015, 22:33   #2
 
3DProgrammer's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 133
Received Thanks: 98
It's the unique ID of the mob.
You need to parse Group/Solo spawn packets to get the IDs of your surroundings.
0x3015 and 0x3019 I think? Not so sure. You can check public emulators.
3DProgrammer is offline  
Old 06/10/2015, 00:51   #3
 
ramy_11_1's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
Quote:
Originally Posted by 3DProgrammer View Post
It's the unique ID of the mob.
You need to parse Group/Solo spawn packets to get the IDs of your surroundings.
0x3015 and 0x3019 I think? Not so sure. You can check public emulators.
i already parsed this incoming packet 0x3015
but i want to select character name (Test) and object id (B5 B5 01 00) in variables string & uint ,
i tried to do it but its failed every time.
here is the full incoming packet

Code:
[S -> C][3015]
73 07 00 00                                       s...............
22                                                "...............
10                                                ................
00                                                ................
00                                                ................
6D                                                m...............
08                                                ................
6E 98 00 00                                       n...............
08                                                ................
74 98 00 00                                       t...............
08                                                ................
71 98 00 00                                       q...............
08                                                ................
7A 98 00 00                                       z...............
08                                                ................
77 98 00 00                                       w...............
08                                                ................
7D 98 00 00                                       }...............
08                                                ................
5C 98 00 00                                       \...............
FA                                                ................
6B 98 00 00                                       k...............
FA                                                ................
05                                                ................
01                                                ................
5B 5F 00 00                                       [_..............
06                                                ................
00                                                ................
B5 B5 01 00                                       ................
EC 63                                             .c..............
00 40 80 44 0A E1 EC 3A 00 C0 5F 44 58 AE         [email protected]...:.._DX...
00                                                ................
01                                                ................
00                                                ................
58 AE                                             X...............
01                                                ................
00                                                ................
00                                                ................
00                                                ................
00 00 80 41                                       ...A............
00 00 48 42                                       ..HB............
00 00 C8 42                                       ...B............
00                                                ................
04 00                                             ................
54 65 73 74                                       Test............
01                                                ................
01                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00 00                                             ................
00 00 00 00                                       ................
00 00                                             ................
00 00 00 00                                       ................
00 00 00 00                                       ................
00 00 00 00                                       ................
00                                                ................
00                                                ................
00                                                ................
FF                                                ................
01                                                ................
ramy_11_1 is offline  
Old 06/10/2015, 03:23   #4
 
3DProgrammer's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 133
Received Thanks: 98
Quote:
Originally Posted by ramy_11_1 View Post
i already parsed this incoming packet 0x3015
but i want to select character name (Test) and object id (B5 B5 01 00) in variables string & uint ,
i tried to do it but its failed every time.
here is the full incoming packet

Code:
[S -> C][3015]
73 07 00 00                                       s...............
22                                                "...............
10                                                ................
00                                                ................
00                                                ................
6D                                                m...............
08                                                ................
6E 98 00 00                                       n...............
08                                                ................
74 98 00 00                                       t...............
08                                                ................
71 98 00 00                                       q...............
08                                                ................
7A 98 00 00                                       z...............
08                                                ................
77 98 00 00                                       w...............
08                                                ................
7D 98 00 00                                       }...............
08                                                ................
5C 98 00 00                                       \...............
FA                                                ................
6B 98 00 00                                       k...............
FA                                                ................
05                                                ................
01                                                ................
5B 5F 00 00                                       [_..............
06                                                ................
00                                                ................
B5 B5 01 00                                       ................
EC 63                                             .c..............
00 40 80 44 0A E1 EC 3A 00 C0 5F 44 58 AE         [email protected]...:.._DX...
00                                                ................
01                                                ................
00                                                ................
58 AE                                             X...............
01                                                ................
00                                                ................
00                                                ................
00                                                ................
00 00 80 41                                       ...A............
00 00 48 42                                       ..HB............
00 00 C8 42                                       ...B............
00                                                ................
04 00                                             ................
54 65 73 74                                       Test............
01                                                ................
01                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00                                                ................
00 00                                             ................
00 00 00 00                                       ................
00 00                                             ................
00 00 00 00                                       ................
00 00 00 00                                       ................
00 00 00 00                                       ................
00                                                ................
00                                                ................
00                                                ................
FF                                                ................
01                                                ................
I'm not really sure what you want here, do you want me to parse 0x3015 packet for you? Or you want to know how to select ID with 0x7045?

If you want to select any object isn't it useless? Since your bot can actually do everything without selecting the object.
If you want to exchange you would just send the exchange packet with the object ID, if you want to attack it you would send the attack packet with the object ID.
3DProgrammer is offline  
Old 06/10/2015, 06:11   #5
 
ramy_11_1's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
Quote:
Originally Posted by 3DProgrammer View Post
I'm not really sure what you want here, do you want me to parse 0x3015 packet for you? Or you want to know how to select ID with 0x7045?

If you want to select any object isn't it useless? Since your bot can actually do everything without selecting the object.
If you want to exchange you would just send the exchange packet with the object ID, if you want to attack it you would send the attack packet with the object ID.
i just need to know when i want to select a parameter from packet like this example :

here is the bytes :

01 30 16 01
34 04
00 13
01 39 67 85 14 36

i want to save a red bytes in a public variable string as example.

i do it like that :

ulong A1 = current.ReadUInt64();
string Name = current.ReadAscii();

i had asked for if can i ignore the unwanted bytes [ulong A1 = current.ReadUInt64();] and direct select this value [string Name = current.ReadAscii();] ?

this is my question ..
ramy_11_1 is offline  
Old 06/10/2015, 08:15   #6
 
3DProgrammer's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 133
Received Thanks: 98
Hmm so you basically mean while parsing 0x3015 you want to skip all the bytes before the ID and read ID instantly? Correct? If so I believe you can't.
0x3015 Packet have lots of flags(It means the number of bytes changes each packet).

But if you just wish to know how to skip bytes? You can use ReadInt8Array(int count)

Code:
current.ReadInt8Array(8);
string Name = current.ReadAscii();
3DProgrammer is offline  
Thanks
1 User
Old 06/10/2015, 14:36   #7
 
ramy_11_1's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
Quote:
Originally Posted by 3DProgrammer View Post
Hmm so you basically mean while parsing 0x3015 you want to skip all the bytes before the ID and read ID instantly? Correct? If so I believe you can't.
0x3015 Packet have lots of flags(It means the number of bytes changes each packet).

But if you just wish to know how to skip bytes? You can use ReadInt8Array(int count)

Code:
current.ReadInt8Array(8);
string Name = current.ReadAscii();
i know that this packet changes because the number of inventory slots between 00 and 08 (Set , Weapon , Shield) each item has ID uint32 and plus uint8 , also inventory avatars between 0 and 5 (Avatar , Attach , Hat , Flag , Devil)

so it needs alot of cases by if and else if ,
here an example :

Get unit A1 = inventory item count between 0 and 8
if (A1 == 0)
{
continue and make also 6 cases for avatar inv item count between 0 and 5
then skip bytes to arrive to select ObjID
}
else if (A1 == 1)
{
ignore bytes then target the inventory avatar item count in a variable
Copy the 6 cases of avatar inventory item count from previous case
then skip bytes to arrive to select ObjID
}
..... etc for arrive to case (A1 = 8) , in each case of A1 you must copy the 6 cases of avatar inv item count.

Okey thanks alot
for help me to ignore bytes by int array



#Close
ramy_11_1 is offline  
Closed Thread


Similar Threads Similar Threads
[Help] Invalid Target/Cannot find Target(ZSZC)
05/29/2010 - SRO Private Server - 4 Replies
Some write they have Problems with ZSZC SRO-DB, by mobs for example "Ishade/Penon/Ujigi(lvl50-56)", in the Textbox right side down a message: "Invalid Target" or " Cannot Find Target", All have this Problem, a good message, i have the solution! You need Use SRO-DB Bot V0.8 and NOT V0.9a! +++Use this and you will have Fun by Botting+++
How to get out the Target ID from this packet
10/16/2009 - CO2 Private Server - 13 Replies
hello there , this is for actually i have 2 things need help with 1-Getting the target id from a packet Solved 2-The string type id for nobility screen or how to r8 names to it i had the Nobi Donation screens 1,2 but with no names now i wanna send the names to it , how is that will be done ?
[Frage]Packet 0x3E, Target und Attacker
07/11/2009 - Kal Online - 7 Replies
Hi, will einen simplen bot machen, bin nun auch langsam am "verstehen".. nun meine frage: ich will erstmal nur die mobs angeifen, die mich attacken.. das Packet 0x3E sagt ja irgendwas greift irgendwen an.. nun wie bekomme ich das raus, dass ich angegriffen werde?! DWORD attacker=0; DWORD target=0; WORD dmg; WORD dmg2; memcpy((void*)&attacker,(void*)((DWORD)buf2+3 +1) ,4); memcpy((void*)&target,(void*)((DWORD)buf2+3+1 +4) ,4);



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


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.