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
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.
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.
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.
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
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..
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.
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
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..
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
While theres a thread. Say I had this packet just logged
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.
[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