summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-10-17 00:36:09 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-10-17 00:36:09 +0200
commitd93252a35eac6da8e06a1db016ea40d9d7fede00 (patch)
tree0ad3d4cbfbcf5f112cbcc8458d30028e38efa9a6 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parent061918c1925ef693fc3ca089c2e5aaf06f7579c6 (diff)
downloadhercules-d93252a35eac6da8e06a1db016ea40d9d7fede00.tar.gz
hercules-d93252a35eac6da8e06a1db016ea40d9d7fede00.tar.bz2
hercules-d93252a35eac6da8e06a1db016ea40d9d7fede00.tar.xz
hercules-d93252a35eac6da8e06a1db016ea40d9d7fede00.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 b57e0e6c5..8823eedae 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -11309,6 +11309,31 @@ void HP_clif_PMIgnoreList(struct map_session_data *sd) {
}
return;
}
+void HP_clif_ShowScript(struct block_list *bl, const char *message) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_clif_ShowScript_pre ) {
+ void (*preHookFunc) (struct block_list *bl, const char *message);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ShowScript_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_clif_ShowScript_pre[hIndex].func;
+ preHookFunc(bl, message);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.ShowScript(bl, message);
+ }
+ if( HPMHooks.count.HP_clif_ShowScript_post ) {
+ void (*postHookFunc) (struct block_list *bl, const char *message);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ShowScript_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_clif_ShowScript_post[hIndex].func;
+ postHookFunc(bl, message);
+ }
+ }
+ return;
+}
void HP_clif_traderequest(struct map_session_data *sd, const char *name) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_traderequest_pre ) {