summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-31 11:46:12 -0300
committershennetsind <ind@henn.et>2013-07-31 11:46:12 -0300
commit298f02f380d4de88129f0a296456d461cbc6505e (patch)
tree156d79a8237d6e5553a0249d4c8b8035f6c420e0 /src/map/packets_struct.h
parent2d916eb9db83b67983f8135d2806f2c6fc726a2c (diff)
downloadhercules-298f02f380d4de88129f0a296456d461cbc6505e.tar.gz
hercules-298f02f380d4de88129f0a296456d461cbc6505e.tar.bz2
hercules-298f02f380d4de88129f0a296456d461cbc6505e.tar.xz
hercules-298f02f380d4de88129f0a296456d461cbc6505e.zip
Fixed Bug #7605
For packetver 2009 and below. 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.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index d56e9ce01..b514ab8df 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -53,6 +53,9 @@ enum packet_headers {
#endif
status_change2Type = 0x43f,
status_change_endType = 0x196,
+#if PACKETVER < 20091103
+ spawn_unit2Type = 0x7c,
+#endif
#if PACKETVER < 4
spawn_unitType = 0x79,
#elif PACKETVER < 7
@@ -173,7 +176,33 @@ struct packet_dropflooritem {
unsigned char subY;
short count;
} __attribute__((packed));
-
+#if PACKETVER < 20091103
+struct packet_spawn_unit2 {
+ short PacketType;
+ unsigned char objecttype;
+ unsigned int GID;
+ short speed;
+ short bodyState;
+ short healthState;
+ short effectState;
+ short head;
+ short weapon;
+ short accessory;
+ short job;
+ short shield;
+ short accessory2;
+ short accessory3;
+ short headpalette;
+ short bodypalette;
+ short headDir;
+ bool isPKModeON;
+ unsigned char sex;
+ unsigned char PosDir[3];
+ unsigned char xSize;
+ unsigned char ySize;
+ short clevel;
+} __attribute__((packed));
+#endif
struct packet_spawn_unit {
short PacketType;
#if PACKETVER >= 20091103