Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] SENDING PACKETS IN A ROW

Discussion on [HELP] SENDING PACKETS IN A ROW within the SRO Coding Corner forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
[HELP] SENDING PACKETS IN A ROW

Hello all, im having a problem while sending 2 or more packets one after another.
sending movetouser packet, then recalluser packet but it seems that however i manipulate the code, it will always send succesfully one packet, and not the 2 of em, also happens if i spam the packet (even 1) too much, its just doesnt work anymore, whish i could know the source of the problem or how to bypass it,
thanks in advance.
am i missing something? please help me !
Isoline* is offline  
Old 09/07/2014, 16:58   #2
 
LastThief*'s Avatar
 
elite*gold: 60
Join Date: Feb 2012
Posts: 3,942
Received Thanks: 6,474
After moving to user you have to confirm your spawn.
LastThief* is offline  
Old 09/09/2014, 16:01   #3


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Well maybe it's sending the 2nd packet while its still teleporting..
Try something like loadmonster then recalluser and check if it works
​Exo is offline  
Old 09/11/2014, 15:21   #4
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by LastThief* View Post
After moving to user you have to confirm your spawn.
thanks alot !
how do i do that? by sending this "spawn" packet right after the movetouser packet?
and which packets is it, or how do i find it?

and it also happens for example in the notice packet, if i spam it too much its just stop working.
Isoline* is offline  
Old 09/13/2014, 05:34   #5
 
elite*gold: 2
Join Date: Aug 2011
Posts: 833
Received Thanks: 1,130
Quote:
Originally Posted by LastThief* View Post
After moving to user you have to confirm your spawn.
Yes, you cannot send the second packet until your spawn is confirmed. Try using a thread.
Timlock is offline  
Old 09/13/2014, 13:00   #6
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by Timlock View Post
Yes, you cannot send the second packet until your spawn is confirmed. Try using a thread.
can you give an example on how to do that ? this is my code:
can you be of help?

Code:
Packet movetouser = new Packet(0x7010, true);
            movetouser.WriteUInt16(8);
            movetouser.WriteAscii("test");
            Agent.Send(movetouser);
            
            Log("move to user packet sent " + System.DateTime.Now);

            if (movetouser.Opcode == 0x7010)
            {
                Packet p = new Packet(0x3015); -- is this the spawn confirm? 
                Agent.Send(p);     
            }

  
            Thread.Sleep(1000);

            Packet recalluser = new Packet(0x7010, true);
            recalluser.WriteUInt16(17);
            recalluser.WriteAscii("test");
            Agent.Send(recalluser);
Isoline* is offline  
Old 09/16/2014, 15:54   #7
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
In your Agent.cs, put this :
Code:
else if (packet.Opcode == 0x34B5) //spawn confirmation packet
                        {
                            Packet p = new Packet(0x34b6);
                            Send(p);
                        }
magicanoo is offline  
Old 09/16/2014, 18:35   #8
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by magicanoo View Post
In your Agent.cs, put this :
Code:
else if (packet.Opcode == 0x34B5) //spawn confirmation packet
                        {
                            Packet p = new Packet(0x34b6);
                            Send(p);
                        }
Thanks, ill try, the, is there a confirmation packet to others aswell ? Lets say for the notice pa cket for example for example?
Isoline* is offline  
Old 09/18/2014, 06:39   #9
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
Quote:
Originally Posted by eitai123 View Post
Thanks, ill try, the, is there a confirmation packet to others aswell ? Lets say for the notice pa cket for example for example?
No, just this one. It applies on any sort of teleportation (movetouser/warp/being recalled/gotown/reverse usage).
magicanoo is offline  
Old 09/18/2014, 08:23   #10
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by magicanoo View Post
No, just this one. It applies on any sort of teleportation (movetouser/warp/being recalled/gotown/reverse usage).
Ok, maybe you can tell why this specefic packets are for the confirmation ? (The opcode number itself)
Or how did you get there?

Quote:
Originally Posted by magicanoo View Post
No, just this one. It applies on any sort of teleportation (movetouser/warp/being recalled/gotown/reverse usage).
i tried what you said but even though you confirmed the spawn it still didnt execute both packets eventually.

Code:
/movetouser packet sent. 18/09/2014 7:02:37 PM
/recalluser packet sent. 18/09/2014 7:02:38 PM
[C->S][7010][8 bytes]
0000000000   08 00 04 00 74 65 73 74                           ....test........
   

[S->C][3017][3 bytes]
0000000000   02 01 00                                          ................
   

[S->C][3019][4 bytes]
0000000000   52 3A 00 00                                       R:..............
   

[S->C][3018][0 bytes]
   

[S->C][3017][3 bytes]
0000000000   02 02 00                                          ................
   

[S->C][3019][8 bytes]
0000000000   24 01 00 00 34 01 00 00                           $...4...........
   

[S->C][3018][0 bytes]
   

[S->C][B010][3 bytes]
0000000000   01 08 00                                          ................
   

[S->C][34B5][2 bytes]
0000000000   A7 61                                             a..............
   

[C->S][7010][8 bytes]
0000000000   11 00 04 00 74 65 73 74                           ....test........
   

[C->S][34B6][0 bytes]
   

[S->C][34A5][0 bytes]
   

[S->C][3013][461 bytes]

i think it still didnt confirmed the spawn, i dun know why
can you help?
Isoline* is offline  
Old 09/20/2014, 13:04   #11
 
Muhab*'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 885
Received Thanks: 1,419
Quote:
Originally Posted by eitai123 View Post
Ok, maybe you can tell why this specefic packets are for the confirmation ? (The opcode number itself)
Or how did you get there?


