Register for your free account! | Forgot your password?

You last visited: Today at 19:29

  • 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 06/30/2019, 05:28   #16

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
I said it up above but you probably didn't even read because it wasn't a ready copy/paste code... moron
sarkoplata is offline  
Old 06/30/2019, 10:53   #17
 
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);
    } 
}  
Quote:
Originally Posted by sarkoplata View Post
I said it up above but you probably didn't even read because it wasn't a ready copy/paste code... moron
WTF is wrong with you ..
i was asking about something else already..

the code is way different than that is posted ..
Code:
                                if (FilterMain.Prestige_opcodes.Contains(prestigeop))
                                {
                                    Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][opcode captured]");
                                    try
                                    {
                                        Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][try]");
                                        switch (_pck.ReadUInt8())
                                        {

                                            case 0x11:
                                                {
                                                    Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][0x11]");

                                                        int wait = 0;
                                                        while (wait < 3)
                                                        {
                                                            if (wait == 0)
                                                            {
                                                                Packet cold = new Packet(0x70a2, false, false);
                                                                cold.WriteInt32(273);
                                                                cold.WriteInt8(1);
                                                                m_RemoteSecurity.Send(cold);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 1;
                                                            }
                                                            else if (wait == 1)
                                                            {
                                                                Packet fire = new Packet(0x70a2, false, false);
                                                                fire.WriteInt32(274);
                                                                fire.WriteInt8(1);
                                                                m_RemoteSecurity.Send(fire);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 2;
                                                            }
                                                            else if (wait == 2)
                                                            {
                                                                Packet light = new Packet(0x70a2, false, false);
                                                                light.WriteInt32(275);
                                                                light.WriteInt8(1);
                                                                m_RemoteSecurity.Send(light);
                                                                Thread.Sleep(50);
                                                                wait = 3;
                                                                Send(false);
                                                            }
                                                            continue;
                                                        }
                                                }
                                                break;

                                            case 0x12:
                                                {
                                                    Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][0x12]");

                                                        int wait = 0;
                                                        while (wait < 3)
                                                        {
                                                            if (wait == 0)
                                                            {
                                                                Packet cold = new Packet(0x70a2, false, false);
                                                                cold.WriteInt32(273);
                                                                cold.WriteInt8(1);
                                                                m_RemoteSecurity.Send(cold);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 1;
                                                            }
                                                            else if (wait == 1)
                                                            {
                                                                Packet fire = new Packet(0x70a2, false, false);
                                                                fire.WriteInt32(274);
                                                                fire.WriteInt8(1);
                                                                m_RemoteSecurity.Send(fire);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 2;
                                                            }
                                                            else if (wait == 2)
                                                            {
                                                                Packet light = new Packet(0x70a2, false, false);
                                                                light.WriteInt32(275);
                                                                light.WriteInt8(1);
                                                                m_RemoteSecurity.Send(light);
                                                                Thread.Sleep(50);
                                                                wait = 3;
                                                                Send(false);
                                                            }
                                                            continue;
                                                        }


                                                }
                                                break;

                                            case 0x13:
                                                {
                                                    Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][0x13]");

                                                        int wait = 0;
                                                        while (wait < 3)
                                                        {
                                                            if (wait == 0)
                                                            {
                                                                Packet cold = new Packet(0x70a2, false, false);
                                                                cold.WriteInt32(273);
                                                                cold.WriteInt8(1);
                                                                m_RemoteSecurity.Send(cold);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 1;
                                                            }
                                                            else if (wait == 1)
                                                            {
                                                                Packet fire = new Packet(0x70a2, false, false);
                                                                fire.WriteInt32(274);
                                                                fire.WriteInt8(1);
                                                                m_RemoteSecurity.Send(fire);
                                                                Send(true);
                                                                Thread.Sleep(50);
                                                                wait = 2;
                                                            }
                                                            else if (wait == 2)
                                                            {
                                                                Packet light = new Packet(0x70a2, false, false);
                                                                light.WriteInt32(275);
                                                                light.WriteInt8(1);
                                                                m_RemoteSecurity.Send(light);
                                                                Thread.Sleep(50);
                                                                wait = 3;
                                                                Send(false);
                                                            }
                                                            continue;
                                                        }
                                                    

                                                }
                                                break;
                                        }

                                    }

                                    catch
                                    {
                                        Logger.WriteLine(Logger.LogLevel.Warning, $"[On recieve from client][{opcode:X4}][{_pck.GetBytes().Length} bytes]");
                                        //continue;
                                    }


                                }
-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 +1. The time now is 19:31.


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