[Request] packets

04/18/2010 16:45 folip5#1
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
04/18/2010 20:00 ChingChong23#2
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.
04/18/2010 20:04 gabrola#3
You don't know what Packet.Length is :facepalm: then why are u messing with a source?
04/18/2010 22:38 DarkMessiah#4
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is :facepalm: then why are u messing with a source?
seconded. what's the stallwindow packet do?
04/18/2010 23:25 Warlax#5
lmfao at this fail thread
04/19/2010 05:45 MasterFletch#6
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.
04/19/2010 15:56 folip5#7
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is :facepalm: 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.
04/19/2010 15:59 folip5#8
Quote:
Originally Posted by gabrola View Post
You don't know what Packet.Length is :facepalm: 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
04/20/2010 23:11 Trigorio#9
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..
07/03/2010 20:15 folip5#10
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 shits 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.
07/04/2010 02:17 ImmuneOne#11
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.
07/04/2010 09:56 MonstersAbroad#12
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..
07/04/2010 12:02 Ian*#13
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

[Only registered and activated users can see links. Click Here To Register...]

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.
07/04/2010 12:31 ImmuneOne#14
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?
07/04/2010 12:37 Ian*#15
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 balls isn't worth anything to me :P