diff options
author | shennetsind <ind@henn.et> | 2013-10-16 20:05:39 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-16 20:05:39 -0300 |
commit | f4e087fc3f8c8a33c1dd7e4932b3ff610c6afe1a (patch) | |
tree | 5259f9cbcce5f42aa143c3b595963e0a7d91639a /src/plugins/HPMHooking/HPMHooking.Hooks.inc | |
parent | 3ba9b1013c494f5c0a8b490336d60f0f4dabbd4a (diff) | |
parent | d93252a35eac6da8e06a1db016ea40d9d7fede00 (diff) | |
download | hercules-f4e087fc3f8c8a33c1dd7e4932b3ff610c6afe1a.tar.gz hercules-f4e087fc3f8c8a33c1dd7e4932b3ff610c6afe1a.tar.bz2 hercules-f4e087fc3f8c8a33c1dd7e4932b3ff610c6afe1a.tar.xz hercules-f4e087fc3f8c8a33c1dd7e4932b3ff610c6afe1a.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Hooks.inc | 25 |
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 ) { |