From 32b33d8408b02ab2d133872de770446c32046fa3 Mon Sep 17 00:00:00 2001 From: "Hercules.ws" Date: Sun, 20 Apr 2014 02:41:13 +0200 Subject: HPM Hooks Update Signed-off-by: HerculesWSAPI --- src/plugins/HPMHooking/HPMHooking.Hooks.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc') diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index 969cdad93..23f00ea97 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -7668,6 +7668,31 @@ void HP_clif_arrow_create_list(struct map_session_data *sd) { } return; } +void HP_clif_refresh_storagewindow(struct map_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_clif_refresh_storagewindow_pre ) { + void (*preHookFunc) (struct map_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refresh_storagewindow_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_refresh_storagewindow_pre[hIndex].func; + preHookFunc(sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.refresh_storagewindow(sd); + } + if( HPMHooks.count.HP_clif_refresh_storagewindow_post ) { + void (*postHookFunc) (struct map_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refresh_storagewindow_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_refresh_storagewindow_post[hIndex].func; + postHookFunc(sd); + } + } + return; +} void HP_clif_refresh(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_refresh_pre ) { -- cgit v1.2.3-70-g09d2