Register for your free account! | Forgot your password?

You last visited: Today at 17:02

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

Advertisement



[Request] packets

Discussion on [Request] packets within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
[Request] packets

public byte[] StallWindow(uint Noob, Character C)
{
ushort PacketsType= 0x3f2;//packet.length PacketType; 758292; C.UID; ID; 272; 198; 6;
byte[] Packet = new byte[24];//ushort, ushort, uint, uint, uint, ushort,ushrot,ushort,ushort
fixed (byte* Ptr = Packet)
{
*((ushort*)Ptr) = (ushort)Packet.Length;
*((ushort*)Ptr) = (ushort)PacketsType;
*((uint*)Ptr) = (uint)758292;
*((uint*)Ptr) = (uint)C.UID;
*((uint*)Ptr) = (uint)Noob;
*((ushort*)Ptr) = (ushort)272;
*((byte*)Ptr) = (byte)198;
*((sbyte*)Ptr) = (sbyte)6;
}
return Packet
}
just needa someone to tell me what are Packet.Length;
Packettype 758292 C.UID ID 272 198 6
and don't post comments like this is pointers cuse i already know that and i know how to use them but i dunno what are the other stffs
folip5 is offline  
Old 04/18/2010, 20:00   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
uh, Packet.Length is the length of the packet (amount of bytes stored in the Packet array)
PacketsType looks like the packet ID (so when the client receives it, it knows what to do with the data)
C.UID is your characters unique ID, which this packet (and a lot of others) require for different reasons.
the rest i can't explain because i don't know what they are.
ChingChong23 is offline  
Old 04/18/2010, 20:04   #3
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
You don't know what Packet.Length is then why are u messing with a source?
gabrola is offline  
Thanks
1 User
Old 04/18/2010, 22:38   #4
 
elite*gold: 0
Join Date: Jan 2007
Posts: 177
Received Thanks: 57
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is then why are u messing with a source?
seconded. what's the stallwindow packet do?
DarkMessiah is offline  
Old 04/18/2010, 23:25   #5
 
elite*gold: 0
Join Date: Apr 2007
Posts: 906
Received Thanks: 1,431
***** at this fail thread
Warlax is offline  
Thanks
4 Users
Old 04/19/2010, 05:45   #6
 
elite*gold: 0
Join Date: Apr 2006
Posts: 35
Received Thanks: 9
Quote:
Originally Posted by folip5 View Post
public byte[] StallWindow(uint Noob, Character C)
{
ushort PacketsType= 0x3f2;//packet.length PacketType; 758292; C.UID; ID; 272; 198; 6;
byte[] Packet = new byte[24];//ushort, ushort, uint, uint, uint, ushort,ushrot,ushort,ushort
fixed (byte* Ptr = Packet)
{
*((ushort*)Ptr) = (ushort)Packet.Length;
*((ushort*)Ptr) = (ushort)PacketsType;
*((uint*)Ptr) = (uint)758292;
*((uint*)Ptr) = (uint)C.UID;
*((uint*)Ptr) = (uint)Noob;
*((ushort*)Ptr) = (ushort)272;
*((byte*)Ptr) = (byte)198;
*((sbyte*)Ptr) = (sbyte)6;
}
return Packet
}
just needa someone to tell me what are Packet.Length;
Packettype 758292 C.UID ID 272 198 6
and don't post comments like this is pointers cuse i already know that and i know how to use them but i dunno what are the other stffs
Have you tried the following code in your send packet function?

Code:
bool i = 10, b = 5;
if (i > b)
Console.WriteLine("your statemant is" + i);
This might solve your problem. It seems to be a very good piece of code.
MasterFletch is offline  
Thanks
2 Users
Old 04/19/2010, 15:56   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is then why are u messing with a source?
don't post unusefull posts just to get bigger post count post something usefull if you do it and if you don't wanna post anything usefull don't do it. lol'd. why don't you talk like you don't know what 198 6, etc are? cuse you don't know either lol.
folip5 is offline  
Old 04/19/2010, 15:59   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is then why are u messing with a source?
When you started "Coding" dunno if you did pvps did you knew everything and i knew what length is just wanted to get a full explanations didn't wanted to miss something so it wouldn't look stupid
folip5 is offline  
Old 04/20/2010, 23:11   #9
 
