From 7b0361fb160a1126dc6f9873f87f8a02f704764e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 4 Aug 2013 13:09:27 -0300 Subject: Fixed Bug #7605 http://hercules.ws/board/tracker/issue-7605-problem-with-old-client-versions/ Signed-off-by: shennetsind --- src/map/packets_struct.h | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) (limited to 'src/map/packets_struct.h') diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index b514ab8df..053cd96b8 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -55,6 +55,7 @@ enum packet_headers { status_change_endType = 0x196, #if PACKETVER < 20091103 spawn_unit2Type = 0x7c, + idle_unit2Type = 0x78, #endif #if PACKETVER < 4 spawn_unitType = 0x79, @@ -177,6 +178,36 @@ struct packet_dropflooritem { short count; } __attribute__((packed)); #if PACKETVER < 20091103 +struct packet_idle_unit2 { + short PacketType; + unsigned char objecttype; + unsigned int GID; + short speed; + short bodyState; + short healthState; + short effectState; + short job; + short head; + short weapon; + short accessory; + short shield; + short accessory2; + short accessory3; + short headpalette; + short bodypalette; + short headDir; + unsigned int GUID; + short GEmblemVer; + short honor; + short virtue; + bool isPKModeON; + unsigned char sex; + unsigned char PosDir[3]; + unsigned char xSize; + unsigned char ySize; + unsigned char state; + short clevel; +} __attribute__((packed)); struct packet_spawn_unit2 { short PacketType; unsigned char objecttype; @@ -240,7 +271,7 @@ struct packet_spawn_unit { unsigned int GUID; short GEmblemVer; short honor; -#if PACKETVER >= 20091103 +#if PACKETVER > 7 int virtue; #else short virtue; @@ -265,6 +296,8 @@ struct packet_unit_walking { short PacketType; #if PACKETVER >= 20091103 short PacketLength; +#endif +#if PACKETVER > 7 unsigned char objecttype; #endif unsigned int GID; @@ -299,7 +332,7 @@ struct packet_unit_walking { unsigned int GUID; short GEmblemVer; short honor; -#if PACKETVER >= 20091103 +#if PACKETVER > 7 int virtue; #else short virtue; @@ -357,7 +390,7 @@ struct packet_idle_unit { unsigned int GUID; short GEmblemVer; short honor; -#if PACKETVER >= 20091103 +#if PACKETVER > 7 int virtue; #else short virtue; -- cgit v1.2.3-60-g2f50