summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2018-06-03 22:47:34 +0200
committerHerculesWSAPI <dev@herc.ws>2018-06-03 22:47:34 +0200
commit1670e2b6e5eca660d73aafb8cbb4830bd453e79e (patch)
tree0e85fe9041895b1b34366d87d4b98b570adbc7a7 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent4cdc2b379e486c7e436330f56fcbff386b580150 (diff)
downloadhercules-1670e2b6e5eca660d73aafb8cbb4830bd453e79e.tar.gz
hercules-1670e2b6e5eca660d73aafb8cbb4830bd453e79e.tar.bz2
hercules-1670e2b6e5eca660d73aafb8cbb4830bd453e79e.tar.xz
hercules-1670e2b6e5eca660d73aafb8cbb4830bd453e79e.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.inc160
1 files changed, 160 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index cdb1df7f2..e39dc4c2c 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -59824,6 +59824,87 @@ int HP_pc_readdb(void) {
}
return retVal___;
}
+bool HP_pc_read_exp_db(void) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_pc_read_exp_db_pre > 0) {
+ bool (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_read_exp_db_pre[hIndex].func;
+ retVal___ = preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.pc.read_exp_db();
+ }
+ if (HPMHooks.count.HP_pc_read_exp_db_post > 0) {
+ bool (*postHookFunc) (bool retVal___);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_read_exp_db_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___);
+ }
+ }
+ return retVal___;
+}
+int HP_pc_read_exp_db_sub(struct config_setting_t *conf, bool base) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if (HPMHooks.count.HP_pc_read_exp_db_sub_pre > 0) {
+ int (*preHookFunc) (struct config_setting_t **conf, bool *base);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_sub_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_read_exp_db_sub_pre[hIndex].func;
+ retVal___ = preHookFunc(&conf, &base);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.pc.read_exp_db_sub(conf, base);
+ }
+ if (HPMHooks.count.HP_pc_read_exp_db_sub_post > 0) {
+ int (*postHookFunc) (int retVal___, struct config_setting_t *conf, bool base);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_sub_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_read_exp_db_sub_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, conf, base);
+ }
+ }
+ return retVal___;
+}
+bool HP_pc_read_exp_db_sub_class(struct config_setting_t *t, bool base) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_pc_read_exp_db_sub_class_pre > 0) {
+ bool (*preHookFunc) (struct config_setting_t **t, bool *base);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_sub_class_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_read_exp_db_sub_class_pre[hIndex].func;
+ retVal___ = preHookFunc(&t, &base);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.pc.read_exp_db_sub_class(t, base);
+ }
+ if (HPMHooks.count.HP_pc_read_exp_db_sub_class_post > 0) {
+ bool (*postHookFunc) (bool retVal___, struct config_setting_t *t, bool base);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_read_exp_db_sub_class_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_read_exp_db_sub_class_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, t, base);
+ }
+ }
+ return retVal___;
+}
int HP_pc_map_day_timer(int tid, int64 tick, int id, intptr_t data) {
int hIndex = 0;
int retVal___ = 0;
@@ -61341,6 +61422,85 @@ void HP_pc_update_job_and_level(struct map_session_data *sd) {
}
return;
}
+void HP_pc_clear_exp_groups(void) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_pc_clear_exp_groups_pre > 0) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_exp_groups_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_clear_exp_groups_pre[hIndex].func;
+ preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.pc.clear_exp_groups();
+ }
+ if (HPMHooks.count.HP_pc_clear_exp_groups_post > 0) {
+ void (*postHookFunc) (void);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_exp_groups_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_clear_exp_groups_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
+void HP_pc_init_exp_groups(void) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_pc_init_exp_groups_pre > 0) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_init_exp_groups_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_init_exp_groups_pre[hIndex].func;
+ preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.pc.init_exp_groups();
+ }
+ if (HPMHooks.count.HP_pc_init_exp_groups_post > 0) {
+ void (*postHookFunc) (void);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_init_exp_groups_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_init_exp_groups_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
+bool HP_pc_job_is_dummy(int job) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_pc_job_is_dummy_pre > 0) {
+ bool (*preHookFunc) (int *job);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_job_is_dummy_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_pc_job_is_dummy_pre[hIndex].func;
+ retVal___ = preHookFunc(&job);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.pc.job_is_dummy(job);
+ }
+ if (HPMHooks.count.HP_pc_job_is_dummy_post > 0) {
+ bool (*postHookFunc) (bool retVal___, int job);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_job_is_dummy_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_pc_job_is_dummy_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, job);
+ }
+ }
+ return retVal___;
+}
void HP_pc_autotrade_load(void) {
int hIndex = 0;
if (HPMHooks.count.HP_pc_autotrade_load_pre > 0) {