summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-04 13:09:27 -0300
committershennetsind <ind@henn.et>2013-08-04 13:09:27 -0300
commit7b0361fb160a1126dc6f9873f87f8a02f704764e (patch)
treebde6c2a8deb928bf9f4ffb28810cb7928efa9536 /src/map/packets_struct.h
parentb543724967c794fe9c2370a61b00c1cdc9cddd6b (diff)
downloadhercules-7b0361fb160a1126dc6f9873f87f8a02f704764e.tar.gz
hercules-7b0361fb160a1126dc6f9873f87f8a02f704764e.tar.bz2
hercules-7b0361fb160a1126dc6f9873f87f8a02f704764e.tar.xz
hercules-7b0361fb160a1126dc6f9873f87f8a02f704764e.zip
Fixed Bug #7605
http://hercules.ws/board/tracker/issue-7605-problem-with-old-client-versions/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h39
1 files changed, 36 insertions, 3 deletions
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;