summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-09 18:28:27 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-05 22:40:46 -0300
commit712c09c2c6d848243c3426aeb3dbdf730c1e0b08 (patch)
treeeac30a70f80e306e559caac27abfc00190e587ea /src/plugins
parent59863921348e17a62f239685e14e6cd7568bf101 (diff)
downloadhercules-712c09c2c6d848243c3426aeb3dbdf730c1e0b08.tar.gz
hercules-712c09c2c6d848243c3426aeb3dbdf730c1e0b08.tar.bz2
hercules-712c09c2c6d848243c3426aeb3dbdf730c1e0b08.tar.xz
hercules-712c09c2c6d848243c3426aeb3dbdf730c1e0b08.zip
[TMW2] Report back to script NST_CUSTOM purchases.
This allows to impose restrictions on amounts, for example.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 8cb425011..01be7c215 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -58534,7 +58534,7 @@ void HP_npc_trader_count_funds(struct npc_data *nd, struct map_session_data *sd)
}
return;
}
-bool HP_npc_trader_pay(struct npc_data *nd, struct map_session_data *sd, int price, int points) {
+bool HP_npc_trader_pay(struct npc_data *nd, struct map_session_data *sd, int price, int points, struct itemlist *item_list) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_npc_trader_pay_pre > 0) {
@@ -58550,7 +58550,7 @@ bool HP_npc_trader_pay(struct npc_data *nd, struct map_session_data *sd, int pri
}
}
{
- retVal___ = HPMHooks.source.npc.trader_pay(nd, sd, price, points);
+ retVal___ = HPMHooks.source.npc.trader_pay(nd, sd, price, points, item_list);
}
if (HPMHooks.count.HP_npc_trader_pay_post > 0) {
bool (*postHookFunc) (bool retVal___, struct npc_data *nd, struct map_session_data *sd, int price, int points);