Register for your free account! | Forgot your password?

You last visited: Today at 18:38

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

Advertisement



Packet write problem ..

Discussion on Packet write problem .. within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Packet write problem ..

i have this packet
Code:
[6/26/2019 6:01:50 AM][Warning] -> [On recieve from client][70A2][5 bytes]
0000000000   12 01 00 00 01                                    ................

i want to resend it, a couple of times.. can anyone provide me with the proper c# code ? ..

am using kryl SRC btw !..
-Prestige.. is offline  
Old 06/26/2019, 18:02   #2
 
elite*gold: 0
Join Date: Apr 2016
Posts: 285
Received Thanks: 67
for (int i = 0; i < 100; i++)
{
//send packet here!
}
hoangphan7 is offline  
Old 06/26/2019, 23:59   #3
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by hoangphan7 View Post
for (int i = 0; i < 100; i++)
{
//send packet here!
}
thats what i need ...
i want the packet code ..

like
packet x = new packet(0x70a2, true)
smthing
smthing
smthing
-Prestige.. is offline  
Old 06/27/2019, 03:14   #4
 
elite*gold: 0
Join Date: Apr 2016
Posts: 285
Received Thanks: 67
packet x = new packet(0x70a2, true);
x.WriteUint32(274);
x.WriteUint8(1);
m_RemoteSecurity.Send(x);
Send(true);
hoangphan7 is offline  
Old 06/27/2019, 13:57   #5
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by hoangphan7 View Post
packet x = new packet(0x70a2, true);
x.WriteUint32(274);
x.WriteUint8(1);
m_RemoteSecurity.Send(x);
Send(true);


thanks ..
now i want to send those 3 packets ..

Code:
                                        Packet x = new Packet(0x70a2, true);
                                        x.WriteInt32(274);
                                        x.WriteUInt8(1);
                                        m_RemoteSecurity.Send(x);
                                        Send(true);


                                        Packet y = new Packet(0x70a2, true);
                                        y.WriteInt32(273);
                                        y.WriteUInt8(1);
                                        m_RemoteSecurity.Send(y);
                                        Send(true);

                                        Packet z = new Packet(0x70a2, true);
                                        z.WriteInt32(275);
                                        z.WriteUInt8(1);
                                        m_RemoteSecurity.Send(z);
                                        Send(true);


but it sends only the first one .. which is x

how can i send x,y,z all in one command ?
-Prestige.. is offline  
Old 06/28/2019, 02:05   #6

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
what's the "true" parameter for? is 0x70a2 an encrypted packet?
sarkoplata is offline  
Old 06/28/2019, 07:06   #7
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by sarkoplata View Post
what's the "true" parameter for? is 0x70a2 an encrypted packet?
idk the true param .. but 0x70a2 isn't enc.
-Prestige.. is offline  
Old 06/28/2019, 07:08   #8

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
then change it to be new Packet(0x70a2)...
sarkoplata is offline  
Old 06/28/2019, 08:17   #9
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by sarkoplata View Post
then change it to be new Packet(0x70a2)...
i already changed it ..

the problem is ..
I praise 1 packet and want to send 3 packets .. (it only sends one)
so... either i am allowed to send packets as much as i praised ..
or there is a command to write a new packet .. which is like...
Code:
packetwriter *** = new packetwriter();
***.writeuint32(aaa);

m_localsecurity.send(***); ([COLOR="Red"]incase of KRYL SRC[/COLOR])
send(true);
continue;

i already tried that but i gives me error .. can't convert framework packetwriter to packet


any suggestions ?...
-Prestige.. is offline  
Old 06/28/2019, 08:35   #10
 
elite*gold: 0
Join Date: Jun 2019
Posts: 1
Received Thanks: 0
Why this problems is coming in our life???

Problems are giving various types of challenges in our life and they will boost your mind set and standard of living.
jyotsna3003 is offline  
Old 06/28/2019, 08:39   #11

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
The code in the first post doesn't seem problematic at all.