elite*gold: 0
Join Date: Jan 2007
Posts: 656
Received Thanks: 541
Quote:
Originally Posted by folip5 View Post
When you started "Coding" dunno if you did pvps did you knew everything and i knew what length is just wanted to get a full explanations didn't wanted to miss something so it wouldn't look stupid
Uhm I know gabrola and lol.. He wasn't as noob as you even when he first started... You shouldn't compare yourself to him..
Trigorio is offline  
Old 07/03/2010, 20:15   #10
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
Quote:
Originally Posted by Trigorio View Post
Uhm I know gabrola and lol.. He wasn't as noob as you even when he first started... You shouldn't compare yourself to him..
I didn't said that i am better, i said that he didn't know everything, maybe i am a big noob you were a big noob too so i don't really need your unneccecary opinion, if you wanna help just do it if you wanna talk craps and ***** do it on some others threat please, NO OFFENCE, IK i was like posting stupid stuffs in the past(A LOT) doesn't mean you should post stuffs like that.
folip5 is offline  
Old 07/04/2010, 02:17   #11
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by folip5 View Post
public byte[] StallWindow(uint Noob, Character C)
{
ushort PacketsType= 0x3f2;//packet.length PacketType; 758292; C.UID; ID; 272; 198; 6;
byte[] Packet = new byte[24];//ushort, ushort, uint, uint, uint, ushort,ushrot,ushort,ushort
fixed (byte* Ptr = Packet)
{
*((ushort*)Ptr) = (ushort)Packet.Length;
*((ushort*)Ptr) = (ushort)PacketsType;
*((uint*)Ptr) = (uint)758292;
*((uint*)Ptr) = (uint)C.UID;
*((uint*)Ptr) = (uint)Noob;
*((ushort*)Ptr) = (ushort)272;
*((byte*)Ptr) = (byte)198;
*((sbyte*)Ptr) = (sbyte)6;
}
return Packet
}
just needa someone to tell me what are Packet.Length;
Packettype 758292 C.UID ID 272 198 6
and don't post comments like this is pointers cuse i already know that and i know how to use them but i dunno what are the other stffs
Packet documented:
Quote:
Offset: 0 Value: 24 (PacketLength)
Offset: 2 Value: 1010 (PacketType)
Offset: 4 Value: 758292
Offset: 8 Value: %char_id (Hero Identification)
Offset: 12 Value: %noob (Whatever it means, you should search for references).
Offset: 16 Value: 272
Offset: 18 Value: 198
Offset: 19 Value: 6
This is how it should look like.
ImmuneOne is offline  
Thanks
1 User
Old 07/04/2010, 09:56   #12
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
While theres a thread. Say I had this packet just logged
Code:
Packet Nr 0. Client -> Server, Length : 56, PacketType: 2205
30 00 9D 08 04 00 00 00 00 00 00 00 00 00 00 00      ;0            
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 00 00 00      ;                
54 51 43 6C 69 65 6E 74
That's what a packet looks like just loged with a proxy anybody that didnt know that btw.

How do I put that into a packet structure. I got this out of it
{
PacketType)2205, 0, buffer)
Length(56, 2, buffer)
}
but thats it ? I dono how to get all its values etc..
MonstersAbroad is offline  
Thanks
1 User
Old 07/04/2010, 12:02   #13
 
Ian*'s Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 805
Received Thanks: 464
Quote:
Originally Posted by folip5 View Post
don't post unusefull posts just to get bigger post count post something usefull if you do it and if you don't wanna post anything usefull don't do it. lol'd. why don't you talk like you don't know what 198 6, etc are? cuse you don't know either lol.
You should follow your own advise.

