summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-03 04:07:58 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-03 17:12:49 +0300
commitdc45270e96f73ac8cf45d62f9160fb02fecaf573 (patch)
tree1cdc14abc36a1ea936f67ef22b22a1aa8d779d65 /src
parent4cbad25cc0fb6dea1fd37b054f86f02673836030 (diff)
downloadhercules-dc45270e96f73ac8cf45d62f9160fb02fecaf573.tar.gz
hercules-dc45270e96f73ac8cf45d62f9160fb02fecaf573.tar.bz2
hercules-dc45270e96f73ac8cf45d62f9160fb02fecaf573.tar.xz
hercules-dc45270e96f73ac8cf45d62f9160fb02fecaf573.zip
Fix version for packet 0x08c0 ZC_ACK_SE_CASH_ITEM_LIST2.
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c9
-rw-r--r--src/map/packets.h7
2 files changed, 14 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index db9224329..557d6216c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -17791,7 +17791,9 @@ void clif_parse_CashShopBuy(int fd, struct map_session_data *sd) {
void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) __attribute__((nonnull (2)));
/* [Ind/Hercules] */
-void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) {
+void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd)
+{
+#if PACKETVER >= 20110222
short tab = RFIFOW(fd, 2);
int j;
@@ -17810,9 +17812,12 @@ void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) {
}
WFIFOSET(fd, 10 + ( clif->cs.item_count[tab] * 6 ));
+#endif
}
+
/* [Ind/Hercules] */
-void clif_maptypeproperty2(struct block_list *bl,enum send_target t) {
+void clif_maptypeproperty2(struct block_list *bl,enum send_target t)
+{
#if PACKETVER >= 20121010
struct packet_maptypeproperty2 p;
struct map_session_data *sd = NULL;
diff --git a/src/map/packets.h b/src/map/packets.h
index 2b2b2a820..47ec9e29c 100644
--- a/src/map/packets.h
+++ b/src/map/packets.h
@@ -1901,6 +1901,13 @@ packet(0x96e,-1,clif->ackmergeitems);
packet(0x02f6,7,clif->pDull,2); // CZ_IRMAIL_LIST
#endif
+// 2011-02-22aRagexe
+#if PACKETVER >= 20110222
+// shuffle packets not added
+// new packets
+ packet(0x08c0,-1); // ZC_ACK_SE_CASH_ITEM_LIST2
+#endif
+
//2011-07-18aRagexe (Thanks to Yommy!)
#if PACKETVER >= 20110718
packet(0x0844,2,clif->pCashShopOpen,2);/* tell server cashshop window is being open */