I believe the issue may be with the server response. You're sending another mastery levelup packet without waiting for a server response. The server might be ignoring the ones after the first one.

To test it, you might put a little Thread.Sleep() in between sending packets. If it does the job, then it's as I said. Obviously sleeping the entire thread won't work on a real case, you'll have to check the response and resend the packet.
sarkoplata is offline  
Old 06/28/2019, 09:59   #12
 
elite*gold: 0
Join Date: Apr 2016
Posts: 285
Received Thanks: 67
Send/Recever packet performed sequentially. One Packet at a time.
You should use for loop or while

simple ex

PHP Code:
int wait 0;
while (
wait 3)
{
    if (
wait == 0)
    {
    
//send packet 1
    
wait 1;
    } 
    else if (
wait == 1)
    {
    
//send packet 2
    
wait 2;
    } 
    else if (
wait == 2)
    {
    
//send packet 3
    
wait 3;
    }

hoangphan7 is offline  
Old 06/29/2019, 04:30   #13
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by hoangphan7 View Post
Send/Recever packet performed sequentially. One Packet at a time.
You should use for loop or while

simple ex

PHP Code:
int wait 0;
while (
wait 3)
{
    if (
wait == 0)
    {
    
//send packet 1
    
wait 1;
    } 
    else if (
wait == 1)
    {
    
//send packet 2
    
wait 2;
    } 
    else if (
wait == 2)
    {
    
//send packet 3
    
wait 3;
    }

didn't work
-Prestige.. is offline  
Old 06/29/2019, 13:50   #14
 
elite*gold: 0
Join Date: Apr 2016
Posts: 285
Received Thanks: 67
Quote:
Originally Posted by -Prestige.. View Post
didn't work
add delay each thread

HTML Code:
int wait = 0; 
while (wait < 3) 
{ 
    if (wait == 0) 
    { 
    //send packet 1 
    wait = 1;
    Sleep(10);
    }  
    else if (wait == 1) 
    { 
    //send packet 2 
    wait = 2; 
    Sleep(10);
    }  
    else if (wait == 2) 
    { 
    //send packet 3 
    wait = 3; 
    Sleep(10);
    } 
}  
hoangphan7 is offline  
Thanks
1 User
Old 06/30/2019, 05:06   #15
 
elite*gold: 0
Join Date: May 2017
Posts: 108
Received Thanks: 17
Quote:
Originally Posted by hoangphan7 View Post
add delay each thread

HTML Code:
int wait = 0; 
while (wait < 3) 
{ 
    if (wait == 0) 
    { 
    //send packet 1 
    wait = 1;
    Sleep(10);
    }  
    else if (wait == 1) 
    { 
    //send packet 2 
    wait = 2; 
    Sleep(10);
    }  
    else if (wait == 2) 
    { 
    //send packet 3 
    wait = 3; 
    Sleep(10);
    } 
}  
worked .. ty
-Prestige.. is offline  
Reply


Similar Threads Similar Threads
[Help] Weather Packet (My First Packet)
06/07/2014 - CO2 Private Server - 95 Replies
delete this thread.
Understanding the Packet System - Basics of a Packet explained
11/03/2012 - Cabal Online - 30 Replies
Read the advice first... *****************UPDATED 12/11/2011********************************* **** ADDED VB6 PROXY BOT SOURCE-CODE, WORKING EXAMPLE OF PROXY BOT****** ************************************************* ***************** The following CONSTANTS have been flagged, this means they appear in EVERY Packet exchange from client to server and server to client Red = Packet Id - Each packet has a unique ID number, in this case AA02, Each Packet id Relates to a specific...
[Request] Packet Structure for CharData Packet
05/16/2011 - Silkroad Online - 4 Replies
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 for me/ too much information for my head. :handsdown: S->C(3013)...
[Question] Packet data , packet editing ??
10/13/2009 - 9Dragons - 2 Replies
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 ??



All times are GMT +2. The time now is 18:38.


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