summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-11 03:17:02 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-22 06:33:28 +0300
commit327f8c62cf1515901fe0c64b5d0d772ac2d0ecb9 (patch)
treef36f7950c7837361194dfc8642070bd941834434 /src
parent4ad2108e53c32c767afe9c25ae47fb1584bc3822 (diff)
downloadhercules-327f8c62cf1515901fe0c64b5d0d772ac2d0ecb9.tar.gz
hercules-327f8c62cf1515901fe0c64b5d0d772ac2d0ecb9.tar.bz2
hercules-327f8c62cf1515901fe0c64b5d0d772ac2d0ecb9.tar.xz
hercules-327f8c62cf1515901fe0c64b5d0d772ac2d0ecb9.zip
Add packet ZC_EQUIPWIN_MICROSCOPE_V7.
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c3
-rw-r--r--src/map/packets_struct.h10
2 files changed, 12 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index dfb6aae06..4e55f7d0c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9327,6 +9327,9 @@ static void clif_viewequip_ack(struct map_session_data *sd, struct map_session_d
#endif
viewequip_list.headpalette = tsd->vd.hair_color;
viewequip_list.bodypalette = tsd->vd.cloth_color;
+#if PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
+ viewequip_list.body2 = tsd->vd.body_style;
+#endif
viewequip_list.sex = tsd->vd.sex;
clif->send(&viewequip_list, viewequip_list.PacketLength, &sd->bl, SELF);
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index d0815317f..e3aea5ed1 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -279,10 +279,15 @@ enum packet_headers {
#else
unequipitemackType = 0xac,
#endif
-#if PACKETVER >= 20150226
+#if PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
+ viewequipackType = 0xb03,
+#elif PACKETVER >= 20150226
viewequipackType = 0xa2d,
#elif PACKETVER >= 20120925
viewequipackType = 0x997,
+// [4144] not supported due other packets/structs not updated
+//#elif (PACKETVER_MAIN_NUM >= 20111207) || (PACKETVER_RE_NUM >= 20111122)
+// viewequipackType = 0x906,
#elif PACKETVER >= 20101124
viewequipackType = 0x859,
#else
@@ -1221,6 +1226,9 @@ struct packet_viewequip_ack {
#endif
int16 headpalette;
int16 bodypalette;
+#if PACKETVER_MAIN_NUM >= 20180801 || PACKETVER_RE_NUM >= 20180801 || PACKETVER_ZERO_NUM >= 20180808
+ int16 body2;
+#endif
uint8 sex;
struct EQUIPITEM_INFO list[MAX_INVENTORY];
} __attribute__((packed));