summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-07 06:02:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:21 +0300
commiteb54c762a3e9ca00fab5ff94a082861e1b70c0e0 (patch)
treeab3e0b504325ee704f28c4f3d2411b4588264644 /src/map/packets_struct.h
parent3e04d41cc450f65f004a6e5a45c5ce6f700b82b1 (diff)
downloadhercules-eb54c762a3e9ca00fab5ff94a082861e1b70c0e0.tar.gz
hercules-eb54c762a3e9ca00fab5ff94a082861e1b70c0e0.tar.bz2
hercules-eb54c762a3e9ca00fab5ff94a082861e1b70c0e0.tar.xz
hercules-eb54c762a3e9ca00fab5ff94a082861e1b70c0e0.zip
Update packet ZC_PROPERTY_HOMUN.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 778a65050..30c5087e1 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -395,6 +395,12 @@ enum packet_headers {
#else
buyingStoreUpdateItemType = 0x81b,
#endif
+// probably can works also for < 20141223, but in 3CeaM packet size defined only for 20150513
+#if PACKETVER >= 20150513
+ hominfoType = 0x9f7,
+#else
+ hominfoType = 0x22e,
+#endif
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -2080,6 +2086,37 @@ struct PACKET_ZC_ACK_WEAPONREFINE {
#endif
} __attribute__((packed));
+struct PACKET_ZC_PROPERTY_HOMUN {
+ int16 packetType;
+ char name[NAME_LENGTH];
+ // Bit field, bit 0 : rename_flag (1 = already renamed), bit 1 : homunc vaporized (1 = true), bit 2 : homunc dead (1 = true)
+ uint8 flags;
+ uint16 level;
+ uint16 hunger;
+ uint16 intimacy;
+#if PACKETVER_RE_NUM >= 20180704
+ uint32 itemId;
+#else
+ uint16 itemId;
+#endif
+ uint16 atk2;
+ uint16 matk;
+ uint16 hit;
+ uint16 crit;
+ uint16 def;
+ uint16 mdef;
+ uint16 flee;
+ uint16 amotion;
+ uint32 hp;
+ uint32 maxHp;
+ uint16 sp;
+ uint16 maxSp;
+ uint32 exp;
+ uint32 expNext;
+ uint16 skillPoints;
+ uint16 range;
+} __attribute__((packed));
+
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
#pragma pack(pop)
#endif // not NetBSD < 6 / Solaris