From 57090ac78ed1b4f867c6c09763e54ac0f8410cf7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Dec 2018 20:36:43 +0300 Subject: Add missing result values for packet ZC_PC_PURCHASE_RESULT --- src/map/clif.c | 2 ++ src/map/npc.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/map/clif.c b/src/map/clif.c index 362264226..45f029487 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11448,6 +11448,8 @@ static void clif_parse_NpcBuySellSelected(int fd, struct map_session_data *sd) /// 1 = "You do not have enough zeny." /// 2 = "You are over your Weight Limit." /// 3 = "Out of the maximum capacity, you have too many items." +/// 9 = "Amounts are exceeded the possession of the item is not available for purchase." +/// 10 = "Props open-air store sales will be traded in RODEX" static void clif_npc_buy_result(struct map_session_data *sd, unsigned char result) { int fd; diff --git a/src/map/npc.c b/src/map/npc.c index 7f57a9c50..c59988c00 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1948,7 +1948,11 @@ static int npc_buylist(struct map_session_data *sd, struct itemlist *item_list) break; case ADDITEM_OVERAMOUNT: +#if PACKETVER >= 20110705 + return 9; +#else return 2; +#endif } value = pc->modifybuyvalue(sd,value); -- cgit v1.2.3-60-g2f50