summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-05 20:36:43 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-12 23:24:46 +0300
commit57090ac78ed1b4f867c6c09763e54ac0f8410cf7 (patch)
treec3414f8a5b8a4c1ea4151ecaa9e84c236968248d /src
parentd50e10c533cb43d94abf27c7fbb8b5e6c73ce01f (diff)
downloadhercules-57090ac78ed1b4f867c6c09763e54ac0f8410cf7.tar.gz
hercules-57090ac78ed1b4f867c6c09763e54ac0f8410cf7.tar.bz2
hercules-57090ac78ed1b4f867c6c09763e54ac0f8410cf7.tar.xz
hercules-57090ac78ed1b4f867c6c09763e54ac0f8410cf7.zip
Add missing result values for packet ZC_PC_PURCHASE_RESULT
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/npc.c4
2 files changed, 6 insertions, 0 deletions
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);