PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Packet size (2D - KR)

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097
Display posts from previous:   

Author Message
coltain



Joined: 20 Mar 2007
Posts: 97
Location: Poland

PostPosted: Sat Mar 29, 2008 8:41 am    Post subject: Packet size (2D - KR) Reply with quote

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 ?

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Sun Mar 30, 2008 8:47 am    Post subject: Reply with quote

Did you try to set the size to variable and do the calculation
of the packets this way:

Code:

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

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty