summaryrefslogtreecommitdiff
path: root/src/emap/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-05 20:24:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-05 20:24:11 +0300
commit30df3dc33ff6b36309efca4c23af82a68ee35ca6 (patch)
treed3e58ab441deee63b69cea794a336c224f136a8b /src/emap/packets_struct.h
parent767fc78589716529874626d6adecbec9e0515680 (diff)
downloadevol-hercules-30df3dc33ff6b36309efca4c23af82a68ee35ca6.tar.gz
evol-hercules-30df3dc33ff6b36309efca4c23af82a68ee35ca6.tar.bz2
evol-hercules-30df3dc33ff6b36309efca4c23af82a68ee35ca6.tar.xz
evol-hercules-30df3dc33ff6b36309efca4c23af82a68ee35ca6.zip
Reimpliment packet 0x2e1 for old clients.
Diffstat (limited to 'src/emap/packets_struct.h')
-rw-r--r--src/emap/packets_struct.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/emap/packets_struct.h b/src/emap/packets_struct.h
index 9a030ce..52b0dc5 100644
--- a/src/emap/packets_struct.h
+++ b/src/emap/packets_struct.h
@@ -222,4 +222,28 @@ struct packet_unit_walking_old {
#endif
} __attribute__((packed));
+struct packet_damage_old {
+ short PacketType;
+ unsigned int GID;
+ unsigned int targetGID;
+ unsigned int startTime;
+ int attackMT;
+ int attackedMT;
+#if PACKETVER < 20071113
+ short damage;
+#else
+ int damage;
+#endif
+//#if PACKETVER >= 20131223
+// unsigned char is_sp_damaged;
+//#endif
+ short count;
+ unsigned char action;
+#if PACKETVER < 20071113
+ short leftDamage;
+#else
+ int leftDamage;
+#endif
+} __attribute__((packed));
+
#endif /* EVOL_MAP_PACKETS_STRUCT_H */