Dear Coding Community,
I am stucking with the parsing of the Single-Spawn Char Paket...
Below u can find the whole Paket of a single Spawn
Code:
[S -> C][3015]
74 07 00 00 t...............
44 D...............
0A ................
00 ................
00 ................
6D m...............
08 ................
4A 03 00 00 J...............
05 ................
92 03 00 00 ................
05 ................
6E 03 00 00 n...............
05 ................
DA 03 00 00 ................
05 ................
B6 03 00 00 ................
05 ................
FE 03 00 00 ................
05 ................
4E 10 00 00 N...............
00 ................
EF 0E 00 00 ................
05 ................
04 ................
0A A7 00 00 ................
00 ................
0B A7 00 00 ................
00 ................
0C A7 00 00 ................
00 ................
57 5F 00 00 W_..............
00 ................
00 ................
88 3A 42 01 .:B.............
99 66 .f..............
C5 DE 03 43 58 A4 C7 C2 FD FC 20 44 20 7F ...CX......D....
00 ................
01 ................
00 ................
20 7F ................
01 ................
00 ................
00 ................
00 ................
9A 99 99 41 ...A............
01 00 70 42 ..pB............
00 00 C8 42 ...B............
00 ................
03 00 ................
36 39 30 690.............
00 ................
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 ................
03 ................
This is the part where the Charname appears
Code:
36 39 30 690.............
I got this in my C# Code:
Code:
else if (packet.Opcode == 0x3015)
{
string spawnedTarget = packet.ReadAscii(48);
Agent.SendPM(spawnedTarget, "Hey, "+spawnedTarget+"! :) LOL");
//Agent.AllChat("gnaahhhh, hello unknow char -.-' xD !!");
}
If I comment the string spawnedTarget and Agent.SendPM and simply use Agent.AllChat he sends in allchat if a random char appears near me.
I tried to send a PM to the spawned Char by parsing the name with
Quote:
|
string spawnedTarget = packet.ReadAscii(48);
|
The 48 is Line 48 of the whole SingleSpawn Paket....I dont know how to adress the needed part of the packet else.
Any clue what the mistake is / was?
And yeah, never did anything which such Packets