summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-03-05 11:58:50 -0300
committershennetsind <ind@henn.et>2015-03-05 11:58:50 -0300
commit13b5a7a171f35f04dcd8e01ae3fcf3507694abbd (patch)
tree1c2612a123eb982c523705a3b951b7b7e6036560 /src
parent32dcef78987206a679ea52ad34266e0e1da3dc5c (diff)
downloadhercules-13b5a7a171f35f04dcd8e01ae3fcf3507694abbd.tar.gz
hercules-13b5a7a171f35f04dcd8e01ae3fcf3507694abbd.tar.bz2
hercules-13b5a7a171f35f04dcd8e01ae3fcf3507694abbd.tar.xz
hercules-13b5a7a171f35f04dcd8e01ae3fcf3507694abbd.zip
Fixing vending on 2014-10-22 and above
Thanks to Dastgir for bringing this to my attention. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 029080958..47b0a5f45 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6183,6 +6183,14 @@ void clif_openvending(struct map_session_data* sd, int id, struct s_vending* ven
clif->addcards(WFIFOP(fd,22+i*22), &sd->status.cart[index]);
}
WFIFOSET(fd,WFIFOW(fd,2));
+
+#if PACKETVER >= 20141022
+ /** should go elsewhere perhaps? it has to be bundled with this however. **/
+ WFIFOHEAD(fd, 3);
+ WFIFOW(fd, 0) = 0xa28;
+ WFIFOB(fd, 2) = 0;/** 1 is failure. our current responses to failure are working so not yet implemented **/
+ WFIFOSET(fd, 3);
+#endif
}