[Help] Target Packet

06/09/2015 22:23 ramy_11_1#1
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 :/
06/09/2015 22:33 3DProgrammer#2
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.
06/10/2015 00:51 ramy_11_1#3
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         .@.D...:.._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                                                ................
06/10/2015 03:23 3DProgrammer#4
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         .@.D...:.._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.
06/10/2015 06:11 ramy_11_1#5
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 ..
06/10/2015 08:15 3DProgrammer#6
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();
06/10/2015 14:36 ramy_11_1#7
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

:handsdown:

#Close