Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 06:02

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

 

0x3026/0x30B8 Packet Problem

Reply
 
Old   #1
 
elite*gold: 53
Join Date: Sep 2014
Posts: 99
Received Thanks: 34
0x3026/0x30B8 Packet Problem

First problem:i try to use this packet(0x3026) to get
Charname&Message in Stall Chat

this is Full Packet:
Code:
[S -> C][3026]
09                                                ................
09 00                                             ................
41 62 64 65 6C 61 7A 69 7A                       BOT.......
03 00                                             ................
68 65 79                                          testchat.............
this C# Corner:
Code:
                             if (current.Opcode == 0x3026)
                            {

                                string Charname = current.ReadAscii();
                                string Message = current.ReadAscii();
                                try
                                {
                                    Globals.MainWindow.listBox1.Items.Add(Charname);
                                    Globals.MainWindow.listBox1.Items.Add(Message);

                                }
                                catch
                                {
                                }

                            }
But i faced a problem when i got the Charname/Messsage and try to send any notice or anything related to Agent i Got this error



NOTE:this packet works fine i got the charname/Message but behind that i faced (SilkroadSecurityAPI) Packet Problem


Second problem:when i try to use this packet(0x30B8) to get
Charname of the Stall Creator behind me

Full Packet:
Code:
[S -> C][30B8]
66 53 07 00                                       fS..............
0D 00                                             ................
5B 66 64 5D 27 73 20 73 74 61 6C 6C 2E            [BOT]'s.stall....
07 0F 00 00                                       ................

C# Corner:
Code:
if (current.Opcode == 0x30B8)
{
string charname = current.ReadAscii();
llistBox1.Items.Add(charname);
}
but i got in my listbox something like a (dot)


hope can any one help me



Mr.Awesome1337 is offline  
Old   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 210
Received Thanks: 409
First and foremost, you should take a look at my documentation regarding those packets.



You can match them (most of the time) line by line with your output from edxAnalyzer. But you need respect any branches (if else) that may occur.

Your 0x3026 code is ignoring the chatType and also the branches.

Visually speaking this is what happens with your code...


...and what it should look like


Your 0x308B code is ignoring the UniqueID. But more importantly, you can only read the stall name that "someone" created from 0x30B8 using ReadAscii().
In order to get the character name using the UniqueID you have to read the spawn packets first. More on that here and here.


DaxterSoul is offline  
Thanks
3 Users
Old   #3
 
elite*gold: 53
Join Date: Sep 2014
Posts: 99
Received Thanks: 34
Quote:
Originally Posted by DaxterSoul View Post
First and foremost, you should take a look at my documentation regarding those packets.



You can match them (most of the time) line by line with your output from edxAnalyzer. But you need respect any branches (if else) that may occur.

Your 0x3026 code is ignoring the chatType and also the branches.

Visually speaking this is what happens with your code...


...and what it should look like


Your 0x308B code is ignoring the UniqueID. But more importantly, you can only read the stall name that "someone" created from 0x30B8 using ReadAscii().
In order to get the character name using the UniqueID you have to read the spawn packets first. More on that here and here.
Opcode 0x30B8
i can read the charname if the stall created normally like [Bot]'stall
and remove [,]'stall name from stall so i got the char name wihout problem
but if the stall created like that Bot without [BOT]'stall i got a something like dot so i want to know what the diff between get the charname by remove it from [,]'stall and by get as BOT ?



in case of opcode 0x3026 ur images i cannot see it to understant what you say

and about spawn packet and read Unique id and charname and it's items
it's complex with me i try to handle it but every time fail !
Mr.Awesome1337 is offline  
Old   #4
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,248
Received Thanks: 459
Quote:
Originally Posted by Mr.Awesome1337 View Post
Opcode 0x30B8
i can read the charname if the stall created normally like [Bot]'stall
and remove [,]'stall name from stall so i got the char name wihout problem
but if the stall created like that Bot without [BOT]'stall i got a something like dot so i want to know what the diff between get the charname by remove it from [,]'stall and by get as BOT ?



in case of opcode 0x3026 ur images i cannot see it to understant what you say

and about spawn packet and read Unique id and charname and it's items
it's complex with me i try to handle it but every time fail !
so simply you cannot parse single spawn packet , and want to read the char name from opening a stall by the target char , DaxterSoul trying to tell you how to handle the packet itself and the chat type byte


anyways when i back home i will send to you the code that you want ..


Eslam Galull is offline  
Thanks
1 User
Old   #5
 
