summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-04-20 02:41:13 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-04-20 02:41:13 +0200
commit32b33d8408b02ab2d133872de770446c32046fa3 (patch)
tree7326f5c75942ea7228569e4ad6ccf9937ebac717 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parent31486a8c3340a8ca8a8b1e5dd9084c2c07ec8614 (diff)
downloadhercules-32b33d8408b02ab2d133872de770446c32046fa3.tar.gz
hercules-32b33d8408b02ab2d133872de770446c32046fa3.tar.bz2
hercules-32b33d8408b02ab2d133872de770446c32046fa3.tar.xz
hercules-32b33d8408b02ab2d133872de770446c32046fa3.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc25
1 files changed, 25 insertions, 0 deletions
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 ) {