summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2018-05-06 17:56:31 +0200
committerHerculesWSAPI <dev@herc.ws>2018-05-06 17:56:31 +0200
commit5ca9938288f59fc3f1fd0f7ee26e6070f9767345 (patch)
tree17f2a6e3f0117af9293071f79c1701de3c7ca0b5 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent2760e208c56aaab974eb14e7d8058277a5725343 (diff)
downloadhercules-5ca9938288f59fc3f1fd0f7ee26e6070f9767345.tar.gz
hercules-5ca9938288f59fc3f1fd0f7ee26e6070f9767345.tar.bz2
hercules-5ca9938288f59fc3f1fd0f7ee26e6070f9767345.tar.xz
hercules-5ca9938288f59fc3f1fd0f7ee26e6070f9767345.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 718aa77d7..e505e6dd0 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -24274,6 +24274,32 @@ void HP_clif_pDull(int fd, struct map_session_data *sd) {
}
return;
}
+void HP_clif_p_cz_blocking_play_cancel(int fd, struct map_session_data *sd) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_p_cz_blocking_play_cancel_pre > 0) {
+ void (*preHookFunc) (int *fd, struct map_session_data **sd);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_p_cz_blocking_play_cancel_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_p_cz_blocking_play_cancel_pre[hIndex].func;
+ preHookFunc(&fd, &sd);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.p_cz_blocking_play_cancel(fd, sd);
+ }
+ if (HPMHooks.count.HP_clif_p_cz_blocking_play_cancel_post > 0) {
+ void (*postHookFunc) (int fd, struct map_session_data *sd);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_p_cz_blocking_play_cancel_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_p_cz_blocking_play_cancel_post[hIndex].func;
+ postHookFunc(fd, sd);
+ }
+ }
+ return;
+}
void HP_clif_pBGQueueRegister(int fd, struct map_session_data *sd) {
int hIndex = 0;
if (HPMHooks.count.HP_clif_pBGQueueRegister_pre > 0) {