Page 1 of 1

Packet size (2D - KR)

Posted: Sat Mar 29, 2008 4:41 am
by coltain
I wish to hook a packet.
It`s size is 20 bytes. All is ok in 2D client.
But I need set a packet size to 21 (for KR), when I set it KR works fine but 2D client freeze.

Setting variable size crashes 2D client.

Any idea how to solve this? Set a second (for KR) packet lenght ?

Posted: Sun Mar 30, 2008 4:47 am
by Pierce
Did you try to set the size to variable and do the calculation
of the packets this way:

Code: Select all

if(who.isUOKR)
 code for the 21 bytes KR packet here
else
 code for the 20 bytes 2D packet here
endif