summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Defs.inc34
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc60
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc15
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc409
4 files changed, 510 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc
index 82d2c5563..7c609f0bf 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -2422,8 +2422,8 @@ typedef time_t (*HPMHOOK_pre_clif_attendance_getendtime) (void);
typedef time_t (*HPMHOOK_post_clif_attendance_getendtime) (time_t retVal___);
typedef void (*HPMHOOK_pre_clif_pOpenUIRequest) (int *fd, struct map_session_data **sd);
typedef void (*HPMHOOK_post_clif_pOpenUIRequest) (int fd, struct map_session_data *sd);
-typedef void (*HPMHOOK_pre_clif_open_ui) (struct map_session_data **sd, int8 *UIType);
-typedef void (*HPMHOOK_post_clif_open_ui) (struct map_session_data *sd, int8 UIType);
+typedef void (*HPMHOOK_pre_clif_open_ui) (struct map_session_data **sd, enum cz_ui_types *uiType);
+typedef void (*HPMHOOK_post_clif_open_ui) (struct map_session_data *sd, enum cz_ui_types uiType);
typedef void (*HPMHOOK_pre_clif_pAttendanceRewardRequest) (int *fd, struct map_session_data **sd);
typedef void (*HPMHOOK_post_clif_pAttendanceRewardRequest) (int fd, struct map_session_data *sd);
typedef void (*HPMHOOK_pre_clif_ui_action) (struct map_session_data **sd, int32 *UIType, int32 *data);
@@ -2432,6 +2432,24 @@ typedef void (*HPMHOOK_pre_clif_pPrivateAirshipRequest) (int *fd, struct map_ses
typedef void (*HPMHOOK_post_clif_pPrivateAirshipRequest) (int fd, struct map_session_data *sd);
typedef void (*HPMHOOK_pre_clif_PrivateAirshipResponse) (struct map_session_data **sd, uint32 *flag);
typedef void (*HPMHOOK_post_clif_PrivateAirshipResponse) (struct map_session_data *sd, uint32 flag);
+typedef void (*HPMHOOK_pre_clif_stylist_vector_init) (void);
+typedef void (*HPMHOOK_post_clif_stylist_vector_init) (void);
+typedef void (*HPMHOOK_pre_clif_stylist_vector_clear) (void);
+typedef void (*HPMHOOK_post_clif_stylist_vector_clear) (void);
+typedef bool (*HPMHOOK_pre_clif_stylist_read_db_libconfig) (void);
+typedef bool (*HPMHOOK_post_clif_stylist_read_db_libconfig) (bool retVal___);
+typedef bool (*HPMHOOK_pre_clif_stylist_read_db_libconfig_sub) (struct config_setting_t **it, int *idx, const char **source);
+typedef bool (*HPMHOOK_post_clif_stylist_read_db_libconfig_sub) (bool retVal___, struct config_setting_t *it, int idx, const char *source);
+typedef bool (*HPMHOOK_pre_clif_style_change_validate_requirements) (struct map_session_data **sd, int *type, int16 *idx);
+typedef bool (*HPMHOOK_post_clif_style_change_validate_requirements) (bool retVal___, struct map_session_data *sd, int type, int16 idx);
+typedef void (*HPMHOOK_pre_clif_stylist_send_rodexitem) (struct map_session_data **sd, int16 *itemid);
+typedef void (*HPMHOOK_post_clif_stylist_send_rodexitem) (struct map_session_data *sd, int16 itemid);
+typedef void (*HPMHOOK_pre_clif_pReqStyleChange) (int *fd, struct map_session_data **sd);
+typedef void (*HPMHOOK_post_clif_pReqStyleChange) (int fd, struct map_session_data *sd);
+typedef void (*HPMHOOK_pre_clif_cz_req_style_change_sub) (struct map_session_data **sd, int *type, int16 *idx, bool *isitem);
+typedef void (*HPMHOOK_post_clif_cz_req_style_change_sub) (struct map_session_data *sd, int type, int16 idx, bool isitem);
+typedef void (*HPMHOOK_pre_clif_style_change_response) (struct map_session_data **sd, enum stylist_shop *flag);
+typedef void (*HPMHOOK_post_clif_style_change_response) (struct map_session_data *sd, enum stylist_shop flag);
#endif // MAP_CLIF_H
#ifdef COMMON_CORE_H /* cmdline */
typedef void (*HPMHOOK_pre_cmdline_init) (void);
@@ -5838,6 +5856,12 @@ typedef int (*HPMHOOK_pre_pc_set_hate_mob) (struct map_session_data **sd, int *p
typedef int (*HPMHOOK_post_pc_set_hate_mob) (int retVal___, struct map_session_data *sd, int pos, struct block_list *bl);
typedef int (*HPMHOOK_pre_pc_readdb) (void);
typedef int (*HPMHOOK_post_pc_readdb) (int retVal___);
+typedef bool (*HPMHOOK_pre_pc_read_exp_db) (void);
+typedef bool (*HPMHOOK_post_pc_read_exp_db) (bool retVal___);
+typedef int (*HPMHOOK_pre_pc_read_exp_db_sub) (struct config_setting_t **conf, bool *base);
+typedef int (*HPMHOOK_post_pc_read_exp_db_sub) (int retVal___, struct config_setting_t *conf, bool base);
+typedef bool (*HPMHOOK_pre_pc_read_exp_db_sub_class) (struct config_setting_t **t, bool *base);
+typedef bool (*HPMHOOK_post_pc_read_exp_db_sub_class) (bool retVal___, struct config_setting_t *t, bool base);
typedef int (*HPMHOOK_pre_pc_map_day_timer) (int *tid, int64 *tick, int *id, intptr_t *data);
typedef int (*HPMHOOK_post_pc_map_day_timer) (int retVal___, int tid, int64 tick, int id, intptr_t data);
typedef int (*HPMHOOK_pre_pc_map_night_timer) (int *tid, int64 *tick, int *id, intptr_t *data);
@@ -5950,6 +5974,12 @@ typedef void (*HPMHOOK_pre_pc_validate_levels) (void);
typedef void (*HPMHOOK_post_pc_validate_levels) (void);
typedef void (*HPMHOOK_pre_pc_update_job_and_level) (struct map_session_data **sd);
typedef void (*HPMHOOK_post_pc_update_job_and_level) (struct map_session_data *sd);
+typedef void (*HPMHOOK_pre_pc_clear_exp_groups) (void);
+typedef void (*HPMHOOK_post_pc_clear_exp_groups) (void);
+typedef void (*HPMHOOK_pre_pc_init_exp_groups) (void);
+typedef void (*HPMHOOK_post_pc_init_exp_groups) (void);
+typedef bool (*HPMHOOK_pre_pc_job_is_dummy) (int *job);
+typedef bool (*HPMHOOK_post_pc_job_is_dummy) (bool retVal___, int job);
typedef void (*HPMHOOK_pre_pc_autotrade_load) (void);
typedef void (*HPMHOOK_post_pc_autotrade_load) (void);
typedef void (*HPMHOOK_pre_pc_autotrade_update) (struct map_session_data **sd, enum e_pc_autotrade_update_action *action);
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
index 747ec357e..d17955db7 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
@@ -2028,6 +2028,24 @@ struct {
struct HPMHookPoint *HP_clif_pPrivateAirshipRequest_post;
struct HPMHookPoint *HP_clif_PrivateAirshipResponse_pre;
struct HPMHookPoint *HP_clif_PrivateAirshipResponse_post;
+ struct HPMHookPoint *HP_clif_stylist_vector_init_pre;
+ struct HPMHookPoint *HP_clif_stylist_vector_init_post;
+ struct HPMHookPoint *HP_clif_stylist_vector_clear_pre;
+ struct HPMHookPoint *HP_clif_stylist_vector_clear_post;
+ struct HPMHookPoint *HP_clif_stylist_read_db_libconfig_pre;
+ struct HPMHookPoint *HP_clif_stylist_read_db_libconfig_post;
+ struct HPMHookPoint *HP_clif_stylist_read_db_libconfig_sub_pre;
+ struct HPMHookPoint *HP_clif_stylist_read_db_libconfig_sub_post;
+ struct HPMHookPoint *HP_clif_style_change_validate_requirements_pre;
+ struct HPMHookPoint *HP_clif_style_change_validate_requirements_post;
+ struct HPMHookPoint *HP_clif_stylist_send_rodexitem_pre;
+ struct HPMHookPoint *HP_clif_stylist_send_rodexitem_post;
+ struct HPMHookPoint *HP_clif_pReqStyleChange_pre;
+ struct HPMHookPoint *HP_clif_pReqStyleChange_post;
+ struct HPMHookPoint *HP_clif_cz_req_style_change_sub_pre;
+ struct HPMHookPoint *HP_clif_cz_req_style_change_sub_post;
+ struct HPMHookPoint *HP_clif_style_change_response_pre;
+ struct HPMHookPoint *HP_clif_style_change_response_post;
struct HPMHookPoint *HP_cmdline_init_pre;
struct HPMHookPoint *HP_cmdline_init_post;
struct HPMHookPoint *HP_cmdline_final_pre;
@@ -4494,6 +4512,12 @@ struct {
struct HPMHookPoint *HP_pc_set_hate_mob_post;
struct HPMHookPoint *HP_pc_readdb_pre;
struct HPMHookPoint *HP_pc_readdb_post;
+ struct HPMHookPoint *HP_pc_read_exp_db_pre;
+ struct HPMHookPoint *HP_pc_read_exp_db_post;
+ struct HPMHookPoint *HP_pc_read_exp_db_sub_pre;
+ struct HPMHookPoint *HP_pc_read_exp_db_sub_post;
+ struct HPMHookPoint *HP_pc_read_exp_db_sub_class_pre;
+ struct HPMHookPoint *HP_pc_read_exp_db_sub_class_post;
struct HPMHookPoint *HP_pc_map_day_timer_pre;
struct HPMHookPoint *HP_pc_map_day_timer_post;
struct HPMHookPoint *HP_pc_map_night_timer_pre;
@@ -4606,6 +4630,12 @@ struct {
struct HPMHookPoint *HP_pc_validate_levels_post;
struct HPMHookPoint *HP_pc_update_job_and_level_pre;
struct HPMHookPoint *HP_pc_update_job_and_level_post;
+ struct HPMHookPoint *HP_pc_clear_exp_groups_pre;
+ struct HPMHookPoint *HP_pc_clear_exp_groups_post;
+ struct HPMHookPoint *HP_pc_init_exp_groups_pre;
+ struct HPMHookPoint *HP_pc_init_exp_groups_post;
+ struct HPMHookPoint *HP_pc_job_is_dummy_pre;
+ struct HPMHookPoint *HP_pc_job_is_dummy_post;
struct HPMHookPoint *HP_pc_autotrade_load_pre;
struct HPMHookPoint *HP_pc_autotrade_load_post;
struct HPMHookPoint *HP_pc_autotrade_update_pre;
@@ -8373,6 +8403,24 @@ struct {
int HP_clif_pPrivateAirshipRequest_post;
int HP_clif_PrivateAirshipResponse_pre;
int HP_clif_PrivateAirshipResponse_post;
+ int HP_clif_stylist_vector_init_pre;
+ int HP_clif_stylist_vector_init_post;
+ int HP_clif_stylist_vector_clear_pre;
+ int HP_clif_stylist_vector_clear_post;
+ int HP_clif_stylist_read_db_libconfig_pre;
+ int HP_clif_stylist_read_db_libconfig_post;
+ int HP_clif_stylist_read_db_libconfig_sub_pre;
+ int HP_clif_stylist_read_db_libconfig_sub_post;
+ int HP_clif_style_change_validate_requirements_pre;
+ int HP_clif_style_change_validate_requirements_post;
+ int HP_clif_stylist_send_rodexitem_pre;
+ int HP_clif_stylist_send_rodexitem_post;
+ int HP_clif_pReqStyleChange_pre;
+ int HP_clif_pReqStyleChange_post;
+ int HP_clif_cz_req_style_change_sub_pre;
+ int HP_clif_cz_req_style_change_sub_post;
+ int HP_clif_style_change_response_pre;
+ int HP_clif_style_change_response_post;
int HP_cmdline_init_pre;
int HP_cmdline_init_post;
int HP_cmdline_final_pre;
@@ -10839,6 +10887,12 @@ struct {
int HP_pc_set_hate_mob_post;
int HP_pc_readdb_pre;
int HP_pc_readdb_post;
+ int HP_pc_read_exp_db_pre;
+ int HP_pc_read_exp_db_post;
+ int HP_pc_read_exp_db_sub_pre;
+ int HP_pc_read_exp_db_sub_post;
+ int HP_pc_read_exp_db_sub_class_pre;
+ int HP_pc_read_exp_db_sub_class_post;
int HP_pc_map_day_timer_pre;
int HP_pc_map_day_timer_post;
int HP_pc_map_night_timer_pre;
@@ -10951,6 +11005,12 @@ struct {
int HP_pc_validate_levels_post;
int HP_pc_update_job_and_level_pre;
int HP_pc_update_job_and_level_post;
+ int HP_pc_clear_exp_groups_pre;
+ int HP_pc_clear_exp_groups_post;
+ int HP_pc_init_exp_groups_pre;
+ int HP_pc_init_exp_groups_post;
+ int HP_pc_job_is_dummy_pre;
+ int HP_pc_job_is_dummy_post;
int HP_pc_autotrade_load_pre;
int HP_pc_autotrade_load_post;
int HP_pc_autotrade_update_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
index 06c1b2c88..c9463b1b8 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
@@ -1037,6 +1037,15 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(clif->ui_action, HP_clif_ui_action) },
{ HP_POP(clif->pPrivateAirshipRequest, HP_clif_pPrivateAirshipRequest) },
{ HP_POP(clif->PrivateAirshipResponse, HP_clif_PrivateAirshipResponse) },
+ { HP_POP(clif->stylist_vector_init, HP_clif_stylist_vector_init) },
+ { HP_POP(clif->stylist_vector_clear, HP_clif_stylist_vector_clear) },
+ { HP_POP(clif->stylist_read_db_libconfig, HP_clif_stylist_read_db_libconfig) },
+ { HP_POP(clif->stylist_read_db_libconfig_sub, HP_clif_stylist_read_db_libconfig_sub) },
+ { HP_POP(clif->style_change_validate_requirements, HP_clif_style_change_validate_requirements) },
+ { HP_POP(clif->stylist_send_rodexitem, HP_clif_stylist_send_rodexitem) },
+ { HP_POP(clif->pReqStyleChange, HP_clif_pReqStyleChange) },
+ { HP_POP(clif->cz_req_style_change_sub, HP_clif_cz_req_style_change_sub) },
+ { HP_POP(clif->style_change_response, HP_clif_style_change_response) },
/* cmdline_interface */
{ HP_POP(cmdline->init, HP_cmdline_init) },
{ HP_POP(cmdline->final, HP_cmdline_final) },
@@ -2303,6 +2312,9 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(pc->famelist_type, HP_pc_famelist_type) },
{ HP_POP(pc->set_hate_mob, HP_pc_set_hate_mob) },
{ HP_POP(pc->readdb, HP_pc_readdb) },
+ { HP_POP(pc->read_exp_db, HP_pc_read_exp_db) },
+ { HP_POP(pc->read_exp_db_sub, HP_pc_read_exp_db_sub) },
+ { HP_POP(pc->read_exp_db_sub_class, HP_pc_read_exp_db_sub_class) },
{ HP_POP(pc->map_day_timer, HP_pc_map_day_timer) },
{ HP_POP(pc->map_night_timer, HP_pc_map_night_timer) },
{ HP_POP(pc->inventory_rentals, HP_pc_inventory_rentals) },
@@ -2359,6 +2371,9 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(pc->db_checkid, HP_pc_db_checkid) },
{ HP_POP(pc->validate_levels, HP_pc_validate_levels) },
{ HP_POP(pc->update_job_and_level, HP_pc_update_job_and_level) },
+ { HP_POP(pc->clear_exp_groups, HP_pc_clear_exp_groups) },
+ { HP_POP(pc->init_exp_groups, HP_pc_init_exp_groups) },
+ { HP_POP(pc->job_is_dummy, HP_pc_job_is_dummy) },
{ HP_POP(pc->autotrade_load, HP_pc_autotrade_load) },
{ HP_POP(pc->autotrade_update, HP_pc_autotrade_update) },
{ HP_POP(pc->autotrade_start, HP_pc_autotrade_start) },
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index cdb1df7f2..bd2ef870f 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -26282,14 +26282,14 @@ void HP_clif_pOpenUIRequest(int fd, struct map_session_data *sd) {
}
return;
}
-void HP_clif_open_ui(struct map_session_data *sd, int8 UIType) {
+void HP_clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType) {
int hIndex = 0;
if (HPMHooks.count.HP_clif_open_ui_pre > 0) {
- void (*preHookFunc) (struct map_session_data **sd, int8 *UIType);
+ void (*preHookFunc) (struct map_session_data **sd, enum cz_ui_types *uiType);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_open_ui_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_clif_open_ui_pre[hIndex].func;
- preHookFunc(&sd, &UIType);
+ preHookFunc(&sd, &uiType);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -26297,13 +26297,13 @@ void HP_clif_open_ui(struct map_session_data *sd, int8 UIType) {
}
}
{
- HPMHooks.source.clif.open_ui(sd, UIType);
+ HPMHooks.source.clif.open_ui(sd, uiType);
}
if (HPMHooks.count.HP_clif_open_ui_post > 0) {
- void (*postHookFunc) (struct map_session_data *sd, int8 UIType);
+ void (*postHookFunc) (struct map_session_data *sd, enum cz_ui_types uiType);
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_open_ui_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_clif_open_ui_post[hIndex].func;
- postHookFunc(sd, UIType);
+ postHookFunc(sd, uiType);
}
}
return;
@@ -26412,6 +26412,243 @@ void HP_clif_PrivateAirshipResponse(struct map_session_data *sd, uint32 flag) {
}
return;
}
+void HP_clif_stylist_vector_init(void) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_stylist_vector_init_pre > 0) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_vector_init_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_stylist_vector_init_pre[hIndex].func;
+ preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.stylist_vector_init();
+ }
+ if (HPMHooks.count.HP_clif_stylist_vector_init_post > 0) {
+ void (*postHookFunc) (void);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_vector_init_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_stylist_vector_init_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
+void HP_clif_stylist_vector_clear(void) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_stylist_vector_clear_pre > 0) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_vector_clear_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_stylist_vector_clear_pre[hIndex].func;
+ preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.stylist_vector_clear();
+ }
+ if (HPMHooks.count.HP_clif_stylist_vector_clear_post > 0) {
+ void (*postHookFunc) (void);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_vector_clear_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_stylist_vector_clear_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
+bool HP_clif_stylist_read_db_libconfig(void) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_clif_stylist_read_db_libconfig_pre > 0) {
+ bool (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_read_db_libconfig_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_stylist_read_db_libconfig_pre[hIndex].func;
+ retVal___ = preHookFunc();
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.clif.stylist_read_db_libconfig();
+ }
+ if (HPMHooks.count.HP_clif_stylist_read_db_libconfig_post > 0) {
+ bool (*postHookFunc) (bool retVal___);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_read_db_libconfig_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_stylist_read_db_libconfig_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___);
+ }
+ }
+ return retVal___;
+}
+bool HP_clif_stylist_read_db_libconfig_sub(struct config_setting_t *it, int idx, const char *source) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_clif_stylist_read_db_libconfig_sub_pre > 0) {
+ bool (*preHookFunc) (struct config_setting_t **it, int *idx, const char **source);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_read_db_libconfig_sub_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_stylist_read_db_libconfig_sub_pre[hIndex].func;
+ retVal___ = preHookFunc(&it, &idx, &source);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.clif.stylist_read_db_libconfig_sub(it, idx, source);
+ }
+ if (HPMHooks.count.HP_clif_stylist_read_db_libconfig_sub_post > 0) {
+ bool (*postHookFunc) (bool retVal___, struct config_setting_t *it, int idx, const char *source);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_read_db_libconfig_sub_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_stylist_read_db_libconfig_sub_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, it, idx, source);
+ }
+ }
+ return retVal___;
+}
+bool HP_clif_style_change_validate_requirements(struct map_session_data *sd, int type, int16 idx) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if (HPMHooks.count.HP_clif_style_change_validate_requirements_pre > 0) {
+ bool (*preHookFunc) (struct map_session_data **sd, int *type, int16 *idx);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_validate_requirements_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_style_change_validate_requirements_pre[hIndex].func;
+ retVal___ = preHookFunc(&sd, &type, &idx);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.clif.style_change_validate_requirements(sd, type, idx);
+ }
+ if (HPMHooks.count.HP_clif_style_change_validate_requirements_post > 0) {
+ bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int type, int16 idx);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_validate_requirements_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_style_change_validate_requirements_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, sd, type, idx);
+ }
+ }
+ return retVal___;
+}
+void HP_clif_stylist_send_rodexitem(struct map_session_data *sd, int16 itemid) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_stylist_send_rodexitem_pre > 0) {
+ void (*preHookFunc) (struct map_session_data **sd, int16 *itemid);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_send_rodexitem_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_stylist_send_rodexitem_pre[hIndex].func;
+ preHookFunc(&sd, &itemid);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.stylist_send_rodexitem(sd, itemid);
+ }
+ if (HPMHooks.count.HP_clif_stylist_send_rodexitem_post > 0) {
+ void (*postHookFunc) (struct map_session_data *sd, int16 itemid);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_stylist_send_rodexitem_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_stylist_send_rodexitem_post[hIndex].func;
+ postHookFunc(sd, itemid);
+ }
+ }
+ return;
+}
+void HP_clif_pReqStyleChange(int fd, struct map_session_data *sd) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_pReqStyleChange_pre > 0) {
+ void (*preHookFunc) (int *fd, struct map_session_data **sd);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqStyleChange_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_pReqStyleChange_pre[hIndex].func;
+ preHookFunc(&fd, &sd);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.pReqStyleChange(fd, sd);
+ }
+ if (HPMHooks.count.HP_clif_pReqStyleChange_post > 0) {
+ void (*postHookFunc) (int fd, struct map_session_data *sd);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqStyleChange_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_pReqStyleChange_post[hIndex].func;
+ postHookFunc(fd, sd);
+ }
+ }
+ return;
+}
+void HP_clif_cz_req_style_change_sub(struct map_session_data *sd, int type, int16 idx, bool isitem) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_cz_req_style_change_sub_pre > 0) {
+ void (*preHookFunc) (struct map_session_data **sd, int *type, int16 *idx, bool *isitem);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_cz_req_style_change_sub_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_cz_req_style_change_sub_pre[hIndex].func;
+ preHookFunc(&sd, &type, &idx, &isitem);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.cz_req_style_change_sub(sd, type, idx, isitem);
+ }
+ if (HPMHooks.count.HP_clif_cz_req_style_change_sub_post > 0) {
+ void (*postHookFunc) (struct map_session_data *sd, int type, int16 idx, bool isitem);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_cz_req_style_change_sub_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_cz_req_style_change_sub_post[hIndex].func;
+ postHookFunc(sd, type, idx, isitem);
+ }
+ }
+ return;
+}
+void HP_clif_style_change_response(struct map_session_data *sd, enum stylist_shop flag) {
+ int hIndex = 0;
+ if (HPMHooks.count.HP_clif_style_change_response_pre > 0) {
+ void (*preHookFunc) (struct map_session_data **sd, enum stylist_shop *flag);
+ *HPMforce_return = false;
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_response_pre; hIndex++) {
+ preHookFunc = HPMHooks.list.HP_clif_style_change_response_pre[hIndex].func;
+ preHookFunc(&sd, &flag);
+ }
+ if (*HPMforce_return) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.style_change_response(sd, flag);
+ }
+ if (HPMHooks.count.HP_clif_style_change_response_post > 0) {
+ void (*postHookFunc) (struct map_session_data *sd, enum stylist_shop flag);
+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_response_post; hIndex++) {
+ postHookFunc = HPMHooks.list.HP_clif_style_change_response_post[hIndex].func;
+ postHookFunc(sd, flag);
+ }
+ }
+ return;
+}
/* cmdline_interface */
void HP_cmdline_init(void) {
int hIndex = 0;
@@ -59824,6 +60061,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 +61659,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) {