From 13b5a7a171f35f04dcd8e01ae3fcf3507694abbd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 5 Mar 2015 11:58:50 -0300 Subject: Fixing vending on 2014-10-22 and above Thanks to Dastgir for bringing this to my attention. Signed-off-by: shennetsind --- src/map/clif.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/clif.c') 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 } -- cgit v1.2.3-60-g2f50