[Help] Target Packet

06/09/2015 22:30 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/10/2015 01:18 magicanoo#2
It's called "unique ID". You can get it from :
1-self ID (self-spawn packet)
2-for other players/mobs/objects (using single/group spawn packets)

For players, the ID changes upon teleporting. For NPCs, it doesn't change (even after server restart) as long as you don't edit anything with NPC/mobs spawn.
As for mobs, it doesn't change for the SAME mob until it dies. But it's different for different mobs in the field.

P.S. Parsing group-spawn packet is extremely difficult, but there are some parsed examples released already, Search for them.
06/10/2015 01:54 ramy_11_1#3
Quote:
Originally Posted by magicanoo View Post
It's called "unique ID". You can get it from :
1-self ID (self-spawn packet)
2-for other players/mobs/objects (using single/group spawn packets)

For players, the ID changes upon teleporting. For NPCs, it doesn't change (even after server restart) as long as you don't edit anything with NPC/mobs spawn.
As for mobs, it doesn't change for the SAME mob until it dies. But it's different for different mobs in the field.

P.S. Parsing group-spawn packet is extremely difficult, but there are some parsed examples released already, Search for them.
i already parsed this incoming single spawn 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 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                                                ................
is there a method to ignore the bytes that i don't need it while reading packet parameters ?
06/10/2015 12:21 magicanoo#4
Quote:
Originally Posted by ramy_11_1 View Post
i already parsed this incoming single spawn 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 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                                                ................
is there a method to ignore the bytes that i don't need it while reading packet parameters ?
You can use ReadUIntArray8(x), where x = number of bytes you want to skip.but take care, since spawn packets are dynamic, not static.
06/10/2015 14:43 ramy_11_1#5
Thnx alot brother

i know that this packet is dynamic
to select ID i must select the red values first and put it in cases by if , else if


Done i did thanks for everything <3