Help in Unpacking 0914, 090F and 0915 packets.

Private server support - Only post connectivity issues in the subforum!

Moderator: Moderators

Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Help in Unpacking 0914, 090F and 0915 packets.

#1 Post by Dark Airnel »

I am playing in a private server using Hercules Emulator and I'm having a bit of a problem in detecting players. I think the culprits are these packets 0914, 090F and 0915. I managed to modify / add a new serverType and added the following lines in \Network\Receive\kRO\RagexeRE_2013_08_07b.pm (originally RagexeRE_2013_08_07a.pm) and added the following lines:

Code: Select all

'0914' => ['actor_exists', 'v C a4 v3 V v5 a4 v6 a4 a2 v V C2 a6 C2 v2 Z*', [qw(len object_type ID walk_speed opt1 opt2 option type hair_style weapon shield lowhead tick tophead midhead hair_color clothes_color head_dir costume guildID emblemID manner opt3 stance sex coords xSize ySize lv font name)]], # -1 # walking provided by try71023 TODO: costume
'090F' => ['actor_connected', 'v C a4 v3 V v11 a4 a2 v V C2 a3 C3 v2 Z*', [qw(len object_type ID walk_speed opt1 opt2 option type hair_style weapon shield lowhead tophead midhead hair_color clothes_color head_dir costume guildID emblemID manner opt3 stance sex coords xSize ySize act lv font name)]], # -1 # spawning provided by try71023
'0915' => ['actor_moved', 'v C a4 v3 V v11 a4 a2 v V C2 a3 C v2 Z*', [qw(len object_type ID walk_speed opt1 opt2 option type hair_style weapon shield lowhead tophead midhead hair_color clothes_color head_dir costume guildID emblemID manner opt3 stance sex coords xSize ySize lv font name)]], # -1 # standing provided by try71023
The bot can now detect players however, for some reason, sometimes the name of the player and their level are not showing up correctly. I am thinking that there is something wrong with the way those packets are unpacked. Here is what's showing on my console:

Code: Select all

================================================
<< Received packet:      0914 [80 bytes]   Mar 6 03:02:31 2014
  0>  14 09 50 00 00 20 8D 1E    00 4B 00 00 00 00 00 00    ..P.. ...K......
 16>  00 08 00 DC 0F 15 00 9D    04 00 00 3C 02 1D FA 13    ...........<....
 32>  1A C9 02 94 01 09 00 53    00 00 00 01 00 00 00 00    .......S........
 48>  00 00 00 00 00 01 00 00    00 00 01 36 CD 43 4C DB    ...........6.CL.
 64>  88 05 05 AF 00 00 00 FF    FF FF FF FF FF FF FF 00    ................
================================================
<< Received packet:      090F [73 bytes]   Mar 6 03:02:29 2014
  0>  0F 09 49 00 00 20 8D 1E    00 4B 00 00 00 00 00 00    ..I.. ...K......
 16>  00 08 00 DC 0F 15 00 9D    04 00 00 3C 02 C9 02 94    ...........<....
 32>  01 09 00 53 00 00 00 01    00 00 00 00 00 00 00 00    ...S............
 48>  00 01 00 00 00 00 01 36    CD 42 05 05 AF 00 00 00    .......6.B......
 64>  FF FF FF FF FF FF FF FF    00                         .........
================================================
<< Received packet:      0915 [74 bytes]   Mar 6 03:06:04 2014
  0>  15 09 4A 00 06 6A B5 8E    06 C8 00 00 00 00 00 00    ..J..j..........
 16>  00 00 00 6F 00 00 00 00    00 00 00 00 00 00 00 00    ...o............
 32>  00 00 00 00 00 00 00 00    00 00 00 00 00 00 00 00    ................
 48>  00 00 00 00 00 00 00 39    8D F1 00 00 00 00 00 00    .......9........
 64>  00 FF FF FF FF FF FF FF    FF 00                      ..........
================================================
Can someone help me on how to properly unpack those packets. Please help!