And Type and Length should be obvious enough...

Type is what kind of packet it is

Length is how big it is



EDIT: And that's a really ugly packet struct... who gave you that?

Noob and char make it hard to tell which one goes to what, you need to be more specific in how you name these things. Your char could be a noob. the seller could be a char and you could be on your noob :O What if you forget?

Anyways, this may not be correct, haven't logged the packet myself but assuming 6 would be item count in the stall and 198 is a subtype. Can't be sure though. Just log a few of the same packets in different stalls and compare.

Quote:
Originally Posted by MonstersAbroad View Post
While theres a thread. Say I had this packet just logged
Code:
Packet Nr 0. Client -> Server, Length : 56, PacketType: 2205
30 00 9D 08 04 00 00 00 00 00 00 00 00 00 00 00      ;0            
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 00 00 00      ;                
54 51 43 6C 69 65 6E 74
That's what a packet looks like just loged with a proxy anybody that didnt know that btw.

How do I put that into a packet structure. I got this out of it
{
PacketType)2205, 0, buffer)
Length(56, 2, buffer)
}
but thats it ? I dono how to get all its values etc..
What did you do to trigger that packet? Haven't seen it before (if i have I cant remember what it is lol)

Doesn't look like anything useful. Theres a lot of packets being sent and received you don't need to worry about.
Ian* is offline  
Thanks
2 Users
Old 07/04/2010, 12:31   #14
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by Ian* View Post
What did you do to trigger that packet? Haven't seen it before (if i have I cant remember what it is lol)

Doesn't look like anything useful. Theres a lot of packets being sent and received you don't need to worry about.
It is an arena packet, how is this not useful?
ImmuneOne is offline  
Old 07/04/2010, 12:37   #15
 
Ian*'s Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 805
Received Thanks: 464
Like I said, I wasn't aware what the packet was. That's why I asked what he did to trigger it.

Never bothered to log it, and when you say it's an arena packet what do you mean?
Not a very specific definition :P JoinArena/ QuitArena/ Etc etc...

Doesn't really matter anyways. not to me that is idc about arena lol 2 exp ***** isn't worth anything to me :P
Ian* is offline  
Reply


Similar Threads Similar Threads
[Request] bot code that uses packets
06/15/2009 - Archlord - 0 Replies
if any if u guys have a source code of a bot(any language is ok) that uses packets injection (send-receive-analyze) (hopefully it has info about the encryption...) so i can learn few stuff from it! (i wont use the bot ever, im not active in this game....) also, if anyone recommends a third party library that can be used to modify packets (modify them before they are sent or received...) and thanks.
[Request]Packets
03/01/2009 - CO2 Programming - 0 Replies
Hello, Someone may could help me with the "Revive Here button" packets for client version 5017?
[Request] packets
02/17/2009 - CO2 Private Server - 0 Replies
hey all, can somebody please give me were i can find a full list of packets (Client version 5017) or tell me were i could get a list thanks all :)
[REQUEST] packets etc..
05/24/2008 - Kal Online - 4 Replies
ok iŽd be nice if somone make a tut how to send packets wich programm is needed what packets exactly doin i know 0 how packets work etc... ty for readn dun spam pls thx..
[Request Help] Packets
01/12/2008 - World of Warcraft - 0 Replies
Hello, I am new on this forum, so greetings to u all. I have a question about the packets sniffed by WPE. While capturing packets i noticed that there is a difference between 2 packets who do the same action For example : say Hello first time : 19 2A 53 D4 4C 98 00 00 00 00 01 00 00 00 68 65 6C 6C 6F 00 say Hello second time : E9 06 CF 12 C4 35 00 00 00 00 01 00 00 00 68 65 6C 6C 6F 00



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


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.