elite*gold: 53
Join Date: Sep 2014
Posts: 99
Received Thanks: 34
Quote:
Originally Posted by Eslam Galull View Post
so simply you cannot parse single spawn packet , and want to read the char name from opening a stall by the target char , DaxterSoul trying to tell you how to handle the packet itself and the chat type byte


anyways when i back home i will send to you the code that you want ..
Thanks alot..
How i can contact with you?
Mr.Awesome1337 is offline  
Old   #6
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,248
Received Thanks: 459
Quote:
Originally Posted by Mr.Awesome1337 View Post
Thanks alot..
How i can contact with you?
im sry i forget you yesterday i was so tired ,
skype : eslam.galull

i will post the code at night today isa
Eslam Galull is offline  
Old   #7
 
elite*gold: 53
Join Date: Sep 2014
Posts: 99
Received Thanks: 34
Quote:
Originally Posted by Eslam Galull View Post
im sry i forget you yesterday i was so tired ,
skype : eslam.galull

i will post the code at night today isa
ok thanks iam waiting
Mr.Awesome1337 is offline  
Old   #8
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,248
Received Thanks: 459
0x30B


0x3026

P.S we just try to help you as somebody else helped us before, next time no one would gives you a ready to use Code

G.L
Eslam Galull is offline  
Old   #9
 
elite*gold: 0
Join Date: Feb 2009
Posts: 40
Received Thanks: 4
Eslam , can i ask why u create new thread for every if & elseif (_pck.Opcode == 0xZZZZ) case ?
theking200051 is offline  
Old   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 138
Received Thanks: 13
iam trying to get character name in general chat but always i get its id, how can i get the character name ?

case 1:
uint num2 = current.ReadUInt32();
string str5 = current.ReadAscii();
String timeStampx = GetTimestamp(DateTime.Now);
Globals.MainWindow.richTextBox2.AppendText("[" + timeStampx + "](General) " + num2 + " : " + str5 + "\r\n");


break;
memoxl is offline  
Old   #11
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,248
Received Thanks: 459
It was an old src , now i just run it in a packet handler moud.


You cant get char name in all chat untill u parse single spawn packet
Eslam Galull is offline  
Old   #12
 
elite*gold: 0
Join Date: Jan 2009
Posts: 138
Received Thanks: 13
Quote:
Originally Posted by Eslam Galull View Post
It was an old src , now i just run it in a packet handler moud.


You cant get char name in all chat untill u parse single spawn packet
can you please show me how to parse it ? and put character name in all chat case ?

Thanks in advance
memoxl is offline  
Old   #13
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,248
Received Thanks: 459
You want me give you a ready to use codes , so u can makes your auto events for your coming server ?
Eslam Galull is offline  
Old   #14
 
elite*gold: 0
Join Date: Jan 2009
Posts: 138
Received Thanks: 13
Quote:
Originally Posted by Eslam Galull View Post
You want me give you a ready to use codes , so u can makes your auto events for your coming server ?
iam not requesting a ready to use codes... i requested a guide ... anyway thanks.
memoxl is offline  
Old   #15

 
elite*gold: 0
Join Date: Aug 2015
Posts: 1,571
Received Thanks: 906
Quote:
Originally Posted by memoxl View Post
iam not requesting a ready to use codes... i requested a guide ... anyway thanks.
parse 3015, 3017, 3019 (single & group spawn packets)

save nearby players in a dictionary (or a custom list) and delete players by UniqueID upon receiving 0x3016 (gameobj despawn)

Code:
if(_nearbyPlayers.ContainsKey(uniqueidfromchatpacket))
   string charname = _nearbyPlayers[uniqueidfromchatpacket];
TIP: you don't need to parse the whole thing. google BinaryReader.Position


B1Q is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Help] Weather Packet (My First Packet)
delete this thread.
95 Replies - CO2 PServer - Discussions / Questions
Understanding the Packet System - Basics of a Packet explained
Read the advice first... *****************UPDATED 12/11/2011********************************* **** ADDED VB6 PROXY BOT SOURCE-CODE, WORKING...
30 Replies - Cabal Main - Discussions / Questions
[Request] Packet Structure for CharData Packet
can someone tell me which structure the CharData packet has? i would really appreciate this, since im still noob in such things. its just too high...
4 Replies - SRO Ask the Experts
[Question] Packet data , packet editing ??
I would like to know : What is packet data? How do i get the address for hacking a item in game? How to use it ??
2 Replies - 9Dragons



All times are GMT +2. The time now is 06:02.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.