i tried what you said but even though you confirmed the spawn it still didnt execute both packets eventually.

Code:
/movetouser packet sent. 18/09/2014 7:02:37 PM
/recalluser packet sent. 18/09/2014 7:02:38 PM
[C->S][7010][8 bytes]
0000000000   08 00 04 00 74 65 73 74                           ....test........
   

[S->C][3017][3 bytes]
0000000000   02 01 00                                          ................
   

[S->C][3019][4 bytes]
0000000000   52 3A 00 00                                       R:..............
   

[S->C][3018][0 bytes]
   

[S->C][3017][3 bytes]
0000000000   02 02 00                                          ................
   

[S->C][3019][8 bytes]
0000000000   24 01 00 00 34 01 00 00                           $...4...........
   

[S->C][3018][0 bytes]
   

[S->C][B010][3 bytes]
0000000000   01 08 00                                          ................
   

[S->C][34B5][2 bytes]
0000000000   A7 61                                             a..............
   

[C->S][7010][8 bytes]
0000000000   11 00 04 00 74 65 73 74                           ....test........
   

[C->S][34B6][0 bytes]
   

[S->C][34A5][0 bytes]
   

[S->C][3013][461 bytes]

i think it still didnt confirmed the spawn, i dun know why
can you help?
That should work..
PHP Code:
                            if ((current.Opcode == 0x3017) && (current.ReadUInt8() == 2))
                            {
                                
Packet packet3 = new Packet(0x34b6);
                                
Send(packet3);
                            } 
just add it into your Agent thread.
Muhab* is offline  
Old 09/22/2014, 15:14   #12
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by Muhab Ashraf View Post
That should work..
PHP Code:
                            if ((current.Opcode == 0x3017) && (current.ReadUInt8() == 2))
                            {
                                
Packet packet3 = new Packet(0x34b6);
                                
Send(packet3);
                            } 
just add it into your Agent thread.
Why it should work what is the difference ?
Isoline* is offline  
Old 09/22/2014, 15:22   #13
 
LastThief*'s Avatar
 
elite*gold: 60
Join Date: Feb 2012
Posts: 3,942
Received Thanks: 6,474
What's your problem exactly ?
LastThief* is offline  
Old 09/22/2014, 15:45   #14
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by LastThief* View Post
What's your problem exactly ?
Im connecting via clientless client to a GM account, sending movetouser packet and then recalluser packet, and its just doesnt work, only the movetouser packet actually works, after that its not sending the recalluser packet as it should be, tried adding delays to load, confirm spawn, as you can see in the previous posts and nothing worked properly.
Isoline* is offline  
Old 09/22/2014, 18:09   #15
 
LastThief*'s Avatar
 
elite*gold: 60
Join Date: Feb 2012
Posts: 3,942
Received Thanks: 6,474
Quote:
Originally Posted by eitai123 View Post
Im connecting via clientless client to a GM account, sending movetouser packet and then recalluser packet, and its just doesnt work, only the movetouser packet actually works, after that its not sending the recalluser packet as it should be, tried adding delays to load, confirm spawn, as you can see in the previous posts and nothing worked properly.
Okay to movetouser use this

Code:
Packet p = new Packet(0x7010);
            p.WriteUInt16(0x08);
            p.WriteAscii(PlayerName);
            Send(p);
            Console.WriteLine("Moved to user : " + PlayerName);
            Thread.Sleep(1000);
            Packet p2 = new Packet(0x34B6);
            Send(p2);
            Console.WriteLine("Spawn Confirmed");
Use this to recalluser

Code:
      Packet p = new Packet(0x7010);
                p.WriteUInt16(17);
                p.WriteAscii(CharName);
                Send(p);
                Console.WriteLine("Recalled character : " + CharName);
That should work.
LastThief* is offline  
Closed Thread


Similar Threads Similar Threads
Sending Packets
03/26/2019 - PW Hacks, Bots, Cheats, Exploits - 432 Replies
As per Smurfin's request: reposting of what I posted in the Prophet's bot thread. some example of functions you could use with sending packets (AutoIt code, see link below for C#): ;////Code for sending packets.
Sending Packets
11/29/2012 - AutoIt - 6 Replies
Hey, so I'm trying to send packets to a game called Pokemon World Online, I've been using WPE in order to sniff the packets, using WPE sending the packets its ridiculously easy so I've been trying to do the same with autoit script. After a lot of research I know that TCP function should do it but I've always failed to use the same socket as the same or even to listen to the right ports or something, I'm completely lost here. I know this can be done and I'm not asking for someone to...
Help sending packets
06/27/2012 - SRO Coding Corner - 2 Replies
well i knew that i need to put the packet in a byte array so i defined it BYTE pack = { 0x01, 0x00, 0x4F, 0x70, 0x20, 0x00, 0x04 }; and when i send it using the send through a socket like this
Help for sending packets
05/11/2012 - PW Hacks, Bots, Cheats, Exploits - 1 Replies
Hello Dear programmers, botovody! I am a novice programmer, and started programming in the language of Delphi! there is a couple of my works Каталог файлов - PwRuf - уникальный бот для Perfect World! But another question! I would like to implement the sending of packages to craft nirvana clothing, weapons. But I have a problem with traffic light emitted from the fact that the package that I send a very large ie 256 characters! Please help or point me where to...
Sending packets
10/12/2005 - Conquer Online 2 - 10 Replies
I've a question. Is it possible to send 1 packet multiple times at the exact same time?



All times are GMT +1. The time now is 00:58.


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.