Packet size (2D - KR)

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.
Post Reply
coltain
Grandmaster Poster
Posts: 159
Joined: Tue Mar 20, 2007 7:17 am

Packet size (2D - KR)

Post 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 ?
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post 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
Post Reply