Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 05:34

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

Advertisement



Parsing Char-Spawn Paket correctly

Discussion on Parsing Char-Spawn Paket correctly within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 1
Join Date: Feb 2016
Posts: 159
Received Thanks: 67
Exclamation Parsing Char-Spawn Paket correctly

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
[GM]Snatcher is offline  
Old 03/31/2016, 18:41   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686


Please throw your idea of lines away.
DaxterSoul is offline  
Thanks
2 Users
Old 04/01/2016, 10:30   #3
 
elite*gold: 1
Join Date: Feb 2016
Posts: 159
Received Thanks: 67
Thank you dude...
[GM]Snatcher is offline  
Reply


Similar Threads Similar Threads
Char Spawn Anywhere
01/28/2016 - Shaiya PServer Guides & Releases - 1 Replies
Hello mates :) Some people don't know how to change character spawn area its very easy :) follow steps; Go > PSM_Client/Bin/Data/Map.ini MapCount = 71 HUGameStartMapPos = (mapcode,X, Y,Z)
[Selling] Best Arma 3 Money spawn - Gear spawn - Vehicles spawn *ON EVERY SERVER*
12/26/2014 - ArmA Trading - 0 Replies
bojkastros Arma 3 Shop ist offen - Geld Spawn - Ausrüstungs Spawn- Fahrzeuge spawnen * auf jedem Server * Geld 2 mil = 1,50 euro 4 mil = 2,50 euro So viel geld wie ihr wollt = 8 euro
[B]Tera Account + Vorbesteller Paket+char+gametime [S]e*gold/psc
07/04/2012 - elite*gold Trading - 6 Replies
Ich biete euch vier einen Tera Account + Vorbesteller Paket Welches für 50€ gekauft wurde. Da mein Laptop leider zu schlecht dafür ist -.- und ich es daher nicht richtig spielen kann ( was wirklich aufregt um genau zu sein ) muss ich es leider verkaufen und biete es hier an. Was vorhanden ist: Lvl 23er Tank (mit entsprechendem EQ 16 gold) Exklusives Reittier: Weißer Hengst Serens Sandring
[Need Help]Parsing solo spawn packet[3015]
10/20/2011 - SRO Coding Corner - 5 Replies
public static void ParseSoloSpawn(Packet p) { Packet copy1 = p; copy1.Skip(copy1.GetBytes().Length - 1); int type = copy1.Readbyte(); if (type == 1) { int charid = p.ReadInt32(); p.ReadInt32(); p.Readbyte();
Char + Paket?!
03/30/2011 - Wolfteam - 3 Replies
Hi Leute ich wollte mir einen Char kaufen und hab dan Beschleunigungspaket ,Lebenspaket und Rüstungspaket gesehn aber was ist in denen eig drin und bringts das überhaupt ?! o.O



All times are GMT +1. The time now is 05:35.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.