diff options
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 17169 |
1 files changed, 8707 insertions, 8462 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index f8d5193e1..ab2def6cd 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -23,7 +23,7 @@ * as it will get overwritten. */ -/* HCache */ +/* HCache_interface */ void HP_HCache_init(void) { int hIndex = 0; if( HPMHooks.count.HP_HCache_init_pre ) { @@ -54,11 +54,11 @@ bool HP_HCache_check(const char *file) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_HCache_check_pre ) { - bool (*preHookFunc) (const char *file); + bool (*preHookFunc) (const char **file); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_HCache_check_pre[hIndex].func; - retVal___ = preHookFunc(file); + retVal___ = preHookFunc(&file); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -81,11 +81,11 @@ FILE* HP_HCache_open(const char *file, const char *opt) { int hIndex = 0; FILE* retVal___ = NULL; if( HPMHooks.count.HP_HCache_open_pre ) { - FILE* (*preHookFunc) (const char *file, const char *opt); + FILE* (*preHookFunc) (const char **file, const char **opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_HCache_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_HCache_open_pre[hIndex].func; - retVal___ = preHookFunc(file, opt); + retVal___ = preHookFunc(&file, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -104,7 +104,7 @@ FILE* HP_HCache_open(const char *file, const char *opt) { } return retVal___; } -/* atcommand */ +/* atcommand_interface */ void HP_atcommand_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_init_pre ) { @@ -123,10 +123,10 @@ void HP_atcommand_init(bool minimal) { HPMHooks.source.atcommand.init(minimal); } if( HPMHooks.count.HP_atcommand_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -161,11 +161,11 @@ bool HP_atcommand_exec(const int fd, struct map_session_data *sd, const char *me int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_exec_pre ) { - bool (*preHookFunc) (const int *fd, struct map_session_data *sd, const char *message, bool *player_invoked); + bool (*preHookFunc) (const int *fd, struct map_session_data **sd, const char **message, bool *player_invoked); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_exec_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_exec_pre[hIndex].func; - retVal___ = preHookFunc(&fd, sd, message, &player_invoked); + retVal___ = preHookFunc(&fd, &sd, &message, &player_invoked); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -176,10 +176,10 @@ bool HP_atcommand_exec(const int fd, struct map_session_data *sd, const char *me retVal___ = HPMHooks.source.atcommand.exec(fd, sd, message, player_invoked); } if( HPMHooks.count.HP_atcommand_exec_post ) { - bool (*postHookFunc) (bool retVal___, const int *fd, struct map_session_data *sd, const char *message, bool *player_invoked); + bool (*postHookFunc) (bool retVal___, const int fd, struct map_session_data *sd, const char *message, bool player_invoked); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_exec_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_exec_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, sd, message, &player_invoked); + retVal___ = postHookFunc(retVal___, fd, sd, message, player_invoked); } } return retVal___; @@ -188,11 +188,11 @@ bool HP_atcommand_create(char *name, AtCommandFunc func) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_create_pre ) { - bool (*preHookFunc) (char *name, AtCommandFunc *func); + bool (*preHookFunc) (char **name, AtCommandFunc *func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_create_pre[hIndex].func; - retVal___ = preHookFunc(name, &func); + retVal___ = preHookFunc(&name, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -203,10 +203,10 @@ bool HP_atcommand_create(char *name, AtCommandFunc func) { retVal___ = HPMHooks.source.atcommand.create(name, func); } if( HPMHooks.count.HP_atcommand_create_post ) { - bool (*postHookFunc) (bool retVal___, char *name, AtCommandFunc *func); + bool (*postHookFunc) (bool retVal___, char *name, AtCommandFunc func); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &func); + retVal___ = postHookFunc(retVal___, name, func); } } return retVal___; @@ -215,11 +215,11 @@ bool HP_atcommand_can_use(struct map_session_data *sd, const char *command) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_can_use_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *command); + bool (*preHookFunc) (struct map_session_data **sd, const char **command); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_can_use_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_can_use_pre[hIndex].func; - retVal___ = preHookFunc(sd, command); + retVal___ = preHookFunc(&sd, &command); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -242,11 +242,11 @@ bool HP_atcommand_can_use2(struct map_session_data *sd, const char *command, AtC int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_can_use2_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *command, AtCommandType *type); + bool (*preHookFunc) (struct map_session_data **sd, const char **command, AtCommandType *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_can_use2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_can_use2_pre[hIndex].func; - retVal___ = preHookFunc(sd, command, &type); + retVal___ = preHookFunc(&sd, &command, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -257,10 +257,10 @@ bool HP_atcommand_can_use2(struct map_session_data *sd, const char *command, AtC retVal___ = HPMHooks.source.atcommand.can_use2(sd, command, type); } if( HPMHooks.count.HP_atcommand_can_use2_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *command, AtCommandType *type); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *command, AtCommandType type); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_can_use2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_can_use2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, command, &type); + retVal___ = postHookFunc(retVal___, sd, command, type); } } return retVal___; @@ -268,11 +268,11 @@ bool HP_atcommand_can_use2(struct map_session_data *sd, const char *command, AtC void HP_atcommand_load_groups(GroupSettings **groups, struct config_setting_t **commands_, size_t sz) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_load_groups_pre ) { - void (*preHookFunc) (GroupSettings **groups, struct config_setting_t **commands_, size_t *sz); + void (*preHookFunc) (GroupSettings ***groups, struct config_setting_t ***commands_, size_t *sz); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_load_groups_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_load_groups_pre[hIndex].func; - preHookFunc(groups, commands_, &sz); + preHookFunc(&groups, &commands_, &sz); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -283,10 +283,10 @@ void HP_atcommand_load_groups(GroupSettings **groups, struct config_setting_t ** HPMHooks.source.atcommand.load_groups(groups, commands_, sz); } if( HPMHooks.count.HP_atcommand_load_groups_post ) { - void (*postHookFunc) (GroupSettings **groups, struct config_setting_t **commands_, size_t *sz); + void (*postHookFunc) (GroupSettings **groups, struct config_setting_t **commands_, size_t sz); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_load_groups_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_load_groups_post[hIndex].func; - postHookFunc(groups, commands_, &sz); + postHookFunc(groups, commands_, sz); } } return; @@ -295,11 +295,11 @@ AtCommandInfo* HP_atcommand_exists(const char *name) { int hIndex = 0; AtCommandInfo* retVal___ = NULL; if( HPMHooks.count.HP_atcommand_exists_pre ) { - AtCommandInfo* (*preHookFunc) (const char *name); + AtCommandInfo* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_exists_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_exists_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -322,11 +322,11 @@ bool HP_atcommand_msg_read(const char *cfg_name, bool allow_override) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_msg_read_pre ) { - bool (*preHookFunc) (const char *cfg_name, bool *allow_override); + bool (*preHookFunc) (const char **cfg_name, bool *allow_override); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_msg_read_pre[hIndex].func; - retVal___ = preHookFunc(cfg_name, &allow_override); + retVal___ = preHookFunc(&cfg_name, &allow_override); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -337,10 +337,10 @@ bool HP_atcommand_msg_read(const char *cfg_name, bool allow_override) { retVal___ = HPMHooks.source.atcommand.msg_read(cfg_name, allow_override); } if( HPMHooks.count.HP_atcommand_msg_read_post ) { - bool (*postHookFunc) (bool retVal___, const char *cfg_name, bool *allow_override); + bool (*postHookFunc) (bool retVal___, const char *cfg_name, bool allow_override); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_msg_read_post[hIndex].func; - retVal___ = postHookFunc(retVal___, cfg_name, &allow_override); + retVal___ = postHookFunc(retVal___, cfg_name, allow_override); } } return retVal___; @@ -375,11 +375,11 @@ struct atcmd_binding_data* HP_atcommand_get_bind_byname(const char *name) { int hIndex = 0; struct atcmd_binding_data* retVal___ = NULL; if( HPMHooks.count.HP_atcommand_get_bind_byname_pre ) { - struct atcmd_binding_data* (*preHookFunc) (const char *name); + struct atcmd_binding_data* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_bind_byname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_get_bind_byname_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -402,11 +402,11 @@ AtCommandInfo* HP_atcommand_get_info_byname(const char *name) { int hIndex = 0; AtCommandInfo* retVal___ = NULL; if( HPMHooks.count.HP_atcommand_get_info_byname_pre ) { - AtCommandInfo* (*preHookFunc) (const char *name); + AtCommandInfo* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_info_byname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_get_info_byname_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -429,11 +429,11 @@ const char* HP_atcommand_check_alias(const char *aliasname) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_atcommand_check_alias_pre ) { - const char* (*preHookFunc) (const char *aliasname); + const char* (*preHookFunc) (const char **aliasname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_check_alias_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_check_alias_pre[hIndex].func; - retVal___ = preHookFunc(aliasname); + retVal___ = preHookFunc(&aliasname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -455,11 +455,11 @@ const char* HP_atcommand_check_alias(const char *aliasname) { void HP_atcommand_get_suggestions(struct map_session_data *sd, const char *name, bool is_atcmd_cmd) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_get_suggestions_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name, bool *is_atcmd_cmd); + void (*preHookFunc) (struct map_session_data **sd, const char **name, bool *is_atcmd_cmd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_suggestions_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_get_suggestions_pre[hIndex].func; - preHookFunc(sd, name, &is_atcmd_cmd); + preHookFunc(&sd, &name, &is_atcmd_cmd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -470,10 +470,10 @@ void HP_atcommand_get_suggestions(struct map_session_data *sd, const char *name, HPMHooks.source.atcommand.get_suggestions(sd, name, is_atcmd_cmd); } if( HPMHooks.count.HP_atcommand_get_suggestions_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *name, bool *is_atcmd_cmd); + void (*postHookFunc) (struct map_session_data *sd, const char *name, bool is_atcmd_cmd); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_suggestions_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_get_suggestions_post[hIndex].func; - postHookFunc(sd, name, &is_atcmd_cmd); + postHookFunc(sd, name, is_atcmd_cmd); } } return; @@ -481,11 +481,11 @@ void HP_atcommand_get_suggestions(struct map_session_data *sd, const char *name, void HP_atcommand_config_read(const char *config_filename) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_config_read_pre ) { - void (*preHookFunc) (const char *config_filename); + void (*preHookFunc) (const char **config_filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_config_read_pre[hIndex].func; - preHookFunc(config_filename); + preHookFunc(&config_filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -508,12 +508,12 @@ int HP_atcommand_stopattack(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_stopattack_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_stopattack_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_stopattack_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -541,12 +541,12 @@ int HP_atcommand_pvpoff_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_pvpoff_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_pvpoff_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_pvpoff_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -574,12 +574,12 @@ int HP_atcommand_pvpon_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_pvpon_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_pvpon_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_pvpon_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -607,12 +607,12 @@ int HP_atcommand_atkillmonster_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_atkillmonster_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_atkillmonster_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_atkillmonster_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -639,11 +639,11 @@ int HP_atcommand_atkillmonster_sub(struct block_list *bl, va_list ap) { void HP_atcommand_raise_sub(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_raise_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_raise_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_raise_sub_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -665,11 +665,11 @@ void HP_atcommand_raise_sub(struct map_session_data *sd) { void HP_atcommand_get_jail_time(int jailtime, int *year, int *month, int *day, int *hour, int *minute) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_get_jail_time_pre ) { - void (*preHookFunc) (int *jailtime, int *year, int *month, int *day, int *hour, int *minute); + void (*preHookFunc) (int *jailtime, int **year, int **month, int **day, int **hour, int **minute); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_jail_time_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_get_jail_time_pre[hIndex].func; - preHookFunc(&jailtime, year, month, day, hour, minute); + preHookFunc(&jailtime, &year, &month, &day, &hour, &minute); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -680,10 +680,10 @@ void HP_atcommand_get_jail_time(int jailtime, int *year, int *month, int *day, i HPMHooks.source.atcommand.get_jail_time(jailtime, year, month, day, hour, minute); } if( HPMHooks.count.HP_atcommand_get_jail_time_post ) { - void (*postHookFunc) (int *jailtime, int *year, int *month, int *day, int *hour, int *minute); + void (*postHookFunc) (int jailtime, int *year, int *month, int *day, int *hour, int *minute); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_get_jail_time_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_get_jail_time_post[hIndex].func; - postHookFunc(&jailtime, year, month, day, hour, minute); + postHookFunc(jailtime, year, month, day, hour, minute); } } return; @@ -692,12 +692,12 @@ int HP_atcommand_cleanfloor_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_cleanfloor_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_cleanfloor_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_cleanfloor_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -725,12 +725,12 @@ int HP_atcommand_mutearea_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_mutearea_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_mutearea_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_atcommand_mutearea_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -757,11 +757,11 @@ int HP_atcommand_mutearea_sub(struct block_list *bl, va_list ap) { void HP_atcommand_getring(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_getring_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_getring_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_getring_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -783,11 +783,11 @@ void HP_atcommand_getring(struct map_session_data *sd) { void HP_atcommand_channel_help(int fd, const char *command, bool can_create) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_channel_help_pre ) { - void (*preHookFunc) (int *fd, const char *command, bool *can_create); + void (*preHookFunc) (int *fd, const char **command, bool *can_create); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_channel_help_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_channel_help_pre[hIndex].func; - preHookFunc(&fd, command, &can_create); + preHookFunc(&fd, &command, &can_create); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -798,10 +798,10 @@ void HP_atcommand_channel_help(int fd, const char *command, bool can_create) { HPMHooks.source.atcommand.channel_help(fd, command, can_create); } if( HPMHooks.count.HP_atcommand_channel_help_post ) { - void (*postHookFunc) (int *fd, const char *command, bool *can_create); + void (*postHookFunc) (int fd, const char *command, bool can_create); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_channel_help_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_channel_help_post[hIndex].func; - postHookFunc(&fd, command, &can_create); + postHookFunc(fd, command, can_create); } } return; @@ -809,11 +809,11 @@ void HP_atcommand_channel_help(int fd, const char *command, bool can_create) { void HP_atcommand_commands_sub(struct map_session_data *sd, const int fd, AtCommandType type) { int hIndex = 0; if( HPMHooks.count.HP_atcommand_commands_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const int *fd, AtCommandType *type); + void (*preHookFunc) (struct map_session_data **sd, const int *fd, AtCommandType *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_commands_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_commands_sub_pre[hIndex].func; - preHookFunc(sd, &fd, &type); + preHookFunc(&sd, &fd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -824,10 +824,10 @@ void HP_atcommand_commands_sub(struct map_session_data *sd, const int fd, AtComm HPMHooks.source.atcommand.commands_sub(sd, fd, type); } if( HPMHooks.count.HP_atcommand_commands_sub_post ) { - void (*postHookFunc) (struct map_session_data *sd, const int *fd, AtCommandType *type); + void (*postHookFunc) (struct map_session_data *sd, const int fd, AtCommandType type); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_commands_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_commands_sub_post[hIndex].func; - postHookFunc(sd, &fd, &type); + postHookFunc(sd, fd, type); } } return; @@ -858,16 +858,16 @@ void HP_atcommand_cmd_db_clear(void) { } return; } -int HP_atcommand_cmd_db_clear_sub(DBKey key, DBData *data, va_list args) { +int HP_atcommand_cmd_db_clear_sub(union DBKey key, struct DBData *data, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_atcommand_cmd_db_clear_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list args); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_cmd_db_clear_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_atcommand_cmd_db_clear_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, args___copy); + retVal___ = preHookFunc(&key, &data, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -881,11 +881,11 @@ int HP_atcommand_cmd_db_clear_sub(DBKey key, DBData *data, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_atcommand_cmd_db_clear_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list args); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_cmd_db_clear_sub_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_atcommand_cmd_db_clear_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, args___copy); + retVal___ = postHookFunc(retVal___, key, data, args___copy); va_end(args___copy); } } @@ -947,11 +947,11 @@ bool HP_atcommand_add(char *name, AtCommandFunc func, bool replace) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_add_pre ) { - bool (*preHookFunc) (char *name, AtCommandFunc *func, bool *replace); + bool (*preHookFunc) (char **name, AtCommandFunc *func, bool *replace); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_add_pre[hIndex].func; - retVal___ = preHookFunc(name, &func, &replace); + retVal___ = preHookFunc(&name, &func, &replace); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -962,10 +962,10 @@ bool HP_atcommand_add(char *name, AtCommandFunc func, bool replace) { retVal___ = HPMHooks.source.atcommand.add(name, func, replace); } if( HPMHooks.count.HP_atcommand_add_post ) { - bool (*postHookFunc) (bool retVal___, char *name, AtCommandFunc *func, bool *replace); + bool (*postHookFunc) (bool retVal___, char *name, AtCommandFunc func, bool replace); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &func, &replace); + retVal___ = postHookFunc(retVal___, name, func, replace); } } return retVal___; @@ -989,10 +989,10 @@ const char* HP_atcommand_msg(int msg_number) { retVal___ = HPMHooks.source.atcommand.msg(msg_number); } if( HPMHooks.count.HP_atcommand_msg_post ) { - const char* (*postHookFunc) (const char* retVal___, int *msg_number); + const char* (*postHookFunc) (const char* retVal___, int msg_number); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_msg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &msg_number); + retVal___ = postHookFunc(retVal___, msg_number); } } return retVal___; @@ -1042,10 +1042,10 @@ const char* HP_atcommand_msgfd(int fd, int msg_number) { retVal___ = HPMHooks.source.atcommand.msgfd(fd, msg_number); } if( HPMHooks.count.HP_atcommand_msgfd_post ) { - const char* (*postHookFunc) (const char* retVal___, int *fd, int *msg_number); + const char* (*postHookFunc) (const char* retVal___, int fd, int msg_number); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msgfd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_msgfd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, &msg_number); + retVal___ = postHookFunc(retVal___, fd, msg_number); } } return retVal___; @@ -1054,11 +1054,11 @@ const char* HP_atcommand_msgsd(struct map_session_data *sd, int msg_number) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_atcommand_msgsd_pre ) { - const char* (*preHookFunc) (struct map_session_data *sd, int *msg_number); + const char* (*preHookFunc) (struct map_session_data **sd, int *msg_number); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msgsd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_msgsd_pre[hIndex].func; - retVal___ = preHookFunc(sd, &msg_number); + retVal___ = preHookFunc(&sd, &msg_number); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1069,15 +1069,15 @@ const char* HP_atcommand_msgsd(struct map_session_data *sd, int msg_number) { retVal___ = HPMHooks.source.atcommand.msgsd(sd, msg_number); } if( HPMHooks.count.HP_atcommand_msgsd_post ) { - const char* (*postHookFunc) (const char* retVal___, struct map_session_data *sd, int *msg_number); + const char* (*postHookFunc) (const char* retVal___, struct map_session_data *sd, int msg_number); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msgsd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_msgsd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &msg_number); + retVal___ = postHookFunc(retVal___, sd, msg_number); } } return retVal___; } -/* battle */ +/* battle_interface */ void HP_battle_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_battle_init_pre ) { @@ -1096,10 +1096,10 @@ void HP_battle_init(bool minimal) { HPMHooks.source.battle.init(minimal); } if( HPMHooks.count.HP_battle_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -1132,14 +1132,13 @@ void HP_battle_final(void) { } struct Damage HP_battle_calc_attack(int attack_type, struct block_list *bl, struct block_list *target, uint16 skill_id, uint16 skill_lv, int count) { int hIndex = 0; - struct Damage retVal___; - memset(&retVal___, '\0', sizeof(struct Damage)); + struct Damage retVal___ = { 0 }; if( HPMHooks.count.HP_battle_calc_attack_pre ) { - struct Damage (*preHookFunc) (int *attack_type, struct block_list *bl, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *count); + struct Damage (*preHookFunc) (int *attack_type, struct block_list **bl, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_attack_pre[hIndex].func; - retVal___ = preHookFunc(&attack_type, bl, target, &skill_id, &skill_lv, &count); + retVal___ = preHookFunc(&attack_type, &bl, &target, &skill_id, &skill_lv, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1150,10 +1149,10 @@ struct Damage HP_battle_calc_attack(int attack_type, struct block_list *bl, stru retVal___ = HPMHooks.source.battle.calc_attack(attack_type, bl, target, skill_id, skill_lv, count); } if( HPMHooks.count.HP_battle_calc_attack_post ) { - struct Damage (*postHookFunc) (struct Damage retVal___, int *attack_type, struct block_list *bl, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *count); + struct Damage (*postHookFunc) (struct Damage retVal___, int attack_type, struct block_list *bl, struct block_list *target, uint16 skill_id, uint16 skill_lv, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &attack_type, bl, target, &skill_id, &skill_lv, &count); + retVal___ = postHookFunc(retVal___, attack_type, bl, target, skill_id, skill_lv, count); } } return retVal___; @@ -1162,11 +1161,11 @@ int64 HP_battle_calc_damage(struct block_list *src, struct block_list *bl, struc int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_damage_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, struct Damage *d, int64 *damage, uint16 *skill_id, uint16 *skill_lv); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, struct Damage **d, int64 *damage, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, d, &damage, &skill_id, &skill_lv); + retVal___ = preHookFunc(&src, &bl, &d, &damage, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1177,10 +1176,10 @@ int64 HP_battle_calc_damage(struct block_list *src, struct block_list *bl, struc retVal___ = HPMHooks.source.battle.calc_damage(src, bl, d, damage, skill_id, skill_lv); } if( HPMHooks.count.HP_battle_calc_damage_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, struct Damage *d, int64 *damage, uint16 *skill_id, uint16 *skill_lv); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, struct Damage *d, int64 damage, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, d, &damage, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, src, bl, d, damage, skill_id, skill_lv); } } return retVal___; @@ -1189,11 +1188,11 @@ int64 HP_battle_calc_gvg_damage(struct block_list *src, struct block_list *bl, i int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_gvg_damage_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_gvg_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_gvg_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &damage, &div_, &skill_id, &skill_lv, &flag); + retVal___ = preHookFunc(&src, &bl, &damage, &div_, &skill_id, &skill_lv, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1204,10 +1203,10 @@ int64 HP_battle_calc_gvg_damage(struct block_list *src, struct block_list *bl, i retVal___ = HPMHooks.source.battle.calc_gvg_damage(src, bl, damage, div_, skill_id, skill_lv, flag); } if( HPMHooks.count.HP_battle_calc_gvg_damage_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_gvg_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_gvg_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &damage, &div_, &skill_id, &skill_lv, &flag); + retVal___ = postHookFunc(retVal___, src, bl, damage, div_, skill_id, skill_lv, flag); } } return retVal___; @@ -1216,11 +1215,11 @@ int64 HP_battle_calc_bg_damage(struct block_list *src, struct block_list *bl, in int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_bg_damage_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_bg_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_bg_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &damage, &div_, &skill_id, &skill_lv, &flag); + retVal___ = preHookFunc(&src, &bl, &damage, &div_, &skill_id, &skill_lv, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1231,10 +1230,10 @@ int64 HP_battle_calc_bg_damage(struct block_list *src, struct block_list *bl, in retVal___ = HPMHooks.source.battle.calc_bg_damage(src, bl, damage, div_, skill_id, skill_lv, flag); } if( HPMHooks.count.HP_battle_calc_bg_damage_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_bg_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_bg_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &damage, &div_, &skill_id, &skill_lv, &flag); + retVal___ = postHookFunc(retVal___, src, bl, damage, div_, skill_id, skill_lv, flag); } } return retVal___; @@ -1243,11 +1242,11 @@ enum damage_lv HP_battle_weapon_attack(struct block_list *bl, struct block_list int hIndex = 0; enum damage_lv retVal___ = ATK_NONE; if( HPMHooks.count.HP_battle_weapon_attack_pre ) { - enum damage_lv (*preHookFunc) (struct block_list *bl, struct block_list *target, int64 *tick, int *flag); + enum damage_lv (*preHookFunc) (struct block_list **bl, struct block_list **target, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_weapon_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_weapon_attack_pre[hIndex].func; - retVal___ = preHookFunc(bl, target, &tick, &flag); + retVal___ = preHookFunc(&bl, &target, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1258,24 +1257,23 @@ enum damage_lv HP_battle_weapon_attack(struct block_list *bl, struct block_list retVal___ = HPMHooks.source.battle.weapon_attack(bl, target, tick, flag); } if( HPMHooks.count.HP_battle_weapon_attack_post ) { - enum damage_lv (*postHookFunc) (enum damage_lv retVal___, struct block_list *bl, struct block_list *target, int64 *tick, int *flag); + enum damage_lv (*postHookFunc) (enum damage_lv retVal___, struct block_list *bl, struct block_list *target, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_weapon_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_weapon_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, target, &tick, &flag); + retVal___ = postHookFunc(retVal___, bl, target, tick, flag); } } return retVal___; } struct Damage HP_battle_calc_weapon_attack(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int wflag) { int hIndex = 0; - struct Damage retVal___; - memset(&retVal___, '\0', sizeof(struct Damage)); + struct Damage retVal___ = { 0 }; if( HPMHooks.count.HP_battle_calc_weapon_attack_pre ) { - struct Damage (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *wflag); + struct Damage (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int *wflag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_weapon_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_weapon_attack_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &wflag); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &wflag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1286,10 +1284,10 @@ struct Damage HP_battle_calc_weapon_attack(struct block_list *src, struct block_ retVal___ = HPMHooks.source.battle.calc_weapon_attack(src, target, skill_id, skill_lv, wflag); } if( HPMHooks.count.HP_battle_calc_weapon_attack_post ) { - struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *wflag); + struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int wflag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_weapon_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_weapon_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &wflag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, wflag); } } return retVal___; @@ -1298,11 +1296,11 @@ int HP_battle_delay_damage(int64 tick, int amotion, struct block_list *src, stru int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_delay_damage_pre ) { - int (*preHookFunc) (int64 *tick, int *amotion, struct block_list *src, struct block_list *target, int *attack_type, uint16 *skill_id, uint16 *skill_lv, int64 *damage, enum damage_lv *dmg_lv, int *ddelay, bool *additional_effects); + int (*preHookFunc) (int64 *tick, int *amotion, struct block_list **src, struct block_list **target, int *attack_type, uint16 *skill_id, uint16 *skill_lv, int64 *damage, enum damage_lv *dmg_lv, int *ddelay, bool *additional_effects); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_delay_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_delay_damage_pre[hIndex].func; - retVal___ = preHookFunc(&tick, &amotion, src, target, &attack_type, &skill_id, &skill_lv, &damage, &dmg_lv, &ddelay, &additional_effects); + retVal___ = preHookFunc(&tick, &amotion, &src, &target, &attack_type, &skill_id, &skill_lv, &damage, &dmg_lv, &ddelay, &additional_effects); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1313,10 +1311,10 @@ int HP_battle_delay_damage(int64 tick, int amotion, struct block_list *src, stru retVal___ = HPMHooks.source.battle.delay_damage(tick, amotion, src, target, attack_type, skill_id, skill_lv, damage, dmg_lv, ddelay, additional_effects); } if( HPMHooks.count.HP_battle_delay_damage_post ) { - int (*postHookFunc) (int retVal___, int64 *tick, int *amotion, struct block_list *src, struct block_list *target, int *attack_type, uint16 *skill_id, uint16 *skill_lv, int64 *damage, enum damage_lv *dmg_lv, int *ddelay, bool *additional_effects); + int (*postHookFunc) (int retVal___, int64 tick, int amotion, struct block_list *src, struct block_list *target, int attack_type, uint16 skill_id, uint16 skill_lv, int64 damage, enum damage_lv dmg_lv, int ddelay, bool additional_effects); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_delay_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_delay_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tick, &amotion, src, target, &attack_type, &skill_id, &skill_lv, &damage, &dmg_lv, &ddelay, &additional_effects); + retVal___ = postHookFunc(retVal___, tick, amotion, src, target, attack_type, skill_id, skill_lv, damage, dmg_lv, ddelay, additional_effects); } } return retVal___; @@ -1324,11 +1322,11 @@ int HP_battle_delay_damage(int64 tick, int amotion, struct block_list *src, stru void HP_battle_drain(struct map_session_data *sd, struct block_list *tbl, int64 rdamage, int64 ldamage, int race, int boss) { int hIndex = 0; if( HPMHooks.count.HP_battle_drain_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *tbl, int64 *rdamage, int64 *ldamage, int *race, int *boss); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **tbl, int64 *rdamage, int64 *ldamage, int *race, int *boss); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_drain_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_drain_pre[hIndex].func; - preHookFunc(sd, tbl, &rdamage, &ldamage, &race, &boss); + preHookFunc(&sd, &tbl, &rdamage, &ldamage, &race, &boss); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1339,10 +1337,10 @@ void HP_battle_drain(struct map_session_data *sd, struct block_list *tbl, int64 HPMHooks.source.battle.drain(sd, tbl, rdamage, ldamage, race, boss); } if( HPMHooks.count.HP_battle_drain_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct block_list *tbl, int64 *rdamage, int64 *ldamage, int *race, int *boss); + void (*postHookFunc) (struct map_session_data *sd, struct block_list *tbl, int64 rdamage, int64 ldamage, int race, int boss); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_drain_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_drain_post[hIndex].func; - postHookFunc(sd, tbl, &rdamage, &ldamage, &race, &boss); + postHookFunc(sd, tbl, rdamage, ldamage, race, boss); } } return; @@ -1350,11 +1348,11 @@ void HP_battle_drain(struct map_session_data *sd, struct block_list *tbl, int64 void HP_battle_reflect_damage(struct block_list *target, struct block_list *src, struct Damage *wd, uint16 skill_id) { int hIndex = 0; if( HPMHooks.count.HP_battle_reflect_damage_pre ) { - void (*preHookFunc) (struct block_list *target, struct block_list *src, struct Damage *wd, uint16 *skill_id); + void (*preHookFunc) (struct block_list **target, struct block_list **src, struct Damage **wd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_reflect_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_reflect_damage_pre[hIndex].func; - preHookFunc(target, src, wd, &skill_id); + preHookFunc(&target, &src, &wd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1365,10 +1363,10 @@ void HP_battle_reflect_damage(struct block_list *target, struct block_list *src, HPMHooks.source.battle.reflect_damage(target, src, wd, skill_id); } if( HPMHooks.count.HP_battle_reflect_damage_post ) { - void (*postHookFunc) (struct block_list *target, struct block_list *src, struct Damage *wd, uint16 *skill_id); + void (*postHookFunc) (struct block_list *target, struct block_list *src, struct Damage *wd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_reflect_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_reflect_damage_post[hIndex].func; - postHookFunc(target, src, wd, &skill_id); + postHookFunc(target, src, wd, skill_id); } } return; @@ -1392,10 +1390,10 @@ int HP_battle_attr_ratio(int atk_elem, int def_type, int def_lv) { retVal___ = HPMHooks.source.battle.attr_ratio(atk_elem, def_type, def_lv); } if( HPMHooks.count.HP_battle_attr_ratio_post ) { - int (*postHookFunc) (int retVal___, int *atk_elem, int *def_type, int *def_lv); + int (*postHookFunc) (int retVal___, int atk_elem, int def_type, int def_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_attr_ratio_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_attr_ratio_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &atk_elem, &def_type, &def_lv); + retVal___ = postHookFunc(retVal___, atk_elem, def_type, def_lv); } } return retVal___; @@ -1404,11 +1402,11 @@ int64 HP_battle_attr_fix(struct block_list *src, struct block_list *target, int6 int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_attr_fix_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *target, int64 *damage, int *atk_elem, int *def_type, int *def_lv); + int64 (*preHookFunc) (struct block_list **src, struct block_list **target, int64 *damage, int *atk_elem, int *def_type, int *def_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_attr_fix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_attr_fix_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &damage, &atk_elem, &def_type, &def_lv); + retVal___ = preHookFunc(&src, &target, &damage, &atk_elem, &def_type, &def_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1419,10 +1417,10 @@ int64 HP_battle_attr_fix(struct block_list *src, struct block_list *target, int6 retVal___ = HPMHooks.source.battle.attr_fix(src, target, damage, atk_elem, def_type, def_lv); } if( HPMHooks.count.HP_battle_attr_fix_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, int64 *damage, int *atk_elem, int *def_type, int *def_lv); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, int64 damage, int atk_elem, int def_type, int def_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_attr_fix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_attr_fix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &damage, &atk_elem, &def_type, &def_lv); + retVal___ = postHookFunc(retVal___, src, target, damage, atk_elem, def_type, def_lv); } } return retVal___; @@ -1431,11 +1429,11 @@ int64 HP_battle_calc_cardfix(int attack_type, struct block_list *src, struct blo int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_cardfix_pre ) { - int64 (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, int *nk, int *s_ele, int *s_ele_, int64 *damage, int *left, int *flag); + int64 (*preHookFunc) (int *attack_type, struct block_list **src, struct block_list **target, int *nk, int *s_ele, int *s_ele_, int64 *damage, int *left, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_cardfix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_cardfix_pre[hIndex].func; - retVal___ = preHookFunc(&attack_type, src, target, &nk, &s_ele, &s_ele_, &damage, &left, &flag); + retVal___ = preHookFunc(&attack_type, &src, &target, &nk, &s_ele, &s_ele_, &damage, &left, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1446,10 +1444,10 @@ int64 HP_battle_calc_cardfix(int attack_type, struct block_list *src, struct blo retVal___ = HPMHooks.source.battle.calc_cardfix(attack_type, src, target, nk, s_ele, s_ele_, damage, left, flag); } if( HPMHooks.count.HP_battle_calc_cardfix_post ) { - int64 (*postHookFunc) (int64 retVal___, int *attack_type, struct block_list *src, struct block_list *target, int *nk, int *s_ele, int *s_ele_, int64 *damage, int *left, int *flag); + int64 (*postHookFunc) (int64 retVal___, int attack_type, struct block_list *src, struct block_list *target, int nk, int s_ele, int s_ele_, int64 damage, int left, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_cardfix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_cardfix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &attack_type, src, target, &nk, &s_ele, &s_ele_, &damage, &left, &flag); + retVal___ = postHookFunc(retVal___, attack_type, src, target, nk, s_ele, s_ele_, damage, left, flag); } } return retVal___; @@ -1458,11 +1456,11 @@ int64 HP_battle_calc_cardfix2(struct block_list *src, struct block_list *bl, int int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_cardfix2_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, int64 *damage, int *s_ele, int *nk, int *flag); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, int64 *damage, int *s_ele, int *nk, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_cardfix2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_cardfix2_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &damage, &s_ele, &nk, &flag); + retVal___ = preHookFunc(&src, &bl, &damage, &s_ele, &nk, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1473,10 +1471,10 @@ int64 HP_battle_calc_cardfix2(struct block_list *src, struct block_list *bl, int retVal___ = HPMHooks.source.battle.calc_cardfix2(src, bl, damage, s_ele, nk, flag); } if( HPMHooks.count.HP_battle_calc_cardfix2_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 *damage, int *s_ele, int *nk, int *flag); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, int64 damage, int s_ele, int nk, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_cardfix2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_cardfix2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &damage, &s_ele, &nk, &flag); + retVal___ = postHookFunc(retVal___, src, bl, damage, s_ele, nk, flag); } } return retVal___; @@ -1485,11 +1483,11 @@ int64 HP_battle_calc_elefix(struct block_list *src, struct block_list *target, u int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_elefix_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *nk, int *n_ele, int *s_ele, int *s_ele_, bool *left, int *flag); + int64 (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *nk, int *n_ele, int *s_ele, int *s_ele_, bool *left, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_elefix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_elefix_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &damage, &nk, &n_ele, &s_ele, &s_ele_, &left, &flag); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &damage, &nk, &n_ele, &s_ele, &s_ele_, &left, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1500,10 +1498,10 @@ int64 HP_battle_calc_elefix(struct block_list *src, struct block_list *target, u retVal___ = HPMHooks.source.battle.calc_elefix(src, target, skill_id, skill_lv, damage, nk, n_ele, s_ele, s_ele_, left, flag); } if( HPMHooks.count.HP_battle_calc_elefix_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *nk, int *n_ele, int *s_ele, int *s_ele_, bool *left, int *flag); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int nk, int n_ele, int s_ele, int s_ele_, bool left, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_elefix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_elefix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &damage, &nk, &n_ele, &s_ele, &s_ele_, &left, &flag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, damage, nk, n_ele, s_ele, s_ele_, left, flag); } } return retVal___; @@ -1512,11 +1510,11 @@ int64 HP_battle_calc_masteryfix(struct block_list *src, struct block_list *targe int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_masteryfix_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon); + int64 (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_masteryfix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_masteryfix_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &damage, &div, &left, &weapon); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &damage, &div, &left, &weapon); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1527,10 +1525,10 @@ int64 HP_battle_calc_masteryfix(struct block_list *src, struct block_list *targe retVal___ = HPMHooks.source.battle.calc_masteryfix(src, target, skill_id, skill_lv, damage, div, left, weapon); } if( HPMHooks.count.HP_battle_calc_masteryfix_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int div, bool left, bool weapon); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_masteryfix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_masteryfix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &damage, &div, &left, &weapon); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, damage, div, left, weapon); } } return retVal___; @@ -1539,11 +1537,11 @@ int HP_battle_calc_chorusbonus(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_calc_chorusbonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_chorusbonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_chorusbonus_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1566,11 +1564,11 @@ int HP_battle_calc_skillratio(int attack_type, struct block_list *src, struct bl int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_calc_skillratio_pre ) { - int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + int (*preHookFunc) (int *attack_type, struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_skillratio_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_skillratio_pre[hIndex].func; - retVal___ = preHookFunc(&attack_type, src, target, &skill_id, &skill_lv, &skillratio, &flag); + retVal___ = preHookFunc(&attack_type, &src, &target, &skill_id, &skill_lv, &skillratio, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1581,10 +1579,10 @@ int HP_battle_calc_skillratio(int attack_type, struct block_list *src, struct bl retVal___ = HPMHooks.source.battle.calc_skillratio(attack_type, src, target, skill_id, skill_lv, skillratio, flag); } if( HPMHooks.count.HP_battle_calc_skillratio_post ) { - int (*postHookFunc) (int retVal___, int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + int (*postHookFunc) (int retVal___, int attack_type, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int skillratio, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_skillratio_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_skillratio_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &attack_type, src, target, &skill_id, &skill_lv, &skillratio, &flag); + retVal___ = postHookFunc(retVal___, attack_type, src, target, skill_id, skill_lv, skillratio, flag); } } return retVal___; @@ -1593,11 +1591,11 @@ int64 HP_battle_calc_sizefix(struct map_session_data *sd, int64 damage, int type int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_sizefix_pre ) { - int64 (*preHookFunc) (struct map_session_data *sd, int64 *damage, int *type, int *size, bool *ignore); + int64 (*preHookFunc) (struct map_session_data **sd, int64 *damage, int *type, int *size, bool *ignore); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_sizefix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_sizefix_pre[hIndex].func; - retVal___ = preHookFunc(sd, &damage, &type, &size, &ignore); + retVal___ = preHookFunc(&sd, &damage, &type, &size, &ignore); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1608,10 +1606,10 @@ int64 HP_battle_calc_sizefix(struct map_session_data *sd, int64 damage, int type retVal___ = HPMHooks.source.battle.calc_sizefix(sd, damage, type, size, ignore); } if( HPMHooks.count.HP_battle_calc_sizefix_post ) { - int64 (*postHookFunc) (int64 retVal___, struct map_session_data *sd, int64 *damage, int *type, int *size, bool *ignore); + int64 (*postHookFunc) (int64 retVal___, struct map_session_data *sd, int64 damage, int type, int size, bool ignore); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_sizefix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_sizefix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &damage, &type, &size, &ignore); + retVal___ = postHookFunc(retVal___, sd, damage, type, size, ignore); } } return retVal___; @@ -1620,11 +1618,11 @@ int64 HP_battle_calc_weapon_damage(struct block_list *src, struct block_list *bl int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_weapon_damage_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, struct weapon_atk *watk, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *size, int *type, int *flag, int *flag2); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, struct weapon_atk **watk, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *size, int *type, int *flag, int *flag2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_weapon_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_weapon_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, watk, &nk, &n_ele, &s_ele, &s_ele_, &size, &type, &flag, &flag2); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &watk, &nk, &n_ele, &s_ele, &s_ele_, &size, &type, &flag, &flag2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1635,10 +1633,10 @@ int64 HP_battle_calc_weapon_damage(struct block_list *src, struct block_list *bl retVal___ = HPMHooks.source.battle.calc_weapon_damage(src, bl, skill_id, skill_lv, watk, nk, n_ele, s_ele, s_ele_, size, type, flag, flag2); } if( HPMHooks.count.HP_battle_calc_weapon_damage_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, struct weapon_atk *watk, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *size, int *type, int *flag, int *flag2); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, struct weapon_atk *watk, int nk, bool n_ele, short s_ele, short s_ele_, int size, int type, int flag, int flag2); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_weapon_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_weapon_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, watk, &nk, &n_ele, &s_ele, &s_ele_, &size, &type, &flag, &flag2); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, watk, nk, n_ele, s_ele, s_ele_, size, type, flag, flag2); } } return retVal___; @@ -1647,11 +1645,11 @@ int64 HP_battle_calc_defense(int attack_type, struct block_list *src, struct blo int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_defense_pre ) { - int64 (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *flag, int *pdef); + int64 (*preHookFunc) (int *attack_type, struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *flag, int *pdef); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_defense_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_defense_pre[hIndex].func; - retVal___ = preHookFunc(&attack_type, src, target, &skill_id, &skill_lv, &damage, &flag, &pdef); + retVal___ = preHookFunc(&attack_type, &src, &target, &skill_id, &skill_lv, &damage, &flag, &pdef); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1662,10 +1660,10 @@ int64 HP_battle_calc_defense(int attack_type, struct block_list *src, struct blo retVal___ = HPMHooks.source.battle.calc_defense(attack_type, src, target, skill_id, skill_lv, damage, flag, pdef); } if( HPMHooks.count.HP_battle_calc_defense_post ) { - int64 (*postHookFunc) (int64 retVal___, int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *flag, int *pdef); + int64 (*postHookFunc) (int64 retVal___, int attack_type, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int flag, int pdef); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_defense_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_defense_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &attack_type, src, target, &skill_id, &skill_lv, &damage, &flag, &pdef); + retVal___ = postHookFunc(retVal___, attack_type, src, target, skill_id, skill_lv, damage, flag, pdef); } } return retVal___; @@ -1674,11 +1672,11 @@ struct block_list* HP_battle_get_master(struct block_list *src) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_battle_get_master_pre ) { - struct block_list* (*preHookFunc) (struct block_list *src); + struct block_list* (*preHookFunc) (struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_master_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_master_pre[hIndex].func; - retVal___ = preHookFunc(src); + retVal___ = preHookFunc(&src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1701,11 +1699,11 @@ struct block_list* HP_battle_get_targeted(struct block_list *target) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_battle_get_targeted_pre ) { - struct block_list* (*preHookFunc) (struct block_list *target); + struct block_list* (*preHookFunc) (struct block_list **target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_targeted_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_targeted_pre[hIndex].func; - retVal___ = preHookFunc(target); + retVal___ = preHookFunc(&target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1728,11 +1726,11 @@ struct block_list* HP_battle_get_enemy(struct block_list *target, int type, int int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_battle_get_enemy_pre ) { - struct block_list* (*preHookFunc) (struct block_list *target, int *type, int *range); + struct block_list* (*preHookFunc) (struct block_list **target, int *type, int *range); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_enemy_pre[hIndex].func; - retVal___ = preHookFunc(target, &type, &range); + retVal___ = preHookFunc(&target, &type, &range); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1743,10 +1741,10 @@ struct block_list* HP_battle_get_enemy(struct block_list *target, int type, int retVal___ = HPMHooks.source.battle.get_enemy(target, type, range); } if( HPMHooks.count.HP_battle_get_enemy_post ) { - struct block_list* (*postHookFunc) (struct block_list* retVal___, struct block_list *target, int *type, int *range); + struct block_list* (*postHookFunc) (struct block_list* retVal___, struct block_list *target, int type, int range); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_get_enemy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, target, &type, &range); + retVal___ = postHookFunc(retVal___, target, type, range); } } return retVal___; @@ -1755,11 +1753,11 @@ int HP_battle_get_target(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_get_target_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_target_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_target_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1782,11 +1780,11 @@ int HP_battle_get_current_skill(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_get_current_skill_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_current_skill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_current_skill_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1824,10 +1822,10 @@ bool HP_battle_check_undead(int race, int element) { retVal___ = HPMHooks.source.battle.check_undead(race, element); } if( HPMHooks.count.HP_battle_check_undead_post ) { - bool (*postHookFunc) (bool retVal___, int *race, int *element); + bool (*postHookFunc) (bool retVal___, int race, int element); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_undead_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_check_undead_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &race, &element); + retVal___ = postHookFunc(retVal___, race, element); } } return retVal___; @@ -1836,11 +1834,11 @@ int HP_battle_check_target(struct block_list *src, struct block_list *target, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_check_target_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_target_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_check_target_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &flag); + retVal___ = preHookFunc(&src, &target, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1851,10 +1849,10 @@ int HP_battle_check_target(struct block_list *src, struct block_list *target, in retVal___ = HPMHooks.source.battle.check_target(src, target, flag); } if( HPMHooks.count.HP_battle_check_target_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_target_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_check_target_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &flag); + retVal___ = postHookFunc(retVal___, src, target, flag); } } return retVal___; @@ -1863,11 +1861,11 @@ bool HP_battle_check_range(struct block_list *src, struct block_list *bl, int ra int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_battle_check_range_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, int *range); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, int *range); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_range_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_check_range_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &range); + retVal___ = preHookFunc(&src, &bl, &range); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1878,10 +1876,10 @@ bool HP_battle_check_range(struct block_list *src, struct block_list *bl, int ra retVal___ = HPMHooks.source.battle.check_range(src, bl, range); } if( HPMHooks.count.HP_battle_check_range_post ) { - bool (*postHookFunc) (bool retVal___, struct block_list *src, struct block_list *bl, int *range); + bool (*postHookFunc) (bool retVal___, struct block_list *src, struct block_list *bl, int range); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_range_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_check_range_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &range); + retVal___ = postHookFunc(retVal___, src, bl, range); } } return retVal___; @@ -1889,11 +1887,11 @@ bool HP_battle_check_range(struct block_list *src, struct block_list *bl, int ra void HP_battle_consume_ammo(struct map_session_data *sd, int skill_id, int lv) { int hIndex = 0; if( HPMHooks.count.HP_battle_consume_ammo_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *skill_id, int *lv); + void (*preHookFunc) (struct map_session_data **sd, int *skill_id, int *lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_consume_ammo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_consume_ammo_pre[hIndex].func; - preHookFunc(sd, &skill_id, &lv); + preHookFunc(&sd, &skill_id, &lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -1904,10 +1902,10 @@ void HP_battle_consume_ammo(struct map_session_data *sd, int skill_id, int lv) { HPMHooks.source.battle.consume_ammo(sd, skill_id, lv); } if( HPMHooks.count.HP_battle_consume_ammo_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *skill_id, int *lv); + void (*postHookFunc) (struct map_session_data *sd, int skill_id, int lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_consume_ammo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_consume_ammo_post[hIndex].func; - postHookFunc(sd, &skill_id, &lv); + postHookFunc(sd, skill_id, lv); } } return; @@ -1916,12 +1914,12 @@ int HP_battle_get_targeted_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_get_targeted_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_targeted_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_battle_get_targeted_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -1949,12 +1947,12 @@ int HP_battle_get_enemy_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_get_enemy_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_battle_get_enemy_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -1982,12 +1980,12 @@ int HP_battle_get_enemy_area_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_get_enemy_area_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_area_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_battle_get_enemy_area_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -2030,10 +2028,10 @@ int HP_battle_delay_damage_sub(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.battle.delay_damage_sub(tid, tick, id, data); } if( HPMHooks.count.HP_battle_delay_damage_sub_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_delay_damage_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_delay_damage_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -2042,11 +2040,11 @@ int HP_battle_blewcount_bonus(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_blewcount_bonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_blewcount_bonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_blewcount_bonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2057,10 +2055,10 @@ int HP_battle_blewcount_bonus(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.battle.blewcount_bonus(sd, skill_id); } if( HPMHooks.count.HP_battle_blewcount_bonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_blewcount_bonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_blewcount_bonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -2069,11 +2067,11 @@ int HP_battle_range_type(struct block_list *src, struct block_list *target, uint int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_range_type_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_range_type_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_range_type_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2084,10 +2082,10 @@ int HP_battle_range_type(struct block_list *src, struct block_list *target, uint retVal___ = HPMHooks.source.battle.range_type(src, target, skill_id, skill_lv); } if( HPMHooks.count.HP_battle_range_type_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_range_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_range_type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv); } } return retVal___; @@ -2096,11 +2094,11 @@ int64 HP_battle_calc_base_damage(struct block_list *src, struct block_list *bl, int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_base_damage_pre ) { - int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *type, int *flag, int *flag2); + int64 (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *type, int *flag, int *flag2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_base_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, &nk, &n_ele, &s_ele, &s_ele_, &type, &flag, &flag2); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &nk, &n_ele, &s_ele, &s_ele_, &type, &flag, &flag2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2111,10 +2109,10 @@ int64 HP_battle_calc_base_damage(struct block_list *src, struct block_list *bl, retVal___ = HPMHooks.source.battle.calc_base_damage(src, bl, skill_id, skill_lv, nk, n_ele, s_ele, s_ele_, type, flag, flag2); } if( HPMHooks.count.HP_battle_calc_base_damage_post ) { - int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *type, int *flag, int *flag2); + int64 (*postHookFunc) (int64 retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int nk, bool n_ele, short s_ele, short s_ele_, int type, int flag, int flag2); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_base_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, &nk, &n_ele, &s_ele, &s_ele_, &type, &flag, &flag2); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, nk, n_ele, s_ele, s_ele_, type, flag, flag2); } } return retVal___; @@ -2123,11 +2121,11 @@ int64 HP_battle_calc_base_damage2(struct status_data *st, struct weapon_atk *wa, int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_calc_base_damage2_pre ) { - int64 (*preHookFunc) (struct status_data *st, struct weapon_atk *wa, struct status_change *sc, unsigned short *t_size, struct map_session_data *sd, int *flag); + int64 (*preHookFunc) (struct status_data **st, struct weapon_atk **wa, struct status_change **sc, unsigned short *t_size, struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_base_damage2_pre[hIndex].func; - retVal___ = preHookFunc(st, wa, sc, &t_size, sd, &flag); + retVal___ = preHookFunc(&st, &wa, &sc, &t_size, &sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2138,24 +2136,23 @@ int64 HP_battle_calc_base_damage2(struct status_data *st, struct weapon_atk *wa, retVal___ = HPMHooks.source.battle.calc_base_damage2(st, wa, sc, t_size, sd, flag); } if( HPMHooks.count.HP_battle_calc_base_damage2_post ) { - int64 (*postHookFunc) (int64 retVal___, struct status_data *st, struct weapon_atk *wa, struct status_change *sc, unsigned short *t_size, struct map_session_data *sd, int *flag); + int64 (*postHookFunc) (int64 retVal___, struct status_data *st, struct weapon_atk *wa, struct status_change *sc, unsigned short t_size, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_base_damage2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, st, wa, sc, &t_size, sd, &flag); + retVal___ = postHookFunc(retVal___, st, wa, sc, t_size, sd, flag); } } return retVal___; } struct Damage HP_battle_calc_misc_attack(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int mflag) { int hIndex = 0; - struct Damage retVal___; - memset(&retVal___, '\0', sizeof(struct Damage)); + struct Damage retVal___ = { 0 }; if( HPMHooks.count.HP_battle_calc_misc_attack_pre ) { - struct Damage (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag); + struct Damage (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int *mflag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_misc_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_misc_attack_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &mflag); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &mflag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2166,24 +2163,23 @@ struct Damage HP_battle_calc_misc_attack(struct block_list *src, struct block_li retVal___ = HPMHooks.source.battle.calc_misc_attack(src, target, skill_id, skill_lv, mflag); } if( HPMHooks.count.HP_battle_calc_misc_attack_post ) { - struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag); + struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int mflag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_misc_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_misc_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &mflag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, mflag); } } return retVal___; } struct Damage HP_battle_calc_magic_attack(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int mflag) { int hIndex = 0; - struct Damage retVal___; - memset(&retVal___, '\0', sizeof(struct Damage)); + struct Damage retVal___ = { 0 }; if( HPMHooks.count.HP_battle_calc_magic_attack_pre ) { - struct Damage (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag); + struct Damage (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int *mflag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_magic_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_magic_attack_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &mflag); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &mflag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2194,10 +2190,10 @@ struct Damage HP_battle_calc_magic_attack(struct block_list *src, struct block_l retVal___ = HPMHooks.source.battle.calc_magic_attack(src, target, skill_id, skill_lv, mflag); } if( HPMHooks.count.HP_battle_calc_magic_attack_post ) { - struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag); + struct Damage (*postHookFunc) (struct Damage retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int mflag); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_magic_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_magic_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &mflag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, mflag); } } return retVal___; @@ -2221,10 +2217,10 @@ int HP_battle_adjust_skill_damage(int m, unsigned short skill_id) { retVal___ = HPMHooks.source.battle.adjust_skill_damage(m, skill_id); } if( HPMHooks.count.HP_battle_adjust_skill_damage_post ) { - int (*postHookFunc) (int retVal___, int *m, unsigned short *skill_id); + int (*postHookFunc) (int retVal___, int m, unsigned short skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_adjust_skill_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_adjust_skill_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, &skill_id); + retVal___ = postHookFunc(retVal___, m, skill_id); } } return retVal___; @@ -2233,11 +2229,11 @@ int64 HP_battle_add_mastery(struct map_session_data *sd, struct block_list *targ int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_battle_add_mastery_pre ) { - int64 (*preHookFunc) (struct map_session_data *sd, struct block_list *target, int64 *dmg, int *type); + int64 (*preHookFunc) (struct map_session_data **sd, struct block_list **target, int64 *dmg, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_add_mastery_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_add_mastery_pre[hIndex].func; - retVal___ = preHookFunc(sd, target, &dmg, &type); + retVal___ = preHookFunc(&sd, &target, &dmg, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2248,10 +2244,10 @@ int64 HP_battle_add_mastery(struct map_session_data *sd, struct block_list *targ retVal___ = HPMHooks.source.battle.add_mastery(sd, target, dmg, type); } if( HPMHooks.count.HP_battle_add_mastery_post ) { - int64 (*postHookFunc) (int64 retVal___, struct map_session_data *sd, struct block_list *target, int64 *dmg, int *type); + int64 (*postHookFunc) (int64 retVal___, struct map_session_data *sd, struct block_list *target, int64 dmg, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_add_mastery_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_add_mastery_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, target, &dmg, &type); + retVal___ = postHookFunc(retVal___, sd, target, dmg, type); } } return retVal___; @@ -2275,10 +2271,10 @@ int HP_battle_calc_drain(int64 damage, int rate, int per) { retVal___ = HPMHooks.source.battle.calc_drain(damage, rate, per); } if( HPMHooks.count.HP_battle_calc_drain_post ) { - int (*postHookFunc) (int retVal___, int64 *damage, int *rate, int *per); + int (*postHookFunc) (int retVal___, int64 damage, int rate, int per); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_drain_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_calc_drain_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &damage, &rate, &per); + retVal___ = postHookFunc(retVal___, damage, rate, per); } } return retVal___; @@ -2287,11 +2283,11 @@ int HP_battle_config_read(const char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_config_read_pre ) { - int (*preHookFunc) (const char *cfgName); + int (*preHookFunc) (const char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_config_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2340,11 +2336,11 @@ int HP_battle_config_set_value(const char *w1, const char *w2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_config_set_value_pre ) { - int (*preHookFunc) (const char *w1, const char *w2); + int (*preHookFunc) (const char **w1, const char **w2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_set_value_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_config_set_value_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2); + retVal___ = preHookFunc(&w1, &w2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2367,11 +2363,11 @@ bool HP_battle_config_get_value(const char *w1, int *value) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_battle_config_get_value_pre ) { - bool (*preHookFunc) (const char *w1, int *value); + bool (*preHookFunc) (const char **w1, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_get_value_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_config_get_value_pre[hIndex].func; - retVal___ = preHookFunc(w1, value); + retVal___ = preHookFunc(&w1, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2420,11 +2416,11 @@ struct block_list* HP_battle_get_enemy_area(struct block_list *src, int x, int y int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_battle_get_enemy_area_pre ) { - struct block_list* (*preHookFunc) (struct block_list *src, int *x, int *y, int *range, int *type, int *ignore_id); + struct block_list* (*preHookFunc) (struct block_list **src, int *x, int *y, int *range, int *type, int *ignore_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_area_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_get_enemy_area_pre[hIndex].func; - retVal___ = preHookFunc(src, &x, &y, &range, &type, &ignore_id); + retVal___ = preHookFunc(&src, &x, &y, &range, &type, &ignore_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2435,10 +2431,10 @@ struct block_list* HP_battle_get_enemy_area(struct block_list *src, int x, int y retVal___ = HPMHooks.source.battle.get_enemy_area(src, x, y, range, type, ignore_id); } if( HPMHooks.count.HP_battle_get_enemy_area_post ) { - struct block_list* (*postHookFunc) (struct block_list* retVal___, struct block_list *src, int *x, int *y, int *range, int *type, int *ignore_id); + struct block_list* (*postHookFunc) (struct block_list* retVal___, struct block_list *src, int x, int y, int range, int type, int ignore_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_area_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_battle_get_enemy_area_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &x, &y, &range, &type, &ignore_id); + retVal___ = postHookFunc(retVal___, src, x, y, range, type, ignore_id); } } return retVal___; @@ -2447,12 +2443,12 @@ int HP_battle_damage_area(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_battle_damage_area_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_damage_area_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_battle_damage_area_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -2479,11 +2475,11 @@ int HP_battle_damage_area(struct block_list *bl, va_list ap) { void HP_battle_calc_masteryfix_unknown(struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon) { int hIndex = 0; if( HPMHooks.count.HP_battle_calc_masteryfix_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon); + void (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 **skill_id, uint16 **skill_lv, int64 **damage, int **div, bool **left, bool **weapon); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_masteryfix_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_masteryfix_unknown_pre[hIndex].func; - preHookFunc(src, target, skill_id, skill_lv, damage, div, left, weapon); + preHookFunc(&src, &target, &skill_id, &skill_lv, &damage, &div, &left, &weapon); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2505,11 +2501,11 @@ void HP_battle_calc_masteryfix_unknown(struct block_list *src, struct block_list void HP_battle_calc_skillratio_magic_unknown(int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag) { int hIndex = 0; if( HPMHooks.count.HP_battle_calc_skillratio_magic_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **target, uint16 **skill_id, uint16 **skill_lv, int **skillratio, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_skillratio_magic_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_skillratio_magic_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, target, skill_id, skill_lv, skillratio, flag); + preHookFunc(&attack_type, &src, &target, &skill_id, &skill_lv, &skillratio, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2531,11 +2527,11 @@ void HP_battle_calc_skillratio_magic_unknown(int *attack_type, struct block_list void HP_battle_calc_skillratio_weapon_unknown(int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag) { int hIndex = 0; if( HPMHooks.count.HP_battle_calc_skillratio_weapon_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **target, uint16 **skill_id, uint16 **skill_lv, int **skillratio, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_skillratio_weapon_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_skillratio_weapon_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, target, skill_id, skill_lv, skillratio, flag); + preHookFunc(&attack_type, &src, &target, &skill_id, &skill_lv, &skillratio, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2557,11 +2553,11 @@ void HP_battle_calc_skillratio_weapon_unknown(int *attack_type, struct block_lis void HP_battle_calc_misc_attack_unknown(struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag, struct Damage *md) { int hIndex = 0; if( HPMHooks.count.HP_battle_calc_misc_attack_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *mflag, struct Damage *md); + void (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 **skill_id, uint16 **skill_lv, int **mflag, struct Damage **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_misc_attack_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_battle_calc_misc_attack_unknown_pre[hIndex].func; - preHookFunc(src, target, skill_id, skill_lv, mflag, md); + preHookFunc(&src, &target, &skill_id, &skill_lv, &mflag, &md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2580,7 +2576,7 @@ void HP_battle_calc_misc_attack_unknown(struct block_list *src, struct block_lis } return; } -/* bg */ +/* battleground_interface */ void HP_bg_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_bg_init_pre ) { @@ -2599,10 +2595,10 @@ void HP_bg_init(bool minimal) { HPMHooks.source.bg.init(minimal); } if( HPMHooks.count.HP_bg_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -2637,11 +2633,11 @@ struct bg_arena* HP_bg_name2arena(const char *name) { int hIndex = 0; struct bg_arena* retVal___ = NULL; if( HPMHooks.count.HP_bg_name2arena_pre ) { - struct bg_arena* (*preHookFunc) (const char *name); + struct bg_arena* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_name2arena_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_name2arena_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2663,11 +2659,11 @@ struct bg_arena* HP_bg_name2arena(const char *name) { void HP_bg_queue_add(struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types type) { int hIndex = 0; if( HPMHooks.count.HP_bg_queue_add_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types *type); + void (*preHookFunc) (struct map_session_data **sd, struct bg_arena **arena, enum bg_queue_types *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_queue_add_pre[hIndex].func; - preHookFunc(sd, arena, &type); + preHookFunc(&sd, &arena, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2678,10 +2674,10 @@ void HP_bg_queue_add(struct map_session_data *sd, struct bg_arena *arena, enum b HPMHooks.source.bg.queue_add(sd, arena, type); } if( HPMHooks.count.HP_bg_queue_add_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types *type); + void (*postHookFunc) (struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types type); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_queue_add_post[hIndex].func; - postHookFunc(sd, arena, &type); + postHookFunc(sd, arena, type); } } return; @@ -2690,11 +2686,11 @@ enum BATTLEGROUNDS_QUEUE_ACK HP_bg_can_queue(struct map_session_data *sd, struct int hIndex = 0; enum BATTLEGROUNDS_QUEUE_ACK retVal___ = BGQA_SUCCESS; if( HPMHooks.count.HP_bg_can_queue_pre ) { - enum BATTLEGROUNDS_QUEUE_ACK (*preHookFunc) (struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types *type); + enum BATTLEGROUNDS_QUEUE_ACK (*preHookFunc) (struct map_session_data **sd, struct bg_arena **arena, enum bg_queue_types *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_can_queue_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_can_queue_pre[hIndex].func; - retVal___ = preHookFunc(sd, arena, &type); + retVal___ = preHookFunc(&sd, &arena, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2705,10 +2701,10 @@ enum BATTLEGROUNDS_QUEUE_ACK HP_bg_can_queue(struct map_session_data *sd, struct retVal___ = HPMHooks.source.bg.can_queue(sd, arena, type); } if( HPMHooks.count.HP_bg_can_queue_post ) { - enum BATTLEGROUNDS_QUEUE_ACK (*postHookFunc) (enum BATTLEGROUNDS_QUEUE_ACK retVal___, struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types *type); + enum BATTLEGROUNDS_QUEUE_ACK (*postHookFunc) (enum BATTLEGROUNDS_QUEUE_ACK retVal___, struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types type); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_can_queue_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_can_queue_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, arena, &type); + retVal___ = postHookFunc(retVal___, sd, arena, type); } } return retVal___; @@ -2732,10 +2728,10 @@ int HP_bg_id2pos(int queue_id, int account_id) { retVal___ = HPMHooks.source.bg.id2pos(queue_id, account_id); } if( HPMHooks.count.HP_bg_id2pos_post ) { - int (*postHookFunc) (int retVal___, int *queue_id, int *account_id); + int (*postHookFunc) (int retVal___, int queue_id, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_id2pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_id2pos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &queue_id, &account_id); + retVal___ = postHookFunc(retVal___, queue_id, account_id); } } return retVal___; @@ -2743,11 +2739,11 @@ int HP_bg_id2pos(int queue_id, int account_id) { void HP_bg_queue_pc_cleanup(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_bg_queue_pc_cleanup_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_pc_cleanup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_queue_pc_cleanup_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2769,11 +2765,11 @@ void HP_bg_queue_pc_cleanup(struct map_session_data *sd) { void HP_bg_begin(struct bg_arena *arena) { int hIndex = 0; if( HPMHooks.count.HP_bg_begin_pre ) { - void (*preHookFunc) (struct bg_arena *arena); + void (*preHookFunc) (struct bg_arena **arena); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_begin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_begin_pre[hIndex].func; - preHookFunc(arena); + preHookFunc(&arena); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2811,10 +2807,10 @@ int HP_bg_begin_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.bg.begin_timer(tid, tick, id, data); } if( HPMHooks.count.HP_bg_begin_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_begin_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_begin_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -2822,11 +2818,11 @@ int HP_bg_begin_timer(int tid, int64 tick, int id, intptr_t data) { void HP_bg_queue_pregame(struct bg_arena *arena) { int hIndex = 0; if( HPMHooks.count.HP_bg_queue_pregame_pre ) { - void (*preHookFunc) (struct bg_arena *arena); + void (*preHookFunc) (struct bg_arena **arena); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_pregame_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_queue_pregame_pre[hIndex].func; - preHookFunc(arena); + preHookFunc(&arena); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2864,10 +2860,10 @@ int HP_bg_fillup_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.bg.fillup_timer(tid, tick, id, data); } if( HPMHooks.count.HP_bg_fillup_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_fillup_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_fillup_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -2875,11 +2871,11 @@ int HP_bg_fillup_timer(int tid, int64 tick, int id, intptr_t data) { void HP_bg_queue_ready_ack(struct bg_arena *arena, struct map_session_data *sd, bool response) { int hIndex = 0; if( HPMHooks.count.HP_bg_queue_ready_ack_pre ) { - void (*preHookFunc) (struct bg_arena *arena, struct map_session_data *sd, bool *response); + void (*preHookFunc) (struct bg_arena **arena, struct map_session_data **sd, bool *response); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_ready_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_queue_ready_ack_pre[hIndex].func; - preHookFunc(arena, sd, &response); + preHookFunc(&arena, &sd, &response); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2890,10 +2886,10 @@ void HP_bg_queue_ready_ack(struct bg_arena *arena, struct map_session_data *sd, HPMHooks.source.bg.queue_ready_ack(arena, sd, response); } if( HPMHooks.count.HP_bg_queue_ready_ack_post ) { - void (*postHookFunc) (struct bg_arena *arena, struct map_session_data *sd, bool *response); + void (*postHookFunc) (struct bg_arena *arena, struct map_session_data *sd, bool response); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_ready_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_queue_ready_ack_post[hIndex].func; - postHookFunc(arena, sd, &response); + postHookFunc(arena, sd, response); } } return; @@ -2901,11 +2897,11 @@ void HP_bg_queue_ready_ack(struct bg_arena *arena, struct map_session_data *sd, void HP_bg_match_over(struct bg_arena *arena, bool canceled) { int hIndex = 0; if( HPMHooks.count.HP_bg_match_over_pre ) { - void (*preHookFunc) (struct bg_arena *arena, bool *canceled); + void (*preHookFunc) (struct bg_arena **arena, bool *canceled); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_match_over_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_match_over_pre[hIndex].func; - preHookFunc(arena, &canceled); + preHookFunc(&arena, &canceled); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2916,10 +2912,10 @@ void HP_bg_match_over(struct bg_arena *arena, bool canceled) { HPMHooks.source.bg.match_over(arena, canceled); } if( HPMHooks.count.HP_bg_match_over_post ) { - void (*postHookFunc) (struct bg_arena *arena, bool *canceled); + void (*postHookFunc) (struct bg_arena *arena, bool canceled); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_match_over_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_match_over_post[hIndex].func; - postHookFunc(arena, &canceled); + postHookFunc(arena, canceled); } } return; @@ -2927,11 +2923,11 @@ void HP_bg_match_over(struct bg_arena *arena, bool canceled) { void HP_bg_queue_check(struct bg_arena *arena) { int hIndex = 0; if( HPMHooks.count.HP_bg_queue_check_pre ) { - void (*preHookFunc) (struct bg_arena *arena); + void (*preHookFunc) (struct bg_arena **arena); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_queue_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_queue_check_pre[hIndex].func; - preHookFunc(arena); + preHookFunc(&arena); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -2969,10 +2965,10 @@ struct battleground_data* HP_bg_team_search(int bg_id) { retVal___ = HPMHooks.source.bg.team_search(bg_id); } if( HPMHooks.count.HP_bg_team_search_post ) { - struct battleground_data* (*postHookFunc) (struct battleground_data* retVal___, int *bg_id); + struct battleground_data* (*postHookFunc) (struct battleground_data* retVal___, int bg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_team_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &bg_id); + retVal___ = postHookFunc(retVal___, bg_id); } } return retVal___; @@ -2981,11 +2977,11 @@ struct map_session_data* HP_bg_getavailablesd(struct battleground_data *bgd) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_bg_getavailablesd_pre ) { - struct map_session_data* (*preHookFunc) (struct battleground_data *bgd); + struct map_session_data* (*preHookFunc) (struct battleground_data **bgd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_getavailablesd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_getavailablesd_pre[hIndex].func; - retVal___ = preHookFunc(bgd); + retVal___ = preHookFunc(&bgd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3023,10 +3019,10 @@ bool HP_bg_team_delete(int bg_id) { retVal___ = HPMHooks.source.bg.team_delete(bg_id); } if( HPMHooks.count.HP_bg_team_delete_post ) { - bool (*postHookFunc) (bool retVal___, int *bg_id); + bool (*postHookFunc) (bool retVal___, int bg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_team_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &bg_id); + retVal___ = postHookFunc(retVal___, bg_id); } } return retVal___; @@ -3050,10 +3046,10 @@ bool HP_bg_team_warp(int bg_id, unsigned short map_index, short x, short y) { retVal___ = HPMHooks.source.bg.team_warp(bg_id, map_index, x, y); } if( HPMHooks.count.HP_bg_team_warp_post ) { - bool (*postHookFunc) (bool retVal___, int *bg_id, unsigned short *map_index, short *x, short *y); + bool (*postHookFunc) (bool retVal___, int bg_id, unsigned short map_index, short x, short y); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_warp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_team_warp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &bg_id, &map_index, &x, &y); + retVal___ = postHookFunc(retVal___, bg_id, map_index, x, y); } } return retVal___; @@ -3061,11 +3057,11 @@ bool HP_bg_team_warp(int bg_id, unsigned short map_index, short x, short y) { void HP_bg_send_dot_remove(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_bg_send_dot_remove_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_dot_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_send_dot_remove_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3088,11 +3084,11 @@ bool HP_bg_team_join(int bg_id, struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_bg_team_join_pre ) { - bool (*preHookFunc) (int *bg_id, struct map_session_data *sd); + bool (*preHookFunc) (int *bg_id, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_join_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_team_join_pre[hIndex].func; - retVal___ = preHookFunc(&bg_id, sd); + retVal___ = preHookFunc(&bg_id, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3103,10 +3099,10 @@ bool HP_bg_team_join(int bg_id, struct map_session_data *sd) { retVal___ = HPMHooks.source.bg.team_join(bg_id, sd); } if( HPMHooks.count.HP_bg_team_join_post ) { - bool (*postHookFunc) (bool retVal___, int *bg_id, struct map_session_data *sd); + bool (*postHookFunc) (bool retVal___, int bg_id, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_join_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_team_join_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &bg_id, sd); + retVal___ = postHookFunc(retVal___, bg_id, sd); } } return retVal___; @@ -3115,11 +3111,11 @@ int HP_bg_team_leave(struct map_session_data *sd, enum bg_team_leave_type flag) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_bg_team_leave_pre ) { - int (*preHookFunc) (struct map_session_data *sd, enum bg_team_leave_type *flag); + int (*preHookFunc) (struct map_session_data **sd, enum bg_team_leave_type *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_team_leave_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3130,10 +3126,10 @@ int HP_bg_team_leave(struct map_session_data *sd, enum bg_team_leave_type flag) retVal___ = HPMHooks.source.bg.team_leave(sd, flag); } if( HPMHooks.count.HP_bg_team_leave_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum bg_team_leave_type *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum bg_team_leave_type flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_team_leave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -3142,11 +3138,11 @@ bool HP_bg_member_respawn(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_bg_member_respawn_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_member_respawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_member_respawn_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3169,11 +3165,11 @@ int HP_bg_create(unsigned short map_index, short rx, short ry, const char *ev, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_bg_create_pre ) { - int (*preHookFunc) (unsigned short *map_index, short *rx, short *ry, const char *ev, const char *dev); + int (*preHookFunc) (unsigned short *map_index, short *rx, short *ry, const char **ev, const char **dev); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_create_pre[hIndex].func; - retVal___ = preHookFunc(&map_index, &rx, &ry, ev, dev); + retVal___ = preHookFunc(&map_index, &rx, &ry, &ev, &dev); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3184,10 +3180,10 @@ int HP_bg_create(unsigned short map_index, short rx, short ry, const char *ev, c retVal___ = HPMHooks.source.bg.create(map_index, rx, ry, ev, dev); } if( HPMHooks.count.HP_bg_create_post ) { - int (*postHookFunc) (int retVal___, unsigned short *map_index, short *rx, short *ry, const char *ev, const char *dev); + int (*postHookFunc) (int retVal___, unsigned short map_index, short rx, short ry, const char *ev, const char *dev); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &map_index, &rx, &ry, ev, dev); + retVal___ = postHookFunc(retVal___, map_index, rx, ry, ev, dev); } } return retVal___; @@ -3196,11 +3192,11 @@ int HP_bg_team_get_id(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_bg_team_get_id_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_get_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_team_get_id_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3219,15 +3215,15 @@ int HP_bg_team_get_id(struct block_list *bl) { } return retVal___; } -bool HP_bg_send_message(struct map_session_data *sd, const char *mes, int len) { +bool HP_bg_send_message(struct map_session_data *sd, const char *mes) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_bg_send_message_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len); + bool (*preHookFunc) (struct map_session_data **sd, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_send_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, mes, &len); + retVal___ = preHookFunc(&sd, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3235,27 +3231,27 @@ bool HP_bg_send_message(struct map_session_data *sd, const char *mes, int len) { } } { - retVal___ = HPMHooks.source.bg.send_message(sd, mes, len); + retVal___ = HPMHooks.source.bg.send_message(sd, mes); } if( HPMHooks.count.HP_bg_send_message_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *mes, int *len); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_send_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, mes, &len); + retVal___ = postHookFunc(retVal___, sd, mes); } } return retVal___; } -int HP_bg_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) { +int HP_bg_send_xy_timer_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_bg_send_xy_timer_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_xy_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_bg_send_xy_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -3269,11 +3265,11 @@ int HP_bg_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_bg_send_xy_timer_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_xy_timer_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_bg_send_xy_timer_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -3298,10 +3294,10 @@ int HP_bg_send_xy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.bg.send_xy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_bg_send_xy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_xy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_send_xy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -3325,24 +3321,24 @@ int HP_bg_afk_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.bg.afk_timer(tid, tick, id, data); } if( HPMHooks.count.HP_bg_afk_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_afk_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_bg_afk_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -int HP_bg_team_db_final(DBKey key, DBData *data, va_list ap) { +int HP_bg_team_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_bg_team_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_bg_team_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -3356,11 +3352,11 @@ int HP_bg_team_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_bg_team_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_bg_team_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -3370,11 +3366,11 @@ enum bg_queue_types HP_bg_str2teamtype(const char *str) { int hIndex = 0; enum bg_queue_types retVal___ = BGQT_INVALID; if( HPMHooks.count.HP_bg_str2teamtype_pre ) { - enum bg_queue_types (*preHookFunc) (const char *str); + enum bg_queue_types (*preHookFunc) (const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_str2teamtype_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_bg_str2teamtype_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3419,16 +3415,16 @@ void HP_bg_config_read(void) { } return; } -/* buyingstore */ +/* buyingstore_interface */ bool HP_buyingstore_setup(struct map_session_data *sd, unsigned char slots) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_buyingstore_setup_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned char *slots); + bool (*preHookFunc) (struct map_session_data **sd, unsigned char *slots); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_setup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_setup_pre[hIndex].func; - retVal___ = preHookFunc(sd, &slots); + retVal___ = preHookFunc(&sd, &slots); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3439,10 +3435,10 @@ bool HP_buyingstore_setup(struct map_session_data *sd, unsigned char slots) { retVal___ = HPMHooks.source.buyingstore.setup(sd, slots); } if( HPMHooks.count.HP_buyingstore_setup_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned char *slots); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned char slots); for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_setup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_buyingstore_setup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &slots); + retVal___ = postHookFunc(retVal___, sd, slots); } } return retVal___; @@ -3450,11 +3446,11 @@ bool HP_buyingstore_setup(struct map_session_data *sd, unsigned char slots) { void HP_buyingstore_create(struct map_session_data *sd, int zenylimit, unsigned char result, const char *storename, const uint8 *itemlist, unsigned int count) { int hIndex = 0; if( HPMHooks.count.HP_buyingstore_create_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *zenylimit, unsigned char *result, const char *storename, const uint8 *itemlist, unsigned int *count); + void (*preHookFunc) (struct map_session_data **sd, int *zenylimit, unsigned char *result, const char **storename, const uint8 **itemlist, unsigned int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_create_pre[hIndex].func; - preHookFunc(sd, &zenylimit, &result, storename, itemlist, &count); + preHookFunc(&sd, &zenylimit, &result, &storename, &itemlist, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3465,10 +3461,10 @@ void HP_buyingstore_create(struct map_session_data *sd, int zenylimit, unsigned HPMHooks.source.buyingstore.create(sd, zenylimit, result, storename, itemlist, count); } if( HPMHooks.count.HP_buyingstore_create_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *zenylimit, unsigned char *result, const char *storename, const uint8 *itemlist, unsigned int *count); + void (*postHookFunc) (struct map_session_data *sd, int zenylimit, unsigned char result, const char *storename, const uint8 *itemlist, unsigned int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_buyingstore_create_post[hIndex].func; - postHookFunc(sd, &zenylimit, &result, storename, itemlist, &count); + postHookFunc(sd, zenylimit, result, storename, itemlist, count); } } return; @@ -3476,11 +3472,11 @@ void HP_buyingstore_create(struct map_session_data *sd, int zenylimit, unsigned void HP_buyingstore_close(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_buyingstore_close_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_close_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3502,11 +3498,11 @@ void HP_buyingstore_close(struct map_session_data *sd) { void HP_buyingstore_open(struct map_session_data *sd, int account_id) { int hIndex = 0; if( HPMHooks.count.HP_buyingstore_open_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id); + void (*preHookFunc) (struct map_session_data **sd, int *account_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_open_pre[hIndex].func; - preHookFunc(sd, &account_id); + preHookFunc(&sd, &account_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3517,10 +3513,10 @@ void HP_buyingstore_open(struct map_session_data *sd, int account_id) { HPMHooks.source.buyingstore.open(sd, account_id); } if( HPMHooks.count.HP_buyingstore_open_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id); + void (*postHookFunc) (struct map_session_data *sd, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_open_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_buyingstore_open_post[hIndex].func; - postHookFunc(sd, &account_id); + postHookFunc(sd, account_id); } } return; @@ -3528,11 +3524,11 @@ void HP_buyingstore_open(struct map_session_data *sd, int account_id) { void HP_buyingstore_trade(struct map_session_data *sd, int account_id, unsigned int buyer_id, const uint8 *itemlist, unsigned int count) { int hIndex = 0; if( HPMHooks.count.HP_buyingstore_trade_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, unsigned int *buyer_id, const uint8 *itemlist, unsigned int *count); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, unsigned int *buyer_id, const uint8 **itemlist, unsigned int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_trade_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_trade_pre[hIndex].func; - preHookFunc(sd, &account_id, &buyer_id, itemlist, &count); + preHookFunc(&sd, &account_id, &buyer_id, &itemlist, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3543,10 +3539,10 @@ void HP_buyingstore_trade(struct map_session_data *sd, int account_id, unsigned HPMHooks.source.buyingstore.trade(sd, account_id, buyer_id, itemlist, count); } if( HPMHooks.count.HP_buyingstore_trade_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, unsigned int *buyer_id, const uint8 *itemlist, unsigned int *count); + void (*postHookFunc) (struct map_session_data *sd, int account_id, unsigned int buyer_id, const uint8 *itemlist, unsigned int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_trade_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_buyingstore_trade_post[hIndex].func; - postHookFunc(sd, &account_id, &buyer_id, itemlist, &count); + postHookFunc(sd, account_id, buyer_id, itemlist, count); } } return; @@ -3555,11 +3551,11 @@ bool HP_buyingstore_search(struct map_session_data *sd, unsigned short nameid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_buyingstore_search_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid); + bool (*preHookFunc) (struct map_session_data **sd, unsigned short *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_search_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3570,10 +3566,10 @@ bool HP_buyingstore_search(struct map_session_data *sd, unsigned short nameid) { retVal___ = HPMHooks.source.buyingstore.search(sd, nameid); } if( HPMHooks.count.HP_buyingstore_search_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned short *nameid); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned short nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_buyingstore_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -3582,11 +3578,11 @@ bool HP_buyingstore_searchall(struct map_session_data *sd, const struct s_search int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_buyingstore_searchall_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const struct s_search_store_search *s); + bool (*preHookFunc) (struct map_session_data **sd, const struct s_search_store_search **s); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_searchall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_buyingstore_searchall_pre[hIndex].func; - retVal___ = preHookFunc(sd, s); + retVal___ = preHookFunc(&sd, &s); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3632,7 +3628,7 @@ unsigned int HP_buyingstore_getuid(void) { } return retVal___; } -/* channel */ +/* channel_interface */ int HP_channel_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -3652,10 +3648,10 @@ int HP_channel_init(bool minimal) { retVal___ = HPMHooks.source.channel.init(minimal); } if( HPMHooks.count.HP_channel_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_channel_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -3690,11 +3686,11 @@ struct channel_data* HP_channel_search(const char *name, struct map_session_data int hIndex = 0; struct channel_data* retVal___ = NULL; if( HPMHooks.count.HP_channel_search_pre ) { - struct channel_data* (*preHookFunc) (const char *name, struct map_session_data *sd); + struct channel_data* (*preHookFunc) (const char **name, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_search_pre[hIndex].func; - retVal___ = preHookFunc(name, sd); + retVal___ = preHookFunc(&name, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3717,11 +3713,11 @@ struct channel_data* HP_channel_create(enum channel_types type, const char *name int hIndex = 0; struct channel_data* retVal___ = NULL; if( HPMHooks.count.HP_channel_create_pre ) { - struct channel_data* (*preHookFunc) (enum channel_types *type, const char *name, unsigned char *color); + struct channel_data* (*preHookFunc) (enum channel_types *type, const char **name, unsigned char *color); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_create_pre[hIndex].func; - retVal___ = preHookFunc(&type, name, &color); + retVal___ = preHookFunc(&type, &name, &color); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3732,10 +3728,10 @@ struct channel_data* HP_channel_create(enum channel_types type, const char *name retVal___ = HPMHooks.source.channel.create(type, name, color); } if( HPMHooks.count.HP_channel_create_post ) { - struct channel_data* (*postHookFunc) (struct channel_data* retVal___, enum channel_types *type, const char *name, unsigned char *color); + struct channel_data* (*postHookFunc) (struct channel_data* retVal___, enum channel_types type, const char *name, unsigned char color); for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_channel_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type, name, &color); + retVal___ = postHookFunc(retVal___, type, name, color); } } return retVal___; @@ -3743,11 +3739,11 @@ struct channel_data* HP_channel_create(enum channel_types type, const char *name void HP_channel_delete(struct channel_data *chan) { int hIndex = 0; if( HPMHooks.count.HP_channel_delete_pre ) { - void (*preHookFunc) (struct channel_data *chan); + void (*preHookFunc) (struct channel_data **chan); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_delete_pre[hIndex].func; - preHookFunc(chan); + preHookFunc(&chan); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3769,11 +3765,11 @@ void HP_channel_delete(struct channel_data *chan) { void HP_channel_set_password(struct channel_data *chan, const char *password) { int hIndex = 0; if( HPMHooks.count.HP_channel_set_password_pre ) { - void (*preHookFunc) (struct channel_data *chan, const char *password); + void (*preHookFunc) (struct channel_data **chan, const char **password); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_set_password_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_set_password_pre[hIndex].func; - preHookFunc(chan, password); + preHookFunc(&chan, &password); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3796,11 +3792,11 @@ enum channel_operation_status HP_channel_ban(struct channel_data *chan, const st int hIndex = 0; enum channel_operation_status retVal___ = HCS_STATUS_FAIL; if( HPMHooks.count.HP_channel_ban_pre ) { - enum channel_operation_status (*preHookFunc) (struct channel_data *chan, const struct map_session_data *ssd, struct map_session_data *tsd); + enum channel_operation_status (*preHookFunc) (struct channel_data **chan, const struct map_session_data **ssd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_ban_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_ban_pre[hIndex].func; - retVal___ = preHookFunc(chan, ssd, tsd); + retVal___ = preHookFunc(&chan, &ssd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3823,11 +3819,11 @@ enum channel_operation_status HP_channel_unban(struct channel_data *chan, const int hIndex = 0; enum channel_operation_status retVal___ = HCS_STATUS_FAIL; if( HPMHooks.count.HP_channel_unban_pre ) { - enum channel_operation_status (*preHookFunc) (struct channel_data *chan, const struct map_session_data *ssd, struct map_session_data *tsd); + enum channel_operation_status (*preHookFunc) (struct channel_data **chan, const struct map_session_data **ssd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_unban_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_unban_pre[hIndex].func; - retVal___ = preHookFunc(chan, ssd, tsd); + retVal___ = preHookFunc(&chan, &ssd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3849,11 +3845,11 @@ enum channel_operation_status HP_channel_unban(struct channel_data *chan, const void HP_channel_set_options(struct channel_data *chan, unsigned int options) { int hIndex = 0; if( HPMHooks.count.HP_channel_set_options_pre ) { - void (*preHookFunc) (struct channel_data *chan, unsigned int *options); + void (*preHookFunc) (struct channel_data **chan, unsigned int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_set_options_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_set_options_pre[hIndex].func; - preHookFunc(chan, &options); + preHookFunc(&chan, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3864,10 +3860,10 @@ void HP_channel_set_options(struct channel_data *chan, unsigned int options) { HPMHooks.source.channel.set_options(chan, options); } if( HPMHooks.count.HP_channel_set_options_post ) { - void (*postHookFunc) (struct channel_data *chan, unsigned int *options); + void (*postHookFunc) (struct channel_data *chan, unsigned int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_set_options_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_channel_set_options_post[hIndex].func; - postHookFunc(chan, &options); + postHookFunc(chan, options); } } return; @@ -3875,11 +3871,11 @@ void HP_channel_set_options(struct channel_data *chan, unsigned int options) { void HP_channel_send(struct channel_data *chan, struct map_session_data *sd, const char *msg) { int hIndex = 0; if( HPMHooks.count.HP_channel_send_pre ) { - void (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd, const char *msg); + void (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd, const char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_send_pre[hIndex].func; - preHookFunc(chan, sd, msg); + preHookFunc(&chan, &sd, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3901,11 +3897,11 @@ void HP_channel_send(struct channel_data *chan, struct map_session_data *sd, con void HP_channel_join_sub(struct channel_data *chan, struct map_session_data *sd, bool stealth) { int hIndex = 0; if( HPMHooks.count.HP_channel_join_sub_pre ) { - void (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd, bool *stealth); + void (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd, bool *stealth); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_join_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_join_sub_pre[hIndex].func; - preHookFunc(chan, sd, &stealth); + preHookFunc(&chan, &sd, &stealth); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3916,10 +3912,10 @@ void HP_channel_join_sub(struct channel_data *chan, struct map_session_data *sd, HPMHooks.source.channel.join_sub(chan, sd, stealth); } if( HPMHooks.count.HP_channel_join_sub_post ) { - void (*postHookFunc) (struct channel_data *chan, struct map_session_data *sd, bool *stealth); + void (*postHookFunc) (struct channel_data *chan, struct map_session_data *sd, bool stealth); for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_join_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_channel_join_sub_post[hIndex].func; - postHookFunc(chan, sd, &stealth); + postHookFunc(chan, sd, stealth); } } return; @@ -3928,11 +3924,11 @@ enum channel_operation_status HP_channel_join(struct channel_data *chan, struct int hIndex = 0; enum channel_operation_status retVal___ = HCS_STATUS_FAIL; if( HPMHooks.count.HP_channel_join_pre ) { - enum channel_operation_status (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd, const char *password, bool *silent); + enum channel_operation_status (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd, const char **password, bool *silent); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_join_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_join_pre[hIndex].func; - retVal___ = preHookFunc(chan, sd, password, &silent); + retVal___ = preHookFunc(&chan, &sd, &password, &silent); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3943,10 +3939,10 @@ enum channel_operation_status HP_channel_join(struct channel_data *chan, struct retVal___ = HPMHooks.source.channel.join(chan, sd, password, silent); } if( HPMHooks.count.HP_channel_join_post ) { - enum channel_operation_status (*postHookFunc) (enum channel_operation_status retVal___, struct channel_data *chan, struct map_session_data *sd, const char *password, bool *silent); + enum channel_operation_status (*postHookFunc) (enum channel_operation_status retVal___, struct channel_data *chan, struct map_session_data *sd, const char *password, bool silent); for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_join_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_channel_join_post[hIndex].func; - retVal___ = postHookFunc(retVal___, chan, sd, password, &silent); + retVal___ = postHookFunc(retVal___, chan, sd, password, silent); } } return retVal___; @@ -3954,11 +3950,11 @@ enum channel_operation_status HP_channel_join(struct channel_data *chan, struct void HP_channel_leave(struct channel_data *chan, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_leave_pre ) { - void (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd); + void (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_leave_pre[hIndex].func; - preHookFunc(chan, sd); + preHookFunc(&chan, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -3980,11 +3976,11 @@ void HP_channel_leave(struct channel_data *chan, struct map_session_data *sd) { void HP_channel_leave_sub(struct channel_data *chan, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_leave_sub_pre ) { - void (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd); + void (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_leave_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_leave_sub_pre[hIndex].func; - preHookFunc(chan, sd); + preHookFunc(&chan, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4006,11 +4002,11 @@ void HP_channel_leave_sub(struct channel_data *chan, struct map_session_data *sd void HP_channel_quit(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_quit_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_quit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_quit_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4032,11 +4028,11 @@ void HP_channel_quit(struct map_session_data *sd) { void HP_channel_map_join(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_map_join_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_map_join_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_map_join_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4058,11 +4054,11 @@ void HP_channel_map_join(struct map_session_data *sd) { void HP_channel_guild_join_alliance(const struct guild *g_source, const struct guild *g_ally) { int hIndex = 0; if( HPMHooks.count.HP_channel_guild_join_alliance_pre ) { - void (*preHookFunc) (const struct guild *g_source, const struct guild *g_ally); + void (*preHookFunc) (const struct guild **g_source, const struct guild **g_ally); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_guild_join_alliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_guild_join_alliance_pre[hIndex].func; - preHookFunc(g_source, g_ally); + preHookFunc(&g_source, &g_ally); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4084,11 +4080,11 @@ void HP_channel_guild_join_alliance(const struct guild *g_source, const struct g void HP_channel_guild_leave_alliance(const struct guild *g_source, const struct guild *g_ally) { int hIndex = 0; if( HPMHooks.count.HP_channel_guild_leave_alliance_pre ) { - void (*preHookFunc) (const struct guild *g_source, const struct guild *g_ally); + void (*preHookFunc) (const struct guild **g_source, const struct guild **g_ally); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_guild_leave_alliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_guild_leave_alliance_pre[hIndex].func; - preHookFunc(g_source, g_ally); + preHookFunc(&g_source, &g_ally); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4110,11 +4106,11 @@ void HP_channel_guild_leave_alliance(const struct guild *g_source, const struct void HP_channel_quit_guild(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_quit_guild_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_quit_guild_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_quit_guild_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4136,11 +4132,11 @@ void HP_channel_quit_guild(struct map_session_data *sd) { void HP_channel_irc_join(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_channel_irc_join_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_channel_irc_join_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_channel_irc_join_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4185,16 +4181,16 @@ void HP_channel_config_read(void) { } return; } -/* chat */ +/* chat_interface */ bool HP_chat_create_pc_chat(struct map_session_data *sd, const char *title, const char *pass, int limit, bool pub) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_create_pc_chat_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub); + bool (*preHookFunc) (struct map_session_data **sd, const char **title, const char **pass, int *limit, bool *pub); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_pc_chat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_create_pc_chat_pre[hIndex].func; - retVal___ = preHookFunc(sd, title, pass, &limit, &pub); + retVal___ = preHookFunc(&sd, &title, &pass, &limit, &pub); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4205,10 +4201,10 @@ bool HP_chat_create_pc_chat(struct map_session_data *sd, const char *title, cons retVal___ = HPMHooks.source.chat.create_pc_chat(sd, title, pass, limit, pub); } if( HPMHooks.count.HP_chat_create_pc_chat_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *title, const char *pass, int limit, bool pub); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_pc_chat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_create_pc_chat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, title, pass, &limit, &pub); + retVal___ = postHookFunc(retVal___, sd, title, pass, limit, pub); } } return retVal___; @@ -4217,11 +4213,11 @@ bool HP_chat_join(struct map_session_data *sd, int chatid, const char *pass) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_join_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *chatid, const char *pass); + bool (*preHookFunc) (struct map_session_data **sd, int *chatid, const char **pass); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_join_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_join_pre[hIndex].func; - retVal___ = preHookFunc(sd, &chatid, pass); + retVal___ = preHookFunc(&sd, &chatid, &pass); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4232,10 +4228,10 @@ bool HP_chat_join(struct map_session_data *sd, int chatid, const char *pass) { retVal___ = HPMHooks.source.chat.join(sd, chatid, pass); } if( HPMHooks.count.HP_chat_join_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *chatid, const char *pass); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int chatid, const char *pass); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_join_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_join_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &chatid, pass); + retVal___ = postHookFunc(retVal___, sd, chatid, pass); } } return retVal___; @@ -4244,11 +4240,11 @@ int HP_chat_leave(struct map_session_data *sd, bool kicked) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_chat_leave_pre ) { - int (*preHookFunc) (struct map_session_data *sd, bool *kicked); + int (*preHookFunc) (struct map_session_data **sd, bool *kicked); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_leave_pre[hIndex].func; - retVal___ = preHookFunc(sd, &kicked); + retVal___ = preHookFunc(&sd, &kicked); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4259,10 +4255,10 @@ int HP_chat_leave(struct map_session_data *sd, bool kicked) { retVal___ = HPMHooks.source.chat.leave(sd, kicked); } if( HPMHooks.count.HP_chat_leave_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, bool *kicked); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, bool kicked); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_leave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &kicked); + retVal___ = postHookFunc(retVal___, sd, kicked); } } return retVal___; @@ -4271,11 +4267,11 @@ bool HP_chat_change_owner(struct map_session_data *sd, const char *nextownername int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_change_owner_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *nextownername); + bool (*preHookFunc) (struct map_session_data **sd, const char **nextownername); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_change_owner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_change_owner_pre[hIndex].func; - retVal___ = preHookFunc(sd, nextownername); + retVal___ = preHookFunc(&sd, &nextownername); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4298,11 +4294,11 @@ bool HP_chat_change_status(struct map_session_data *sd, const char *title, const int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_change_status_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub); + bool (*preHookFunc) (struct map_session_data **sd, const char **title, const char **pass, int *limit, bool *pub); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_change_status_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_change_status_pre[hIndex].func; - retVal___ = preHookFunc(sd, title, pass, &limit, &pub); + retVal___ = preHookFunc(&sd, &title, &pass, &limit, &pub); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4313,10 +4309,10 @@ bool HP_chat_change_status(struct map_session_data *sd, const char *title, const retVal___ = HPMHooks.source.chat.change_status(sd, title, pass, limit, pub); } if( HPMHooks.count.HP_chat_change_status_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *title, const char *pass, int limit, bool pub); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_change_status_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_change_status_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, title, pass, &limit, &pub); + retVal___ = postHookFunc(retVal___, sd, title, pass, limit, pub); } } return retVal___; @@ -4325,11 +4321,11 @@ bool HP_chat_kick(struct map_session_data *sd, const char *kickusername) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_kick_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *kickusername); + bool (*preHookFunc) (struct map_session_data **sd, const char **kickusername); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_kick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_kick_pre[hIndex].func; - retVal___ = preHookFunc(sd, kickusername); + retVal___ = preHookFunc(&sd, &kickusername); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4352,11 +4348,11 @@ bool HP_chat_create_npc_chat(struct npc_data *nd, const char *title, int limit, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_create_npc_chat_pre ) { - bool (*preHookFunc) (struct npc_data *nd, const char *title, int *limit, bool *pub, int *trigger, const char *ev, int *zeny, int *minLvl, int *maxLvl); + bool (*preHookFunc) (struct npc_data **nd, const char **title, int *limit, bool *pub, int *trigger, const char **ev, int *zeny, int *minLvl, int *maxLvl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_npc_chat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_create_npc_chat_pre[hIndex].func; - retVal___ = preHookFunc(nd, title, &limit, &pub, &trigger, ev, &zeny, &minLvl, &maxLvl); + retVal___ = preHookFunc(&nd, &title, &limit, &pub, &trigger, &ev, &zeny, &minLvl, &maxLvl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4367,10 +4363,10 @@ bool HP_chat_create_npc_chat(struct npc_data *nd, const char *title, int limit, retVal___ = HPMHooks.source.chat.create_npc_chat(nd, title, limit, pub, trigger, ev, zeny, minLvl, maxLvl); } if( HPMHooks.count.HP_chat_create_npc_chat_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const char *title, int *limit, bool *pub, int *trigger, const char *ev, int *zeny, int *minLvl, int *maxLvl); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const char *title, int limit, bool pub, int trigger, const char *ev, int zeny, int minLvl, int maxLvl); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_npc_chat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_create_npc_chat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, title, &limit, &pub, &trigger, ev, &zeny, &minLvl, &maxLvl); + retVal___ = postHookFunc(retVal___, nd, title, limit, pub, trigger, ev, zeny, minLvl, maxLvl); } } return retVal___; @@ -4379,11 +4375,11 @@ bool HP_chat_delete_npc_chat(struct npc_data *nd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_delete_npc_chat_pre ) { - bool (*preHookFunc) (struct npc_data *nd); + bool (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_delete_npc_chat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_delete_npc_chat_pre[hIndex].func; - retVal___ = preHookFunc(nd); + retVal___ = preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4406,11 +4402,11 @@ bool HP_chat_enable_event(struct chat_data *cd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_enable_event_pre ) { - bool (*preHookFunc) (struct chat_data *cd); + bool (*preHookFunc) (struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_enable_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_enable_event_pre[hIndex].func; - retVal___ = preHookFunc(cd); + retVal___ = preHookFunc(&cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4433,11 +4429,11 @@ bool HP_chat_disable_event(struct chat_data *cd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_disable_event_pre ) { - bool (*preHookFunc) (struct chat_data *cd); + bool (*preHookFunc) (struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_disable_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_disable_event_pre[hIndex].func; - retVal___ = preHookFunc(cd); + retVal___ = preHookFunc(&cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4460,11 +4456,11 @@ bool HP_chat_npc_kick_all(struct chat_data *cd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_npc_kick_all_pre ) { - bool (*preHookFunc) (struct chat_data *cd); + bool (*preHookFunc) (struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_npc_kick_all_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_npc_kick_all_pre[hIndex].func; - retVal___ = preHookFunc(cd); + retVal___ = preHookFunc(&cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4487,11 +4483,11 @@ bool HP_chat_trigger_event(struct chat_data *cd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chat_trigger_event_pre ) { - bool (*preHookFunc) (struct chat_data *cd); + bool (*preHookFunc) (struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_trigger_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_trigger_event_pre[hIndex].func; - retVal___ = preHookFunc(cd); + retVal___ = preHookFunc(&cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4514,11 +4510,11 @@ struct chat_data* HP_chat_create(struct block_list *bl, const char *title, const int hIndex = 0; struct chat_data* retVal___ = NULL; if( HPMHooks.count.HP_chat_create_pre ) { - struct chat_data* (*preHookFunc) (struct block_list *bl, const char *title, const char *pass, int *limit, bool *pub, int *trigger, const char *ev, int *zeny, int *minLvl, int *maxLvl); + struct chat_data* (*preHookFunc) (struct block_list **bl, const char **title, const char **pass, int *limit, bool *pub, int *trigger, const char **ev, int *zeny, int *minLvl, int *maxLvl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chat_create_pre[hIndex].func; - retVal___ = preHookFunc(bl, title, pass, &limit, &pub, &trigger, ev, &zeny, &minLvl, &maxLvl); + retVal___ = preHookFunc(&bl, &title, &pass, &limit, &pub, &trigger, &ev, &zeny, &minLvl, &maxLvl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4529,15 +4525,15 @@ struct chat_data* HP_chat_create(struct block_list *bl, const char *title, const retVal___ = HPMHooks.source.chat.create(bl, title, pass, limit, pub, trigger, ev, zeny, minLvl, maxLvl); } if( HPMHooks.count.HP_chat_create_post ) { - struct chat_data* (*postHookFunc) (struct chat_data* retVal___, struct block_list *bl, const char *title, const char *pass, int *limit, bool *pub, int *trigger, const char *ev, int *zeny, int *minLvl, int *maxLvl); + struct chat_data* (*postHookFunc) (struct chat_data* retVal___, struct block_list *bl, const char *title, const char *pass, int limit, bool pub, int trigger, const char *ev, int zeny, int minLvl, int maxLvl); for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chat_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, title, pass, &limit, &pub, &trigger, ev, &zeny, &minLvl, &maxLvl); + retVal___ = postHookFunc(retVal___, bl, title, pass, limit, pub, trigger, ev, zeny, minLvl, maxLvl); } } return retVal___; } -/* chrif */ +/* chrif_interface */ void HP_chrif_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_chrif_init_pre ) { @@ -4556,10 +4552,10 @@ void HP_chrif_init(bool minimal) { HPMHooks.source.chrif.init(minimal); } if( HPMHooks.count.HP_chrif_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -4593,11 +4589,11 @@ void HP_chrif_final(void) { void HP_chrif_setuserid(char *id) { int hIndex = 0; if( HPMHooks.count.HP_chrif_setuserid_pre ) { - void (*preHookFunc) (char *id); + void (*preHookFunc) (char **id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_setuserid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_setuserid_pre[hIndex].func; - preHookFunc(id); + preHookFunc(&id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4619,11 +4615,11 @@ void HP_chrif_setuserid(char *id) { void HP_chrif_setpasswd(char *pwd) { int hIndex = 0; if( HPMHooks.count.HP_chrif_setpasswd_pre ) { - void (*preHookFunc) (char *pwd); + void (*preHookFunc) (char **pwd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_setpasswd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_setpasswd_pre[hIndex].func; - preHookFunc(pwd); + preHookFunc(&pwd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4672,11 +4668,11 @@ bool HP_chrif_setip(const char *ip) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_setip_pre ) { - bool (*preHookFunc) (const char *ip); + bool (*preHookFunc) (const char **ip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_setip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_setip_pre[hIndex].func; - retVal___ = preHookFunc(ip); + retVal___ = preHookFunc(&ip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4713,10 +4709,10 @@ void HP_chrif_setport(uint16 port) { HPMHooks.source.chrif.setport(port); } if( HPMHooks.count.HP_chrif_setport_post ) { - void (*postHookFunc) (uint16 *port); + void (*postHookFunc) (uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_setport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_setport_post[hIndex].func; - postHookFunc(&port); + postHookFunc(port); } } return; @@ -4793,10 +4789,10 @@ struct auth_node* HP_chrif_search(int account_id) { retVal___ = HPMHooks.source.chrif.search(account_id); } if( HPMHooks.count.HP_chrif_search_post ) { - struct auth_node* (*postHookFunc) (struct auth_node* retVal___, int *account_id); + struct auth_node* (*postHookFunc) (struct auth_node* retVal___, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id); + retVal___ = postHookFunc(retVal___, account_id); } } return retVal___; @@ -4820,10 +4816,10 @@ struct auth_node* HP_chrif_auth_check(int account_id, int char_id, enum sd_state retVal___ = HPMHooks.source.chrif.auth_check(account_id, char_id, state); } if( HPMHooks.count.HP_chrif_auth_check_post ) { - struct auth_node* (*postHookFunc) (struct auth_node* retVal___, int *account_id, int *char_id, enum sd_state *state); + struct auth_node* (*postHookFunc) (struct auth_node* retVal___, int account_id, int char_id, enum sd_state state); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_auth_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id, &state); + retVal___ = postHookFunc(retVal___, account_id, char_id, state); } } return retVal___; @@ -4847,10 +4843,10 @@ bool HP_chrif_auth_delete(int account_id, int char_id, enum sd_state state) { retVal___ = HPMHooks.source.chrif.auth_delete(account_id, char_id, state); } if( HPMHooks.count.HP_chrif_auth_delete_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, int *char_id, enum sd_state *state); + bool (*postHookFunc) (bool retVal___, int account_id, int char_id, enum sd_state state); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_auth_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id, &state); + retVal___ = postHookFunc(retVal___, account_id, char_id, state); } } return retVal___; @@ -4859,11 +4855,11 @@ bool HP_chrif_auth_finished(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_auth_finished_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_finished_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_auth_finished_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4885,11 +4881,11 @@ bool HP_chrif_auth_finished(struct map_session_data *sd) { void HP_chrif_authreq(struct map_session_data *sd, bool hstandalone) { int hIndex = 0; if( HPMHooks.count.HP_chrif_authreq_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *hstandalone); + void (*preHookFunc) (struct map_session_data **sd, bool *hstandalone); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_authreq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_authreq_pre[hIndex].func; - preHookFunc(sd, &hstandalone); + preHookFunc(&sd, &hstandalone); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4900,10 +4896,10 @@ void HP_chrif_authreq(struct map_session_data *sd, bool hstandalone) { HPMHooks.source.chrif.authreq(sd, hstandalone); } if( HPMHooks.count.HP_chrif_authreq_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *hstandalone); + void (*postHookFunc) (struct map_session_data *sd, bool hstandalone); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_authreq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_authreq_post[hIndex].func; - postHookFunc(sd, &hstandalone); + postHookFunc(sd, hstandalone); } } return; @@ -4926,10 +4922,10 @@ void HP_chrif_authok(int fd) { HPMHooks.source.chrif.authok(fd); } if( HPMHooks.count.HP_chrif_authok_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_authok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_authok_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -4953,10 +4949,10 @@ bool HP_chrif_scdata_request(int account_id, int char_id) { retVal___ = HPMHooks.source.chrif.scdata_request(account_id, char_id); } if( HPMHooks.count.HP_chrif_scdata_request_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, int *char_id); + bool (*postHookFunc) (bool retVal___, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_scdata_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_scdata_request_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, account_id, char_id); } } return retVal___; @@ -4965,11 +4961,11 @@ bool HP_chrif_save(struct map_session_data *sd, int flag) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_save_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *flag); + bool (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_save_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -4980,10 +4976,10 @@ bool HP_chrif_save(struct map_session_data *sd, int flag) { retVal___ = HPMHooks.source.chrif.save(sd, flag); } if( HPMHooks.count.HP_chrif_save_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *flag); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_save_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -4992,11 +4988,11 @@ bool HP_chrif_charselectreq(struct map_session_data *sd, uint32 s_ip) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_charselectreq_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, uint32 *s_ip); + bool (*preHookFunc) (struct map_session_data **sd, uint32 *s_ip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_charselectreq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_charselectreq_pre[hIndex].func; - retVal___ = preHookFunc(sd, &s_ip); + retVal___ = preHookFunc(&sd, &s_ip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5007,10 +5003,10 @@ bool HP_chrif_charselectreq(struct map_session_data *sd, uint32 s_ip) { retVal___ = HPMHooks.source.chrif.charselectreq(sd, s_ip); } if( HPMHooks.count.HP_chrif_charselectreq_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, uint32 *s_ip); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, uint32 s_ip); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_charselectreq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_charselectreq_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &s_ip); + retVal___ = postHookFunc(retVal___, sd, s_ip); } } return retVal___; @@ -5019,11 +5015,11 @@ bool HP_chrif_changemapserver(struct map_session_data *sd, uint32 ip, uint16 por int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_changemapserver_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, uint32 *ip, uint16 *port); + bool (*preHookFunc) (struct map_session_data **sd, uint32 *ip, uint16 *port); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changemapserver_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_changemapserver_pre[hIndex].func; - retVal___ = preHookFunc(sd, &ip, &port); + retVal___ = preHookFunc(&sd, &ip, &port); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5034,10 +5030,10 @@ bool HP_chrif_changemapserver(struct map_session_data *sd, uint32 ip, uint16 por retVal___ = HPMHooks.source.chrif.changemapserver(sd, ip, port); } if( HPMHooks.count.HP_chrif_changemapserver_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, uint32 *ip, uint16 *port); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changemapserver_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_changemapserver_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &ip, &port); + retVal___ = postHookFunc(retVal___, sd, ip, port); } } return retVal___; @@ -5061,10 +5057,10 @@ bool HP_chrif_searchcharid(int char_id) { retVal___ = HPMHooks.source.chrif.searchcharid(char_id); } if( HPMHooks.count.HP_chrif_searchcharid_post ) { - bool (*postHookFunc) (bool retVal___, int *char_id); + bool (*postHookFunc) (bool retVal___, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_searchcharid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_searchcharid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id); + retVal___ = postHookFunc(retVal___, char_id); } } return retVal___; @@ -5073,11 +5069,11 @@ bool HP_chrif_changeemail(int id, const char *actual_email, const char *new_emai int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_changeemail_pre ) { - bool (*preHookFunc) (int *id, const char *actual_email, const char *new_email); + bool (*preHookFunc) (int *id, const char **actual_email, const char **new_email); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changeemail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_changeemail_pre[hIndex].func; - retVal___ = preHookFunc(&id, actual_email, new_email); + retVal___ = preHookFunc(&id, &actual_email, &new_email); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5088,10 +5084,10 @@ bool HP_chrif_changeemail(int id, const char *actual_email, const char *new_emai retVal___ = HPMHooks.source.chrif.changeemail(id, actual_email, new_email); } if( HPMHooks.count.HP_chrif_changeemail_post ) { - bool (*postHookFunc) (bool retVal___, int *id, const char *actual_email, const char *new_email); + bool (*postHookFunc) (bool retVal___, int id, const char *actual_email, const char *new_email); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changeemail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_changeemail_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id, actual_email, new_email); + retVal___ = postHookFunc(retVal___, id, actual_email, new_email); } } return retVal___; @@ -5100,11 +5096,11 @@ bool HP_chrif_char_ask_name(int acc, const char *character_name, unsigned short int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_char_ask_name_pre ) { - bool (*preHookFunc) (int *acc, const char *character_name, unsigned short *operation_type, int *year, int *month, int *day, int *hour, int *minute, int *second); + bool (*preHookFunc) (int *acc, const char **character_name, unsigned short *operation_type, int *year, int *month, int *day, int *hour, int *minute, int *second); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_ask_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_char_ask_name_pre[hIndex].func; - retVal___ = preHookFunc(&acc, character_name, &operation_type, &year, &month, &day, &hour, &minute, &second); + retVal___ = preHookFunc(&acc, &character_name, &operation_type, &year, &month, &day, &hour, &minute, &second); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5115,10 +5111,10 @@ bool HP_chrif_char_ask_name(int acc, const char *character_name, unsigned short retVal___ = HPMHooks.source.chrif.char_ask_name(acc, character_name, operation_type, year, month, day, hour, minute, second); } if( HPMHooks.count.HP_chrif_char_ask_name_post ) { - bool (*postHookFunc) (bool retVal___, int *acc, const char *character_name, unsigned short *operation_type, int *year, int *month, int *day, int *hour, int *minute, int *second); + bool (*postHookFunc) (bool retVal___, int acc, const char *character_name, unsigned short operation_type, int year, int month, int day, int hour, int minute, int second); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_ask_name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_char_ask_name_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &acc, character_name, &operation_type, &year, &month, &day, &hour, &minute, &second); + retVal___ = postHookFunc(retVal___, acc, character_name, operation_type, year, month, day, hour, minute, second); } } return retVal___; @@ -5127,11 +5123,11 @@ int HP_chrif_updatefamelist(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_chrif_updatefamelist_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_updatefamelist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_updatefamelist_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5181,11 +5177,11 @@ bool HP_chrif_save_scdata(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_save_scdata_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_scdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_save_scdata_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5223,10 +5219,10 @@ bool HP_chrif_ragsrvinfo(int base_rate, int job_rate, int drop_rate) { retVal___ = HPMHooks.source.chrif.ragsrvinfo(base_rate, job_rate, drop_rate); } if( HPMHooks.count.HP_chrif_ragsrvinfo_post ) { - bool (*postHookFunc) (bool retVal___, int *base_rate, int *job_rate, int *drop_rate); + bool (*postHookFunc) (bool retVal___, int base_rate, int job_rate, int drop_rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_ragsrvinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_ragsrvinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &base_rate, &job_rate, &drop_rate); + retVal___ = postHookFunc(retVal___, base_rate, job_rate, drop_rate); } } return retVal___; @@ -5250,10 +5246,10 @@ bool HP_chrif_char_offline_nsd(int account_id, int char_id) { retVal___ = HPMHooks.source.chrif.char_offline_nsd(account_id, char_id); } if( HPMHooks.count.HP_chrif_char_offline_nsd_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, int *char_id); + bool (*postHookFunc) (bool retVal___, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_offline_nsd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_char_offline_nsd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, account_id, char_id); } } return retVal___; @@ -5316,11 +5312,11 @@ bool HP_chrif_char_online(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_char_online_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_online_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_char_online_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5343,11 +5339,11 @@ bool HP_chrif_changesex(struct map_session_data *sd, bool change_account) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_changesex_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, bool *change_account); + bool (*preHookFunc) (struct map_session_data **sd, bool *change_account); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changesex_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_changesex_pre[hIndex].func; - retVal___ = preHookFunc(sd, &change_account); + retVal___ = preHookFunc(&sd, &change_account); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5358,10 +5354,10 @@ bool HP_chrif_changesex(struct map_session_data *sd, bool change_account) { retVal___ = HPMHooks.source.chrif.changesex(sd, change_account); } if( HPMHooks.count.HP_chrif_changesex_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, bool *change_account); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, bool change_account); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changesex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_changesex_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &change_account); + retVal___ = postHookFunc(retVal___, sd, change_account); } } return retVal___; @@ -5385,10 +5381,10 @@ bool HP_chrif_divorce(int partner_id1, int partner_id2) { retVal___ = HPMHooks.source.chrif.divorce(partner_id1, partner_id2); } if( HPMHooks.count.HP_chrif_divorce_post ) { - bool (*postHookFunc) (bool retVal___, int *partner_id1, int *partner_id2); + bool (*postHookFunc) (bool retVal___, int partner_id1, int partner_id2); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_divorce_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_divorce_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &partner_id1, &partner_id2); + retVal___ = postHookFunc(retVal___, partner_id1, partner_id2); } } return retVal___; @@ -5412,10 +5408,10 @@ bool HP_chrif_removefriend(int char_id, int friend_id) { retVal___ = HPMHooks.source.chrif.removefriend(char_id, friend_id); } if( HPMHooks.count.HP_chrif_removefriend_post ) { - bool (*postHookFunc) (bool retVal___, int *char_id, int *friend_id); + bool (*postHookFunc) (bool retVal___, int char_id, int friend_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_removefriend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_removefriend_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &friend_id); + retVal___ = postHookFunc(retVal___, char_id, friend_id); } } return retVal___; @@ -5423,11 +5419,11 @@ bool HP_chrif_removefriend(int char_id, int friend_id) { void HP_chrif_send_report(char *buf, int len) { int hIndex = 0; if( HPMHooks.count.HP_chrif_send_report_pre ) { - void (*preHookFunc) (char *buf, int *len); + void (*preHookFunc) (char **buf, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_send_report_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_send_report_pre[hIndex].func; - preHookFunc(buf, &len); + preHookFunc(&buf, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5438,10 +5434,10 @@ void HP_chrif_send_report(char *buf, int len) { HPMHooks.source.chrif.send_report(buf, len); } if( HPMHooks.count.HP_chrif_send_report_post ) { - void (*postHookFunc) (char *buf, int *len); + void (*postHookFunc) (char *buf, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_send_report_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_send_report_post[hIndex].func; - postHookFunc(buf, &len); + postHookFunc(buf, len); } } return; @@ -5491,10 +5487,10 @@ void HP_chrif_skillid2idx(int fd) { HPMHooks.source.chrif.skillid2idx(fd); } if( HPMHooks.count.HP_chrif_skillid2idx_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_skillid2idx_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_skillid2idx_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5503,11 +5499,11 @@ bool HP_chrif_sd_to_auth(struct map_session_data *sd, enum sd_state state) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_sd_to_auth_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, enum sd_state *state); + bool (*preHookFunc) (struct map_session_data **sd, enum sd_state *state); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sd_to_auth_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_sd_to_auth_pre[hIndex].func; - retVal___ = preHookFunc(sd, &state); + retVal___ = preHookFunc(&sd, &state); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5518,10 +5514,10 @@ bool HP_chrif_sd_to_auth(struct map_session_data *sd, enum sd_state state) { retVal___ = HPMHooks.source.chrif.sd_to_auth(sd, state); } if( HPMHooks.count.HP_chrif_sd_to_auth_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, enum sd_state *state); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, enum sd_state state); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sd_to_auth_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_sd_to_auth_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &state); + retVal___ = postHookFunc(retVal___, sd, state); } } return retVal___; @@ -5545,10 +5541,10 @@ int HP_chrif_check_connect_char_server(int tid, int64 tick, int id, intptr_t dat retVal___ = HPMHooks.source.chrif.check_connect_char_server(tid, tick, id, data); } if( HPMHooks.count.HP_chrif_check_connect_char_server_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_check_connect_char_server_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_check_connect_char_server_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -5557,11 +5553,11 @@ bool HP_chrif_auth_logout(struct map_session_data *sd, enum sd_state state) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_auth_logout_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, enum sd_state *state); + bool (*preHookFunc) (struct map_session_data **sd, enum sd_state *state); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_logout_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_auth_logout_pre[hIndex].func; - retVal___ = preHookFunc(sd, &state); + retVal___ = preHookFunc(&sd, &state); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5572,10 +5568,10 @@ bool HP_chrif_auth_logout(struct map_session_data *sd, enum sd_state state) { retVal___ = HPMHooks.source.chrif.auth_logout(sd, state); } if( HPMHooks.count.HP_chrif_auth_logout_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, enum sd_state *state); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, enum sd_state state); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_logout_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_auth_logout_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &state); + retVal___ = postHookFunc(retVal___, sd, state); } } return retVal___; @@ -5598,24 +5594,24 @@ void HP_chrif_save_ack(int fd) { HPMHooks.source.chrif.save_ack(fd); } if( HPMHooks.count.HP_chrif_save_ack_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_save_ack_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; } -int HP_chrif_reconnect(DBKey key, DBData *data, va_list ap) { +int HP_chrif_reconnect(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_chrif_reconnect_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_reconnect_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_chrif_reconnect_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -5629,26 +5625,26 @@ int HP_chrif_reconnect(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_chrif_reconnect_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_reconnect_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_chrif_reconnect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_chrif_auth_db_cleanup_sub(DBKey key, DBData *data, va_list ap) { +int HP_chrif_auth_db_cleanup_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_chrif_auth_db_cleanup_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_cleanup_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_chrif_auth_db_cleanup_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -5662,11 +5658,11 @@ int HP_chrif_auth_db_cleanup_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_chrif_auth_db_cleanup_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_cleanup_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_chrif_auth_db_cleanup_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -5676,11 +5672,11 @@ bool HP_chrif_char_ask_name_answer(int acc, const char *player_name, uint16 type int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_chrif_char_ask_name_answer_pre ) { - bool (*preHookFunc) (int *acc, const char *player_name, uint16 *type, uint16 *answer); + bool (*preHookFunc) (int *acc, const char **player_name, uint16 *type, uint16 *answer); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_ask_name_answer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_char_ask_name_answer_pre[hIndex].func; - retVal___ = preHookFunc(&acc, player_name, &type, &answer); + retVal___ = preHookFunc(&acc, &player_name, &type, &answer); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -5691,24 +5687,24 @@ bool HP_chrif_char_ask_name_answer(int acc, const char *player_name, uint16 type retVal___ = HPMHooks.source.chrif.char_ask_name_answer(acc, player_name, type, answer); } if( HPMHooks.count.HP_chrif_char_ask_name_answer_post ) { - bool (*postHookFunc) (bool retVal___, int *acc, const char *player_name, uint16 *type, uint16 *answer); + bool (*postHookFunc) (bool retVal___, int acc, const char *player_name, uint16 type, uint16 answer); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_ask_name_answer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_char_ask_name_answer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &acc, player_name, &type, &answer); + retVal___ = postHookFunc(retVal___, acc, player_name, type, answer); } } return retVal___; } -int HP_chrif_auth_db_final(DBKey key, DBData *data, va_list ap) { +int HP_chrif_auth_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_chrif_auth_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_chrif_auth_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -5722,11 +5718,11 @@ int HP_chrif_auth_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_chrif_auth_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_chrif_auth_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -5751,10 +5747,10 @@ int HP_chrif_send_usercount_tochar(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.chrif.send_usercount_tochar(tid, tick, id, data); } if( HPMHooks.count.HP_chrif_send_usercount_tochar_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_send_usercount_tochar_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_send_usercount_tochar_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -5778,10 +5774,10 @@ int HP_chrif_auth_db_cleanup(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.chrif.auth_db_cleanup(tid, tick, id, data); } if( HPMHooks.count.HP_chrif_auth_db_cleanup_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_cleanup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_auth_db_cleanup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -5804,10 +5800,10 @@ void HP_chrif_connect(int fd) { HPMHooks.source.chrif.connect(fd); } if( HPMHooks.count.HP_chrif_connect_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_connect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_connect_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5830,10 +5826,10 @@ void HP_chrif_connectack(int fd) { HPMHooks.source.chrif.connectack(fd); } if( HPMHooks.count.HP_chrif_connectack_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_connectack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_connectack_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5856,10 +5852,10 @@ void HP_chrif_sendmap(int fd) { HPMHooks.source.chrif.sendmap(fd); } if( HPMHooks.count.HP_chrif_sendmap_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sendmap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_sendmap_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5882,10 +5878,10 @@ void HP_chrif_sendmapack(int fd) { HPMHooks.source.chrif.sendmapack(fd); } if( HPMHooks.count.HP_chrif_sendmapack_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sendmapack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_sendmapack_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5908,10 +5904,10 @@ void HP_chrif_recvmap(int fd) { HPMHooks.source.chrif.recvmap(fd); } if( HPMHooks.count.HP_chrif_recvmap_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_recvmap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_recvmap_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5935,10 +5931,10 @@ bool HP_chrif_changemapserverack(int account_id, int login_id1, int login_id2, i retVal___ = HPMHooks.source.chrif.changemapserverack(account_id, login_id1, login_id2, char_id, map_index, x, y, ip, port); } if( HPMHooks.count.HP_chrif_changemapserverack_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, int *login_id1, int *login_id2, int *char_id, short *map_index, short *x, short *y, uint32 *ip, uint16 *port); + bool (*postHookFunc) (bool retVal___, int account_id, int login_id1, int login_id2, int char_id, short map_index, short x, short y, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changemapserverack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_changemapserverack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &login_id1, &login_id2, &char_id, &map_index, &x, &y, &ip, &port); + retVal___ = postHookFunc(retVal___, account_id, login_id1, login_id2, char_id, map_index, x, y, ip, port); } } return retVal___; @@ -5961,10 +5957,10 @@ void HP_chrif_changedsex(int fd) { HPMHooks.source.chrif.changedsex(fd); } if( HPMHooks.count.HP_chrif_changedsex_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changedsex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_changedsex_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -5988,10 +5984,10 @@ bool HP_chrif_divorceack(int char_id, int partner_id) { retVal___ = HPMHooks.source.chrif.divorceack(char_id, partner_id); } if( HPMHooks.count.HP_chrif_divorceack_post ) { - bool (*postHookFunc) (bool retVal___, int *char_id, int *partner_id); + bool (*postHookFunc) (bool retVal___, int char_id, int partner_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_divorceack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_divorceack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &partner_id); + retVal___ = postHookFunc(retVal___, char_id, partner_id); } } return retVal___; @@ -6014,10 +6010,10 @@ void HP_chrif_idbanned(int fd) { HPMHooks.source.chrif.idbanned(fd); } if( HPMHooks.count.HP_chrif_idbanned_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_idbanned_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_idbanned_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6040,10 +6036,10 @@ void HP_chrif_recvfamelist(int fd) { HPMHooks.source.chrif.recvfamelist(fd); } if( HPMHooks.count.HP_chrif_recvfamelist_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_recvfamelist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_recvfamelist_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6067,10 +6063,10 @@ bool HP_chrif_load_scdata(int fd) { retVal___ = HPMHooks.source.chrif.load_scdata(fd); } if( HPMHooks.count.HP_chrif_load_scdata_post ) { - bool (*postHookFunc) (bool retVal___, int *fd); + bool (*postHookFunc) (bool retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_load_scdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_load_scdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -6093,10 +6089,10 @@ void HP_chrif_update_ip(int fd) { HPMHooks.source.chrif.update_ip(fd); } if( HPMHooks.count.HP_chrif_update_ip_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_update_ip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_update_ip_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6120,10 +6116,10 @@ int HP_chrif_disconnectplayer(int fd) { retVal___ = HPMHooks.source.chrif.disconnectplayer(fd); } if( HPMHooks.count.HP_chrif_disconnectplayer_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_disconnectplayer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_disconnectplayer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -6146,10 +6142,10 @@ void HP_chrif_removemap(int fd) { HPMHooks.source.chrif.removemap(fd); } if( HPMHooks.count.HP_chrif_removemap_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_removemap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_removemap_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6173,10 +6169,10 @@ int HP_chrif_updatefamelist_ack(int fd) { retVal___ = HPMHooks.source.chrif.updatefamelist_ack(fd); } if( HPMHooks.count.HP_chrif_updatefamelist_ack_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_updatefamelist_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_updatefamelist_ack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -6199,10 +6195,10 @@ void HP_chrif_keepalive(int fd) { HPMHooks.source.chrif.keepalive(fd); } if( HPMHooks.count.HP_chrif_keepalive_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_keepalive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_keepalive_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6225,10 +6221,10 @@ void HP_chrif_keepalive_ack(int fd) { HPMHooks.source.chrif.keepalive_ack(fd); } if( HPMHooks.count.HP_chrif_keepalive_ack_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_keepalive_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_keepalive_ack_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6251,10 +6247,10 @@ void HP_chrif_deadopt(int father_id, int mother_id, int child_id) { HPMHooks.source.chrif.deadopt(father_id, mother_id, child_id); } if( HPMHooks.count.HP_chrif_deadopt_post ) { - void (*postHookFunc) (int *father_id, int *mother_id, int *child_id); + void (*postHookFunc) (int father_id, int mother_id, int child_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_deadopt_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_deadopt_post[hIndex].func; - postHookFunc(&father_id, &mother_id, &child_id); + postHookFunc(father_id, mother_id, child_id); } } return; @@ -6277,10 +6273,10 @@ void HP_chrif_authfail(int fd) { HPMHooks.source.chrif.authfail(fd); } if( HPMHooks.count.HP_chrif_authfail_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_authfail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_authfail_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -6356,10 +6352,10 @@ int HP_chrif_parse(int fd) { retVal___ = HPMHooks.source.chrif.parse(fd); } if( HPMHooks.count.HP_chrif_parse_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -6367,11 +6363,11 @@ int HP_chrif_parse(int fd) { void HP_chrif_save_scdata_single(int account_id, int char_id, short type, struct status_change_entry *sce) { int hIndex = 0; if( HPMHooks.count.HP_chrif_save_scdata_single_pre ) { - void (*preHookFunc) (int *account_id, int *char_id, short *type, struct status_change_entry *sce); + void (*preHookFunc) (int *account_id, int *char_id, short *type, struct status_change_entry **sce); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_scdata_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_chrif_save_scdata_single_pre[hIndex].func; - preHookFunc(&account_id, &char_id, &type, sce); + preHookFunc(&account_id, &char_id, &type, &sce); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6382,10 +6378,10 @@ void HP_chrif_save_scdata_single(int account_id, int char_id, short type, struct HPMHooks.source.chrif.save_scdata_single(account_id, char_id, type, sce); } if( HPMHooks.count.HP_chrif_save_scdata_single_post ) { - void (*postHookFunc) (int *account_id, int *char_id, short *type, struct status_change_entry *sce); + void (*postHookFunc) (int account_id, int char_id, short type, struct status_change_entry *sce); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_scdata_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_save_scdata_single_post[hIndex].func; - postHookFunc(&account_id, &char_id, &type, sce); + postHookFunc(account_id, char_id, type, sce); } } return; @@ -6408,15 +6404,15 @@ void HP_chrif_del_scdata_single(int account_id, int char_id, short type) { HPMHooks.source.chrif.del_scdata_single(account_id, char_id, type); } if( HPMHooks.count.HP_chrif_del_scdata_single_post ) { - void (*postHookFunc) (int *account_id, int *char_id, short *type); + void (*postHookFunc) (int account_id, int char_id, short type); for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_del_scdata_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_chrif_del_scdata_single_post[hIndex].func; - postHookFunc(&account_id, &char_id, &type); + postHookFunc(account_id, char_id, type); } } return; } -/* clif */ +/* clif_interface */ int HP_clif_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -6436,10 +6432,10 @@ int HP_clif_init(bool minimal) { retVal___ = HPMHooks.source.clif.init(minimal); } if( HPMHooks.count.HP_clif_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -6474,11 +6470,11 @@ bool HP_clif_setip(const char *ip) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_clif_setip_pre ) { - bool (*preHookFunc) (const char *ip); + bool (*preHookFunc) (const char **ip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_setip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_setip_pre[hIndex].func; - retVal___ = preHookFunc(ip); + retVal___ = preHookFunc(&ip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6501,11 +6497,11 @@ bool HP_clif_setbindip(const char *ip) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_clif_setbindip_pre ) { - bool (*preHookFunc) (const char *ip); + bool (*preHookFunc) (const char **ip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_setbindip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_setbindip_pre[hIndex].func; - retVal___ = preHookFunc(ip); + retVal___ = preHookFunc(&ip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6542,10 +6538,10 @@ void HP_clif_setport(uint16 port) { HPMHooks.source.clif.setport(port); } if( HPMHooks.count.HP_clif_setport_post ) { - void (*postHookFunc) (uint16 *port); + void (*postHookFunc) (uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_setport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_setport_post[hIndex].func; - postHookFunc(&port); + postHookFunc(port); } } return; @@ -6581,11 +6577,11 @@ bool HP_clif_send(const void *buf, int len, struct block_list *bl, enum send_tar int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_clif_send_pre ) { - bool (*preHookFunc) (const void *buf, int *len, struct block_list *bl, enum send_target *type); + bool (*preHookFunc) (const void **buf, int *len, struct block_list **bl, enum send_target *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_send_pre[hIndex].func; - retVal___ = preHookFunc(buf, &len, bl, &type); + retVal___ = preHookFunc(&buf, &len, &bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6596,10 +6592,10 @@ bool HP_clif_send(const void *buf, int len, struct block_list *bl, enum send_tar retVal___ = HPMHooks.source.clif.send(buf, len, bl, type); } if( HPMHooks.count.HP_clif_send_post ) { - bool (*postHookFunc) (bool retVal___, const void *buf, int *len, struct block_list *bl, enum send_target *type); + bool (*postHookFunc) (bool retVal___, const void *buf, int len, struct block_list *bl, enum send_target type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_send_post[hIndex].func; - retVal___ = postHookFunc(retVal___, buf, &len, bl, &type); + retVal___ = postHookFunc(retVal___, buf, len, bl, type); } } return retVal___; @@ -6608,12 +6604,12 @@ int HP_clif_send_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_send_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_send_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -6641,11 +6637,11 @@ int HP_clif_send_actual(int fd, void *buf, int len) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_send_actual_pre ) { - int (*preHookFunc) (int *fd, void *buf, int *len); + int (*preHookFunc) (int *fd, void **buf, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_actual_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_send_actual_pre[hIndex].func; - retVal___ = preHookFunc(&fd, buf, &len); + retVal___ = preHookFunc(&fd, &buf, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6656,10 +6652,10 @@ int HP_clif_send_actual(int fd, void *buf, int len) { retVal___ = HPMHooks.source.clif.send_actual(fd, buf, len); } if( HPMHooks.count.HP_clif_send_actual_post ) { - int (*postHookFunc) (int retVal___, int *fd, void *buf, int *len); + int (*postHookFunc) (int retVal___, int fd, void *buf, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_actual_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_send_actual_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, buf, &len); + retVal___ = postHookFunc(retVal___, fd, buf, len); } } return retVal___; @@ -6683,10 +6679,10 @@ int HP_clif_parse(int fd) { retVal___ = HPMHooks.source.clif.parse(fd); } if( HPMHooks.count.HP_clif_parse_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -6710,10 +6706,10 @@ const struct s_packet_db* HP_clif_packet(int packet_id) { retVal___ = HPMHooks.source.clif.packet(packet_id); } if( HPMHooks.count.HP_clif_packet_post ) { - const struct s_packet_db* (*postHookFunc) (const struct s_packet_db* retVal___, int *packet_id); + const struct s_packet_db* (*postHookFunc) (const struct s_packet_db* retVal___, int packet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_packet_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_packet_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &packet_id); + retVal___ = postHookFunc(retVal___, packet_id); } } return retVal___; @@ -6722,11 +6718,11 @@ unsigned short HP_clif_parse_cmd(int fd, struct map_session_data *sd) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_clif_parse_cmd_pre ) { - unsigned short (*preHookFunc) (int *fd, struct map_session_data *sd); + unsigned short (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_cmd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_parse_cmd_pre[hIndex].func; - retVal___ = preHookFunc(&fd, sd); + retVal___ = preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6737,10 +6733,10 @@ unsigned short HP_clif_parse_cmd(int fd, struct map_session_data *sd) { retVal___ = HPMHooks.source.clif.parse_cmd(fd, sd); } if( HPMHooks.count.HP_clif_parse_cmd_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, int *fd, struct map_session_data *sd); + unsigned short (*postHookFunc) (unsigned short retVal___, int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_cmd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_parse_cmd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, sd); + retVal___ = postHookFunc(retVal___, fd, sd); } } return retVal___; @@ -6749,11 +6745,11 @@ unsigned short HP_clif_decrypt_cmd(int cmd, struct map_session_data *sd) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_clif_decrypt_cmd_pre ) { - unsigned short (*preHookFunc) (int *cmd, struct map_session_data *sd); + unsigned short (*preHookFunc) (int *cmd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_decrypt_cmd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_decrypt_cmd_pre[hIndex].func; - retVal___ = preHookFunc(&cmd, sd); + retVal___ = preHookFunc(&cmd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6764,10 +6760,10 @@ unsigned short HP_clif_decrypt_cmd(int cmd, struct map_session_data *sd) { retVal___ = HPMHooks.source.clif.decrypt_cmd(cmd, sd); } if( HPMHooks.count.HP_clif_decrypt_cmd_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, int *cmd, struct map_session_data *sd); + unsigned short (*postHookFunc) (unsigned short retVal___, int cmd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_decrypt_cmd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_decrypt_cmd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &cmd, sd); + retVal___ = postHookFunc(retVal___, cmd, sd); } } return retVal___; @@ -6775,11 +6771,11 @@ unsigned short HP_clif_decrypt_cmd(int cmd, struct map_session_data *sd) { void HP_clif_authok(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_authok_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_authok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_authok_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6816,10 +6812,10 @@ void HP_clif_authrefuse(int fd, uint8 error_code) { HPMHooks.source.clif.authrefuse(fd, error_code); } if( HPMHooks.count.HP_clif_authrefuse_post ) { - void (*postHookFunc) (int *fd, uint8 *error_code); + void (*postHookFunc) (int fd, uint8 error_code); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_authrefuse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_authrefuse_post[hIndex].func; - postHookFunc(&fd, &error_code); + postHookFunc(fd, error_code); } } return; @@ -6842,10 +6838,10 @@ void HP_clif_authfail_fd(int fd, int type) { HPMHooks.source.clif.authfail_fd(fd, type); } if( HPMHooks.count.HP_clif_authfail_fd_post ) { - void (*postHookFunc) (int *fd, int *type); + void (*postHookFunc) (int fd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_authfail_fd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_authfail_fd_post[hIndex].func; - postHookFunc(&fd, &type); + postHookFunc(fd, type); } } return; @@ -6868,10 +6864,10 @@ void HP_clif_charselectok(int id, uint8 ok) { HPMHooks.source.clif.charselectok(id, ok); } if( HPMHooks.count.HP_clif_charselectok_post ) { - void (*postHookFunc) (int *id, uint8 *ok); + void (*postHookFunc) (int id, uint8 ok); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charselectok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_charselectok_post[hIndex].func; - postHookFunc(&id, &ok); + postHookFunc(id, ok); } } return; @@ -6879,11 +6875,11 @@ void HP_clif_charselectok(int id, uint8 ok) { void HP_clif_dropflooritem(struct flooritem_data *fitem) { int hIndex = 0; if( HPMHooks.count.HP_clif_dropflooritem_pre ) { - void (*preHookFunc) (struct flooritem_data *fitem); + void (*preHookFunc) (struct flooritem_data **fitem); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dropflooritem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_dropflooritem_pre[hIndex].func; - preHookFunc(fitem); + preHookFunc(&fitem); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6905,11 +6901,11 @@ void HP_clif_dropflooritem(struct flooritem_data *fitem) { void HP_clif_clearflooritem(struct flooritem_data *fitem, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_clearflooritem_pre ) { - void (*preHookFunc) (struct flooritem_data *fitem, int *fd); + void (*preHookFunc) (struct flooritem_data **fitem, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearflooritem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_clearflooritem_pre[hIndex].func; - preHookFunc(fitem, &fd); + preHookFunc(&fitem, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6920,10 +6916,10 @@ void HP_clif_clearflooritem(struct flooritem_data *fitem, int fd) { HPMHooks.source.clif.clearflooritem(fitem, fd); } if( HPMHooks.count.HP_clif_clearflooritem_post ) { - void (*postHookFunc) (struct flooritem_data *fitem, int *fd); + void (*postHookFunc) (struct flooritem_data *fitem, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearflooritem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearflooritem_post[hIndex].func; - postHookFunc(fitem, &fd); + postHookFunc(fitem, fd); } } return; @@ -6931,11 +6927,11 @@ void HP_clif_clearflooritem(struct flooritem_data *fitem, int fd) { void HP_clif_additem(struct map_session_data *sd, int n, int amount, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_additem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *amount, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_additem_pre[hIndex].func; - preHookFunc(sd, &n, &amount, &fail); + preHookFunc(&sd, &n, &amount, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6946,10 +6942,10 @@ void HP_clif_additem(struct map_session_data *sd, int n, int amount, int fail) { HPMHooks.source.clif.additem(sd, n, amount, fail); } if( HPMHooks.count.HP_clif_additem_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *amount, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int n, int amount, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_additem_post[hIndex].func; - postHookFunc(sd, &n, &amount, &fail); + postHookFunc(sd, n, amount, fail); } } return; @@ -6957,11 +6953,11 @@ void HP_clif_additem(struct map_session_data *sd, int n, int amount, int fail) { void HP_clif_dropitem(struct map_session_data *sd, int n, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_dropitem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *amount); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dropitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_dropitem_pre[hIndex].func; - preHookFunc(sd, &n, &amount); + preHookFunc(&sd, &n, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6972,10 +6968,10 @@ void HP_clif_dropitem(struct map_session_data *sd, int n, int amount) { HPMHooks.source.clif.dropitem(sd, n, amount); } if( HPMHooks.count.HP_clif_dropitem_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *amount); + void (*postHookFunc) (struct map_session_data *sd, int n, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dropitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_dropitem_post[hIndex].func; - postHookFunc(sd, &n, &amount); + postHookFunc(sd, n, amount); } } return; @@ -6983,11 +6979,11 @@ void HP_clif_dropitem(struct map_session_data *sd, int n, int amount) { void HP_clif_delitem(struct map_session_data *sd, int n, int amount, short reason) { int hIndex = 0; if( HPMHooks.count.HP_clif_delitem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, short *reason); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *amount, short *reason); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_delitem_pre[hIndex].func; - preHookFunc(sd, &n, &amount, &reason); + preHookFunc(&sd, &n, &amount, &reason); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -6998,10 +6994,10 @@ void HP_clif_delitem(struct map_session_data *sd, int n, int amount, short reaso HPMHooks.source.clif.delitem(sd, n, amount, reason); } if( HPMHooks.count.HP_clif_delitem_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *amount, short *reason); + void (*postHookFunc) (struct map_session_data *sd, int n, int amount, short reason); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_delitem_post[hIndex].func; - postHookFunc(sd, &n, &amount, &reason); + postHookFunc(sd, n, amount, reason); } } return; @@ -7009,11 +7005,11 @@ void HP_clif_delitem(struct map_session_data *sd, int n, int amount, short reaso void HP_clif_takeitem(struct block_list *src, struct block_list *dst) { int hIndex = 0; if( HPMHooks.count.HP_clif_takeitem_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *dst); + void (*preHookFunc) (struct block_list **src, struct block_list **dst); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_takeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_takeitem_pre[hIndex].func; - preHookFunc(src, dst); + preHookFunc(&src, &dst); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7035,11 +7031,11 @@ void HP_clif_takeitem(struct block_list *src, struct block_list *dst) { void HP_clif_item_equip(short idx, struct EQUIPITEM_INFO *p, struct item *i, struct item_data *id, int eqp_pos) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_equip_pre ) { - void (*preHookFunc) (short *idx, struct EQUIPITEM_INFO *p, struct item *i, struct item_data *id, int *eqp_pos); + void (*preHookFunc) (short *idx, struct EQUIPITEM_INFO **p, struct item **i, struct item_data **id, int *eqp_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_equip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_equip_pre[hIndex].func; - preHookFunc(&idx, p, i, id, &eqp_pos); + preHookFunc(&idx, &p, &i, &id, &eqp_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7050,10 +7046,10 @@ void HP_clif_item_equip(short idx, struct EQUIPITEM_INFO *p, struct item *i, str HPMHooks.source.clif.item_equip(idx, p, i, id, eqp_pos); } if( HPMHooks.count.HP_clif_item_equip_post ) { - void (*postHookFunc) (short *idx, struct EQUIPITEM_INFO *p, struct item *i, struct item_data *id, int *eqp_pos); + void (*postHookFunc) (short idx, struct EQUIPITEM_INFO *p, struct item *i, struct item_data *id, int eqp_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_equip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_equip_post[hIndex].func; - postHookFunc(&idx, p, i, id, &eqp_pos); + postHookFunc(idx, p, i, id, eqp_pos); } } return; @@ -7061,11 +7057,11 @@ void HP_clif_item_equip(short idx, struct EQUIPITEM_INFO *p, struct item *i, str void HP_clif_item_normal(short idx, struct NORMALITEM_INFO *p, struct item *i, struct item_data *id) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_normal_pre ) { - void (*preHookFunc) (short *idx, struct NORMALITEM_INFO *p, struct item *i, struct item_data *id); + void (*preHookFunc) (short *idx, struct NORMALITEM_INFO **p, struct item **i, struct item_data **id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_normal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_normal_pre[hIndex].func; - preHookFunc(&idx, p, i, id); + preHookFunc(&idx, &p, &i, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7076,10 +7072,10 @@ void HP_clif_item_normal(short idx, struct NORMALITEM_INFO *p, struct item *i, s HPMHooks.source.clif.item_normal(idx, p, i, id); } if( HPMHooks.count.HP_clif_item_normal_post ) { - void (*postHookFunc) (short *idx, struct NORMALITEM_INFO *p, struct item *i, struct item_data *id); + void (*postHookFunc) (short idx, struct NORMALITEM_INFO *p, struct item *i, struct item_data *id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_normal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_normal_post[hIndex].func; - postHookFunc(&idx, p, i, id); + postHookFunc(idx, p, i, id); } } return; @@ -7087,11 +7083,11 @@ void HP_clif_item_normal(short idx, struct NORMALITEM_INFO *p, struct item *i, s void HP_clif_arrowequip(struct map_session_data *sd, int val) { int hIndex = 0; if( HPMHooks.count.HP_clif_arrowequip_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *val); + void (*preHookFunc) (struct map_session_data **sd, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_arrowequip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_arrowequip_pre[hIndex].func; - preHookFunc(sd, &val); + preHookFunc(&sd, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7102,10 +7098,10 @@ void HP_clif_arrowequip(struct map_session_data *sd, int val) { HPMHooks.source.clif.arrowequip(sd, val); } if( HPMHooks.count.HP_clif_arrowequip_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *val); + void (*postHookFunc) (struct map_session_data *sd, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_arrowequip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_arrowequip_post[hIndex].func; - postHookFunc(sd, &val); + postHookFunc(sd, val); } } return; @@ -7113,11 +7109,11 @@ void HP_clif_arrowequip(struct map_session_data *sd, int val) { void HP_clif_arrow_fail(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_arrow_fail_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_arrow_fail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_arrow_fail_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7128,10 +7124,10 @@ void HP_clif_arrow_fail(struct map_session_data *sd, int type) { HPMHooks.source.clif.arrow_fail(sd, type); } if( HPMHooks.count.HP_clif_arrow_fail_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_arrow_fail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_arrow_fail_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -7139,11 +7135,11 @@ void HP_clif_arrow_fail(struct map_session_data *sd, int type) { void HP_clif_use_card(struct map_session_data *sd, int idx) { int hIndex = 0; if( HPMHooks.count.HP_clif_use_card_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx); + void (*preHookFunc) (struct map_session_data **sd, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_use_card_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_use_card_pre[hIndex].func; - preHookFunc(sd, &idx); + preHookFunc(&sd, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7154,10 +7150,10 @@ void HP_clif_use_card(struct map_session_data *sd, int idx) { HPMHooks.source.clif.use_card(sd, idx); } if( HPMHooks.count.HP_clif_use_card_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx); + void (*postHookFunc) (struct map_session_data *sd, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_use_card_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_use_card_post[hIndex].func; - postHookFunc(sd, &idx); + postHookFunc(sd, idx); } } return; @@ -7165,11 +7161,11 @@ void HP_clif_use_card(struct map_session_data *sd, int idx) { void HP_clif_cart_additem(struct map_session_data *sd, int n, int amount, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_cart_additem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *amount, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cart_additem_pre[hIndex].func; - preHookFunc(sd, &n, &amount, &fail); + preHookFunc(&sd, &n, &amount, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7180,10 +7176,10 @@ void HP_clif_cart_additem(struct map_session_data *sd, int n, int amount, int fa HPMHooks.source.clif.cart_additem(sd, n, amount, fail); } if( HPMHooks.count.HP_clif_cart_additem_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *amount, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int n, int amount, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cart_additem_post[hIndex].func; - postHookFunc(sd, &n, &amount, &fail); + postHookFunc(sd, n, amount, fail); } } return; @@ -7191,11 +7187,11 @@ void HP_clif_cart_additem(struct map_session_data *sd, int n, int amount, int fa void HP_clif_cart_delitem(struct map_session_data *sd, int n, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_cart_delitem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *amount); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cart_delitem_pre[hIndex].func; - preHookFunc(sd, &n, &amount); + preHookFunc(&sd, &n, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7206,10 +7202,10 @@ void HP_clif_cart_delitem(struct map_session_data *sd, int n, int amount) { HPMHooks.source.clif.cart_delitem(sd, n, amount); } if( HPMHooks.count.HP_clif_cart_delitem_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *amount); + void (*postHookFunc) (struct map_session_data *sd, int n, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cart_delitem_post[hIndex].func; - postHookFunc(sd, &n, &amount); + postHookFunc(sd, n, amount); } } return; @@ -7217,11 +7213,11 @@ void HP_clif_cart_delitem(struct map_session_data *sd, int n, int amount) { void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, enum e_EQUIP_ITEM_ACK result) { int hIndex = 0; if( HPMHooks.count.HP_clif_equipitemack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_EQUIP_ITEM_ACK *result); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *pos, enum e_EQUIP_ITEM_ACK *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equipitemack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_equipitemack_pre[hIndex].func; - preHookFunc(sd, &n, &pos, &result); + preHookFunc(&sd, &n, &pos, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7232,10 +7228,10 @@ void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, enum e_EQ HPMHooks.source.clif.equipitemack(sd, n, pos, result); } if( HPMHooks.count.HP_clif_equipitemack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_EQUIP_ITEM_ACK *result); + void (*postHookFunc) (struct map_session_data *sd, int n, int pos, enum e_EQUIP_ITEM_ACK result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equipitemack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_equipitemack_post[hIndex].func; - postHookFunc(sd, &n, &pos, &result); + postHookFunc(sd, n, pos, result); } } return; @@ -7243,11 +7239,11 @@ void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, enum e_EQ void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, enum e_UNEQUIP_ITEM_ACK result) { int hIndex = 0; if( HPMHooks.count.HP_clif_unequipitemack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_UNEQUIP_ITEM_ACK *result); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *pos, enum e_UNEQUIP_ITEM_ACK *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_unequipitemack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_unequipitemack_pre[hIndex].func; - preHookFunc(sd, &n, &pos, &result); + preHookFunc(&sd, &n, &pos, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7258,10 +7254,10 @@ void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, enum e_ HPMHooks.source.clif.unequipitemack(sd, n, pos, result); } if( HPMHooks.count.HP_clif_unequipitemack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_UNEQUIP_ITEM_ACK *result); + void (*postHookFunc) (struct map_session_data *sd, int n, int pos, enum e_UNEQUIP_ITEM_ACK result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_unequipitemack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_unequipitemack_post[hIndex].func; - postHookFunc(sd, &n, &pos, &result); + postHookFunc(sd, n, pos, result); } } return; @@ -7269,11 +7265,11 @@ void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, enum e_ void HP_clif_useitemack(struct map_session_data *sd, int index, int amount, bool ok) { int hIndex = 0; if( HPMHooks.count.HP_clif_useitemack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index, int *amount, bool *ok); + void (*preHookFunc) (struct map_session_data **sd, int *index, int *amount, bool *ok); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_useitemack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_useitemack_pre[hIndex].func; - preHookFunc(sd, &index, &amount, &ok); + preHookFunc(&sd, &index, &amount, &ok); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7284,10 +7280,10 @@ void HP_clif_useitemack(struct map_session_data *sd, int index, int amount, bool HPMHooks.source.clif.useitemack(sd, index, amount, ok); } if( HPMHooks.count.HP_clif_useitemack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index, int *amount, bool *ok); + void (*postHookFunc) (struct map_session_data *sd, int index, int amount, bool ok); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_useitemack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_useitemack_post[hIndex].func; - postHookFunc(sd, &index, &amount, &ok); + postHookFunc(sd, index, amount, ok); } } return; @@ -7295,11 +7291,11 @@ void HP_clif_useitemack(struct map_session_data *sd, int index, int amount, bool void HP_clif_addcards(unsigned char *buf, struct item *item) { int hIndex = 0; if( HPMHooks.count.HP_clif_addcards_pre ) { - void (*preHookFunc) (unsigned char *buf, struct item *item); + void (*preHookFunc) (unsigned char **buf, struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_addcards_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_addcards_pre[hIndex].func; - preHookFunc(buf, item); + preHookFunc(&buf, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7321,11 +7317,11 @@ void HP_clif_addcards(unsigned char *buf, struct item *item) { void HP_clif_addcards2(unsigned short *cards, struct item *item) { int hIndex = 0; if( HPMHooks.count.HP_clif_addcards2_pre ) { - void (*preHookFunc) (unsigned short *cards, struct item *item); + void (*preHookFunc) (unsigned short **cards, struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_addcards2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_addcards2_pre[hIndex].func; - preHookFunc(cards, item); + preHookFunc(&cards, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7347,11 +7343,11 @@ void HP_clif_addcards2(unsigned short *cards, struct item *item) { void HP_clif_item_sub(unsigned char *buf, int n, struct item *i, struct item_data *id, int equip) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_sub_pre ) { - void (*preHookFunc) (unsigned char *buf, int *n, struct item *i, struct item_data *id, int *equip); + void (*preHookFunc) (unsigned char **buf, int *n, struct item **i, struct item_data **id, int *equip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_sub_pre[hIndex].func; - preHookFunc(buf, &n, i, id, &equip); + preHookFunc(&buf, &n, &i, &id, &equip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7362,10 +7358,10 @@ void HP_clif_item_sub(unsigned char *buf, int n, struct item *i, struct item_dat HPMHooks.source.clif.item_sub(buf, n, i, id, equip); } if( HPMHooks.count.HP_clif_item_sub_post ) { - void (*postHookFunc) (unsigned char *buf, int *n, struct item *i, struct item_data *id, int *equip); + void (*postHookFunc) (unsigned char *buf, int n, struct item *i, struct item_data *id, int equip); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_sub_post[hIndex].func; - postHookFunc(buf, &n, i, id, &equip); + postHookFunc(buf, n, i, id, equip); } } return; @@ -7373,11 +7369,11 @@ void HP_clif_item_sub(unsigned char *buf, int n, struct item *i, struct item_dat void HP_clif_getareachar_item(struct map_session_data *sd, struct flooritem_data *fitem) { int hIndex = 0; if( HPMHooks.count.HP_clif_getareachar_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct flooritem_data *fitem); + void (*preHookFunc) (struct map_session_data **sd, struct flooritem_data **fitem); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_getareachar_item_pre[hIndex].func; - preHookFunc(sd, fitem); + preHookFunc(&sd, &fitem); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7399,11 +7395,11 @@ void HP_clif_getareachar_item(struct map_session_data *sd, struct flooritem_data void HP_clif_cart_additem_ack(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_cart_additem_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_additem_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cart_additem_ack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7414,10 +7410,10 @@ void HP_clif_cart_additem_ack(struct map_session_data *sd, int flag) { HPMHooks.source.clif.cart_additem_ack(sd, flag); } if( HPMHooks.count.HP_clif_cart_additem_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cart_additem_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cart_additem_ack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -7451,11 +7447,11 @@ void HP_clif_cashshop_load(void) { void HP_clif_package_announce(struct map_session_data *sd, unsigned short nameid, unsigned short containerid) { int hIndex = 0; if( HPMHooks.count.HP_clif_package_announce_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid, unsigned short *containerid); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *nameid, unsigned short *containerid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_package_announce_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_package_announce_pre[hIndex].func; - preHookFunc(sd, &nameid, &containerid); + preHookFunc(&sd, &nameid, &containerid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7466,10 +7462,10 @@ void HP_clif_package_announce(struct map_session_data *sd, unsigned short nameid HPMHooks.source.clif.package_announce(sd, nameid, containerid); } if( HPMHooks.count.HP_clif_package_announce_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *nameid, unsigned short *containerid); + void (*postHookFunc) (struct map_session_data *sd, unsigned short nameid, unsigned short containerid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_package_announce_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_package_announce_post[hIndex].func; - postHookFunc(sd, &nameid, &containerid); + postHookFunc(sd, nameid, containerid); } } return; @@ -7477,11 +7473,11 @@ void HP_clif_package_announce(struct map_session_data *sd, unsigned short nameid void HP_clif_item_drop_announce(struct map_session_data *sd, unsigned short nameid, char *monsterName) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_drop_announce_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid, char *monsterName); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *nameid, char **monsterName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_drop_announce_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_drop_announce_pre[hIndex].func; - preHookFunc(sd, &nameid, monsterName); + preHookFunc(&sd, &nameid, &monsterName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7492,10 +7488,10 @@ void HP_clif_item_drop_announce(struct map_session_data *sd, unsigned short name HPMHooks.source.clif.item_drop_announce(sd, nameid, monsterName); } if( HPMHooks.count.HP_clif_item_drop_announce_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *nameid, char *monsterName); + void (*postHookFunc) (struct map_session_data *sd, unsigned short nameid, char *monsterName); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_drop_announce_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_drop_announce_post[hIndex].func; - postHookFunc(sd, &nameid, monsterName); + postHookFunc(sd, nameid, monsterName); } } return; @@ -7518,10 +7514,10 @@ void HP_clif_clearunit_single(int id, clr_type type, int fd) { HPMHooks.source.clif.clearunit_single(id, type, fd); } if( HPMHooks.count.HP_clif_clearunit_single_post ) { - void (*postHookFunc) (int *id, clr_type *type, int *fd); + void (*postHookFunc) (int id, clr_type type, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearunit_single_post[hIndex].func; - postHookFunc(&id, &type, &fd); + postHookFunc(id, type, fd); } } return; @@ -7529,11 +7525,11 @@ void HP_clif_clearunit_single(int id, clr_type type, int fd) { void HP_clif_clearunit_area(struct block_list *bl, clr_type type) { int hIndex = 0; if( HPMHooks.count.HP_clif_clearunit_area_pre ) { - void (*preHookFunc) (struct block_list *bl, clr_type *type); + void (*preHookFunc) (struct block_list **bl, clr_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_area_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_clearunit_area_pre[hIndex].func; - preHookFunc(bl, &type); + preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7544,10 +7540,10 @@ void HP_clif_clearunit_area(struct block_list *bl, clr_type type) { HPMHooks.source.clif.clearunit_area(bl, type); } if( HPMHooks.count.HP_clif_clearunit_area_post ) { - void (*postHookFunc) (struct block_list *bl, clr_type *type); + void (*postHookFunc) (struct block_list *bl, clr_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_area_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearunit_area_post[hIndex].func; - postHookFunc(bl, &type); + postHookFunc(bl, type); } } return; @@ -7555,11 +7551,11 @@ void HP_clif_clearunit_area(struct block_list *bl, clr_type type) { void HP_clif_clearunit_delayed(struct block_list *bl, clr_type type, int64 tick) { int hIndex = 0; if( HPMHooks.count.HP_clif_clearunit_delayed_pre ) { - void (*preHookFunc) (struct block_list *bl, clr_type *type, int64 *tick); + void (*preHookFunc) (struct block_list **bl, clr_type *type, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_delayed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_clearunit_delayed_pre[hIndex].func; - preHookFunc(bl, &type, &tick); + preHookFunc(&bl, &type, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7570,10 +7566,10 @@ void HP_clif_clearunit_delayed(struct block_list *bl, clr_type type, int64 tick) HPMHooks.source.clif.clearunit_delayed(bl, type, tick); } if( HPMHooks.count.HP_clif_clearunit_delayed_post ) { - void (*postHookFunc) (struct block_list *bl, clr_type *type, int64 *tick); + void (*postHookFunc) (struct block_list *bl, clr_type type, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_delayed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearunit_delayed_post[hIndex].func; - postHookFunc(bl, &type, &tick); + postHookFunc(bl, type, tick); } } return; @@ -7581,11 +7577,11 @@ void HP_clif_clearunit_delayed(struct block_list *bl, clr_type type, int64 tick) void HP_clif_walkok(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_walkok_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_walkok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_walkok_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7607,11 +7603,11 @@ void HP_clif_walkok(struct map_session_data *sd) { void HP_clif_move(struct unit_data *ud) { int hIndex = 0; if( HPMHooks.count.HP_clif_move_pre ) { - void (*preHookFunc) (struct unit_data *ud); + void (*preHookFunc) (struct unit_data **ud); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_move_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_move_pre[hIndex].func; - preHookFunc(ud); + preHookFunc(&ud); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7633,11 +7629,11 @@ void HP_clif_move(struct unit_data *ud) { void HP_clif_move2(struct block_list *bl, struct view_data *vd, struct unit_data *ud) { int hIndex = 0; if( HPMHooks.count.HP_clif_move2_pre ) { - void (*preHookFunc) (struct block_list *bl, struct view_data *vd, struct unit_data *ud); + void (*preHookFunc) (struct block_list **bl, struct view_data **vd, struct unit_data **ud); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_move2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_move2_pre[hIndex].func; - preHookFunc(bl, vd, ud); + preHookFunc(&bl, &vd, &ud); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7659,11 +7655,11 @@ void HP_clif_move2(struct block_list *bl, struct view_data *vd, struct unit_data void HP_clif_blown(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_blown_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_blown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_blown_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7685,11 +7681,11 @@ void HP_clif_blown(struct block_list *bl) { void HP_clif_slide(struct block_list *bl, int x, int y) { int hIndex = 0; if( HPMHooks.count.HP_clif_slide_pre ) { - void (*preHookFunc) (struct block_list *bl, int *x, int *y); + void (*preHookFunc) (struct block_list **bl, int *x, int *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_slide_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_slide_pre[hIndex].func; - preHookFunc(bl, &x, &y); + preHookFunc(&bl, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7700,10 +7696,10 @@ void HP_clif_slide(struct block_list *bl, int x, int y) { HPMHooks.source.clif.slide(bl, x, y); } if( HPMHooks.count.HP_clif_slide_post ) { - void (*postHookFunc) (struct block_list *bl, int *x, int *y); + void (*postHookFunc) (struct block_list *bl, int x, int y); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_slide_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_slide_post[hIndex].func; - postHookFunc(bl, &x, &y); + postHookFunc(bl, x, y); } } return; @@ -7711,11 +7707,11 @@ void HP_clif_slide(struct block_list *bl, int x, int y) { void HP_clif_fixpos(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_fixpos_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fixpos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_fixpos_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7737,11 +7733,11 @@ void HP_clif_fixpos(struct block_list *bl) { void HP_clif_changelook(struct block_list *bl, int type, int val) { int hIndex = 0; if( HPMHooks.count.HP_clif_changelook_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type, int *val); + void (*preHookFunc) (struct block_list **bl, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changelook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changelook_pre[hIndex].func; - preHookFunc(bl, &type, &val); + preHookFunc(&bl, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7752,10 +7748,10 @@ void HP_clif_changelook(struct block_list *bl, int type, int val) { HPMHooks.source.clif.changelook(bl, type, val); } if( HPMHooks.count.HP_clif_changelook_post ) { - void (*postHookFunc) (struct block_list *bl, int *type, int *val); + void (*postHookFunc) (struct block_list *bl, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changelook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changelook_post[hIndex].func; - postHookFunc(bl, &type, &val); + postHookFunc(bl, type, val); } } return; @@ -7763,11 +7759,11 @@ void HP_clif_changelook(struct block_list *bl, int type, int val) { void HP_clif_changetraplook(struct block_list *bl, int val) { int hIndex = 0; if( HPMHooks.count.HP_clif_changetraplook_pre ) { - void (*preHookFunc) (struct block_list *bl, int *val); + void (*preHookFunc) (struct block_list **bl, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changetraplook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changetraplook_pre[hIndex].func; - preHookFunc(bl, &val); + preHookFunc(&bl, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7778,10 +7774,10 @@ void HP_clif_changetraplook(struct block_list *bl, int val) { HPMHooks.source.clif.changetraplook(bl, val); } if( HPMHooks.count.HP_clif_changetraplook_post ) { - void (*postHookFunc) (struct block_list *bl, int *val); + void (*postHookFunc) (struct block_list *bl, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changetraplook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changetraplook_post[hIndex].func; - postHookFunc(bl, &val); + postHookFunc(bl, val); } } return; @@ -7789,11 +7785,11 @@ void HP_clif_changetraplook(struct block_list *bl, int val) { void HP_clif_refreshlook(struct block_list *bl, int id, int type, int val, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_refreshlook_pre ) { - void (*preHookFunc) (struct block_list *bl, int *id, int *type, int *val, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, int *id, int *type, int *val, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refreshlook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_refreshlook_pre[hIndex].func; - preHookFunc(bl, &id, &type, &val, &target); + preHookFunc(&bl, &id, &type, &val, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7804,10 +7800,10 @@ void HP_clif_refreshlook(struct block_list *bl, int id, int type, int val, enum HPMHooks.source.clif.refreshlook(bl, id, type, val, target); } if( HPMHooks.count.HP_clif_refreshlook_post ) { - void (*postHookFunc) (struct block_list *bl, int *id, int *type, int *val, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, int id, int type, int val, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refreshlook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_refreshlook_post[hIndex].func; - postHookFunc(bl, &id, &type, &val, &target); + postHookFunc(bl, id, type, val, target); } } return; @@ -7815,11 +7811,11 @@ void HP_clif_refreshlook(struct block_list *bl, int id, int type, int val, enum void HP_clif_sendlook(struct block_list *bl, int id, int type, int val, int val2, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_sendlook_pre ) { - void (*preHookFunc) (struct block_list *bl, int *id, int *type, int *val, int *val2, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, int *id, int *type, int *val, int *val2, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendlook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sendlook_pre[hIndex].func; - preHookFunc(bl, &id, &type, &val, &val2, &target); + preHookFunc(&bl, &id, &type, &val, &val2, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7830,10 +7826,10 @@ void HP_clif_sendlook(struct block_list *bl, int id, int type, int val, int val2 HPMHooks.source.clif.sendlook(bl, id, type, val, val2, target); } if( HPMHooks.count.HP_clif_sendlook_post ) { - void (*postHookFunc) (struct block_list *bl, int *id, int *type, int *val, int *val2, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, int id, int type, int val, int val2, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendlook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_sendlook_post[hIndex].func; - postHookFunc(bl, &id, &type, &val, &val2, &target); + postHookFunc(bl, id, type, val, val2, target); } } return; @@ -7841,11 +7837,11 @@ void HP_clif_sendlook(struct block_list *bl, int id, int type, int val, int val2 void HP_clif_class_change(struct block_list *bl, int class_, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_class_change_pre ) { - void (*preHookFunc) (struct block_list *bl, int *class_, int *type); + void (*preHookFunc) (struct block_list **bl, int *class_, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_class_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_class_change_pre[hIndex].func; - preHookFunc(bl, &class_, &type); + preHookFunc(&bl, &class_, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7856,10 +7852,10 @@ void HP_clif_class_change(struct block_list *bl, int class_, int type) { HPMHooks.source.clif.class_change(bl, class_, type); } if( HPMHooks.count.HP_clif_class_change_post ) { - void (*postHookFunc) (struct block_list *bl, int *class_, int *type); + void (*postHookFunc) (struct block_list *bl, int class_, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_class_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_class_change_post[hIndex].func; - postHookFunc(bl, &class_, &type); + postHookFunc(bl, class_, type); } } return; @@ -7867,11 +7863,11 @@ void HP_clif_class_change(struct block_list *bl, int class_, int type) { void HP_clif_skill_delunit(struct skill_unit *su) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_delunit_pre ) { - void (*preHookFunc) (struct skill_unit *su); + void (*preHookFunc) (struct skill_unit **su); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_delunit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_delunit_pre[hIndex].func; - preHookFunc(su); + preHookFunc(&su); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7893,11 +7889,11 @@ void HP_clif_skill_delunit(struct skill_unit *su) { void HP_clif_skillunit_update(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillunit_update_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillunit_update_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillunit_update_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7935,10 +7931,10 @@ int HP_clif_clearunit_delayed_sub(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.clif.clearunit_delayed_sub(tid, tick, id, data); } if( HPMHooks.count.HP_clif_clearunit_delayed_sub_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_delayed_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearunit_delayed_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -7946,11 +7942,11 @@ int HP_clif_clearunit_delayed_sub(int tid, int64 tick, int id, intptr_t data) { void HP_clif_set_unit_idle(struct block_list *bl, struct map_session_data *tsd, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_set_unit_idle_pre ) { - void (*preHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, struct map_session_data **tsd, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_idle_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_set_unit_idle_pre[hIndex].func; - preHookFunc(bl, tsd, &target); + preHookFunc(&bl, &tsd, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7961,10 +7957,10 @@ void HP_clif_set_unit_idle(struct block_list *bl, struct map_session_data *tsd, HPMHooks.source.clif.set_unit_idle(bl, tsd, target); } if( HPMHooks.count.HP_clif_set_unit_idle_post ) { - void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_idle_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_set_unit_idle_post[hIndex].func; - postHookFunc(bl, tsd, &target); + postHookFunc(bl, tsd, target); } } return; @@ -7972,11 +7968,11 @@ void HP_clif_set_unit_idle(struct block_list *bl, struct map_session_data *tsd, void HP_clif_spawn_unit(struct block_list *bl, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_spawn_unit_pre ) { - void (*preHookFunc) (struct block_list *bl, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_unit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spawn_unit_pre[hIndex].func; - preHookFunc(bl, &target); + preHookFunc(&bl, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -7987,10 +7983,10 @@ void HP_clif_spawn_unit(struct block_list *bl, enum send_target target) { HPMHooks.source.clif.spawn_unit(bl, target); } if( HPMHooks.count.HP_clif_spawn_unit_post ) { - void (*postHookFunc) (struct block_list *bl, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_unit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_spawn_unit_post[hIndex].func; - postHookFunc(bl, &target); + postHookFunc(bl, target); } } return; @@ -7998,11 +7994,11 @@ void HP_clif_spawn_unit(struct block_list *bl, enum send_target target) { void HP_clif_spawn_unit2(struct block_list *bl, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_spawn_unit2_pre ) { - void (*preHookFunc) (struct block_list *bl, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_unit2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spawn_unit2_pre[hIndex].func; - preHookFunc(bl, &target); + preHookFunc(&bl, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8013,10 +8009,10 @@ void HP_clif_spawn_unit2(struct block_list *bl, enum send_target target) { HPMHooks.source.clif.spawn_unit2(bl, target); } if( HPMHooks.count.HP_clif_spawn_unit2_post ) { - void (*postHookFunc) (struct block_list *bl, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_unit2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_spawn_unit2_post[hIndex].func; - postHookFunc(bl, &target); + postHookFunc(bl, target); } } return; @@ -8024,11 +8020,11 @@ void HP_clif_spawn_unit2(struct block_list *bl, enum send_target target) { void HP_clif_set_unit_idle2(struct block_list *bl, struct map_session_data *tsd, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_set_unit_idle2_pre ) { - void (*preHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, struct map_session_data **tsd, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_idle2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_set_unit_idle2_pre[hIndex].func; - preHookFunc(bl, tsd, &target); + preHookFunc(&bl, &tsd, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8039,10 +8035,10 @@ void HP_clif_set_unit_idle2(struct block_list *bl, struct map_session_data *tsd, HPMHooks.source.clif.set_unit_idle2(bl, tsd, target); } if( HPMHooks.count.HP_clif_set_unit_idle2_post ) { - void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_idle2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_set_unit_idle2_post[hIndex].func; - postHookFunc(bl, tsd, &target); + postHookFunc(bl, tsd, target); } } return; @@ -8050,11 +8046,11 @@ void HP_clif_set_unit_idle2(struct block_list *bl, struct map_session_data *tsd, void HP_clif_set_unit_walking(struct block_list *bl, struct map_session_data *tsd, struct unit_data *ud, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_set_unit_walking_pre ) { - void (*preHookFunc) (struct block_list *bl, struct map_session_data *tsd, struct unit_data *ud, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, struct map_session_data **tsd, struct unit_data **ud, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_walking_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_set_unit_walking_pre[hIndex].func; - preHookFunc(bl, tsd, ud, &target); + preHookFunc(&bl, &tsd, &ud, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8065,10 +8061,10 @@ void HP_clif_set_unit_walking(struct block_list *bl, struct map_session_data *ts HPMHooks.source.clif.set_unit_walking(bl, tsd, ud, target); } if( HPMHooks.count.HP_clif_set_unit_walking_post ) { - void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, struct unit_data *ud, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, struct map_session_data *tsd, struct unit_data *ud, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_set_unit_walking_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_set_unit_walking_post[hIndex].func; - postHookFunc(bl, tsd, ud, &target); + postHookFunc(bl, tsd, ud, target); } } return; @@ -8077,11 +8073,11 @@ int HP_clif_calc_walkdelay(struct block_list *bl, int delay, int type, int damag int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_calc_walkdelay_pre ) { - int (*preHookFunc) (struct block_list *bl, int *delay, int *type, int *damage, int *div_); + int (*preHookFunc) (struct block_list **bl, int *delay, int *type, int *damage, int *div_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_calc_walkdelay_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_calc_walkdelay_pre[hIndex].func; - retVal___ = preHookFunc(bl, &delay, &type, &damage, &div_); + retVal___ = preHookFunc(&bl, &delay, &type, &damage, &div_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8092,10 +8088,10 @@ int HP_clif_calc_walkdelay(struct block_list *bl, int delay, int type, int damag retVal___ = HPMHooks.source.clif.calc_walkdelay(bl, delay, type, damage, div_); } if( HPMHooks.count.HP_clif_calc_walkdelay_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *delay, int *type, int *damage, int *div_); + int (*postHookFunc) (int retVal___, struct block_list *bl, int delay, int type, int damage, int div_); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_calc_walkdelay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_calc_walkdelay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &delay, &type, &damage, &div_); + retVal___ = postHookFunc(retVal___, bl, delay, type, damage, div_); } } return retVal___; @@ -8103,11 +8099,11 @@ int HP_clif_calc_walkdelay(struct block_list *bl, int delay, int type, int damag void HP_clif_getareachar_skillunit(struct block_list *bl, struct skill_unit *su, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_getareachar_skillunit_pre ) { - void (*preHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, struct skill_unit **su, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_skillunit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_getareachar_skillunit_pre[hIndex].func; - preHookFunc(bl, su, &target); + preHookFunc(&bl, &su, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8118,10 +8114,10 @@ void HP_clif_getareachar_skillunit(struct block_list *bl, struct skill_unit *su, HPMHooks.source.clif.getareachar_skillunit(bl, su, target); } if( HPMHooks.count.HP_clif_getareachar_skillunit_post ) { - void (*postHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_skillunit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_getareachar_skillunit_post[hIndex].func; - postHookFunc(bl, su, &target); + postHookFunc(bl, su, target); } } return; @@ -8129,11 +8125,11 @@ void HP_clif_getareachar_skillunit(struct block_list *bl, struct skill_unit *su, void HP_clif_getareachar_unit(struct map_session_data *sd, struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_getareachar_unit_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *bl); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_unit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_getareachar_unit_pre[hIndex].func; - preHookFunc(sd, bl); + preHookFunc(&sd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8155,11 +8151,11 @@ void HP_clif_getareachar_unit(struct map_session_data *sd, struct block_list *bl void HP_clif_clearchar_skillunit(struct skill_unit *su, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_clearchar_skillunit_pre ) { - void (*preHookFunc) (struct skill_unit *su, int *fd); + void (*preHookFunc) (struct skill_unit **su, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearchar_skillunit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_clearchar_skillunit_pre[hIndex].func; - preHookFunc(su, &fd); + preHookFunc(&su, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8170,10 +8166,10 @@ void HP_clif_clearchar_skillunit(struct skill_unit *su, int fd) { HPMHooks.source.clif.clearchar_skillunit(su, fd); } if( HPMHooks.count.HP_clif_clearchar_skillunit_post ) { - void (*postHookFunc) (struct skill_unit *su, int *fd); + void (*postHookFunc) (struct skill_unit *su, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearchar_skillunit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearchar_skillunit_post[hIndex].func; - postHookFunc(su, &fd); + postHookFunc(su, fd); } } return; @@ -8182,12 +8178,12 @@ int HP_clif_getareachar(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_getareachar_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_getareachar_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -8214,11 +8210,11 @@ int HP_clif_getareachar(struct block_list *bl, va_list ap) { void HP_clif_graffiti_entry(struct block_list *bl, struct skill_unit *su, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_graffiti_entry_pre ) { - void (*preHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, struct skill_unit **su, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_graffiti_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_graffiti_entry_pre[hIndex].func; - preHookFunc(bl, su, &target); + preHookFunc(&bl, &su, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8229,10 +8225,10 @@ void HP_clif_graffiti_entry(struct block_list *bl, struct skill_unit *su, enum s HPMHooks.source.clif.graffiti_entry(bl, su, target); } if( HPMHooks.count.HP_clif_graffiti_entry_post ) { - void (*postHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, struct skill_unit *su, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_graffiti_entry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_graffiti_entry_post[hIndex].func; - postHookFunc(bl, su, &target); + postHookFunc(bl, su, target); } } return; @@ -8241,11 +8237,11 @@ bool HP_clif_spawn(struct block_list *bl) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_clif_spawn_pre ) { - bool (*preHookFunc) (struct block_list *bl); + bool (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spawn_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8267,11 +8263,11 @@ bool HP_clif_spawn(struct block_list *bl) { void HP_clif_changemap(struct map_session_data *sd, short m, int x, int y) { int hIndex = 0; if( HPMHooks.count.HP_clif_changemap_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *m, int *x, int *y); + void (*preHookFunc) (struct map_session_data **sd, short *m, int *x, int *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changemap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changemap_pre[hIndex].func; - preHookFunc(sd, &m, &x, &y); + preHookFunc(&sd, &m, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8282,10 +8278,10 @@ void HP_clif_changemap(struct map_session_data *sd, short m, int x, int y) { HPMHooks.source.clif.changemap(sd, m, x, y); } if( HPMHooks.count.HP_clif_changemap_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *m, int *x, int *y); + void (*postHookFunc) (struct map_session_data *sd, short m, int x, int y); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changemap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changemap_post[hIndex].func; - postHookFunc(sd, &m, &x, &y); + postHookFunc(sd, m, x, y); } } return; @@ -8308,10 +8304,10 @@ void HP_clif_changemapcell(int fd, int16 m, int x, int y, int type, enum send_ta HPMHooks.source.clif.changemapcell(fd, m, x, y, type, target); } if( HPMHooks.count.HP_clif_changemapcell_post ) { - void (*postHookFunc) (int *fd, int16 *m, int *x, int *y, int *type, enum send_target *target); + void (*postHookFunc) (int fd, int16 m, int x, int y, int type, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changemapcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changemapcell_post[hIndex].func; - postHookFunc(&fd, &m, &x, &y, &type, &target); + postHookFunc(fd, m, x, y, type, target); } } return; @@ -8319,11 +8315,11 @@ void HP_clif_changemapcell(int fd, int16 m, int x, int y, int type, enum send_ta void HP_clif_map_property(struct map_session_data *sd, enum map_property property) { int hIndex = 0; if( HPMHooks.count.HP_clif_map_property_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum map_property *property); + void (*preHookFunc) (struct map_session_data **sd, enum map_property *property); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_map_property_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_map_property_pre[hIndex].func; - preHookFunc(sd, &property); + preHookFunc(&sd, &property); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8334,10 +8330,10 @@ void HP_clif_map_property(struct map_session_data *sd, enum map_property propert HPMHooks.source.clif.map_property(sd, property); } if( HPMHooks.count.HP_clif_map_property_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum map_property *property); + void (*postHookFunc) (struct map_session_data *sd, enum map_property property); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_map_property_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_map_property_post[hIndex].func; - postHookFunc(sd, &property); + postHookFunc(sd, property); } } return; @@ -8345,11 +8341,11 @@ void HP_clif_map_property(struct map_session_data *sd, enum map_property propert void HP_clif_pvpset(struct map_session_data *sd, int pvprank, int pvpnum, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_pvpset_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *pvprank, int *pvpnum, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *pvprank, int *pvpnum, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pvpset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pvpset_pre[hIndex].func; - preHookFunc(sd, &pvprank, &pvpnum, &type); + preHookFunc(&sd, &pvprank, &pvpnum, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8360,10 +8356,10 @@ void HP_clif_pvpset(struct map_session_data *sd, int pvprank, int pvpnum, int ty HPMHooks.source.clif.pvpset(sd, pvprank, pvpnum, type); } if( HPMHooks.count.HP_clif_pvpset_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *pvprank, int *pvpnum, int *type); + void (*postHookFunc) (struct map_session_data *sd, int pvprank, int pvpnum, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pvpset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pvpset_post[hIndex].func; - postHookFunc(sd, &pvprank, &pvpnum, &type); + postHookFunc(sd, pvprank, pvpnum, type); } } return; @@ -8386,10 +8382,10 @@ void HP_clif_map_property_mapall(int mapid, enum map_property property) { HPMHooks.source.clif.map_property_mapall(mapid, property); } if( HPMHooks.count.HP_clif_map_property_mapall_post ) { - void (*postHookFunc) (int *mapid, enum map_property *property); + void (*postHookFunc) (int mapid, enum map_property property); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_map_property_mapall_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_map_property_mapall_post[hIndex].func; - postHookFunc(&mapid, &property); + postHookFunc(mapid, property); } } return; @@ -8397,11 +8393,11 @@ void HP_clif_map_property_mapall(int mapid, enum map_property property) { void HP_clif_bossmapinfo(int fd, struct mob_data *md, short flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_bossmapinfo_pre ) { - void (*preHookFunc) (int *fd, struct mob_data *md, short *flag); + void (*preHookFunc) (int *fd, struct mob_data **md, short *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bossmapinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bossmapinfo_pre[hIndex].func; - preHookFunc(&fd, md, &flag); + preHookFunc(&fd, &md, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8412,10 +8408,10 @@ void HP_clif_bossmapinfo(int fd, struct mob_data *md, short flag) { HPMHooks.source.clif.bossmapinfo(fd, md, flag); } if( HPMHooks.count.HP_clif_bossmapinfo_post ) { - void (*postHookFunc) (int *fd, struct mob_data *md, short *flag); + void (*postHookFunc) (int fd, struct mob_data *md, short flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bossmapinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bossmapinfo_post[hIndex].func; - postHookFunc(&fd, md, &flag); + postHookFunc(fd, md, flag); } } return; @@ -8423,11 +8419,11 @@ void HP_clif_bossmapinfo(int fd, struct mob_data *md, short flag) { void HP_clif_map_type(struct map_session_data *sd, enum map_type type) { int hIndex = 0; if( HPMHooks.count.HP_clif_map_type_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum map_type *type); + void (*preHookFunc) (struct map_session_data **sd, enum map_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_map_type_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_map_type_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8438,10 +8434,10 @@ void HP_clif_map_type(struct map_session_data *sd, enum map_type type) { HPMHooks.source.clif.map_type(sd, type); } if( HPMHooks.count.HP_clif_map_type_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum map_type *type); + void (*postHookFunc) (struct map_session_data *sd, enum map_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_map_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_map_type_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -8449,11 +8445,11 @@ void HP_clif_map_type(struct map_session_data *sd, enum map_type type) { void HP_clif_maptypeproperty2(struct block_list *bl, enum send_target t) { int hIndex = 0; if( HPMHooks.count.HP_clif_maptypeproperty2_pre ) { - void (*preHookFunc) (struct block_list *bl, enum send_target *t); + void (*preHookFunc) (struct block_list **bl, enum send_target *t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_maptypeproperty2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_maptypeproperty2_pre[hIndex].func; - preHookFunc(bl, &t); + preHookFunc(&bl, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8464,10 +8460,10 @@ void HP_clif_maptypeproperty2(struct block_list *bl, enum send_target t) { HPMHooks.source.clif.maptypeproperty2(bl, t); } if( HPMHooks.count.HP_clif_maptypeproperty2_post ) { - void (*postHookFunc) (struct block_list *bl, enum send_target *t); + void (*postHookFunc) (struct block_list *bl, enum send_target t); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_maptypeproperty2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_maptypeproperty2_post[hIndex].func; - postHookFunc(bl, &t); + postHookFunc(bl, t); } } return; @@ -8475,11 +8471,11 @@ void HP_clif_maptypeproperty2(struct block_list *bl, enum send_target t) { void HP_clif_changemapserver(struct map_session_data *sd, unsigned short map_index, int x, int y, uint32 ip, uint16 port) { int hIndex = 0; if( HPMHooks.count.HP_clif_changemapserver_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *map_index, int *x, int *y, uint32 *ip, uint16 *port); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *map_index, int *x, int *y, uint32 *ip, uint16 *port); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changemapserver_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changemapserver_pre[hIndex].func; - preHookFunc(sd, &map_index, &x, &y, &ip, &port); + preHookFunc(&sd, &map_index, &x, &y, &ip, &port); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8490,10 +8486,10 @@ void HP_clif_changemapserver(struct map_session_data *sd, unsigned short map_ind HPMHooks.source.clif.changemapserver(sd, map_index, x, y, ip, port); } if( HPMHooks.count.HP_clif_changemapserver_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *map_index, int *x, int *y, uint32 *ip, uint16 *port); + void (*postHookFunc) (struct map_session_data *sd, unsigned short map_index, int x, int y, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changemapserver_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changemapserver_post[hIndex].func; - postHookFunc(sd, &map_index, &x, &y, &ip, &port); + postHookFunc(sd, map_index, x, y, ip, port); } } return; @@ -8501,11 +8497,11 @@ void HP_clif_changemapserver(struct map_session_data *sd, unsigned short map_ind void HP_clif_npcbuysell(struct map_session_data *sd, int id) { int hIndex = 0; if( HPMHooks.count.HP_clif_npcbuysell_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *id); + void (*preHookFunc) (struct map_session_data **sd, int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npcbuysell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_npcbuysell_pre[hIndex].func; - preHookFunc(sd, &id); + preHookFunc(&sd, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8516,10 +8512,10 @@ void HP_clif_npcbuysell(struct map_session_data *sd, int id) { HPMHooks.source.clif.npcbuysell(sd, id); } if( HPMHooks.count.HP_clif_npcbuysell_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *id); + void (*postHookFunc) (struct map_session_data *sd, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npcbuysell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_npcbuysell_post[hIndex].func; - postHookFunc(sd, &id); + postHookFunc(sd, id); } } return; @@ -8527,11 +8523,11 @@ void HP_clif_npcbuysell(struct map_session_data *sd, int id) { void HP_clif_buylist(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buylist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + void (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buylist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buylist_pre[hIndex].func; - preHookFunc(sd, nd); + preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8553,11 +8549,11 @@ void HP_clif_buylist(struct map_session_data *sd, struct npc_data *nd) { void HP_clif_selllist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_selllist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_selllist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_selllist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8579,11 +8575,11 @@ void HP_clif_selllist(struct map_session_data *sd) { void HP_clif_cashshop_show(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_clif_cashshop_show_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + void (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cashshop_show_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cashshop_show_pre[hIndex].func; - preHookFunc(sd, nd); + preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8605,11 +8601,11 @@ void HP_clif_cashshop_show(struct map_session_data *sd, struct npc_data *nd) { void HP_clif_npc_buy_result(struct map_session_data *sd, unsigned char result) { int hIndex = 0; if( HPMHooks.count.HP_clif_npc_buy_result_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *result); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_buy_result_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_npc_buy_result_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8620,10 +8616,10 @@ void HP_clif_npc_buy_result(struct map_session_data *sd, unsigned char result) { HPMHooks.source.clif.npc_buy_result(sd, result); } if( HPMHooks.count.HP_clif_npc_buy_result_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *result); + void (*postHookFunc) (struct map_session_data *sd, unsigned char result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_buy_result_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_npc_buy_result_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -8631,11 +8627,11 @@ void HP_clif_npc_buy_result(struct map_session_data *sd, unsigned char result) { void HP_clif_npc_sell_result(struct map_session_data *sd, unsigned char result) { int hIndex = 0; if( HPMHooks.count.HP_clif_npc_sell_result_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *result); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_sell_result_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_npc_sell_result_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8646,10 +8642,10 @@ void HP_clif_npc_sell_result(struct map_session_data *sd, unsigned char result) HPMHooks.source.clif.npc_sell_result(sd, result); } if( HPMHooks.count.HP_clif_npc_sell_result_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *result); + void (*postHookFunc) (struct map_session_data *sd, unsigned char result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_sell_result_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_npc_sell_result_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -8657,11 +8653,11 @@ void HP_clif_npc_sell_result(struct map_session_data *sd, unsigned char result) void HP_clif_cashshop_ack(struct map_session_data *sd, int error) { int hIndex = 0; if( HPMHooks.count.HP_clif_cashshop_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *error); + void (*preHookFunc) (struct map_session_data **sd, int *error); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cashshop_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cashshop_ack_pre[hIndex].func; - preHookFunc(sd, &error); + preHookFunc(&sd, &error); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8672,10 +8668,10 @@ void HP_clif_cashshop_ack(struct map_session_data *sd, int error) { HPMHooks.source.clif.cashshop_ack(sd, error); } if( HPMHooks.count.HP_clif_cashshop_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *error); + void (*postHookFunc) (struct map_session_data *sd, int error); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cashshop_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cashshop_ack_post[hIndex].func; - postHookFunc(sd, &error); + postHookFunc(sd, error); } } return; @@ -8683,11 +8679,11 @@ void HP_clif_cashshop_ack(struct map_session_data *sd, int error) { void HP_clif_scriptmes(struct map_session_data *sd, int npcid, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptmes_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid, const char *mes); + void (*preHookFunc) (struct map_session_data **sd, int *npcid, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptmes_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptmes_pre[hIndex].func; - preHookFunc(sd, &npcid, mes); + preHookFunc(&sd, &npcid, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8698,10 +8694,10 @@ void HP_clif_scriptmes(struct map_session_data *sd, int npcid, const char *mes) HPMHooks.source.clif.scriptmes(sd, npcid, mes); } if( HPMHooks.count.HP_clif_scriptmes_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid, const char *mes); + void (*postHookFunc) (struct map_session_data *sd, int npcid, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptmes_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptmes_post[hIndex].func; - postHookFunc(sd, &npcid, mes); + postHookFunc(sd, npcid, mes); } } return; @@ -8709,11 +8705,11 @@ void HP_clif_scriptmes(struct map_session_data *sd, int npcid, const char *mes) void HP_clif_scriptnext(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptnext_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptnext_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptnext_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8724,10 +8720,10 @@ void HP_clif_scriptnext(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.scriptnext(sd, npcid); } if( HPMHooks.count.HP_clif_scriptnext_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptnext_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptnext_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8735,11 +8731,11 @@ void HP_clif_scriptnext(struct map_session_data *sd, int npcid) { void HP_clif_scriptclose(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptclose_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptclose_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptclose_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8750,10 +8746,10 @@ void HP_clif_scriptclose(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.scriptclose(sd, npcid); } if( HPMHooks.count.HP_clif_scriptclose_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptclose_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptclose_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8761,11 +8757,11 @@ void HP_clif_scriptclose(struct map_session_data *sd, int npcid) { void HP_clif_scriptmenu(struct map_session_data *sd, int npcid, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptmenu_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid, const char *mes); + void (*preHookFunc) (struct map_session_data **sd, int *npcid, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptmenu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptmenu_pre[hIndex].func; - preHookFunc(sd, &npcid, mes); + preHookFunc(&sd, &npcid, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8776,10 +8772,10 @@ void HP_clif_scriptmenu(struct map_session_data *sd, int npcid, const char *mes) HPMHooks.source.clif.scriptmenu(sd, npcid, mes); } if( HPMHooks.count.HP_clif_scriptmenu_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid, const char *mes); + void (*postHookFunc) (struct map_session_data *sd, int npcid, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptmenu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptmenu_post[hIndex].func; - postHookFunc(sd, &npcid, mes); + postHookFunc(sd, npcid, mes); } } return; @@ -8787,11 +8783,11 @@ void HP_clif_scriptmenu(struct map_session_data *sd, int npcid, const char *mes) void HP_clif_scriptinput(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptinput_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptinput_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptinput_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8802,10 +8798,10 @@ void HP_clif_scriptinput(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.scriptinput(sd, npcid); } if( HPMHooks.count.HP_clif_scriptinput_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptinput_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptinput_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8813,11 +8809,11 @@ void HP_clif_scriptinput(struct map_session_data *sd, int npcid) { void HP_clif_scriptinputstr(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptinputstr_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptinputstr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptinputstr_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8828,10 +8824,10 @@ void HP_clif_scriptinputstr(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.scriptinputstr(sd, npcid); } if( HPMHooks.count.HP_clif_scriptinputstr_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptinputstr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptinputstr_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8839,11 +8835,11 @@ void HP_clif_scriptinputstr(struct map_session_data *sd, int npcid) { void HP_clif_cutin(struct map_session_data *sd, const char *image, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_cutin_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *image, int *type); + void (*preHookFunc) (struct map_session_data **sd, const char **image, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cutin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cutin_pre[hIndex].func; - preHookFunc(sd, image, &type); + preHookFunc(&sd, &image, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8854,10 +8850,10 @@ void HP_clif_cutin(struct map_session_data *sd, const char *image, int type) { HPMHooks.source.clif.cutin(sd, image, type); } if( HPMHooks.count.HP_clif_cutin_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *image, int *type); + void (*postHookFunc) (struct map_session_data *sd, const char *image, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cutin_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cutin_post[hIndex].func; - postHookFunc(sd, image, &type); + postHookFunc(sd, image, type); } } return; @@ -8865,11 +8861,11 @@ void HP_clif_cutin(struct map_session_data *sd, const char *image, int type) { void HP_clif_sendfakenpc(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_sendfakenpc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendfakenpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sendfakenpc_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8880,10 +8876,10 @@ void HP_clif_sendfakenpc(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.sendfakenpc(sd, npcid); } if( HPMHooks.count.HP_clif_sendfakenpc_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendfakenpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_sendfakenpc_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8891,11 +8887,11 @@ void HP_clif_sendfakenpc(struct map_session_data *sd, int npcid) { void HP_clif_scriptclear(struct map_session_data *sd, int npcid) { int hIndex = 0; if( HPMHooks.count.HP_clif_scriptclear_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npcid); + void (*preHookFunc) (struct map_session_data **sd, int *npcid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptclear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_scriptclear_pre[hIndex].func; - preHookFunc(sd, &npcid); + preHookFunc(&sd, &npcid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8906,10 +8902,10 @@ void HP_clif_scriptclear(struct map_session_data *sd, int npcid) { HPMHooks.source.clif.scriptclear(sd, npcid); } if( HPMHooks.count.HP_clif_scriptclear_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npcid); + void (*postHookFunc) (struct map_session_data *sd, int npcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_scriptclear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_scriptclear_post[hIndex].func; - postHookFunc(sd, &npcid); + postHookFunc(sd, npcid); } } return; @@ -8917,11 +8913,11 @@ void HP_clif_scriptclear(struct map_session_data *sd, int npcid) { void HP_clif_viewpoint(struct map_session_data *sd, int npc_id, int type, int x, int y, int id, int color) { int hIndex = 0; if( HPMHooks.count.HP_clif_viewpoint_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *npc_id, int *type, int *x, int *y, int *id, int *color); + void (*preHookFunc) (struct map_session_data **sd, int *npc_id, int *type, int *x, int *y, int *id, int *color); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_viewpoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_viewpoint_pre[hIndex].func; - preHookFunc(sd, &npc_id, &type, &x, &y, &id, &color); + preHookFunc(&sd, &npc_id, &type, &x, &y, &id, &color); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8932,10 +8928,10 @@ void HP_clif_viewpoint(struct map_session_data *sd, int npc_id, int type, int x, HPMHooks.source.clif.viewpoint(sd, npc_id, type, x, y, id, color); } if( HPMHooks.count.HP_clif_viewpoint_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *npc_id, int *type, int *x, int *y, int *id, int *color); + void (*postHookFunc) (struct map_session_data *sd, int npc_id, int type, int x, int y, int id, int color); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_viewpoint_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_viewpoint_post[hIndex].func; - postHookFunc(sd, &npc_id, &type, &x, &y, &id, &color); + postHookFunc(sd, npc_id, type, x, y, id, color); } } return; @@ -8944,11 +8940,11 @@ int HP_clif_damage(struct block_list *src, struct block_list *dst, int sdelay, i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_damage_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *dst, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); + int (*preHookFunc) (struct block_list **src, struct block_list **dst, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, dst, &sdelay, &ddelay, &damage, &div, &type, &damage2); + retVal___ = preHookFunc(&src, &dst, &sdelay, &ddelay, &damage, &div, &type, &damage2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8959,10 +8955,10 @@ int HP_clif_damage(struct block_list *src, struct block_list *dst, int sdelay, i retVal___ = HPMHooks.source.clif.damage(src, dst, sdelay, ddelay, damage, div, type, damage2); } if( HPMHooks.count.HP_clif_damage_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, int sdelay, int ddelay, int64 damage, short div, unsigned char type, int64 damage2); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, dst, &sdelay, &ddelay, &damage, &div, &type, &damage2); + retVal___ = postHookFunc(retVal___, src, dst, sdelay, ddelay, damage, div, type, damage2); } } return retVal___; @@ -8970,11 +8966,11 @@ int HP_clif_damage(struct block_list *src, struct block_list *dst, int sdelay, i void HP_clif_sitting(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_sitting_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sitting_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sitting_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -8996,11 +8992,11 @@ void HP_clif_sitting(struct block_list *bl) { void HP_clif_standing(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_standing_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_standing_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_standing_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9022,11 +9018,11 @@ void HP_clif_standing(struct block_list *bl) { void HP_clif_arrow_create_list(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_arrow_create_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_arrow_create_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_arrow_create_list_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9048,11 +9044,11 @@ void HP_clif_arrow_create_list(struct map_session_data *sd) { void HP_clif_refresh_storagewindow(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_refresh_storagewindow_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refresh_storagewindow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_refresh_storagewindow_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9074,11 +9070,11 @@ void HP_clif_refresh_storagewindow(struct map_session_data *sd) { void HP_clif_refresh(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_refresh_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refresh_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_refresh_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9100,11 +9096,11 @@ void HP_clif_refresh(struct map_session_data *sd) { void HP_clif_fame_blacksmith(struct map_session_data *sd, int points) { int hIndex = 0; if( HPMHooks.count.HP_clif_fame_blacksmith_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *points); + void (*preHookFunc) (struct map_session_data **sd, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_blacksmith_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_fame_blacksmith_pre[hIndex].func; - preHookFunc(sd, &points); + preHookFunc(&sd, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9115,10 +9111,10 @@ void HP_clif_fame_blacksmith(struct map_session_data *sd, int points) { HPMHooks.source.clif.fame_blacksmith(sd, points); } if( HPMHooks.count.HP_clif_fame_blacksmith_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *points); + void (*postHookFunc) (struct map_session_data *sd, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_blacksmith_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_fame_blacksmith_post[hIndex].func; - postHookFunc(sd, &points); + postHookFunc(sd, points); } } return; @@ -9126,11 +9122,11 @@ void HP_clif_fame_blacksmith(struct map_session_data *sd, int points) { void HP_clif_fame_alchemist(struct map_session_data *sd, int points) { int hIndex = 0; if( HPMHooks.count.HP_clif_fame_alchemist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *points); + void (*preHookFunc) (struct map_session_data **sd, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_alchemist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_fame_alchemist_pre[hIndex].func; - preHookFunc(sd, &points); + preHookFunc(&sd, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9141,10 +9137,10 @@ void HP_clif_fame_alchemist(struct map_session_data *sd, int points) { HPMHooks.source.clif.fame_alchemist(sd, points); } if( HPMHooks.count.HP_clif_fame_alchemist_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *points); + void (*postHookFunc) (struct map_session_data *sd, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_alchemist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_fame_alchemist_post[hIndex].func; - postHookFunc(sd, &points); + postHookFunc(sd, points); } } return; @@ -9152,11 +9148,11 @@ void HP_clif_fame_alchemist(struct map_session_data *sd, int points) { void HP_clif_fame_taekwon(struct map_session_data *sd, int points) { int hIndex = 0; if( HPMHooks.count.HP_clif_fame_taekwon_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *points); + void (*preHookFunc) (struct map_session_data **sd, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_taekwon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_fame_taekwon_pre[hIndex].func; - preHookFunc(sd, &points); + preHookFunc(&sd, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9167,10 +9163,10 @@ void HP_clif_fame_taekwon(struct map_session_data *sd, int points) { HPMHooks.source.clif.fame_taekwon(sd, points); } if( HPMHooks.count.HP_clif_fame_taekwon_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *points); + void (*postHookFunc) (struct map_session_data *sd, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_fame_taekwon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_fame_taekwon_post[hIndex].func; - postHookFunc(sd, &points); + postHookFunc(sd, points); } } return; @@ -9178,11 +9174,11 @@ void HP_clif_fame_taekwon(struct map_session_data *sd, int points) { void HP_clif_ranklist(struct map_session_data *sd, enum fame_list_type type) { int hIndex = 0; if( HPMHooks.count.HP_clif_ranklist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum fame_list_type *type); + void (*preHookFunc) (struct map_session_data **sd, enum fame_list_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ranklist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_ranklist_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9193,10 +9189,10 @@ void HP_clif_ranklist(struct map_session_data *sd, enum fame_list_type type) { HPMHooks.source.clif.ranklist(sd, type); } if( HPMHooks.count.HP_clif_ranklist_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum fame_list_type *type); + void (*postHookFunc) (struct map_session_data *sd, enum fame_list_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ranklist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_ranklist_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -9204,11 +9200,11 @@ void HP_clif_ranklist(struct map_session_data *sd, enum fame_list_type type) { void HP_clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_type type, int points) { int hIndex = 0; if( HPMHooks.count.HP_clif_update_rankingpoint_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum fame_list_type *type, int *points); + void (*preHookFunc) (struct map_session_data **sd, enum fame_list_type *type, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_update_rankingpoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_update_rankingpoint_pre[hIndex].func; - preHookFunc(sd, &type, &points); + preHookFunc(&sd, &type, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9219,10 +9215,10 @@ void HP_clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_typ HPMHooks.source.clif.update_rankingpoint(sd, type, points); } if( HPMHooks.count.HP_clif_update_rankingpoint_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum fame_list_type *type, int *points); + void (*postHookFunc) (struct map_session_data *sd, enum fame_list_type type, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_update_rankingpoint_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_update_rankingpoint_post[hIndex].func; - postHookFunc(sd, &type, &points); + postHookFunc(sd, type, points); } } return; @@ -9230,11 +9226,11 @@ void HP_clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_typ void HP_clif_pRanklist(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRanklist_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRanklist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRanklist_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9245,10 +9241,10 @@ void HP_clif_pRanklist(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRanklist(fd, sd); } if( HPMHooks.count.HP_clif_pRanklist_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRanklist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRanklist_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -9256,11 +9252,11 @@ void HP_clif_pRanklist(int fd, struct map_session_data *sd) { void HP_clif_hotkeys(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_hotkeys_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hotkeys_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_hotkeys_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9283,12 +9279,12 @@ int HP_clif_insight(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_insight_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_insight_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_insight_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -9316,12 +9312,12 @@ int HP_clif_outsight(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_outsight_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_outsight_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_outsight_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -9348,11 +9344,11 @@ int HP_clif_outsight(struct block_list *bl, va_list ap) { void HP_clif_skillcastcancel(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillcastcancel_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillcastcancel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillcastcancel_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9374,11 +9370,11 @@ void HP_clif_skillcastcancel(struct block_list *bl) { void HP_clif_skill_fail(struct map_session_data *sd, uint16 skill_id, enum useskill_fail_cause cause, int btype) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_fail_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, enum useskill_fail_cause *cause, int *btype); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, enum useskill_fail_cause *cause, int *btype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_fail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_fail_pre[hIndex].func; - preHookFunc(sd, &skill_id, &cause, &btype); + preHookFunc(&sd, &skill_id, &cause, &btype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9389,10 +9385,10 @@ void HP_clif_skill_fail(struct map_session_data *sd, uint16 skill_id, enum usesk HPMHooks.source.clif.skill_fail(sd, skill_id, cause, btype); } if( HPMHooks.count.HP_clif_skill_fail_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, enum useskill_fail_cause *cause, int *btype); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, enum useskill_fail_cause cause, int btype); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_fail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_fail_post[hIndex].func; - postHookFunc(sd, &skill_id, &cause, &btype); + postHookFunc(sd, skill_id, cause, btype); } } return; @@ -9400,11 +9396,11 @@ void HP_clif_skill_fail(struct map_session_data *sd, uint16 skill_id, enum usesk void HP_clif_skill_cooldown(struct map_session_data *sd, uint16 skill_id, unsigned int duration) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_cooldown_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, unsigned int *duration); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, unsigned int *duration); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_cooldown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_cooldown_pre[hIndex].func; - preHookFunc(sd, &skill_id, &duration); + preHookFunc(&sd, &skill_id, &duration); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9415,10 +9411,10 @@ void HP_clif_skill_cooldown(struct map_session_data *sd, uint16 skill_id, unsign HPMHooks.source.clif.skill_cooldown(sd, skill_id, duration); } if( HPMHooks.count.HP_clif_skill_cooldown_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, unsigned int *duration); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, unsigned int duration); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_cooldown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_cooldown_post[hIndex].func; - postHookFunc(sd, &skill_id, &duration); + postHookFunc(sd, skill_id, duration); } } return; @@ -9426,11 +9422,11 @@ void HP_clif_skill_cooldown(struct map_session_data *sd, uint16 skill_id, unsign void HP_clif_skill_memomessage(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_memomessage_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_memomessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_memomessage_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9441,10 +9437,10 @@ void HP_clif_skill_memomessage(struct map_session_data *sd, int type) { HPMHooks.source.clif.skill_memomessage(sd, type); } if( HPMHooks.count.HP_clif_skill_memomessage_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_memomessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_memomessage_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -9452,11 +9448,11 @@ void HP_clif_skill_memomessage(struct map_session_data *sd, int type) { void HP_clif_skill_mapinfomessage(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_mapinfomessage_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_mapinfomessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_mapinfomessage_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9467,10 +9463,10 @@ void HP_clif_skill_mapinfomessage(struct map_session_data *sd, int type) { HPMHooks.source.clif.skill_mapinfomessage(sd, type); } if( HPMHooks.count.HP_clif_skill_mapinfomessage_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_mapinfomessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_mapinfomessage_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -9478,11 +9474,11 @@ void HP_clif_skill_mapinfomessage(struct map_session_data *sd, int type) { void HP_clif_skill_produce_mix_list(struct map_session_data *sd, int skill_id, int trigger) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_produce_mix_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *skill_id, int *trigger); + void (*preHookFunc) (struct map_session_data **sd, int *skill_id, int *trigger); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_produce_mix_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_produce_mix_list_pre[hIndex].func; - preHookFunc(sd, &skill_id, &trigger); + preHookFunc(&sd, &skill_id, &trigger); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9493,10 +9489,10 @@ void HP_clif_skill_produce_mix_list(struct map_session_data *sd, int skill_id, i HPMHooks.source.clif.skill_produce_mix_list(sd, skill_id, trigger); } if( HPMHooks.count.HP_clif_skill_produce_mix_list_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *skill_id, int *trigger); + void (*postHookFunc) (struct map_session_data *sd, int skill_id, int trigger); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_produce_mix_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_produce_mix_list_post[hIndex].func; - postHookFunc(sd, &skill_id, &trigger); + postHookFunc(sd, skill_id, trigger); } } return; @@ -9504,11 +9500,11 @@ void HP_clif_skill_produce_mix_list(struct map_session_data *sd, int skill_id, i void HP_clif_cooking_list(struct map_session_data *sd, int trigger, uint16 skill_id, int qty, int list_type) { int hIndex = 0; if( HPMHooks.count.HP_clif_cooking_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *trigger, uint16 *skill_id, int *qty, int *list_type); + void (*preHookFunc) (struct map_session_data **sd, int *trigger, uint16 *skill_id, int *qty, int *list_type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cooking_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cooking_list_pre[hIndex].func; - preHookFunc(sd, &trigger, &skill_id, &qty, &list_type); + preHookFunc(&sd, &trigger, &skill_id, &qty, &list_type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9519,10 +9515,10 @@ void HP_clif_cooking_list(struct map_session_data *sd, int trigger, uint16 skill HPMHooks.source.clif.cooking_list(sd, trigger, skill_id, qty, list_type); } if( HPMHooks.count.HP_clif_cooking_list_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *trigger, uint16 *skill_id, int *qty, int *list_type); + void (*postHookFunc) (struct map_session_data *sd, int trigger, uint16 skill_id, int qty, int list_type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cooking_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cooking_list_post[hIndex].func; - postHookFunc(sd, &trigger, &skill_id, &qty, &list_type); + postHookFunc(sd, trigger, skill_id, qty, list_type); } } return; @@ -9530,11 +9526,11 @@ void HP_clif_cooking_list(struct map_session_data *sd, int trigger, uint16 skill void HP_clif_autospell(struct map_session_data *sd, uint16 skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_clif_autospell_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_autospell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_autospell_pre[hIndex].func; - preHookFunc(sd, &skill_lv); + preHookFunc(&sd, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9545,10 +9541,10 @@ void HP_clif_autospell(struct map_session_data *sd, uint16 skill_lv) { HPMHooks.source.clif.autospell(sd, skill_lv); } if( HPMHooks.count.HP_clif_autospell_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_lv); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_autospell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_autospell_post[hIndex].func; - postHookFunc(sd, &skill_lv); + postHookFunc(sd, skill_lv); } } return; @@ -9556,11 +9552,11 @@ void HP_clif_autospell(struct map_session_data *sd, uint16 skill_lv) { void HP_clif_combo_delay(struct block_list *bl, int wait) { int hIndex = 0; if( HPMHooks.count.HP_clif_combo_delay_pre ) { - void (*preHookFunc) (struct block_list *bl, int *wait); + void (*preHookFunc) (struct block_list **bl, int *wait); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_combo_delay_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_combo_delay_pre[hIndex].func; - preHookFunc(bl, &wait); + preHookFunc(&bl, &wait); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9571,10 +9567,10 @@ void HP_clif_combo_delay(struct block_list *bl, int wait) { HPMHooks.source.clif.combo_delay(bl, wait); } if( HPMHooks.count.HP_clif_combo_delay_post ) { - void (*postHookFunc) (struct block_list *bl, int *wait); + void (*postHookFunc) (struct block_list *bl, int wait); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_combo_delay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_combo_delay_post[hIndex].func; - postHookFunc(bl, &wait); + postHookFunc(bl, wait); } } return; @@ -9582,11 +9578,11 @@ void HP_clif_combo_delay(struct block_list *bl, int wait) { void HP_clif_status_change(struct block_list *bl, int type, int flag, int tick, int val1, int val2, int val3) { int hIndex = 0; if( HPMHooks.count.HP_clif_status_change_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type, int *flag, int *tick, int *val1, int *val2, int *val3); + void (*preHookFunc) (struct block_list **bl, int *type, int *flag, int *tick, int *val1, int *val2, int *val3); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_status_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_status_change_pre[hIndex].func; - preHookFunc(bl, &type, &flag, &tick, &val1, &val2, &val3); + preHookFunc(&bl, &type, &flag, &tick, &val1, &val2, &val3); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9597,10 +9593,10 @@ void HP_clif_status_change(struct block_list *bl, int type, int flag, int tick, HPMHooks.source.clif.status_change(bl, type, flag, tick, val1, val2, val3); } if( HPMHooks.count.HP_clif_status_change_post ) { - void (*postHookFunc) (struct block_list *bl, int *type, int *flag, int *tick, int *val1, int *val2, int *val3); + void (*postHookFunc) (struct block_list *bl, int type, int flag, int tick, int val1, int val2, int val3); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_status_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_status_change_post[hIndex].func; - postHookFunc(bl, &type, &flag, &tick, &val1, &val2, &val3); + postHookFunc(bl, type, flag, tick, val1, val2, val3); } } return; @@ -9608,11 +9604,11 @@ void HP_clif_status_change(struct block_list *bl, int type, int flag, int tick, void HP_clif_insert_card(struct map_session_data *sd, int idx_equip, int idx_card, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_insert_card_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx_equip, int *idx_card, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *idx_equip, int *idx_card, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_insert_card_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_insert_card_pre[hIndex].func; - preHookFunc(sd, &idx_equip, &idx_card, &flag); + preHookFunc(&sd, &idx_equip, &idx_card, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9623,10 +9619,10 @@ void HP_clif_insert_card(struct map_session_data *sd, int idx_equip, int idx_car HPMHooks.source.clif.insert_card(sd, idx_equip, idx_card, flag); } if( HPMHooks.count.HP_clif_insert_card_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx_equip, int *idx_card, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int idx_equip, int idx_card, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_insert_card_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_insert_card_post[hIndex].func; - postHookFunc(sd, &idx_equip, &idx_card, &flag); + postHookFunc(sd, idx_equip, idx_card, flag); } } return; @@ -9634,11 +9630,11 @@ void HP_clif_insert_card(struct map_session_data *sd, int idx_equip, int idx_car void HP_clif_inventorylist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_inventorylist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_inventorylist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_inventorylist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9660,11 +9656,11 @@ void HP_clif_inventorylist(struct map_session_data *sd) { void HP_clif_equiplist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_equiplist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equiplist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_equiplist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9686,11 +9682,11 @@ void HP_clif_equiplist(struct map_session_data *sd) { void HP_clif_cartlist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_cartlist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cartlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cartlist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9712,11 +9708,11 @@ void HP_clif_cartlist(struct map_session_data *sd) { void HP_clif_favorite_item(struct map_session_data *sd, unsigned short index) { int hIndex = 0; if( HPMHooks.count.HP_clif_favorite_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *index); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_favorite_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_favorite_item_pre[hIndex].func; - preHookFunc(sd, &index); + preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9727,10 +9723,10 @@ void HP_clif_favorite_item(struct map_session_data *sd, unsigned short index) { HPMHooks.source.clif.favorite_item(sd, index); } if( HPMHooks.count.HP_clif_favorite_item_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *index); + void (*postHookFunc) (struct map_session_data *sd, unsigned short index); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_favorite_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_favorite_item_post[hIndex].func; - postHookFunc(sd, &index); + postHookFunc(sd, index); } } return; @@ -9753,10 +9749,10 @@ void HP_clif_clearcart(int fd) { HPMHooks.source.clif.clearcart(fd); } if( HPMHooks.count.HP_clif_clearcart_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearcart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearcart_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -9764,11 +9760,11 @@ void HP_clif_clearcart(int fd) { void HP_clif_item_identify_list(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_identify_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_identify_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_identify_list_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9790,11 +9786,11 @@ void HP_clif_item_identify_list(struct map_session_data *sd) { void HP_clif_item_identified(struct map_session_data *sd, int idx, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_identified_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *idx, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_identified_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_identified_pre[hIndex].func; - preHookFunc(sd, &idx, &flag); + preHookFunc(&sd, &idx, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9805,10 +9801,10 @@ void HP_clif_item_identified(struct map_session_data *sd, int idx, int flag) { HPMHooks.source.clif.item_identified(sd, idx, flag); } if( HPMHooks.count.HP_clif_item_identified_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int idx, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_identified_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_identified_post[hIndex].func; - postHookFunc(sd, &idx, &flag); + postHookFunc(sd, idx, flag); } } return; @@ -9816,11 +9812,11 @@ void HP_clif_item_identified(struct map_session_data *sd, int idx, int flag) { void HP_clif_item_repair_list(struct map_session_data *sd, struct map_session_data *dstsd, int lv) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_repair_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd, int *lv); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **dstsd, int *lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_repair_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_repair_list_pre[hIndex].func; - preHookFunc(sd, dstsd, &lv); + preHookFunc(&sd, &dstsd, &lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9831,10 +9827,10 @@ void HP_clif_item_repair_list(struct map_session_data *sd, struct map_session_da HPMHooks.source.clif.item_repair_list(sd, dstsd, lv); } if( HPMHooks.count.HP_clif_item_repair_list_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd, int *lv); + void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd, int lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_repair_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_repair_list_post[hIndex].func; - postHookFunc(sd, dstsd, &lv); + postHookFunc(sd, dstsd, lv); } } return; @@ -9842,11 +9838,11 @@ void HP_clif_item_repair_list(struct map_session_data *sd, struct map_session_da void HP_clif_item_repaireffect(struct map_session_data *sd, int idx, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_repaireffect_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *idx, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_repaireffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_repaireffect_pre[hIndex].func; - preHookFunc(sd, &idx, &flag); + preHookFunc(&sd, &idx, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9857,10 +9853,10 @@ void HP_clif_item_repaireffect(struct map_session_data *sd, int idx, int flag) { HPMHooks.source.clif.item_repaireffect(sd, idx, flag); } if( HPMHooks.count.HP_clif_item_repaireffect_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int idx, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_repaireffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_repaireffect_post[hIndex].func; - postHookFunc(sd, &idx, &flag); + postHookFunc(sd, idx, flag); } } return; @@ -9868,11 +9864,11 @@ void HP_clif_item_repaireffect(struct map_session_data *sd, int idx, int flag) { void HP_clif_item_damaged(struct map_session_data *sd, unsigned short position) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_damaged_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *position); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *position); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_damaged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_damaged_pre[hIndex].func; - preHookFunc(sd, &position); + preHookFunc(&sd, &position); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9883,10 +9879,10 @@ void HP_clif_item_damaged(struct map_session_data *sd, unsigned short position) HPMHooks.source.clif.item_damaged(sd, position); } if( HPMHooks.count.HP_clif_item_damaged_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *position); + void (*postHookFunc) (struct map_session_data *sd, unsigned short position); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_damaged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_damaged_post[hIndex].func; - postHookFunc(sd, &position); + postHookFunc(sd, position); } } return; @@ -9894,11 +9890,11 @@ void HP_clif_item_damaged(struct map_session_data *sd, unsigned short position) void HP_clif_item_refine_list(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_refine_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_refine_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_refine_list_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9920,11 +9916,11 @@ void HP_clif_item_refine_list(struct map_session_data *sd) { void HP_clif_item_skill(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_clif_item_skill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_skill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_item_skill_pre[hIndex].func; - preHookFunc(sd, &skill_id, &skill_lv); + preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9935,10 +9931,10 @@ void HP_clif_item_skill(struct map_session_data *sd, uint16 skill_id, uint16 ski HPMHooks.source.clif.item_skill(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_clif_item_skill_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_item_skill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_item_skill_post[hIndex].func; - postHookFunc(sd, &skill_id, &skill_lv); + postHookFunc(sd, skill_id, skill_lv); } } return; @@ -9946,11 +9942,11 @@ void HP_clif_item_skill(struct map_session_data *sd, uint16 skill_id, uint16 ski void HP_clif_mvp_item(struct map_session_data *sd, int nameid) { int hIndex = 0; if( HPMHooks.count.HP_clif_mvp_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *nameid); + void (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mvp_item_pre[hIndex].func; - preHookFunc(sd, &nameid); + preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9961,10 +9957,10 @@ void HP_clif_mvp_item(struct map_session_data *sd, int nameid) { HPMHooks.source.clif.mvp_item(sd, nameid); } if( HPMHooks.count.HP_clif_mvp_item_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *nameid); + void (*postHookFunc) (struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mvp_item_post[hIndex].func; - postHookFunc(sd, &nameid); + postHookFunc(sd, nameid); } } return; @@ -9972,11 +9968,11 @@ void HP_clif_mvp_item(struct map_session_data *sd, int nameid) { void HP_clif_mvp_exp(struct map_session_data *sd, unsigned int exp) { int hIndex = 0; if( HPMHooks.count.HP_clif_mvp_exp_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *exp); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *exp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_exp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mvp_exp_pre[hIndex].func; - preHookFunc(sd, &exp); + preHookFunc(&sd, &exp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -9987,10 +9983,10 @@ void HP_clif_mvp_exp(struct map_session_data *sd, unsigned int exp) { HPMHooks.source.clif.mvp_exp(sd, exp); } if( HPMHooks.count.HP_clif_mvp_exp_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *exp); + void (*postHookFunc) (struct map_session_data *sd, unsigned int exp); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_exp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mvp_exp_post[hIndex].func; - postHookFunc(sd, &exp); + postHookFunc(sd, exp); } } return; @@ -9998,11 +9994,11 @@ void HP_clif_mvp_exp(struct map_session_data *sd, unsigned int exp) { void HP_clif_mvp_noitem(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_mvp_noitem_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_noitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mvp_noitem_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10024,11 +10020,11 @@ void HP_clif_mvp_noitem(struct map_session_data *sd) { void HP_clif_changed_dir(struct block_list *bl, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_changed_dir_pre ) { - void (*preHookFunc) (struct block_list *bl, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changed_dir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changed_dir_pre[hIndex].func; - preHookFunc(bl, &target); + preHookFunc(&bl, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10039,10 +10035,10 @@ void HP_clif_changed_dir(struct block_list *bl, enum send_target target) { HPMHooks.source.clif.changed_dir(bl, target); } if( HPMHooks.count.HP_clif_changed_dir_post ) { - void (*postHookFunc) (struct block_list *bl, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changed_dir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changed_dir_post[hIndex].func; - postHookFunc(bl, &target); + postHookFunc(bl, target); } } return; @@ -10050,11 +10046,11 @@ void HP_clif_changed_dir(struct block_list *bl, enum send_target target) { void HP_clif_charnameack(int fd, struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_charnameack_pre ) { - void (*preHookFunc) (int *fd, struct block_list *bl); + void (*preHookFunc) (int *fd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charnameack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_charnameack_pre[hIndex].func; - preHookFunc(&fd, bl); + preHookFunc(&fd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10065,10 +10061,10 @@ void HP_clif_charnameack(int fd, struct block_list *bl) { HPMHooks.source.clif.charnameack(fd, bl); } if( HPMHooks.count.HP_clif_charnameack_post ) { - void (*postHookFunc) (int *fd, struct block_list *bl); + void (*postHookFunc) (int fd, struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charnameack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_charnameack_post[hIndex].func; - postHookFunc(&fd, bl); + postHookFunc(fd, bl); } } return; @@ -10076,11 +10072,11 @@ void HP_clif_charnameack(int fd, struct block_list *bl) { void HP_clif_monster_hp_bar(struct mob_data *md, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_monster_hp_bar_pre ) { - void (*preHookFunc) (struct mob_data *md, struct map_session_data *sd); + void (*preHookFunc) (struct mob_data **md, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_monster_hp_bar_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_monster_hp_bar_pre[hIndex].func; - preHookFunc(md, sd); + preHookFunc(&md, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10103,11 +10099,11 @@ int HP_clif_hpmeter(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_hpmeter_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hpmeter_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_hpmeter_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10144,10 +10140,10 @@ void HP_clif_hpmeter_single(int fd, int id, unsigned int hp, unsigned int maxhp) HPMHooks.source.clif.hpmeter_single(fd, id, hp, maxhp); } if( HPMHooks.count.HP_clif_hpmeter_single_post ) { - void (*postHookFunc) (int *fd, int *id, unsigned int *hp, unsigned int *maxhp); + void (*postHookFunc) (int fd, int id, unsigned int hp, unsigned int maxhp); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hpmeter_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_hpmeter_single_post[hIndex].func; - postHookFunc(&fd, &id, &hp, &maxhp); + postHookFunc(fd, id, hp, maxhp); } } return; @@ -10156,12 +10152,12 @@ int HP_clif_hpmeter_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_hpmeter_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hpmeter_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_hpmeter_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -10203,10 +10199,10 @@ void HP_clif_upgrademessage(int fd, int result, int item_id) { HPMHooks.source.clif.upgrademessage(fd, result, item_id); } if( HPMHooks.count.HP_clif_upgrademessage_post ) { - void (*postHookFunc) (int *fd, int *result, int *item_id); + void (*postHookFunc) (int fd, int result, int item_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_upgrademessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_upgrademessage_post[hIndex].func; - postHookFunc(&fd, &result, &item_id); + postHookFunc(fd, result, item_id); } } return; @@ -10214,11 +10210,11 @@ void HP_clif_upgrademessage(int fd, int result, int item_id) { void HP_clif_get_weapon_view(struct map_session_data *sd, unsigned short *rhand, unsigned short *lhand) { int hIndex = 0; if( HPMHooks.count.HP_clif_get_weapon_view_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *rhand, unsigned short *lhand); + void (*preHookFunc) (struct map_session_data **sd, unsigned short **rhand, unsigned short **lhand); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_get_weapon_view_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_get_weapon_view_pre[hIndex].func; - preHookFunc(sd, rhand, lhand); + preHookFunc(&sd, &rhand, &lhand); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10240,11 +10236,11 @@ void HP_clif_get_weapon_view(struct map_session_data *sd, unsigned short *rhand, void HP_clif_gospel_info(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_gospel_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_gospel_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_gospel_info_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10255,10 +10251,10 @@ void HP_clif_gospel_info(struct map_session_data *sd, int type) { HPMHooks.source.clif.gospel_info(sd, type); } if( HPMHooks.count.HP_clif_gospel_info_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_gospel_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_gospel_info_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -10266,11 +10262,11 @@ void HP_clif_gospel_info(struct map_session_data *sd, int type) { void HP_clif_feel_req(int fd, struct map_session_data *sd, uint16 skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_clif_feel_req_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd, uint16 *skill_lv); + void (*preHookFunc) (int *fd, struct map_session_data **sd, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_feel_req_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_feel_req_pre[hIndex].func; - preHookFunc(&fd, sd, &skill_lv); + preHookFunc(&fd, &sd, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10281,10 +10277,10 @@ void HP_clif_feel_req(int fd, struct map_session_data *sd, uint16 skill_lv) { HPMHooks.source.clif.feel_req(fd, sd, skill_lv); } if( HPMHooks.count.HP_clif_feel_req_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd, uint16 *skill_lv); + void (*postHookFunc) (int fd, struct map_session_data *sd, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_feel_req_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_feel_req_post[hIndex].func; - postHookFunc(&fd, sd, &skill_lv); + postHookFunc(fd, sd, skill_lv); } } return; @@ -10292,11 +10288,11 @@ void HP_clif_feel_req(int fd, struct map_session_data *sd, uint16 skill_lv) { void HP_clif_starskill(struct map_session_data *sd, const char *mapname, int monster_id, unsigned char star, unsigned char result) { int hIndex = 0; if( HPMHooks.count.HP_clif_starskill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *mapname, int *monster_id, unsigned char *star, unsigned char *result); + void (*preHookFunc) (struct map_session_data **sd, const char **mapname, int *monster_id, unsigned char *star, unsigned char *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_starskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_starskill_pre[hIndex].func; - preHookFunc(sd, mapname, &monster_id, &star, &result); + preHookFunc(&sd, &mapname, &monster_id, &star, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10307,10 +10303,10 @@ void HP_clif_starskill(struct map_session_data *sd, const char *mapname, int mon HPMHooks.source.clif.starskill(sd, mapname, monster_id, star, result); } if( HPMHooks.count.HP_clif_starskill_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *mapname, int *monster_id, unsigned char *star, unsigned char *result); + void (*postHookFunc) (struct map_session_data *sd, const char *mapname, int monster_id, unsigned char star, unsigned char result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_starskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_starskill_post[hIndex].func; - postHookFunc(sd, mapname, &monster_id, &star, &result); + postHookFunc(sd, mapname, monster_id, star, result); } } return; @@ -10318,11 +10314,11 @@ void HP_clif_starskill(struct map_session_data *sd, const char *mapname, int mon void HP_clif_feel_info(struct map_session_data *sd, unsigned char feel_level, unsigned char type) { int hIndex = 0; if( HPMHooks.count.HP_clif_feel_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *feel_level, unsigned char *type); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *feel_level, unsigned char *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_feel_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_feel_info_pre[hIndex].func; - preHookFunc(sd, &feel_level, &type); + preHookFunc(&sd, &feel_level, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10333,10 +10329,10 @@ void HP_clif_feel_info(struct map_session_data *sd, unsigned char feel_level, un HPMHooks.source.clif.feel_info(sd, feel_level, type); } if( HPMHooks.count.HP_clif_feel_info_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *feel_level, unsigned char *type); + void (*postHookFunc) (struct map_session_data *sd, unsigned char feel_level, unsigned char type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_feel_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_feel_info_post[hIndex].func; - postHookFunc(sd, &feel_level, &type); + postHookFunc(sd, feel_level, type); } } return; @@ -10344,11 +10340,11 @@ void HP_clif_feel_info(struct map_session_data *sd, unsigned char feel_level, un void HP_clif_hate_info(struct map_session_data *sd, unsigned char hate_level, int class_, unsigned char type) { int hIndex = 0; if( HPMHooks.count.HP_clif_hate_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *hate_level, int *class_, unsigned char *type); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *hate_level, int *class_, unsigned char *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hate_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_hate_info_pre[hIndex].func; - preHookFunc(sd, &hate_level, &class_, &type); + preHookFunc(&sd, &hate_level, &class_, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10359,10 +10355,10 @@ void HP_clif_hate_info(struct map_session_data *sd, unsigned char hate_level, in HPMHooks.source.clif.hate_info(sd, hate_level, class_, type); } if( HPMHooks.count.HP_clif_hate_info_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *hate_level, int *class_, unsigned char *type); + void (*postHookFunc) (struct map_session_data *sd, unsigned char hate_level, int class_, unsigned char type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hate_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_hate_info_post[hIndex].func; - postHookFunc(sd, &hate_level, &class_, &type); + postHookFunc(sd, hate_level, class_, type); } } return; @@ -10370,11 +10366,11 @@ void HP_clif_hate_info(struct map_session_data *sd, unsigned char hate_level, in void HP_clif_mission_info(struct map_session_data *sd, int mob_id, unsigned char progress) { int hIndex = 0; if( HPMHooks.count.HP_clif_mission_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *mob_id, unsigned char *progress); + void (*preHookFunc) (struct map_session_data **sd, int *mob_id, unsigned char *progress); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mission_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mission_info_pre[hIndex].func; - preHookFunc(sd, &mob_id, &progress); + preHookFunc(&sd, &mob_id, &progress); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10385,10 +10381,10 @@ void HP_clif_mission_info(struct map_session_data *sd, int mob_id, unsigned char HPMHooks.source.clif.mission_info(sd, mob_id, progress); } if( HPMHooks.count.HP_clif_mission_info_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *mob_id, unsigned char *progress); + void (*postHookFunc) (struct map_session_data *sd, int mob_id, unsigned char progress); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mission_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mission_info_post[hIndex].func; - postHookFunc(sd, &mob_id, &progress); + postHookFunc(sd, mob_id, progress); } } return; @@ -10396,11 +10392,11 @@ void HP_clif_mission_info(struct map_session_data *sd, int mob_id, unsigned char void HP_clif_feel_hate_reset(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_feel_hate_reset_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_feel_hate_reset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_feel_hate_reset_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10422,11 +10418,11 @@ void HP_clif_feel_hate_reset(struct map_session_data *sd) { void HP_clif_partytickack(struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_partytickack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_partytickack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_partytickack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10437,10 +10433,10 @@ void HP_clif_partytickack(struct map_session_data *sd, bool flag) { HPMHooks.source.clif.partytickack(sd, flag); } if( HPMHooks.count.HP_clif_partytickack_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_partytickack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_partytickack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -10448,11 +10444,11 @@ void HP_clif_partytickack(struct map_session_data *sd, bool flag) { void HP_clif_equiptickack(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_equiptickack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equiptickack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_equiptickack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10463,10 +10459,10 @@ void HP_clif_equiptickack(struct map_session_data *sd, int flag) { HPMHooks.source.clif.equiptickack(sd, flag); } if( HPMHooks.count.HP_clif_equiptickack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equiptickack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_equiptickack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -10474,11 +10470,11 @@ void HP_clif_equiptickack(struct map_session_data *sd, int flag) { void HP_clif_viewequip_ack(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; if( HPMHooks.count.HP_clif_viewequip_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_viewequip_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_viewequip_ack_pre[hIndex].func; - preHookFunc(sd, tsd); + preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10500,11 +10496,11 @@ void HP_clif_viewequip_ack(struct map_session_data *sd, struct map_session_data void HP_clif_equpcheckbox(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_equpcheckbox_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equpcheckbox_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_equpcheckbox_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10526,11 +10522,11 @@ void HP_clif_equpcheckbox(struct map_session_data *sd) { void HP_clif_displayexp(struct map_session_data *sd, unsigned int exp, char type, bool is_quest) { int hIndex = 0; if( HPMHooks.count.HP_clif_displayexp_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *exp, char *type, bool *is_quest); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *exp, char *type, bool *is_quest); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_displayexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_displayexp_pre[hIndex].func; - preHookFunc(sd, &exp, &type, &is_quest); + preHookFunc(&sd, &exp, &type, &is_quest); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10541,10 +10537,10 @@ void HP_clif_displayexp(struct map_session_data *sd, unsigned int exp, char type HPMHooks.source.clif.displayexp(sd, exp, type, is_quest); } if( HPMHooks.count.HP_clif_displayexp_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *exp, char *type, bool *is_quest); + void (*postHookFunc) (struct map_session_data *sd, unsigned int exp, char type, bool is_quest); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_displayexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_displayexp_post[hIndex].func; - postHookFunc(sd, &exp, &type, &is_quest); + postHookFunc(sd, exp, type, is_quest); } } return; @@ -10552,11 +10548,11 @@ void HP_clif_displayexp(struct map_session_data *sd, unsigned int exp, char type void HP_clif_font(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_font_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_font_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_font_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10578,11 +10574,11 @@ void HP_clif_font(struct map_session_data *sd) { void HP_clif_progressbar(struct map_session_data *sd, unsigned int color, unsigned int second) { int hIndex = 0; if( HPMHooks.count.HP_clif_progressbar_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *color, unsigned int *second); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *color, unsigned int *second); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_progressbar_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_progressbar_pre[hIndex].func; - preHookFunc(sd, &color, &second); + preHookFunc(&sd, &color, &second); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10593,10 +10589,10 @@ void HP_clif_progressbar(struct map_session_data *sd, unsigned int color, unsign HPMHooks.source.clif.progressbar(sd, color, second); } if( HPMHooks.count.HP_clif_progressbar_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *color, unsigned int *second); + void (*postHookFunc) (struct map_session_data *sd, unsigned int color, unsigned int second); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_progressbar_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_progressbar_post[hIndex].func; - postHookFunc(sd, &color, &second); + postHookFunc(sd, color, second); } } return; @@ -10604,11 +10600,11 @@ void HP_clif_progressbar(struct map_session_data *sd, unsigned int color, unsign void HP_clif_progressbar_abort(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_progressbar_abort_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_progressbar_abort_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_progressbar_abort_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10630,11 +10626,11 @@ void HP_clif_progressbar_abort(struct map_session_data *sd) { void HP_clif_showdigit(struct map_session_data *sd, unsigned char type, int value) { int hIndex = 0; if( HPMHooks.count.HP_clif_showdigit_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *type, int *value); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *type, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_showdigit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_showdigit_pre[hIndex].func; - preHookFunc(sd, &type, &value); + preHookFunc(&sd, &type, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10645,10 +10641,10 @@ void HP_clif_showdigit(struct map_session_data *sd, unsigned char type, int valu HPMHooks.source.clif.showdigit(sd, type, value); } if( HPMHooks.count.HP_clif_showdigit_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *type, int *value); + void (*postHookFunc) (struct map_session_data *sd, unsigned char type, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_showdigit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_showdigit_post[hIndex].func; - postHookFunc(sd, &type, &value); + postHookFunc(sd, type, value); } } return; @@ -10657,11 +10653,11 @@ int HP_clif_elementalconverter_list(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_elementalconverter_list_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_elementalconverter_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_elementalconverter_list_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10684,11 +10680,11 @@ int HP_clif_spellbook_list(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_spellbook_list_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spellbook_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spellbook_list_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10711,11 +10707,11 @@ int HP_clif_magicdecoy_list(struct map_session_data *sd, uint16 skill_lv, short int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_magicdecoy_list_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv, short *x, short *y); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_lv, short *x, short *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_magicdecoy_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_magicdecoy_list_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_lv, &x, &y); + retVal___ = preHookFunc(&sd, &skill_lv, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10726,10 +10722,10 @@ int HP_clif_magicdecoy_list(struct map_session_data *sd, uint16 skill_lv, short retVal___ = HPMHooks.source.clif.magicdecoy_list(sd, skill_lv, x, y); } if( HPMHooks.count.HP_clif_magicdecoy_list_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_lv, short *x, short *y); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_lv, short x, short y); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_magicdecoy_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_magicdecoy_list_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_lv, &x, &y); + retVal___ = postHookFunc(retVal___, sd, skill_lv, x, y); } } return retVal___; @@ -10738,11 +10734,11 @@ int HP_clif_poison_list(struct map_session_data *sd, uint16 skill_lv) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_poison_list_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_poison_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_poison_list_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10753,10 +10749,10 @@ int HP_clif_poison_list(struct map_session_data *sd, uint16 skill_lv) { retVal___ = HPMHooks.source.clif.poison_list(sd, skill_lv); } if( HPMHooks.count.HP_clif_poison_list_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_poison_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_poison_list_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_lv); } } return retVal___; @@ -10765,11 +10761,11 @@ int HP_clif_autoshadowspell_list(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_autoshadowspell_list_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_autoshadowspell_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_autoshadowspell_list_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10792,11 +10788,11 @@ int HP_clif_skill_itemlistwindow(struct map_session_data *sd, uint16 skill_id, u int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_skill_itemlistwindow_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_itemlistwindow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_itemlistwindow_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10807,10 +10803,10 @@ int HP_clif_skill_itemlistwindow(struct map_session_data *sd, uint16 skill_id, u retVal___ = HPMHooks.source.clif.skill_itemlistwindow(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_clif_skill_itemlistwindow_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_itemlistwindow_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_itemlistwindow_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv); } } return retVal___; @@ -10818,11 +10814,11 @@ int HP_clif_skill_itemlistwindow(struct map_session_data *sd, uint16 skill_id, u void HP_clif_sc_load(struct block_list *bl, int tid, enum send_target target, int type, int val1, int val2, int val3) { int hIndex = 0; if( HPMHooks.count.HP_clif_sc_load_pre ) { - void (*preHookFunc) (struct block_list *bl, int *tid, enum send_target *target, int *type, int *val1, int *val2, int *val3); + void (*preHookFunc) (struct block_list **bl, int *tid, enum send_target *target, int *type, int *val1, int *val2, int *val3); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sc_load_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sc_load_pre[hIndex].func; - preHookFunc(bl, &tid, &target, &type, &val1, &val2, &val3); + preHookFunc(&bl, &tid, &target, &type, &val1, &val2, &val3); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10833,10 +10829,10 @@ void HP_clif_sc_load(struct block_list *bl, int tid, enum send_target target, in HPMHooks.source.clif.sc_load(bl, tid, target, type, val1, val2, val3); } if( HPMHooks.count.HP_clif_sc_load_post ) { - void (*postHookFunc) (struct block_list *bl, int *tid, enum send_target *target, int *type, int *val1, int *val2, int *val3); + void (*postHookFunc) (struct block_list *bl, int tid, enum send_target target, int type, int val1, int val2, int val3); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sc_load_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_sc_load_post[hIndex].func; - postHookFunc(bl, &tid, &target, &type, &val1, &val2, &val3); + postHookFunc(bl, tid, target, type, val1, val2, val3); } } return; @@ -10844,11 +10840,11 @@ void HP_clif_sc_load(struct block_list *bl, int tid, enum send_target target, in void HP_clif_sc_end(struct block_list *bl, int tid, enum send_target target, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_sc_end_pre ) { - void (*preHookFunc) (struct block_list *bl, int *tid, enum send_target *target, int *type); + void (*preHookFunc) (struct block_list **bl, int *tid, enum send_target *target, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sc_end_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sc_end_pre[hIndex].func; - preHookFunc(bl, &tid, &target, &type); + preHookFunc(&bl, &tid, &target, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10859,10 +10855,10 @@ void HP_clif_sc_end(struct block_list *bl, int tid, enum send_target target, int HPMHooks.source.clif.sc_end(bl, tid, target, type); } if( HPMHooks.count.HP_clif_sc_end_post ) { - void (*postHookFunc) (struct block_list *bl, int *tid, enum send_target *target, int *type); + void (*postHookFunc) (struct block_list *bl, int tid, enum send_target target, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sc_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_sc_end_post[hIndex].func; - postHookFunc(bl, &tid, &target, &type); + postHookFunc(bl, tid, target, type); } } return; @@ -10870,11 +10866,11 @@ void HP_clif_sc_end(struct block_list *bl, int tid, enum send_target target, int void HP_clif_initialstatus(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_initialstatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_initialstatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_initialstatus_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10896,11 +10892,11 @@ void HP_clif_initialstatus(struct map_session_data *sd) { void HP_clif_cooldown_list(int fd, struct skill_cd *cd) { int hIndex = 0; if( HPMHooks.count.HP_clif_cooldown_list_pre ) { - void (*preHookFunc) (int *fd, struct skill_cd *cd); + void (*preHookFunc) (int *fd, struct skill_cd **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cooldown_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cooldown_list_pre[hIndex].func; - preHookFunc(&fd, cd); + preHookFunc(&fd, &cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10911,10 +10907,10 @@ void HP_clif_cooldown_list(int fd, struct skill_cd *cd) { HPMHooks.source.clif.cooldown_list(fd, cd); } if( HPMHooks.count.HP_clif_cooldown_list_post ) { - void (*postHookFunc) (int *fd, struct skill_cd *cd); + void (*postHookFunc) (int fd, struct skill_cd *cd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cooldown_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cooldown_list_post[hIndex].func; - postHookFunc(&fd, cd); + postHookFunc(fd, cd); } } return; @@ -10922,11 +10918,11 @@ void HP_clif_cooldown_list(int fd, struct skill_cd *cd) { void HP_clif_updatestatus(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_updatestatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_updatestatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_updatestatus_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10937,10 +10933,10 @@ void HP_clif_updatestatus(struct map_session_data *sd, int type) { HPMHooks.source.clif.updatestatus(sd, type); } if( HPMHooks.count.HP_clif_updatestatus_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_updatestatus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_updatestatus_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -10948,11 +10944,11 @@ void HP_clif_updatestatus(struct map_session_data *sd, int type) { void HP_clif_changestatus(struct map_session_data *sd, int type, int val) { int hIndex = 0; if( HPMHooks.count.HP_clif_changestatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + void (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changestatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changestatus_pre[hIndex].func; - preHookFunc(sd, &type, &val); + preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10963,10 +10959,10 @@ void HP_clif_changestatus(struct map_session_data *sd, int type, int val) { HPMHooks.source.clif.changestatus(sd, type, val); } if( HPMHooks.count.HP_clif_changestatus_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type, int *val); + void (*postHookFunc) (struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changestatus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_changestatus_post[hIndex].func; - postHookFunc(sd, &type, &val); + postHookFunc(sd, type, val); } } return; @@ -10974,11 +10970,11 @@ void HP_clif_changestatus(struct map_session_data *sd, int type, int val) { void HP_clif_statusupack(struct map_session_data *sd, int type, int ok, int val) { int hIndex = 0; if( HPMHooks.count.HP_clif_statusupack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type, int *ok, int *val); + void (*preHookFunc) (struct map_session_data **sd, int *type, int *ok, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_statusupack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_statusupack_pre[hIndex].func; - preHookFunc(sd, &type, &ok, &val); + preHookFunc(&sd, &type, &ok, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -10989,10 +10985,10 @@ void HP_clif_statusupack(struct map_session_data *sd, int type, int ok, int val) HPMHooks.source.clif.statusupack(sd, type, ok, val); } if( HPMHooks.count.HP_clif_statusupack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type, int *ok, int *val); + void (*postHookFunc) (struct map_session_data *sd, int type, int ok, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_statusupack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_statusupack_post[hIndex].func; - postHookFunc(sd, &type, &ok, &val); + postHookFunc(sd, type, ok, val); } } return; @@ -11000,11 +10996,11 @@ void HP_clif_statusupack(struct map_session_data *sd, int type, int ok, int val) void HP_clif_movetoattack(struct map_session_data *sd, struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_movetoattack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *bl); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_movetoattack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_movetoattack_pre[hIndex].func; - preHookFunc(sd, bl); + preHookFunc(&sd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11026,11 +11022,11 @@ void HP_clif_movetoattack(struct map_session_data *sd, struct block_list *bl) { void HP_clif_solved_charname(int fd, int charid, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_solved_charname_pre ) { - void (*preHookFunc) (int *fd, int *charid, const char *name); + void (*preHookFunc) (int *fd, int *charid, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_solved_charname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_solved_charname_pre[hIndex].func; - preHookFunc(&fd, &charid, name); + preHookFunc(&fd, &charid, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11041,10 +11037,10 @@ void HP_clif_solved_charname(int fd, int charid, const char *name) { HPMHooks.source.clif.solved_charname(fd, charid, name); } if( HPMHooks.count.HP_clif_solved_charname_post ) { - void (*postHookFunc) (int *fd, int *charid, const char *name); + void (*postHookFunc) (int fd, int charid, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_solved_charname_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_solved_charname_post[hIndex].func; - postHookFunc(&fd, &charid, name); + postHookFunc(fd, charid, name); } } return; @@ -11052,11 +11048,11 @@ void HP_clif_solved_charname(int fd, int charid, const char *name) { void HP_clif_charnameupdate(struct map_session_data *ssd) { int hIndex = 0; if( HPMHooks.count.HP_clif_charnameupdate_pre ) { - void (*preHookFunc) (struct map_session_data *ssd); + void (*preHookFunc) (struct map_session_data **ssd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charnameupdate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_charnameupdate_pre[hIndex].func; - preHookFunc(ssd); + preHookFunc(&ssd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11094,10 +11090,10 @@ int HP_clif_delayquit(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.clif.delayquit(tid, tick, id, data); } if( HPMHooks.count.HP_clif_delayquit_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delayquit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_delayquit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -11105,11 +11101,11 @@ int HP_clif_delayquit(int tid, int64 tick, int id, intptr_t data) { void HP_clif_getareachar_pc(struct map_session_data *sd, struct map_session_data *dstsd) { int hIndex = 0; if( HPMHooks.count.HP_clif_getareachar_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **dstsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_getareachar_pc_pre[hIndex].func; - preHookFunc(sd, dstsd); + preHookFunc(&sd, &dstsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11131,11 +11127,11 @@ void HP_clif_getareachar_pc(struct map_session_data *sd, struct map_session_data void HP_clif_disconnect_ack(struct map_session_data *sd, short result) { int hIndex = 0; if( HPMHooks.count.HP_clif_disconnect_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *result); + void (*preHookFunc) (struct map_session_data **sd, short *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_disconnect_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_disconnect_ack_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11146,10 +11142,10 @@ void HP_clif_disconnect_ack(struct map_session_data *sd, short result) { HPMHooks.source.clif.disconnect_ack(sd, result); } if( HPMHooks.count.HP_clif_disconnect_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *result); + void (*postHookFunc) (struct map_session_data *sd, short result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_disconnect_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_disconnect_ack_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -11157,11 +11153,11 @@ void HP_clif_disconnect_ack(struct map_session_data *sd, short result) { void HP_clif_PVPInfo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PVPInfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PVPInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PVPInfo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11183,11 +11179,11 @@ void HP_clif_PVPInfo(struct map_session_data *sd) { void HP_clif_blacksmith(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_blacksmith_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_blacksmith_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_blacksmith_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11209,11 +11205,11 @@ void HP_clif_blacksmith(struct map_session_data *sd) { void HP_clif_alchemist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_alchemist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_alchemist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_alchemist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11235,11 +11231,11 @@ void HP_clif_alchemist(struct map_session_data *sd) { void HP_clif_taekwon(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_taekwon_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_taekwon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_taekwon_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11261,11 +11257,11 @@ void HP_clif_taekwon(struct map_session_data *sd) { void HP_clif_ranking_pk(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_ranking_pk_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ranking_pk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_ranking_pk_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11287,11 +11283,11 @@ void HP_clif_ranking_pk(struct map_session_data *sd) { void HP_clif_quitsave(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_quitsave_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quitsave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quitsave_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11302,10 +11298,10 @@ void HP_clif_quitsave(int fd, struct map_session_data *sd) { HPMHooks.source.clif.quitsave(fd, sd); } if( HPMHooks.count.HP_clif_quitsave_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quitsave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_quitsave_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -11313,11 +11309,11 @@ void HP_clif_quitsave(int fd, struct map_session_data *sd) { void HP_clif_misceffect(struct block_list *bl, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_misceffect_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type); + void (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_misceffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_misceffect_pre[hIndex].func; - preHookFunc(bl, &type); + preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11328,10 +11324,10 @@ void HP_clif_misceffect(struct block_list *bl, int type) { HPMHooks.source.clif.misceffect(bl, type); } if( HPMHooks.count.HP_clif_misceffect_post ) { - void (*postHookFunc) (struct block_list *bl, int *type); + void (*postHookFunc) (struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_misceffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_misceffect_post[hIndex].func; - postHookFunc(bl, &type); + postHookFunc(bl, type); } } return; @@ -11339,11 +11335,11 @@ void HP_clif_misceffect(struct block_list *bl, int type) { void HP_clif_changeoption(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_changeoption_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changeoption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changeoption_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11365,11 +11361,11 @@ void HP_clif_changeoption(struct block_list *bl) { void HP_clif_changeoption2(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_changeoption2_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changeoption2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changeoption2_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11391,11 +11387,11 @@ void HP_clif_changeoption2(struct block_list *bl) { void HP_clif_emotion(struct block_list *bl, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_emotion_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type); + void (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_emotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_emotion_pre[hIndex].func; - preHookFunc(bl, &type); + preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11406,10 +11402,10 @@ void HP_clif_emotion(struct block_list *bl, int type) { HPMHooks.source.clif.emotion(bl, type); } if( HPMHooks.count.HP_clif_emotion_post ) { - void (*postHookFunc) (struct block_list *bl, int *type); + void (*postHookFunc) (struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_emotion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_emotion_post[hIndex].func; - postHookFunc(bl, &type); + postHookFunc(bl, type); } } return; @@ -11417,11 +11413,11 @@ void HP_clif_emotion(struct block_list *bl, int type) { void HP_clif_talkiebox(struct block_list *bl, const char *talkie) { int hIndex = 0; if( HPMHooks.count.HP_clif_talkiebox_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *talkie); + void (*preHookFunc) (struct block_list **bl, const char **talkie); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_talkiebox_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_talkiebox_pre[hIndex].func; - preHookFunc(bl, talkie); + preHookFunc(&bl, &talkie); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11443,11 +11439,11 @@ void HP_clif_talkiebox(struct block_list *bl, const char *talkie) { void HP_clif_wedding_effect(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_wedding_effect_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wedding_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_wedding_effect_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11469,11 +11465,11 @@ void HP_clif_wedding_effect(struct block_list *bl) { void HP_clif_divorced(struct map_session_data *sd, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_divorced_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name); + void (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_divorced_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_divorced_pre[hIndex].func; - preHookFunc(sd, name); + preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11495,11 +11491,11 @@ void HP_clif_divorced(struct map_session_data *sd, const char *name) { void HP_clif_callpartner(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_callpartner_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_callpartner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_callpartner_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11522,11 +11518,11 @@ int HP_clif_skill_damage(struct block_list *src, struct block_list *dst, int64 t int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_skill_damage_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *dst, int64 *tick, int *sdelay, int *ddelay, int64 *damage, int *div, uint16 *skill_id, uint16 *skill_lv, int *type); + int (*preHookFunc) (struct block_list **src, struct block_list **dst, int64 *tick, int *sdelay, int *ddelay, int64 *damage, int *div, uint16 *skill_id, uint16 *skill_lv, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, dst, &tick, &sdelay, &ddelay, &damage, &div, &skill_id, &skill_lv, &type); + retVal___ = preHookFunc(&src, &dst, &tick, &sdelay, &ddelay, &damage, &div, &skill_id, &skill_lv, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11537,10 +11533,10 @@ int HP_clif_skill_damage(struct block_list *src, struct block_list *dst, int64 t retVal___ = HPMHooks.source.clif.skill_damage(src, dst, tick, sdelay, ddelay, damage, div, skill_id, skill_lv, type); } if( HPMHooks.count.HP_clif_skill_damage_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, int64 *tick, int *sdelay, int *ddelay, int64 *damage, int *div, uint16 *skill_id, uint16 *skill_lv, int *type); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, int64 tick, int sdelay, int ddelay, int64 damage, int div, uint16 skill_id, uint16 skill_lv, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, dst, &tick, &sdelay, &ddelay, &damage, &div, &skill_id, &skill_lv, &type); + retVal___ = postHookFunc(retVal___, src, dst, tick, sdelay, ddelay, damage, div, skill_id, skill_lv, type); } } return retVal___; @@ -11549,11 +11545,11 @@ int HP_clif_skill_nodamage(struct block_list *src, struct block_list *dst, uint1 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_skill_nodamage_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *dst, uint16 *skill_id, int *heal, int *fail); + int (*preHookFunc) (struct block_list **src, struct block_list **dst, uint16 *skill_id, int *heal, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_nodamage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_nodamage_pre[hIndex].func; - retVal___ = preHookFunc(src, dst, &skill_id, &heal, &fail); + retVal___ = preHookFunc(&src, &dst, &skill_id, &heal, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11564,10 +11560,10 @@ int HP_clif_skill_nodamage(struct block_list *src, struct block_list *dst, uint1 retVal___ = HPMHooks.source.clif.skill_nodamage(src, dst, skill_id, heal, fail); } if( HPMHooks.count.HP_clif_skill_nodamage_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, uint16 *skill_id, int *heal, int *fail); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *dst, uint16 skill_id, int heal, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_nodamage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_nodamage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, dst, &skill_id, &heal, &fail); + retVal___ = postHookFunc(retVal___, src, dst, skill_id, heal, fail); } } return retVal___; @@ -11575,11 +11571,11 @@ int HP_clif_skill_nodamage(struct block_list *src, struct block_list *dst, uint1 void HP_clif_skill_poseffect(struct block_list *src, uint16 skill_id, int val, int x, int y, int64 tick) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_poseffect_pre ) { - void (*preHookFunc) (struct block_list *src, uint16 *skill_id, int *val, int *x, int *y, int64 *tick); + void (*preHookFunc) (struct block_list **src, uint16 *skill_id, int *val, int *x, int *y, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_poseffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_poseffect_pre[hIndex].func; - preHookFunc(src, &skill_id, &val, &x, &y, &tick); + preHookFunc(&src, &skill_id, &val, &x, &y, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11590,10 +11586,10 @@ void HP_clif_skill_poseffect(struct block_list *src, uint16 skill_id, int val, i HPMHooks.source.clif.skill_poseffect(src, skill_id, val, x, y, tick); } if( HPMHooks.count.HP_clif_skill_poseffect_post ) { - void (*postHookFunc) (struct block_list *src, uint16 *skill_id, int *val, int *x, int *y, int64 *tick); + void (*postHookFunc) (struct block_list *src, uint16 skill_id, int val, int x, int y, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_poseffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_poseffect_post[hIndex].func; - postHookFunc(src, &skill_id, &val, &x, &y, &tick); + postHookFunc(src, skill_id, val, x, y, tick); } } return; @@ -11601,11 +11597,11 @@ void HP_clif_skill_poseffect(struct block_list *src, uint16 skill_id, int val, i void HP_clif_skill_estimation(struct map_session_data *sd, struct block_list *dst) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_estimation_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *dst); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **dst); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_estimation_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_estimation_pre[hIndex].func; - preHookFunc(sd, dst); + preHookFunc(&sd, &dst); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11627,11 +11623,11 @@ void HP_clif_skill_estimation(struct map_session_data *sd, struct block_list *ds void HP_clif_skill_warppoint(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv, unsigned short map1, unsigned short map2, unsigned short map3, unsigned short map4) { int hIndex = 0; if( HPMHooks.count.HP_clif_skill_warppoint_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, unsigned short *map1, unsigned short *map2, unsigned short *map3, unsigned short *map4); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv, unsigned short *map1, unsigned short *map2, unsigned short *map3, unsigned short *map4); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_warppoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skill_warppoint_pre[hIndex].func; - preHookFunc(sd, &skill_id, &skill_lv, &map1, &map2, &map3, &map4); + preHookFunc(&sd, &skill_id, &skill_lv, &map1, &map2, &map3, &map4); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11642,10 +11638,10 @@ void HP_clif_skill_warppoint(struct map_session_data *sd, uint16 skill_id, uint1 HPMHooks.source.clif.skill_warppoint(sd, skill_id, skill_lv, map1, map2, map3, map4); } if( HPMHooks.count.HP_clif_skill_warppoint_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, unsigned short *map1, unsigned short *map2, unsigned short *map3, unsigned short *map4); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, uint16 skill_lv, unsigned short map1, unsigned short map2, unsigned short map3, unsigned short map4); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_warppoint_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skill_warppoint_post[hIndex].func; - postHookFunc(sd, &skill_id, &skill_lv, &map1, &map2, &map3, &map4); + postHookFunc(sd, skill_id, skill_lv, map1, map2, map3, map4); } } return; @@ -11653,11 +11649,11 @@ void HP_clif_skill_warppoint(struct map_session_data *sd, uint16 skill_id, uint1 void HP_clif_skillcasting(struct block_list *bl, int src_id, int dst_id, int dst_x, int dst_y, uint16 skill_id, int property, int casttime) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillcasting_pre ) { - void (*preHookFunc) (struct block_list *bl, int *src_id, int *dst_id, int *dst_x, int *dst_y, uint16 *skill_id, int *property, int *casttime); + void (*preHookFunc) (struct block_list **bl, int *src_id, int *dst_id, int *dst_x, int *dst_y, uint16 *skill_id, int *property, int *casttime); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillcasting_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillcasting_pre[hIndex].func; - preHookFunc(bl, &src_id, &dst_id, &dst_x, &dst_y, &skill_id, &property, &casttime); + preHookFunc(&bl, &src_id, &dst_id, &dst_x, &dst_y, &skill_id, &property, &casttime); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11668,10 +11664,10 @@ void HP_clif_skillcasting(struct block_list *bl, int src_id, int dst_id, int dst HPMHooks.source.clif.skillcasting(bl, src_id, dst_id, dst_x, dst_y, skill_id, property, casttime); } if( HPMHooks.count.HP_clif_skillcasting_post ) { - void (*postHookFunc) (struct block_list *bl, int *src_id, int *dst_id, int *dst_x, int *dst_y, uint16 *skill_id, int *property, int *casttime); + void (*postHookFunc) (struct block_list *bl, int src_id, int dst_id, int dst_x, int dst_y, uint16 skill_id, int property, int casttime); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillcasting_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skillcasting_post[hIndex].func; - postHookFunc(bl, &src_id, &dst_id, &dst_x, &dst_y, &skill_id, &property, &casttime); + postHookFunc(bl, src_id, dst_id, dst_x, dst_y, skill_id, property, casttime); } } return; @@ -11679,11 +11675,11 @@ void HP_clif_skillcasting(struct block_list *bl, int src_id, int dst_id, int dst void HP_clif_produce_effect(struct map_session_data *sd, int flag, int nameid) { int hIndex = 0; if( HPMHooks.count.HP_clif_produce_effect_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag, int *nameid); + void (*preHookFunc) (struct map_session_data **sd, int *flag, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_produce_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_produce_effect_pre[hIndex].func; - preHookFunc(sd, &flag, &nameid); + preHookFunc(&sd, &flag, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11694,10 +11690,10 @@ void HP_clif_produce_effect(struct map_session_data *sd, int flag, int nameid) { HPMHooks.source.clif.produce_effect(sd, flag, nameid); } if( HPMHooks.count.HP_clif_produce_effect_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag, int *nameid); + void (*postHookFunc) (struct map_session_data *sd, int flag, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_produce_effect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_produce_effect_post[hIndex].func; - postHookFunc(sd, &flag, &nameid); + postHookFunc(sd, flag, nameid); } } return; @@ -11705,11 +11701,11 @@ void HP_clif_produce_effect(struct map_session_data *sd, int flag, int nameid) { void HP_clif_devotion(struct block_list *src, struct map_session_data *tsd) { int hIndex = 0; if( HPMHooks.count.HP_clif_devotion_pre ) { - void (*preHookFunc) (struct block_list *src, struct map_session_data *tsd); + void (*preHookFunc) (struct block_list **src, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_devotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_devotion_pre[hIndex].func; - preHookFunc(src, tsd); + preHookFunc(&src, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11731,11 +11727,11 @@ void HP_clif_devotion(struct block_list *src, struct map_session_data *tsd) { void HP_clif_spiritball(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_spiritball_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spiritball_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11757,11 +11753,11 @@ void HP_clif_spiritball(struct block_list *bl) { void HP_clif_spiritball_single(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_spiritball_single_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritball_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spiritball_single_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11772,10 +11768,10 @@ void HP_clif_spiritball_single(int fd, struct map_session_data *sd) { HPMHooks.source.clif.spiritball_single(fd, sd); } if( HPMHooks.count.HP_clif_spiritball_single_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritball_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_spiritball_single_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -11783,11 +11779,11 @@ void HP_clif_spiritball_single(int fd, struct map_session_data *sd) { void HP_clif_bladestop(struct block_list *src, int dst_id, int active) { int hIndex = 0; if( HPMHooks.count.HP_clif_bladestop_pre ) { - void (*preHookFunc) (struct block_list *src, int *dst_id, int *active); + void (*preHookFunc) (struct block_list **src, int *dst_id, int *active); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bladestop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bladestop_pre[hIndex].func; - preHookFunc(src, &dst_id, &active); + preHookFunc(&src, &dst_id, &active); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11798,10 +11794,10 @@ void HP_clif_bladestop(struct block_list *src, int dst_id, int active) { HPMHooks.source.clif.bladestop(src, dst_id, active); } if( HPMHooks.count.HP_clif_bladestop_post ) { - void (*postHookFunc) (struct block_list *src, int *dst_id, int *active); + void (*postHookFunc) (struct block_list *src, int dst_id, int active); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bladestop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bladestop_post[hIndex].func; - postHookFunc(src, &dst_id, &active); + postHookFunc(src, dst_id, active); } } return; @@ -11809,11 +11805,11 @@ void HP_clif_bladestop(struct block_list *src, int dst_id, int active) { void HP_clif_mvp_effect(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_mvp_effect_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mvp_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mvp_effect_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11850,10 +11846,10 @@ void HP_clif_heal(int fd, int type, int val) { HPMHooks.source.clif.heal(fd, type, val); } if( HPMHooks.count.HP_clif_heal_post ) { - void (*postHookFunc) (int *fd, int *type, int *val); + void (*postHookFunc) (int fd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_heal_post[hIndex].func; - postHookFunc(&fd, &type, &val); + postHookFunc(fd, type, val); } } return; @@ -11861,11 +11857,11 @@ void HP_clif_heal(int fd, int type, int val) { void HP_clif_resurrection(struct block_list *bl, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_resurrection_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type); + void (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_resurrection_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_resurrection_pre[hIndex].func; - preHookFunc(bl, &type); + preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11876,10 +11872,10 @@ void HP_clif_resurrection(struct block_list *bl, int type) { HPMHooks.source.clif.resurrection(bl, type); } if( HPMHooks.count.HP_clif_resurrection_post ) { - void (*postHookFunc) (struct block_list *bl, int *type); + void (*postHookFunc) (struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_resurrection_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_resurrection_post[hIndex].func; - postHookFunc(bl, &type); + postHookFunc(bl, type); } } return; @@ -11902,10 +11898,10 @@ void HP_clif_refine(int fd, int fail, int index, int val) { HPMHooks.source.clif.refine(fd, fail, index, val); } if( HPMHooks.count.HP_clif_refine_post ) { - void (*postHookFunc) (int *fd, int *fail, int *index, int *val); + void (*postHookFunc) (int fd, int fail, int index, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refine_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_refine_post[hIndex].func; - postHookFunc(&fd, &fail, &index, &val); + postHookFunc(fd, fail, index, val); } } return; @@ -11928,10 +11924,10 @@ void HP_clif_weather(int16 m) { HPMHooks.source.clif.weather(m); } if( HPMHooks.count.HP_clif_weather_post ) { - void (*postHookFunc) (int16 *m); + void (*postHookFunc) (int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_weather_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_weather_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -11939,11 +11935,11 @@ void HP_clif_weather(int16 m) { void HP_clif_specialeffect(struct block_list *bl, int type, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_specialeffect_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, int *type, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_specialeffect_pre[hIndex].func; - preHookFunc(bl, &type, &target); + preHookFunc(&bl, &type, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11954,10 +11950,10 @@ void HP_clif_specialeffect(struct block_list *bl, int type, enum send_target tar HPMHooks.source.clif.specialeffect(bl, type, target); } if( HPMHooks.count.HP_clif_specialeffect_post ) { - void (*postHookFunc) (struct block_list *bl, int *type, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, int type, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_specialeffect_post[hIndex].func; - postHookFunc(bl, &type, &target); + postHookFunc(bl, type, target); } } return; @@ -11965,11 +11961,11 @@ void HP_clif_specialeffect(struct block_list *bl, int type, enum send_target tar void HP_clif_specialeffect_single(struct block_list *bl, int type, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_specialeffect_single_pre ) { - void (*preHookFunc) (struct block_list *bl, int *type, int *fd); + void (*preHookFunc) (struct block_list **bl, int *type, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_specialeffect_single_pre[hIndex].func; - preHookFunc(bl, &type, &fd); + preHookFunc(&bl, &type, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -11980,10 +11976,10 @@ void HP_clif_specialeffect_single(struct block_list *bl, int type, int fd) { HPMHooks.source.clif.specialeffect_single(bl, type, fd); } if( HPMHooks.count.HP_clif_specialeffect_single_post ) { - void (*postHookFunc) (struct block_list *bl, int *type, int *fd); + void (*postHookFunc) (struct block_list *bl, int type, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_specialeffect_single_post[hIndex].func; - postHookFunc(bl, &type, &fd); + postHookFunc(bl, type, fd); } } return; @@ -11991,11 +11987,11 @@ void HP_clif_specialeffect_single(struct block_list *bl, int type, int fd) { void HP_clif_specialeffect_value(struct block_list *bl, int effect_id, int num, send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_specialeffect_value_pre ) { - void (*preHookFunc) (struct block_list *bl, int *effect_id, int *num, send_target *target); + void (*preHookFunc) (struct block_list **bl, int *effect_id, int *num, send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_value_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_specialeffect_value_pre[hIndex].func; - preHookFunc(bl, &effect_id, &num, &target); + preHookFunc(&bl, &effect_id, &num, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12006,10 +12002,10 @@ void HP_clif_specialeffect_value(struct block_list *bl, int effect_id, int num, HPMHooks.source.clif.specialeffect_value(bl, effect_id, num, target); } if( HPMHooks.count.HP_clif_specialeffect_value_post ) { - void (*postHookFunc) (struct block_list *bl, int *effect_id, int *num, send_target *target); + void (*postHookFunc) (struct block_list *bl, int effect_id, int num, send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_specialeffect_value_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_specialeffect_value_post[hIndex].func; - postHookFunc(bl, &effect_id, &num, &target); + postHookFunc(bl, effect_id, num, target); } } return; @@ -12017,11 +12013,11 @@ void HP_clif_specialeffect_value(struct block_list *bl, int effect_id, int num, void HP_clif_millenniumshield(struct block_list *bl, short shields) { int hIndex = 0; if( HPMHooks.count.HP_clif_millenniumshield_pre ) { - void (*preHookFunc) (struct block_list *bl, short *shields); + void (*preHookFunc) (struct block_list **bl, short *shields); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_millenniumshield_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_millenniumshield_pre[hIndex].func; - preHookFunc(bl, &shields); + preHookFunc(&bl, &shields); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12032,10 +12028,10 @@ void HP_clif_millenniumshield(struct block_list *bl, short shields) { HPMHooks.source.clif.millenniumshield(bl, shields); } if( HPMHooks.count.HP_clif_millenniumshield_post ) { - void (*postHookFunc) (struct block_list *bl, short *shields); + void (*postHookFunc) (struct block_list *bl, short shields); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_millenniumshield_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_millenniumshield_post[hIndex].func; - postHookFunc(bl, &shields); + postHookFunc(bl, shields); } } return; @@ -12043,11 +12039,11 @@ void HP_clif_millenniumshield(struct block_list *bl, short shields) { void HP_clif_spiritcharm(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_spiritcharm_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritcharm_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_spiritcharm_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12069,11 +12065,11 @@ void HP_clif_spiritcharm(struct map_session_data *sd) { void HP_clif_charm_single(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_charm_single_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_charm_single_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12084,10 +12080,10 @@ void HP_clif_charm_single(int fd, struct map_session_data *sd) { HPMHooks.source.clif.charm_single(fd, sd); } if( HPMHooks.count.HP_clif_charm_single_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_charm_single_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -12095,11 +12091,11 @@ void HP_clif_charm_single(int fd, struct map_session_data *sd) { void HP_clif_snap(struct block_list *bl, short x, short y) { int hIndex = 0; if( HPMHooks.count.HP_clif_snap_pre ) { - void (*preHookFunc) (struct block_list *bl, short *x, short *y); + void (*preHookFunc) (struct block_list **bl, short *x, short *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_snap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_snap_pre[hIndex].func; - preHookFunc(bl, &x, &y); + preHookFunc(&bl, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12110,10 +12106,10 @@ void HP_clif_snap(struct block_list *bl, short x, short y) { HPMHooks.source.clif.snap(bl, x, y); } if( HPMHooks.count.HP_clif_snap_post ) { - void (*postHookFunc) (struct block_list *bl, short *x, short *y); + void (*postHookFunc) (struct block_list *bl, short x, short y); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_snap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_snap_post[hIndex].func; - postHookFunc(bl, &x, &y); + postHookFunc(bl, x, y); } } return; @@ -12121,11 +12117,11 @@ void HP_clif_snap(struct block_list *bl, short x, short y) { void HP_clif_weather_check(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_weather_check_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_weather_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_weather_check_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12147,11 +12143,11 @@ void HP_clif_weather_check(struct map_session_data *sd) { void HP_clif_playBGM(struct map_session_data *sd, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_playBGM_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name); + void (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_playBGM_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_playBGM_pre[hIndex].func; - preHookFunc(sd, name); + preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12173,11 +12169,11 @@ void HP_clif_playBGM(struct map_session_data *sd, const char *name) { void HP_clif_soundeffect(struct map_session_data *sd, struct block_list *bl, const char *name, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_soundeffect_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, const char *name, int *type); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **bl, const char **name, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_soundeffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_soundeffect_pre[hIndex].func; - preHookFunc(sd, bl, name, &type); + preHookFunc(&sd, &bl, &name, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12188,10 +12184,10 @@ void HP_clif_soundeffect(struct map_session_data *sd, struct block_list *bl, con HPMHooks.source.clif.soundeffect(sd, bl, name, type); } if( HPMHooks.count.HP_clif_soundeffect_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct block_list *bl, const char *name, int *type); + void (*postHookFunc) (struct map_session_data *sd, struct block_list *bl, const char *name, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_soundeffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_soundeffect_post[hIndex].func; - postHookFunc(sd, bl, name, &type); + postHookFunc(sd, bl, name, type); } } return; @@ -12199,11 +12195,11 @@ void HP_clif_soundeffect(struct map_session_data *sd, struct block_list *bl, con void HP_clif_soundeffectall(struct block_list *bl, const char *name, int type, enum send_target coverage) { int hIndex = 0; if( HPMHooks.count.HP_clif_soundeffectall_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *name, int *type, enum send_target *coverage); + void (*preHookFunc) (struct block_list **bl, const char **name, int *type, enum send_target *coverage); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_soundeffectall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_soundeffectall_pre[hIndex].func; - preHookFunc(bl, name, &type, &coverage); + preHookFunc(&bl, &name, &type, &coverage); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12214,10 +12210,10 @@ void HP_clif_soundeffectall(struct block_list *bl, const char *name, int type, e HPMHooks.source.clif.soundeffectall(bl, name, type, coverage); } if( HPMHooks.count.HP_clif_soundeffectall_post ) { - void (*postHookFunc) (struct block_list *bl, const char *name, int *type, enum send_target *coverage); + void (*postHookFunc) (struct block_list *bl, const char *name, int type, enum send_target coverage); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_soundeffectall_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_soundeffectall_post[hIndex].func; - postHookFunc(bl, name, &type, &coverage); + postHookFunc(bl, name, type, coverage); } } return; @@ -12225,11 +12221,11 @@ void HP_clif_soundeffectall(struct block_list *bl, const char *name, int type, e void HP_clif_GlobalMessage(struct block_list *bl, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_clif_GlobalMessage_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *message); + void (*preHookFunc) (struct block_list **bl, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GlobalMessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_GlobalMessage_pre[hIndex].func; - preHookFunc(bl, message); + preHookFunc(&bl, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12251,11 +12247,11 @@ void HP_clif_GlobalMessage(struct block_list *bl, const char *message) { void HP_clif_createchat(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_createchat_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_createchat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_createchat_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12266,10 +12262,10 @@ void HP_clif_createchat(struct map_session_data *sd, int flag) { HPMHooks.source.clif.createchat(sd, flag); } if( HPMHooks.count.HP_clif_createchat_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_createchat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_createchat_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -12277,11 +12273,11 @@ void HP_clif_createchat(struct map_session_data *sd, int flag) { void HP_clif_dispchat(struct chat_data *cd, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_dispchat_pre ) { - void (*preHookFunc) (struct chat_data *cd, int *fd); + void (*preHookFunc) (struct chat_data **cd, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dispchat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_dispchat_pre[hIndex].func; - preHookFunc(cd, &fd); + preHookFunc(&cd, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12292,10 +12288,10 @@ void HP_clif_dispchat(struct chat_data *cd, int fd) { HPMHooks.source.clif.dispchat(cd, fd); } if( HPMHooks.count.HP_clif_dispchat_post ) { - void (*postHookFunc) (struct chat_data *cd, int *fd); + void (*postHookFunc) (struct chat_data *cd, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dispchat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_dispchat_post[hIndex].func; - postHookFunc(cd, &fd); + postHookFunc(cd, fd); } } return; @@ -12303,11 +12299,11 @@ void HP_clif_dispchat(struct chat_data *cd, int fd) { void HP_clif_joinchatfail(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_joinchatfail_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_joinchatfail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_joinchatfail_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12318,10 +12314,10 @@ void HP_clif_joinchatfail(struct map_session_data *sd, int flag) { HPMHooks.source.clif.joinchatfail(sd, flag); } if( HPMHooks.count.HP_clif_joinchatfail_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_joinchatfail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_joinchatfail_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -12329,11 +12325,11 @@ void HP_clif_joinchatfail(struct map_session_data *sd, int flag) { void HP_clif_joinchatok(struct map_session_data *sd, struct chat_data *cd) { int hIndex = 0; if( HPMHooks.count.HP_clif_joinchatok_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct chat_data *cd); + void (*preHookFunc) (struct map_session_data **sd, struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_joinchatok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_joinchatok_pre[hIndex].func; - preHookFunc(sd, cd); + preHookFunc(&sd, &cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12355,11 +12351,11 @@ void HP_clif_joinchatok(struct map_session_data *sd, struct chat_data *cd) { void HP_clif_addchat(struct chat_data *cd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_addchat_pre ) { - void (*preHookFunc) (struct chat_data *cd, struct map_session_data *sd); + void (*preHookFunc) (struct chat_data **cd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_addchat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_addchat_pre[hIndex].func; - preHookFunc(cd, sd); + preHookFunc(&cd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12381,11 +12377,11 @@ void HP_clif_addchat(struct chat_data *cd, struct map_session_data *sd) { void HP_clif_changechatowner(struct chat_data *cd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_changechatowner_pre ) { - void (*preHookFunc) (struct chat_data *cd, struct map_session_data *sd); + void (*preHookFunc) (struct chat_data **cd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changechatowner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changechatowner_pre[hIndex].func; - preHookFunc(cd, sd); + preHookFunc(&cd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12407,11 +12403,11 @@ void HP_clif_changechatowner(struct chat_data *cd, struct map_session_data *sd) void HP_clif_clearchat(struct chat_data *cd, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_clearchat_pre ) { - void (*preHookFunc) (struct chat_data *cd, int *fd); + void (*preHookFunc) (struct chat_data **cd, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearchat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_clearchat_pre[hIndex].func; - preHookFunc(cd, &fd); + preHookFunc(&cd, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12422,10 +12418,10 @@ void HP_clif_clearchat(struct chat_data *cd, int fd) { HPMHooks.source.clif.clearchat(cd, fd); } if( HPMHooks.count.HP_clif_clearchat_post ) { - void (*postHookFunc) (struct chat_data *cd, int *fd); + void (*postHookFunc) (struct chat_data *cd, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearchat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_clearchat_post[hIndex].func; - postHookFunc(cd, &fd); + postHookFunc(cd, fd); } } return; @@ -12433,11 +12429,11 @@ void HP_clif_clearchat(struct chat_data *cd, int fd) { void HP_clif_leavechat(struct chat_data *cd, struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_leavechat_pre ) { - void (*preHookFunc) (struct chat_data *cd, struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct chat_data **cd, struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_leavechat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_leavechat_pre[hIndex].func; - preHookFunc(cd, sd, &flag); + preHookFunc(&cd, &sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12448,10 +12444,10 @@ void HP_clif_leavechat(struct chat_data *cd, struct map_session_data *sd, bool f HPMHooks.source.clif.leavechat(cd, sd, flag); } if( HPMHooks.count.HP_clif_leavechat_post ) { - void (*postHookFunc) (struct chat_data *cd, struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct chat_data *cd, struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_leavechat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_leavechat_post[hIndex].func; - postHookFunc(cd, sd, &flag); + postHookFunc(cd, sd, flag); } } return; @@ -12459,11 +12455,11 @@ void HP_clif_leavechat(struct chat_data *cd, struct map_session_data *sd, bool f void HP_clif_changechatstatus(struct chat_data *cd) { int hIndex = 0; if( HPMHooks.count.HP_clif_changechatstatus_pre ) { - void (*preHookFunc) (struct chat_data *cd); + void (*preHookFunc) (struct chat_data **cd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_changechatstatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_changechatstatus_pre[hIndex].func; - preHookFunc(cd); + preHookFunc(&cd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12482,14 +12478,14 @@ void HP_clif_changechatstatus(struct chat_data *cd) { } return; } -void HP_clif_wis_message(int fd, const char *nick, const char *mes, size_t mes_len) { +void HP_clif_wis_message(int fd, const char *nick, const char *mes, int mes_len) { int hIndex = 0; if( HPMHooks.count.HP_clif_wis_message_pre ) { - void (*preHookFunc) (int *fd, const char *nick, const char *mes, size_t *mes_len); + void (*preHookFunc) (int *fd, const char **nick, const char **mes, int *mes_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wis_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_wis_message_pre[hIndex].func; - preHookFunc(&fd, nick, mes, &mes_len); + preHookFunc(&fd, &nick, &mes, &mes_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12500,10 +12496,10 @@ void HP_clif_wis_message(int fd, const char *nick, const char *mes, size_t mes_l HPMHooks.source.clif.wis_message(fd, nick, mes, mes_len); } if( HPMHooks.count.HP_clif_wis_message_post ) { - void (*postHookFunc) (int *fd, const char *nick, const char *mes, size_t *mes_len); + void (*postHookFunc) (int fd, const char *nick, const char *mes, int mes_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wis_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_wis_message_post[hIndex].func; - postHookFunc(&fd, nick, mes, &mes_len); + postHookFunc(fd, nick, mes, mes_len); } } return; @@ -12526,22 +12522,22 @@ void HP_clif_wis_end(int fd, int flag) { HPMHooks.source.clif.wis_end(fd, flag); } if( HPMHooks.count.HP_clif_wis_end_post ) { - void (*postHookFunc) (int *fd, int *flag); + void (*postHookFunc) (int fd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wis_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_wis_end_post[hIndex].func; - postHookFunc(&fd, &flag); + postHookFunc(fd, flag); } } return; } -void HP_clif_disp_message(struct block_list *src, const char *mes, size_t len, enum send_target target) { +void HP_clif_disp_message(struct block_list *src, const char *mes, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_disp_message_pre ) { - void (*preHookFunc) (struct block_list *src, const char *mes, size_t *len, enum send_target *target); + void (*preHookFunc) (struct block_list **src, const char **mes, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_disp_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_disp_message_pre[hIndex].func; - preHookFunc(src, mes, &len, &target); + preHookFunc(&src, &mes, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12549,25 +12545,25 @@ void HP_clif_disp_message(struct block_list *src, const char *mes, size_t len, e } } { - HPMHooks.source.clif.disp_message(src, mes, len, target); + HPMHooks.source.clif.disp_message(src, mes, target); } if( HPMHooks.count.HP_clif_disp_message_post ) { - void (*postHookFunc) (struct block_list *src, const char *mes, size_t *len, enum send_target *target); + void (*postHookFunc) (struct block_list *src, const char *mes, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_disp_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_disp_message_post[hIndex].func; - postHookFunc(src, mes, &len, &target); + postHookFunc(src, mes, target); } } return; } -void HP_clif_broadcast(struct block_list *bl, const char *mes, size_t len, int type, enum send_target target) { +void HP_clif_broadcast(struct block_list *bl, const char *mes, int len, int type, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_broadcast_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *mes, size_t *len, int *type, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, const char **mes, int *len, int *type, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_broadcast_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_broadcast_pre[hIndex].func; - preHookFunc(bl, mes, &len, &type, &target); + preHookFunc(&bl, &mes, &len, &type, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12578,22 +12574,22 @@ void HP_clif_broadcast(struct block_list *bl, const char *mes, size_t len, int t HPMHooks.source.clif.broadcast(bl, mes, len, type, target); } if( HPMHooks.count.HP_clif_broadcast_post ) { - void (*postHookFunc) (struct block_list *bl, const char *mes, size_t *len, int *type, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, const char *mes, int len, int type, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_broadcast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_broadcast_post[hIndex].func; - postHookFunc(bl, mes, &len, &type, &target); + postHookFunc(bl, mes, len, type, target); } } return; } -void HP_clif_broadcast2(struct block_list *bl, const char *mes, size_t len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY, enum send_target target) { +void HP_clif_broadcast2(struct block_list *bl, const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_broadcast2_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *mes, size_t *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY, enum send_target *target); + void (*preHookFunc) (struct block_list **bl, const char **mes, int *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_broadcast2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_broadcast2_pre[hIndex].func; - preHookFunc(bl, mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY, &target); + preHookFunc(&bl, &mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12604,10 +12600,10 @@ void HP_clif_broadcast2(struct block_list *bl, const char *mes, size_t len, unsi HPMHooks.source.clif.broadcast2(bl, mes, len, fontColor, fontType, fontSize, fontAlign, fontY, target); } if( HPMHooks.count.HP_clif_broadcast2_post ) { - void (*postHookFunc) (struct block_list *bl, const char *mes, size_t *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY, enum send_target *target); + void (*postHookFunc) (struct block_list *bl, const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_broadcast2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_broadcast2_post[hIndex].func; - postHookFunc(bl, mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY, &target); + postHookFunc(bl, mes, len, fontColor, fontType, fontSize, fontAlign, fontY, target); } } return; @@ -12615,11 +12611,11 @@ void HP_clif_broadcast2(struct block_list *bl, const char *mes, size_t len, unsi void HP_clif_messagecolor_self(int fd, uint32 color, const char *msg) { int hIndex = 0; if( HPMHooks.count.HP_clif_messagecolor_self_pre ) { - void (*preHookFunc) (int *fd, uint32 *color, const char *msg); + void (*preHookFunc) (int *fd, uint32 *color, const char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messagecolor_self_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_messagecolor_self_pre[hIndex].func; - preHookFunc(&fd, &color, msg); + preHookFunc(&fd, &color, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12630,10 +12626,10 @@ void HP_clif_messagecolor_self(int fd, uint32 color, const char *msg) { HPMHooks.source.clif.messagecolor_self(fd, color, msg); } if( HPMHooks.count.HP_clif_messagecolor_self_post ) { - void (*postHookFunc) (int *fd, uint32 *color, const char *msg); + void (*postHookFunc) (int fd, uint32 color, const char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messagecolor_self_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_messagecolor_self_post[hIndex].func; - postHookFunc(&fd, &color, msg); + postHookFunc(fd, color, msg); } } return; @@ -12641,11 +12637,11 @@ void HP_clif_messagecolor_self(int fd, uint32 color, const char *msg) { void HP_clif_messagecolor(struct block_list *bl, uint32 color, const char *msg) { int hIndex = 0; if( HPMHooks.count.HP_clif_messagecolor_pre ) { - void (*preHookFunc) (struct block_list *bl, uint32 *color, const char *msg); + void (*preHookFunc) (struct block_list **bl, uint32 *color, const char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messagecolor_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_messagecolor_pre[hIndex].func; - preHookFunc(bl, &color, msg); + preHookFunc(&bl, &color, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12656,10 +12652,10 @@ void HP_clif_messagecolor(struct block_list *bl, uint32 color, const char *msg) HPMHooks.source.clif.messagecolor(bl, color, msg); } if( HPMHooks.count.HP_clif_messagecolor_post ) { - void (*postHookFunc) (struct block_list *bl, uint32 *color, const char *msg); + void (*postHookFunc) (struct block_list *bl, uint32 color, const char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messagecolor_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_messagecolor_post[hIndex].func; - postHookFunc(bl, &color, msg); + postHookFunc(bl, color, msg); } } return; @@ -12667,11 +12663,11 @@ void HP_clif_messagecolor(struct block_list *bl, uint32 color, const char *msg) void HP_clif_disp_overhead(struct block_list *bl, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_disp_overhead_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *mes); + void (*preHookFunc) (struct block_list **bl, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_disp_overhead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_disp_overhead_pre[hIndex].func; - preHookFunc(bl, mes); + preHookFunc(&bl, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12693,11 +12689,11 @@ void HP_clif_disp_overhead(struct block_list *bl, const char *mes) { void HP_clif_msgtable(struct map_session_data *sd, unsigned short msg_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_msgtable_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *msg_id); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *msg_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_msgtable_pre[hIndex].func; - preHookFunc(sd, &msg_id); + preHookFunc(&sd, &msg_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12708,10 +12704,10 @@ void HP_clif_msgtable(struct map_session_data *sd, unsigned short msg_id) { HPMHooks.source.clif.msgtable(sd, msg_id); } if( HPMHooks.count.HP_clif_msgtable_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *msg_id); + void (*postHookFunc) (struct map_session_data *sd, unsigned short msg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_msgtable_post[hIndex].func; - postHookFunc(sd, &msg_id); + postHookFunc(sd, msg_id); } } return; @@ -12719,11 +12715,11 @@ void HP_clif_msgtable(struct map_session_data *sd, unsigned short msg_id) { void HP_clif_msgtable_num(struct map_session_data *sd, unsigned short msg_id, int value) { int hIndex = 0; if( HPMHooks.count.HP_clif_msgtable_num_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *msg_id, int *value); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *msg_id, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_msgtable_num_pre[hIndex].func; - preHookFunc(sd, &msg_id, &value); + preHookFunc(&sd, &msg_id, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12734,10 +12730,10 @@ void HP_clif_msgtable_num(struct map_session_data *sd, unsigned short msg_id, in HPMHooks.source.clif.msgtable_num(sd, msg_id, value); } if( HPMHooks.count.HP_clif_msgtable_num_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *msg_id, int *value); + void (*postHookFunc) (struct map_session_data *sd, unsigned short msg_id, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_msgtable_num_post[hIndex].func; - postHookFunc(sd, &msg_id, &value); + postHookFunc(sd, msg_id, value); } } return; @@ -12745,11 +12741,11 @@ void HP_clif_msgtable_num(struct map_session_data *sd, unsigned short msg_id, in void HP_clif_msgtable_skill(struct map_session_data *sd, uint16 skill_id, int msg_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_msgtable_skill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *msg_id); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, int *msg_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_skill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_msgtable_skill_pre[hIndex].func; - preHookFunc(sd, &skill_id, &msg_id); + preHookFunc(&sd, &skill_id, &msg_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12760,10 +12756,10 @@ void HP_clif_msgtable_skill(struct map_session_data *sd, uint16 skill_id, int ms HPMHooks.source.clif.msgtable_skill(sd, skill_id, msg_id); } if( HPMHooks.count.HP_clif_msgtable_skill_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *msg_id); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, int msg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_msgtable_skill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_msgtable_skill_post[hIndex].func; - postHookFunc(sd, &skill_id, &msg_id); + postHookFunc(sd, skill_id, msg_id); } } return; @@ -12771,11 +12767,11 @@ void HP_clif_msgtable_skill(struct map_session_data *sd, uint16 skill_id, int ms void HP_clif_message(const int fd, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_message_pre ) { - void (*preHookFunc) (const int *fd, const char *mes); + void (*preHookFunc) (const int *fd, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_message_pre[hIndex].func; - preHookFunc(&fd, mes); + preHookFunc(&fd, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12786,10 +12782,10 @@ void HP_clif_message(const int fd, const char *mes) { HPMHooks.source.clif.message(fd, mes); } if( HPMHooks.count.HP_clif_message_post ) { - void (*postHookFunc) (const int *fd, const char *mes); + void (*postHookFunc) (const int fd, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_message_post[hIndex].func; - postHookFunc(&fd, mes); + postHookFunc(fd, mes); } } return; @@ -12797,11 +12793,11 @@ void HP_clif_message(const int fd, const char *mes) { void HP_clif_messageln(const int fd, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_messageln_pre ) { - void (*preHookFunc) (const int *fd, const char *mes); + void (*preHookFunc) (const int *fd, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messageln_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_messageln_pre[hIndex].func; - preHookFunc(&fd, mes); + preHookFunc(&fd, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12812,23 +12808,50 @@ void HP_clif_messageln(const int fd, const char *mes) { HPMHooks.source.clif.messageln(fd, mes); } if( HPMHooks.count.HP_clif_messageln_post ) { - void (*postHookFunc) (const int *fd, const char *mes); + void (*postHookFunc) (const int fd, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_messageln_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_messageln_post[hIndex].func; - postHookFunc(&fd, mes); + postHookFunc(fd, mes); } } return; } -bool HP_clif_process_message(struct map_session_data *sd, int format, const char **name_, size_t *namelen_, const char **message_, size_t *messagelen_) { +const char* HP_clif_process_chat_message(struct map_session_data *sd, const struct packet_chat_message *packet, char *out_buf, int out_buflen) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_clif_process_chat_message_pre ) { + const char* (*preHookFunc) (struct map_session_data **sd, const struct packet_chat_message **packet, char **out_buf, int *out_buflen); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_chat_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_process_chat_message_pre[hIndex].func; + retVal___ = preHookFunc(&sd, &packet, &out_buf, &out_buflen); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.clif.process_chat_message(sd, packet, out_buf, out_buflen); + } + if( HPMHooks.count.HP_clif_process_chat_message_post ) { + const char* (*postHookFunc) (const char* retVal___, struct map_session_data *sd, const struct packet_chat_message *packet, char *out_buf, int out_buflen); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_chat_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_process_chat_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, packet, out_buf, out_buflen); + } + } + return retVal___; +} +bool HP_clif_process_whisper_message(struct map_session_data *sd, const struct packet_whisper_message *packet, char *out_name, char *out_message, int out_messagelen) { int hIndex = 0; bool retVal___ = false; - if( HPMHooks.count.HP_clif_process_message_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *format, const char **name_, size_t *namelen_, const char **message_, size_t *messagelen_); + if( HPMHooks.count.HP_clif_process_whisper_message_pre ) { + bool (*preHookFunc) (struct map_session_data **sd, const struct packet_whisper_message **packet, char **out_name, char **out_message, int *out_messagelen); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_message_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_clif_process_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, &format, name_, namelen_, message_, messagelen_); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_whisper_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_process_whisper_message_pre[hIndex].func; + retVal___ = preHookFunc(&sd, &packet, &out_name, &out_message, &out_messagelen); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12836,13 +12859,13 @@ bool HP_clif_process_message(struct map_session_data *sd, int format, const char } } { - retVal___ = HPMHooks.source.clif.process_message(sd, format, name_, namelen_, message_, messagelen_); + retVal___ = HPMHooks.source.clif.process_whisper_message(sd, packet, out_name, out_message, out_messagelen); } - if( HPMHooks.count.HP_clif_process_message_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *format, const char **name_, size_t *namelen_, const char **message_, size_t *messagelen_); - for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_message_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_clif_process_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &format, name_, namelen_, message_, messagelen_); + if( HPMHooks.count.HP_clif_process_whisper_message_post ) { + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const struct packet_whisper_message *packet, char *out_name, char *out_message, int out_messagelen); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_whisper_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_process_whisper_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, packet, out_name, out_message, out_messagelen); } } return retVal___; @@ -12850,11 +12873,11 @@ bool HP_clif_process_message(struct map_session_data *sd, int format, const char void HP_clif_wisexin(struct map_session_data *sd, int type, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_wisexin_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *type, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wisexin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_wisexin_pre[hIndex].func; - preHookFunc(sd, &type, &flag); + preHookFunc(&sd, &type, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12865,10 +12888,10 @@ void HP_clif_wisexin(struct map_session_data *sd, int type, int flag) { HPMHooks.source.clif.wisexin(sd, type, flag); } if( HPMHooks.count.HP_clif_wisexin_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wisexin_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_wisexin_post[hIndex].func; - postHookFunc(sd, &type, &flag); + postHookFunc(sd, type, flag); } } return; @@ -12876,11 +12899,11 @@ void HP_clif_wisexin(struct map_session_data *sd, int type, int flag) { void HP_clif_wisall(struct map_session_data *sd, int type, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_wisall_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *type, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wisall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_wisall_pre[hIndex].func; - preHookFunc(sd, &type, &flag); + preHookFunc(&sd, &type, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12891,10 +12914,10 @@ void HP_clif_wisall(struct map_session_data *sd, int type, int flag) { HPMHooks.source.clif.wisall(sd, type, flag); } if( HPMHooks.count.HP_clif_wisall_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_wisall_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_wisall_post[hIndex].func; - postHookFunc(sd, &type, &flag); + postHookFunc(sd, type, flag); } } return; @@ -12902,11 +12925,11 @@ void HP_clif_wisall(struct map_session_data *sd, int type, int flag) { void HP_clif_PMIgnoreList(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PMIgnoreList_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PMIgnoreList_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PMIgnoreList_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12928,11 +12951,11 @@ void HP_clif_PMIgnoreList(struct map_session_data *sd) { 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); + void (*preHookFunc) (struct block_list **bl, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ShowScript_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_ShowScript_pre[hIndex].func; - preHookFunc(bl, message); + preHookFunc(&bl, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12954,11 +12977,11 @@ void HP_clif_ShowScript(struct block_list *bl, const char *message) { void HP_clif_traderequest(struct map_session_data *sd, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_traderequest_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name); + void (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_traderequest_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_traderequest_pre[hIndex].func; - preHookFunc(sd, name); + preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12980,11 +13003,11 @@ void HP_clif_traderequest(struct map_session_data *sd, const char *name) { void HP_clif_tradestart(struct map_session_data *sd, uint8 type) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradestart_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint8 *type); + void (*preHookFunc) (struct map_session_data **sd, uint8 *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradestart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradestart_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -12995,10 +13018,10 @@ void HP_clif_tradestart(struct map_session_data *sd, uint8 type) { HPMHooks.source.clif.tradestart(sd, type); } if( HPMHooks.count.HP_clif_tradestart_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint8 *type); + void (*postHookFunc) (struct map_session_data *sd, uint8 type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradestart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_tradestart_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -13006,11 +13029,11 @@ void HP_clif_tradestart(struct map_session_data *sd, uint8 type) { void HP_clif_tradeadditem(struct map_session_data *sd, struct map_session_data *tsd, int index, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradeadditem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, int *index, int *amount); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradeadditem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradeadditem_pre[hIndex].func; - preHookFunc(sd, tsd, &index, &amount); + preHookFunc(&sd, &tsd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13021,10 +13044,10 @@ void HP_clif_tradeadditem(struct map_session_data *sd, struct map_session_data * HPMHooks.source.clif.tradeadditem(sd, tsd, index, amount); } if( HPMHooks.count.HP_clif_tradeadditem_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, int *index, int *amount); + void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradeadditem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_tradeadditem_post[hIndex].func; - postHookFunc(sd, tsd, &index, &amount); + postHookFunc(sd, tsd, index, amount); } } return; @@ -13032,11 +13055,11 @@ void HP_clif_tradeadditem(struct map_session_data *sd, struct map_session_data * void HP_clif_tradeitemok(struct map_session_data *sd, int index, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradeitemok_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *index, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradeitemok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradeitemok_pre[hIndex].func; - preHookFunc(sd, &index, &fail); + preHookFunc(&sd, &index, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13047,10 +13070,10 @@ void HP_clif_tradeitemok(struct map_session_data *sd, int index, int fail) { HPMHooks.source.clif.tradeitemok(sd, index, fail); } if( HPMHooks.count.HP_clif_tradeitemok_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int index, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradeitemok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_tradeitemok_post[hIndex].func; - postHookFunc(sd, &index, &fail); + postHookFunc(sd, index, fail); } } return; @@ -13058,11 +13081,11 @@ void HP_clif_tradeitemok(struct map_session_data *sd, int index, int fail) { void HP_clif_tradedeal_lock(struct map_session_data *sd, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradedeal_lock_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradedeal_lock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradedeal_lock_pre[hIndex].func; - preHookFunc(sd, &fail); + preHookFunc(&sd, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13073,10 +13096,10 @@ void HP_clif_tradedeal_lock(struct map_session_data *sd, int fail) { HPMHooks.source.clif.tradedeal_lock(sd, fail); } if( HPMHooks.count.HP_clif_tradedeal_lock_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradedeal_lock_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_tradedeal_lock_post[hIndex].func; - postHookFunc(sd, &fail); + postHookFunc(sd, fail); } } return; @@ -13084,11 +13107,11 @@ void HP_clif_tradedeal_lock(struct map_session_data *sd, int fail) { void HP_clif_tradecancelled(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradecancelled_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradecancelled_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradecancelled_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13110,11 +13133,11 @@ void HP_clif_tradecancelled(struct map_session_data *sd) { void HP_clif_tradecompleted(struct map_session_data *sd, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradecompleted_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradecompleted_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradecompleted_pre[hIndex].func; - preHookFunc(sd, &fail); + preHookFunc(&sd, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13125,10 +13148,10 @@ void HP_clif_tradecompleted(struct map_session_data *sd, int fail) { HPMHooks.source.clif.tradecompleted(sd, fail); } if( HPMHooks.count.HP_clif_tradecompleted_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradecompleted_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_tradecompleted_post[hIndex].func; - postHookFunc(sd, &fail); + postHookFunc(sd, fail); } } return; @@ -13136,11 +13159,11 @@ void HP_clif_tradecompleted(struct map_session_data *sd, int fail) { void HP_clif_tradeundo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_tradeundo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_tradeundo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_tradeundo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13162,11 +13185,11 @@ void HP_clif_tradeundo(struct map_session_data *sd) { void HP_clif_openvendingreq(struct map_session_data *sd, int num) { int hIndex = 0; if( HPMHooks.count.HP_clif_openvendingreq_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *num); + void (*preHookFunc) (struct map_session_data **sd, int *num); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openvendingreq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_openvendingreq_pre[hIndex].func; - preHookFunc(sd, &num); + preHookFunc(&sd, &num); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13177,10 +13200,10 @@ void HP_clif_openvendingreq(struct map_session_data *sd, int num) { HPMHooks.source.clif.openvendingreq(sd, num); } if( HPMHooks.count.HP_clif_openvendingreq_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *num); + void (*postHookFunc) (struct map_session_data *sd, int num); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openvendingreq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_openvendingreq_post[hIndex].func; - postHookFunc(sd, &num); + postHookFunc(sd, num); } } return; @@ -13188,11 +13211,11 @@ void HP_clif_openvendingreq(struct map_session_data *sd, int num) { void HP_clif_showvendingboard(struct block_list *bl, const char *message, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_showvendingboard_pre ) { - void (*preHookFunc) (struct block_list *bl, const char *message, int *fd); + void (*preHookFunc) (struct block_list **bl, const char **message, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_showvendingboard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_showvendingboard_pre[hIndex].func; - preHookFunc(bl, message, &fd); + preHookFunc(&bl, &message, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13203,10 +13226,10 @@ void HP_clif_showvendingboard(struct block_list *bl, const char *message, int fd HPMHooks.source.clif.showvendingboard(bl, message, fd); } if( HPMHooks.count.HP_clif_showvendingboard_post ) { - void (*postHookFunc) (struct block_list *bl, const char *message, int *fd); + void (*postHookFunc) (struct block_list *bl, const char *message, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_showvendingboard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_showvendingboard_post[hIndex].func; - postHookFunc(bl, message, &fd); + postHookFunc(bl, message, fd); } } return; @@ -13214,11 +13237,11 @@ void HP_clif_showvendingboard(struct block_list *bl, const char *message, int fd void HP_clif_closevendingboard(struct block_list *bl, int fd) { int hIndex = 0; if( HPMHooks.count.HP_clif_closevendingboard_pre ) { - void (*preHookFunc) (struct block_list *bl, int *fd); + void (*preHookFunc) (struct block_list **bl, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_closevendingboard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_closevendingboard_pre[hIndex].func; - preHookFunc(bl, &fd); + preHookFunc(&bl, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13229,10 +13252,10 @@ void HP_clif_closevendingboard(struct block_list *bl, int fd) { HPMHooks.source.clif.closevendingboard(bl, fd); } if( HPMHooks.count.HP_clif_closevendingboard_post ) { - void (*postHookFunc) (struct block_list *bl, int *fd); + void (*postHookFunc) (struct block_list *bl, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_closevendingboard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_closevendingboard_post[hIndex].func; - postHookFunc(bl, &fd); + postHookFunc(bl, fd); } } return; @@ -13240,11 +13263,11 @@ void HP_clif_closevendingboard(struct block_list *bl, int fd) { void HP_clif_vendinglist(struct map_session_data *sd, unsigned int id, struct s_vending *vending_list) { int hIndex = 0; if( HPMHooks.count.HP_clif_vendinglist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *id, struct s_vending *vending_list); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *id, struct s_vending **vending_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_vendinglist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_vendinglist_pre[hIndex].func; - preHookFunc(sd, &id, vending_list); + preHookFunc(&sd, &id, &vending_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13255,10 +13278,10 @@ void HP_clif_vendinglist(struct map_session_data *sd, unsigned int id, struct s_ HPMHooks.source.clif.vendinglist(sd, id, vending_list); } if( HPMHooks.count.HP_clif_vendinglist_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *id, struct s_vending *vending_list); + void (*postHookFunc) (struct map_session_data *sd, unsigned int id, struct s_vending *vending_list); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_vendinglist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_vendinglist_post[hIndex].func; - postHookFunc(sd, &id, vending_list); + postHookFunc(sd, id, vending_list); } } return; @@ -13266,11 +13289,11 @@ void HP_clif_vendinglist(struct map_session_data *sd, unsigned int id, struct s_ void HP_clif_buyvending(struct map_session_data *sd, int index, int amount, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyvending_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index, int *amount, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *index, int *amount, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyvending_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyvending_pre[hIndex].func; - preHookFunc(sd, &index, &amount, &fail); + preHookFunc(&sd, &index, &amount, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13281,10 +13304,10 @@ void HP_clif_buyvending(struct map_session_data *sd, int index, int amount, int HPMHooks.source.clif.buyvending(sd, index, amount, fail); } if( HPMHooks.count.HP_clif_buyvending_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index, int *amount, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int index, int amount, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyvending_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyvending_post[hIndex].func; - postHookFunc(sd, &index, &amount, &fail); + postHookFunc(sd, index, amount, fail); } } return; @@ -13292,11 +13315,11 @@ void HP_clif_buyvending(struct map_session_data *sd, int index, int amount, int void HP_clif_openvending(struct map_session_data *sd, int id, struct s_vending *vending_list) { int hIndex = 0; if( HPMHooks.count.HP_clif_openvending_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *id, struct s_vending *vending_list); + void (*preHookFunc) (struct map_session_data **sd, int *id, struct s_vending **vending_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openvending_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_openvending_pre[hIndex].func; - preHookFunc(sd, &id, vending_list); + preHookFunc(&sd, &id, &vending_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13307,10 +13330,10 @@ void HP_clif_openvending(struct map_session_data *sd, int id, struct s_vending * HPMHooks.source.clif.openvending(sd, id, vending_list); } if( HPMHooks.count.HP_clif_openvending_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *id, struct s_vending *vending_list); + void (*postHookFunc) (struct map_session_data *sd, int id, struct s_vending *vending_list); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openvending_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_openvending_post[hIndex].func; - postHookFunc(sd, &id, vending_list); + postHookFunc(sd, id, vending_list); } } return; @@ -13318,11 +13341,11 @@ void HP_clif_openvending(struct map_session_data *sd, int id, struct s_vending * void HP_clif_vendingreport(struct map_session_data *sd, int index, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_vendingreport_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + void (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_vendingreport_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_vendingreport_pre[hIndex].func; - preHookFunc(sd, &index, &amount); + preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13333,10 +13356,10 @@ void HP_clif_vendingreport(struct map_session_data *sd, int index, int amount) { HPMHooks.source.clif.vendingreport(sd, index, amount); } if( HPMHooks.count.HP_clif_vendingreport_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index, int *amount); + void (*postHookFunc) (struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_vendingreport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_vendingreport_post[hIndex].func; - postHookFunc(sd, &index, &amount); + postHookFunc(sd, index, amount); } } return; @@ -13344,11 +13367,11 @@ void HP_clif_vendingreport(struct map_session_data *sd, int index, int amount) { void HP_clif_storagelist(struct map_session_data *sd, struct item *items, int items_length) { int hIndex = 0; if( HPMHooks.count.HP_clif_storagelist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item *items, int *items_length); + void (*preHookFunc) (struct map_session_data **sd, struct item **items, int *items_length); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storagelist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_storagelist_pre[hIndex].func; - preHookFunc(sd, items, &items_length); + preHookFunc(&sd, &items, &items_length); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13359,10 +13382,10 @@ void HP_clif_storagelist(struct map_session_data *sd, struct item *items, int it HPMHooks.source.clif.storagelist(sd, items, items_length); } if( HPMHooks.count.HP_clif_storagelist_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item *items, int *items_length); + void (*postHookFunc) (struct map_session_data *sd, struct item *items, int items_length); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storagelist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_storagelist_post[hIndex].func; - postHookFunc(sd, items, &items_length); + postHookFunc(sd, items, items_length); } } return; @@ -13370,11 +13393,11 @@ void HP_clif_storagelist(struct map_session_data *sd, struct item *items, int it void HP_clif_updatestorageamount(struct map_session_data *sd, int amount, int max_amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_updatestorageamount_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *amount, int *max_amount); + void (*preHookFunc) (struct map_session_data **sd, int *amount, int *max_amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_updatestorageamount_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_updatestorageamount_pre[hIndex].func; - preHookFunc(sd, &amount, &max_amount); + preHookFunc(&sd, &amount, &max_amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13385,10 +13408,10 @@ void HP_clif_updatestorageamount(struct map_session_data *sd, int amount, int ma HPMHooks.source.clif.updatestorageamount(sd, amount, max_amount); } if( HPMHooks.count.HP_clif_updatestorageamount_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *amount, int *max_amount); + void (*postHookFunc) (struct map_session_data *sd, int amount, int max_amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_updatestorageamount_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_updatestorageamount_post[hIndex].func; - postHookFunc(sd, &amount, &max_amount); + postHookFunc(sd, amount, max_amount); } } return; @@ -13396,11 +13419,11 @@ void HP_clif_updatestorageamount(struct map_session_data *sd, int amount, int ma void HP_clif_storageitemadded(struct map_session_data *sd, struct item *i, int index, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_storageitemadded_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item *i, int *index, int *amount); + void (*preHookFunc) (struct map_session_data **sd, struct item **i, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storageitemadded_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_storageitemadded_pre[hIndex].func; - preHookFunc(sd, i, &index, &amount); + preHookFunc(&sd, &i, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13411,10 +13434,10 @@ void HP_clif_storageitemadded(struct map_session_data *sd, struct item *i, int i HPMHooks.source.clif.storageitemadded(sd, i, index, amount); } if( HPMHooks.count.HP_clif_storageitemadded_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item *i, int *index, int *amount); + void (*postHookFunc) (struct map_session_data *sd, struct item *i, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storageitemadded_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_storageitemadded_post[hIndex].func; - postHookFunc(sd, i, &index, &amount); + postHookFunc(sd, i, index, amount); } } return; @@ -13422,11 +13445,11 @@ void HP_clif_storageitemadded(struct map_session_data *sd, struct item *i, int i void HP_clif_storageitemremoved(struct map_session_data *sd, int index, int amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_storageitemremoved_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + void (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storageitemremoved_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_storageitemremoved_pre[hIndex].func; - preHookFunc(sd, &index, &amount); + preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13437,10 +13460,10 @@ void HP_clif_storageitemremoved(struct map_session_data *sd, int index, int amou HPMHooks.source.clif.storageitemremoved(sd, index, amount); } if( HPMHooks.count.HP_clif_storageitemremoved_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index, int *amount); + void (*postHookFunc) (struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storageitemremoved_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_storageitemremoved_post[hIndex].func; - postHookFunc(sd, &index, &amount); + postHookFunc(sd, index, amount); } } return; @@ -13448,11 +13471,11 @@ void HP_clif_storageitemremoved(struct map_session_data *sd, int index, int amou void HP_clif_storageclose(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_storageclose_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_storageclose_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_storageclose_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13474,11 +13497,11 @@ void HP_clif_storageclose(struct map_session_data *sd) { void HP_clif_skillinfoblock(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillinfoblock_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillinfoblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillinfoblock_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13500,11 +13523,11 @@ void HP_clif_skillinfoblock(struct map_session_data *sd) { void HP_clif_skillup(struct map_session_data *sd, uint16 skill_id, int skill_lv, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillup_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *skill_lv, int *flag); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, int *skill_lv, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillup_pre[hIndex].func; - preHookFunc(sd, &skill_id, &skill_lv, &flag); + preHookFunc(&sd, &skill_id, &skill_lv, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13515,10 +13538,10 @@ void HP_clif_skillup(struct map_session_data *sd, uint16 skill_id, int skill_lv, HPMHooks.source.clif.skillup(sd, skill_id, skill_lv, flag); } if( HPMHooks.count.HP_clif_skillup_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *skill_lv, int *flag); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, int skill_lv, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skillup_post[hIndex].func; - postHookFunc(sd, &skill_id, &skill_lv, &flag); + postHookFunc(sd, skill_id, skill_lv, flag); } } return; @@ -13526,11 +13549,11 @@ void HP_clif_skillup(struct map_session_data *sd, uint16 skill_id, int skill_lv, void HP_clif_skillinfo(struct map_session_data *sd, int skill_id, int inf) { int hIndex = 0; if( HPMHooks.count.HP_clif_skillinfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *skill_id, int *inf); + void (*preHookFunc) (struct map_session_data **sd, int *skill_id, int *inf); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_skillinfo_pre[hIndex].func; - preHookFunc(sd, &skill_id, &inf); + preHookFunc(&sd, &skill_id, &inf); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13541,10 +13564,10 @@ void HP_clif_skillinfo(struct map_session_data *sd, int skill_id, int inf) { HPMHooks.source.clif.skillinfo(sd, skill_id, inf); } if( HPMHooks.count.HP_clif_skillinfo_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *skill_id, int *inf); + void (*postHookFunc) (struct map_session_data *sd, int skill_id, int inf); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skillinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_skillinfo_post[hIndex].func; - postHookFunc(sd, &skill_id, &inf); + postHookFunc(sd, skill_id, inf); } } return; @@ -13552,11 +13575,11 @@ void HP_clif_skillinfo(struct map_session_data *sd, int skill_id, int inf) { void HP_clif_addskill(struct map_session_data *sd, int id) { int hIndex = 0; if( HPMHooks.count.HP_clif_addskill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *id); + void (*preHookFunc) (struct map_session_data **sd, int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_addskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_addskill_pre[hIndex].func; - preHookFunc(sd, &id); + preHookFunc(&sd, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13567,10 +13590,10 @@ void HP_clif_addskill(struct map_session_data *sd, int id) { HPMHooks.source.clif.addskill(sd, id); } if( HPMHooks.count.HP_clif_addskill_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *id); + void (*postHookFunc) (struct map_session_data *sd, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_addskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_addskill_post[hIndex].func; - postHookFunc(sd, &id); + postHookFunc(sd, id); } } return; @@ -13578,11 +13601,11 @@ void HP_clif_addskill(struct map_session_data *sd, int id) { void HP_clif_deleteskill(struct map_session_data *sd, int id) { int hIndex = 0; if( HPMHooks.count.HP_clif_deleteskill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *id); + void (*preHookFunc) (struct map_session_data **sd, int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_deleteskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_deleteskill_pre[hIndex].func; - preHookFunc(sd, &id); + preHookFunc(&sd, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13593,10 +13616,10 @@ void HP_clif_deleteskill(struct map_session_data *sd, int id) { HPMHooks.source.clif.deleteskill(sd, id); } if( HPMHooks.count.HP_clif_deleteskill_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *id); + void (*postHookFunc) (struct map_session_data *sd, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_deleteskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_deleteskill_post[hIndex].func; - postHookFunc(sd, &id); + postHookFunc(sd, id); } } return; @@ -13604,11 +13627,11 @@ void HP_clif_deleteskill(struct map_session_data *sd, int id) { void HP_clif_party_created(struct map_session_data *sd, int result) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_created_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *result); + void (*preHookFunc) (struct map_session_data **sd, int *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_created_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_created_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13619,10 +13642,10 @@ void HP_clif_party_created(struct map_session_data *sd, int result) { HPMHooks.source.clif.party_created(sd, result); } if( HPMHooks.count.HP_clif_party_created_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *result); + void (*postHookFunc) (struct map_session_data *sd, int result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_created_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_created_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -13630,11 +13653,11 @@ void HP_clif_party_created(struct map_session_data *sd, int result) { void HP_clif_party_member_info(struct party_data *p, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_member_info_pre ) { - void (*preHookFunc) (struct party_data *p, struct map_session_data *sd); + void (*preHookFunc) (struct party_data **p, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_member_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_member_info_pre[hIndex].func; - preHookFunc(p, sd); + preHookFunc(&p, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13656,11 +13679,11 @@ void HP_clif_party_member_info(struct party_data *p, struct map_session_data *sd void HP_clif_party_info(struct party_data *p, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_info_pre ) { - void (*preHookFunc) (struct party_data *p, struct map_session_data *sd); + void (*preHookFunc) (struct party_data **p, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_info_pre[hIndex].func; - preHookFunc(p, sd); + preHookFunc(&p, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13682,11 +13705,11 @@ void HP_clif_party_info(struct party_data *p, struct map_session_data *sd) { void HP_clif_party_invite(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_invite_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_invite_pre[hIndex].func; - preHookFunc(sd, tsd); + preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13708,11 +13731,11 @@ void HP_clif_party_invite(struct map_session_data *sd, struct map_session_data * void HP_clif_party_inviteack(struct map_session_data *sd, const char *nick, int result) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_inviteack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *nick, int *result); + void (*preHookFunc) (struct map_session_data **sd, const char **nick, int *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_inviteack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_inviteack_pre[hIndex].func; - preHookFunc(sd, nick, &result); + preHookFunc(&sd, &nick, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13723,10 +13746,10 @@ void HP_clif_party_inviteack(struct map_session_data *sd, const char *nick, int HPMHooks.source.clif.party_inviteack(sd, nick, result); } if( HPMHooks.count.HP_clif_party_inviteack_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *nick, int *result); + void (*postHookFunc) (struct map_session_data *sd, const char *nick, int result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_inviteack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_inviteack_post[hIndex].func; - postHookFunc(sd, nick, &result); + postHookFunc(sd, nick, result); } } return; @@ -13734,11 +13757,11 @@ void HP_clif_party_inviteack(struct map_session_data *sd, const char *nick, int void HP_clif_party_option(struct party_data *p, struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_option_pre ) { - void (*preHookFunc) (struct party_data *p, struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct party_data **p, struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_option_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_option_pre[hIndex].func; - preHookFunc(p, sd, &flag); + preHookFunc(&p, &sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13749,10 +13772,10 @@ void HP_clif_party_option(struct party_data *p, struct map_session_data *sd, int HPMHooks.source.clif.party_option(p, sd, flag); } if( HPMHooks.count.HP_clif_party_option_post ) { - void (*postHookFunc) (struct party_data *p, struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct party_data *p, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_option_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_option_post[hIndex].func; - postHookFunc(p, sd, &flag); + postHookFunc(p, sd, flag); } } return; @@ -13760,11 +13783,11 @@ void HP_clif_party_option(struct party_data *p, struct map_session_data *sd, int void HP_clif_party_withdraw(struct party_data *p, struct map_session_data *sd, int account_id, const char *name, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_withdraw_pre ) { - void (*preHookFunc) (struct party_data *p, struct map_session_data *sd, int *account_id, const char *name, int *flag); + void (*preHookFunc) (struct party_data **p, struct map_session_data **sd, int *account_id, const char **name, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_withdraw_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_withdraw_pre[hIndex].func; - preHookFunc(p, sd, &account_id, name, &flag); + preHookFunc(&p, &sd, &account_id, &name, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13775,10 +13798,10 @@ void HP_clif_party_withdraw(struct party_data *p, struct map_session_data *sd, i HPMHooks.source.clif.party_withdraw(p, sd, account_id, name, flag); } if( HPMHooks.count.HP_clif_party_withdraw_post ) { - void (*postHookFunc) (struct party_data *p, struct map_session_data *sd, int *account_id, const char *name, int *flag); + void (*postHookFunc) (struct party_data *p, struct map_session_data *sd, int account_id, const char *name, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_withdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_withdraw_post[hIndex].func; - postHookFunc(p, sd, &account_id, name, &flag); + postHookFunc(p, sd, account_id, name, flag); } } return; @@ -13786,11 +13809,11 @@ void HP_clif_party_withdraw(struct party_data *p, struct map_session_data *sd, i void HP_clif_party_message(struct party_data *p, int account_id, const char *mes, int len) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_message_pre ) { - void (*preHookFunc) (struct party_data *p, int *account_id, const char *mes, int *len); + void (*preHookFunc) (struct party_data **p, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_message_pre[hIndex].func; - preHookFunc(p, &account_id, mes, &len); + preHookFunc(&p, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13801,10 +13824,10 @@ void HP_clif_party_message(struct party_data *p, int account_id, const char *mes HPMHooks.source.clif.party_message(p, account_id, mes, len); } if( HPMHooks.count.HP_clif_party_message_post ) { - void (*postHookFunc) (struct party_data *p, int *account_id, const char *mes, int *len); + void (*postHookFunc) (struct party_data *p, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_message_post[hIndex].func; - postHookFunc(p, &account_id, mes, &len); + postHookFunc(p, account_id, mes, len); } } return; @@ -13812,11 +13835,11 @@ void HP_clif_party_message(struct party_data *p, int account_id, const char *mes void HP_clif_party_xy(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_xy_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_xy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_xy_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13838,11 +13861,11 @@ void HP_clif_party_xy(struct map_session_data *sd) { void HP_clif_party_xy_single(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_xy_single_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_xy_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_xy_single_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13853,10 +13876,10 @@ void HP_clif_party_xy_single(int fd, struct map_session_data *sd) { HPMHooks.source.clif.party_xy_single(fd, sd); } if( HPMHooks.count.HP_clif_party_xy_single_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_xy_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_party_xy_single_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -13864,11 +13887,11 @@ void HP_clif_party_xy_single(int fd, struct map_session_data *sd) { void HP_clif_party_hp(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_hp_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_hp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_hp_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13890,11 +13913,11 @@ void HP_clif_party_hp(struct map_session_data *sd) { void HP_clif_party_xy_remove(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_xy_remove_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_xy_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_xy_remove_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13916,11 +13939,11 @@ void HP_clif_party_xy_remove(struct map_session_data *sd) { void HP_clif_party_show_picker(struct map_session_data *sd, struct item *item_data) { int hIndex = 0; if( HPMHooks.count.HP_clif_party_show_picker_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item *item_data); + void (*preHookFunc) (struct map_session_data **sd, struct item **item_data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_party_show_picker_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_party_show_picker_pre[hIndex].func; - preHookFunc(sd, item_data); + preHookFunc(&sd, &item_data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13942,11 +13965,11 @@ void HP_clif_party_show_picker(struct map_session_data *sd, struct item *item_da void HP_clif_partyinvitationstate(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_partyinvitationstate_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_partyinvitationstate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_partyinvitationstate_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13968,11 +13991,11 @@ void HP_clif_partyinvitationstate(struct map_session_data *sd) { void HP_clif_PartyLeaderChanged(struct map_session_data *sd, int prev_leader_aid, int new_leader_aid) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyLeaderChanged_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *prev_leader_aid, int *new_leader_aid); + void (*preHookFunc) (struct map_session_data **sd, int *prev_leader_aid, int *new_leader_aid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyLeaderChanged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyLeaderChanged_pre[hIndex].func; - preHookFunc(sd, &prev_leader_aid, &new_leader_aid); + preHookFunc(&sd, &prev_leader_aid, &new_leader_aid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -13983,10 +14006,10 @@ void HP_clif_PartyLeaderChanged(struct map_session_data *sd, int prev_leader_aid HPMHooks.source.clif.PartyLeaderChanged(sd, prev_leader_aid, new_leader_aid); } if( HPMHooks.count.HP_clif_PartyLeaderChanged_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *prev_leader_aid, int *new_leader_aid); + void (*postHookFunc) (struct map_session_data *sd, int prev_leader_aid, int new_leader_aid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyLeaderChanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyLeaderChanged_post[hIndex].func; - postHookFunc(sd, &prev_leader_aid, &new_leader_aid); + postHookFunc(sd, prev_leader_aid, new_leader_aid); } } return; @@ -13994,11 +14017,11 @@ void HP_clif_PartyLeaderChanged(struct map_session_data *sd, int prev_leader_aid void HP_clif_guild_created(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_created_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_created_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_created_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14009,10 +14032,10 @@ void HP_clif_guild_created(struct map_session_data *sd, int flag) { HPMHooks.source.clif.guild_created(sd, flag); } if( HPMHooks.count.HP_clif_guild_created_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_created_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_created_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -14020,11 +14043,11 @@ void HP_clif_guild_created(struct map_session_data *sd, int flag) { void HP_clif_guild_belonginfo(struct map_session_data *sd, struct guild *g) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_belonginfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct guild *g); + void (*preHookFunc) (struct map_session_data **sd, struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_belonginfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_belonginfo_pre[hIndex].func; - preHookFunc(sd, g); + preHookFunc(&sd, &g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14046,11 +14069,11 @@ void HP_clif_guild_belonginfo(struct map_session_data *sd, struct guild *g) { void HP_clif_guild_masterormember(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_masterormember_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_masterormember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_masterormember_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14072,11 +14095,11 @@ void HP_clif_guild_masterormember(struct map_session_data *sd) { void HP_clif_guild_basicinfo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_basicinfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_basicinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_basicinfo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14098,11 +14121,11 @@ void HP_clif_guild_basicinfo(struct map_session_data *sd) { void HP_clif_guild_allianceinfo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_allianceinfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_allianceinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_allianceinfo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14124,11 +14147,11 @@ void HP_clif_guild_allianceinfo(struct map_session_data *sd) { void HP_clif_guild_memberlist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_memberlist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_memberlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_memberlist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14150,11 +14173,11 @@ void HP_clif_guild_memberlist(struct map_session_data *sd) { void HP_clif_guild_skillinfo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_skillinfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_skillinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_skillinfo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14176,11 +14199,11 @@ void HP_clif_guild_skillinfo(struct map_session_data *sd) { void HP_clif_guild_send_onlineinfo(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_send_onlineinfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_send_onlineinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_send_onlineinfo_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14202,11 +14225,11 @@ void HP_clif_guild_send_onlineinfo(struct map_session_data *sd) { void HP_clif_guild_memberlogin_notice(struct guild *g, int idx, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_memberlogin_notice_pre ) { - void (*preHookFunc) (struct guild *g, int *idx, int *flag); + void (*preHookFunc) (struct guild **g, int *idx, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_memberlogin_notice_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_memberlogin_notice_pre[hIndex].func; - preHookFunc(g, &idx, &flag); + preHookFunc(&g, &idx, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14217,10 +14240,10 @@ void HP_clif_guild_memberlogin_notice(struct guild *g, int idx, int flag) { HPMHooks.source.clif.guild_memberlogin_notice(g, idx, flag); } if( HPMHooks.count.HP_clif_guild_memberlogin_notice_post ) { - void (*postHookFunc) (struct guild *g, int *idx, int *flag); + void (*postHookFunc) (struct guild *g, int idx, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_memberlogin_notice_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_memberlogin_notice_post[hIndex].func; - postHookFunc(g, &idx, &flag); + postHookFunc(g, idx, flag); } } return; @@ -14228,11 +14251,11 @@ void HP_clif_guild_memberlogin_notice(struct guild *g, int idx, int flag) { void HP_clif_guild_invite(struct map_session_data *sd, struct guild *g) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_invite_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct guild *g); + void (*preHookFunc) (struct map_session_data **sd, struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_invite_pre[hIndex].func; - preHookFunc(sd, g); + preHookFunc(&sd, &g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14254,11 +14277,11 @@ void HP_clif_guild_invite(struct map_session_data *sd, struct guild *g) { void HP_clif_guild_inviteack(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_inviteack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_inviteack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_inviteack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14269,10 +14292,10 @@ void HP_clif_guild_inviteack(struct map_session_data *sd, int flag) { HPMHooks.source.clif.guild_inviteack(sd, flag); } if( HPMHooks.count.HP_clif_guild_inviteack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_inviteack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_inviteack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -14280,11 +14303,11 @@ void HP_clif_guild_inviteack(struct map_session_data *sd, int flag) { void HP_clif_guild_leave(struct map_session_data *sd, const char *name, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_leave_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name, const char *mes); + void (*preHookFunc) (struct map_session_data **sd, const char **name, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_leave_pre[hIndex].func; - preHookFunc(sd, name, mes); + preHookFunc(&sd, &name, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14306,11 +14329,11 @@ void HP_clif_guild_leave(struct map_session_data *sd, const char *name, const ch void HP_clif_guild_expulsion(struct map_session_data *sd, const char *name, const char *mes, int account_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_expulsion_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *name, const char *mes, int *account_id); + void (*preHookFunc) (struct map_session_data **sd, const char **name, const char **mes, int *account_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_expulsion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_expulsion_pre[hIndex].func; - preHookFunc(sd, name, mes, &account_id); + preHookFunc(&sd, &name, &mes, &account_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14321,10 +14344,10 @@ void HP_clif_guild_expulsion(struct map_session_data *sd, const char *name, cons HPMHooks.source.clif.guild_expulsion(sd, name, mes, account_id); } if( HPMHooks.count.HP_clif_guild_expulsion_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *name, const char *mes, int *account_id); + void (*postHookFunc) (struct map_session_data *sd, const char *name, const char *mes, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_expulsion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_expulsion_post[hIndex].func; - postHookFunc(sd, name, mes, &account_id); + postHookFunc(sd, name, mes, account_id); } } return; @@ -14332,11 +14355,11 @@ void HP_clif_guild_expulsion(struct map_session_data *sd, const char *name, cons void HP_clif_guild_positionchanged(struct guild *g, int idx) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_positionchanged_pre ) { - void (*preHookFunc) (struct guild *g, int *idx); + void (*preHookFunc) (struct guild **g, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_positionchanged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_positionchanged_pre[hIndex].func; - preHookFunc(g, &idx); + preHookFunc(&g, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14347,10 +14370,10 @@ void HP_clif_guild_positionchanged(struct guild *g, int idx) { HPMHooks.source.clif.guild_positionchanged(g, idx); } if( HPMHooks.count.HP_clif_guild_positionchanged_post ) { - void (*postHookFunc) (struct guild *g, int *idx); + void (*postHookFunc) (struct guild *g, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_positionchanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_positionchanged_post[hIndex].func; - postHookFunc(g, &idx); + postHookFunc(g, idx); } } return; @@ -14358,11 +14381,11 @@ void HP_clif_guild_positionchanged(struct guild *g, int idx) { void HP_clif_guild_memberpositionchanged(struct guild *g, int idx) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_memberpositionchanged_pre ) { - void (*preHookFunc) (struct guild *g, int *idx); + void (*preHookFunc) (struct guild **g, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_memberpositionchanged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_memberpositionchanged_pre[hIndex].func; - preHookFunc(g, &idx); + preHookFunc(&g, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14373,10 +14396,10 @@ void HP_clif_guild_memberpositionchanged(struct guild *g, int idx) { HPMHooks.source.clif.guild_memberpositionchanged(g, idx); } if( HPMHooks.count.HP_clif_guild_memberpositionchanged_post ) { - void (*postHookFunc) (struct guild *g, int *idx); + void (*postHookFunc) (struct guild *g, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_memberpositionchanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_memberpositionchanged_post[hIndex].func; - postHookFunc(g, &idx); + postHookFunc(g, idx); } } return; @@ -14384,11 +14407,11 @@ void HP_clif_guild_memberpositionchanged(struct guild *g, int idx) { void HP_clif_guild_emblem(struct map_session_data *sd, struct guild *g) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_emblem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct guild *g); + void (*preHookFunc) (struct map_session_data **sd, struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_emblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_emblem_pre[hIndex].func; - preHookFunc(sd, g); + preHookFunc(&sd, &g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14410,11 +14433,11 @@ void HP_clif_guild_emblem(struct map_session_data *sd, struct guild *g) { void HP_clif_guild_emblem_area(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_emblem_area_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_emblem_area_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_emblem_area_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14436,11 +14459,11 @@ void HP_clif_guild_emblem_area(struct block_list *bl) { void HP_clif_guild_notice(struct map_session_data *sd, struct guild *g) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_notice_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct guild *g); + void (*preHookFunc) (struct map_session_data **sd, struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_notice_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_notice_pre[hIndex].func; - preHookFunc(sd, g); + preHookFunc(&sd, &g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14462,11 +14485,11 @@ void HP_clif_guild_notice(struct map_session_data *sd, struct guild *g) { void HP_clif_guild_message(struct guild *g, int account_id, const char *mes, int len) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_message_pre ) { - void (*preHookFunc) (struct guild *g, int *account_id, const char *mes, int *len); + void (*preHookFunc) (struct guild **g, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_message_pre[hIndex].func; - preHookFunc(g, &account_id, mes, &len); + preHookFunc(&g, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14477,10 +14500,10 @@ void HP_clif_guild_message(struct guild *g, int account_id, const char *mes, int HPMHooks.source.clif.guild_message(g, account_id, mes, len); } if( HPMHooks.count.HP_clif_guild_message_post ) { - void (*postHookFunc) (struct guild *g, int *account_id, const char *mes, int *len); + void (*postHookFunc) (struct guild *g, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_message_post[hIndex].func; - postHookFunc(g, &account_id, mes, &len); + postHookFunc(g, account_id, mes, len); } } return; @@ -14488,11 +14511,11 @@ void HP_clif_guild_message(struct guild *g, int account_id, const char *mes, int void HP_clif_guild_reqalliance(struct map_session_data *sd, int account_id, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_reqalliance_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, const char *name); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_reqalliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_reqalliance_pre[hIndex].func; - preHookFunc(sd, &account_id, name); + preHookFunc(&sd, &account_id, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14503,10 +14526,10 @@ void HP_clif_guild_reqalliance(struct map_session_data *sd, int account_id, cons HPMHooks.source.clif.guild_reqalliance(sd, account_id, name); } if( HPMHooks.count.HP_clif_guild_reqalliance_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, const char *name); + void (*postHookFunc) (struct map_session_data *sd, int account_id, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_reqalliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_reqalliance_post[hIndex].func; - postHookFunc(sd, &account_id, name); + postHookFunc(sd, account_id, name); } } return; @@ -14514,11 +14537,11 @@ void HP_clif_guild_reqalliance(struct map_session_data *sd, int account_id, cons void HP_clif_guild_allianceack(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_allianceack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_allianceack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_allianceack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14529,10 +14552,10 @@ void HP_clif_guild_allianceack(struct map_session_data *sd, int flag) { HPMHooks.source.clif.guild_allianceack(sd, flag); } if( HPMHooks.count.HP_clif_guild_allianceack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_allianceack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_allianceack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -14540,11 +14563,11 @@ void HP_clif_guild_allianceack(struct map_session_data *sd, int flag) { void HP_clif_guild_delalliance(struct map_session_data *sd, int guild_id, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_delalliance_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *guild_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_delalliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_delalliance_pre[hIndex].func; - preHookFunc(sd, &guild_id, &flag); + preHookFunc(&sd, &guild_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14555,10 +14578,10 @@ void HP_clif_guild_delalliance(struct map_session_data *sd, int guild_id, int fl HPMHooks.source.clif.guild_delalliance(sd, guild_id, flag); } if( HPMHooks.count.HP_clif_guild_delalliance_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *guild_id, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int guild_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_delalliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_delalliance_post[hIndex].func; - postHookFunc(sd, &guild_id, &flag); + postHookFunc(sd, guild_id, flag); } } return; @@ -14566,11 +14589,11 @@ void HP_clif_guild_delalliance(struct map_session_data *sd, int guild_id, int fl void HP_clif_guild_oppositionack(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_oppositionack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_oppositionack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_oppositionack_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14581,10 +14604,10 @@ void HP_clif_guild_oppositionack(struct map_session_data *sd, int flag) { HPMHooks.source.clif.guild_oppositionack(sd, flag); } if( HPMHooks.count.HP_clif_guild_oppositionack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_oppositionack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_oppositionack_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -14592,11 +14615,11 @@ void HP_clif_guild_oppositionack(struct map_session_data *sd, int flag) { void HP_clif_guild_broken(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_broken_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_broken_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_broken_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14607,10 +14630,10 @@ void HP_clif_guild_broken(struct map_session_data *sd, int flag) { HPMHooks.source.clif.guild_broken(sd, flag); } if( HPMHooks.count.HP_clif_guild_broken_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_broken_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_broken_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -14618,11 +14641,11 @@ void HP_clif_guild_broken(struct map_session_data *sd, int flag) { void HP_clif_guild_xy(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_xy_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_xy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_xy_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14644,11 +14667,11 @@ void HP_clif_guild_xy(struct map_session_data *sd) { void HP_clif_guild_xy_single(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_xy_single_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_xy_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_xy_single_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14659,10 +14682,10 @@ void HP_clif_guild_xy_single(int fd, struct map_session_data *sd) { HPMHooks.source.clif.guild_xy_single(fd, sd); } if( HPMHooks.count.HP_clif_guild_xy_single_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_xy_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_guild_xy_single_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -14670,11 +14693,11 @@ void HP_clif_guild_xy_single(int fd, struct map_session_data *sd) { void HP_clif_guild_xy_remove(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_xy_remove_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_xy_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_xy_remove_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14696,11 +14719,11 @@ void HP_clif_guild_xy_remove(struct map_session_data *sd) { void HP_clif_guild_positionnamelist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_positionnamelist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_positionnamelist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_positionnamelist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14722,11 +14745,11 @@ void HP_clif_guild_positionnamelist(struct map_session_data *sd) { void HP_clif_guild_positioninfolist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_positioninfolist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_positioninfolist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_positioninfolist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14748,11 +14771,11 @@ void HP_clif_guild_positioninfolist(struct map_session_data *sd) { void HP_clif_guild_expulsionlist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_expulsionlist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_expulsionlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_guild_expulsionlist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14775,11 +14798,11 @@ bool HP_clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_clif_validate_emblem_pre ) { - bool (*preHookFunc) (const uint8 *emblem, unsigned long *emblem_len); + bool (*preHookFunc) (const uint8 **emblem, unsigned long *emblem_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_validate_emblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_validate_emblem_pre[hIndex].func; - retVal___ = preHookFunc(emblem, &emblem_len); + retVal___ = preHookFunc(&emblem, &emblem_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14790,10 +14813,10 @@ bool HP_clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) { retVal___ = HPMHooks.source.clif.validate_emblem(emblem, emblem_len); } if( HPMHooks.count.HP_clif_validate_emblem_post ) { - bool (*postHookFunc) (bool retVal___, const uint8 *emblem, unsigned long *emblem_len); + bool (*postHookFunc) (bool retVal___, const uint8 *emblem, unsigned long emblem_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_validate_emblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_validate_emblem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, emblem, &emblem_len); + retVal___ = postHookFunc(retVal___, emblem, emblem_len); } } return retVal___; @@ -14801,11 +14824,11 @@ bool HP_clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) { void HP_clif_bg_hp(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_bg_hp_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_hp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bg_hp_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14827,11 +14850,11 @@ void HP_clif_bg_hp(struct map_session_data *sd) { void HP_clif_bg_xy(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_bg_xy_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_xy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bg_xy_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14853,11 +14876,11 @@ void HP_clif_bg_xy(struct map_session_data *sd) { void HP_clif_bg_xy_remove(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_bg_xy_remove_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_xy_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bg_xy_remove_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14876,14 +14899,14 @@ void HP_clif_bg_xy_remove(struct map_session_data *sd) { } return; } -void HP_clif_bg_message(struct battleground_data *bgd, int src_id, const char *name, const char *mes, size_t len) { +void HP_clif_bg_message(struct battleground_data *bgd, int src_id, const char *name, const char *mes) { int hIndex = 0; if( HPMHooks.count.HP_clif_bg_message_pre ) { - void (*preHookFunc) (struct battleground_data *bgd, int *src_id, const char *name, const char *mes, size_t *len); + void (*preHookFunc) (struct battleground_data **bgd, int *src_id, const char **name, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bg_message_pre[hIndex].func; - preHookFunc(bgd, &src_id, name, mes, &len); + preHookFunc(&bgd, &src_id, &name, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14891,13 +14914,13 @@ void HP_clif_bg_message(struct battleground_data *bgd, int src_id, const char *n } } { - HPMHooks.source.clif.bg_message(bgd, src_id, name, mes, len); + HPMHooks.source.clif.bg_message(bgd, src_id, name, mes); } if( HPMHooks.count.HP_clif_bg_message_post ) { - void (*postHookFunc) (struct battleground_data *bgd, int *src_id, const char *name, const char *mes, size_t *len); + void (*postHookFunc) (struct battleground_data *bgd, int src_id, const char *name, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bg_message_post[hIndex].func; - postHookFunc(bgd, &src_id, name, mes, &len); + postHookFunc(bgd, src_id, name, mes); } } return; @@ -14920,10 +14943,10 @@ void HP_clif_bg_updatescore(int16 m) { HPMHooks.source.clif.bg_updatescore(m); } if( HPMHooks.count.HP_clif_bg_updatescore_post ) { - void (*postHookFunc) (int16 *m); + void (*postHookFunc) (int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_updatescore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bg_updatescore_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -14931,11 +14954,11 @@ void HP_clif_bg_updatescore(int16 m) { void HP_clif_bg_updatescore_single(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_bg_updatescore_single_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bg_updatescore_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bg_updatescore_single_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14957,11 +14980,11 @@ void HP_clif_bg_updatescore_single(struct map_session_data *sd) { void HP_clif_sendbgemblem_area(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_sendbgemblem_area_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendbgemblem_area_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sendbgemblem_area_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14983,11 +15006,11 @@ void HP_clif_sendbgemblem_area(struct map_session_data *sd) { void HP_clif_sendbgemblem_single(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_sendbgemblem_single_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendbgemblem_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sendbgemblem_single_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -14998,10 +15021,10 @@ void HP_clif_sendbgemblem_single(int fd, struct map_session_data *sd) { HPMHooks.source.clif.sendbgemblem_single(fd, sd); } if( HPMHooks.count.HP_clif_sendbgemblem_single_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendbgemblem_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_sendbgemblem_single_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -15025,10 +15048,10 @@ int HP_clif_instance(int instance_id, int type, int flag) { retVal___ = HPMHooks.source.clif.instance(instance_id, type, flag); } if( HPMHooks.count.HP_clif_instance_post ) { - int (*postHookFunc) (int retVal___, int *instance_id, int *type, int *flag); + int (*postHookFunc) (int retVal___, int instance_id, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_instance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &instance_id, &type, &flag); + retVal___ = postHookFunc(retVal___, instance_id, type, flag); } } return retVal___; @@ -15051,10 +15074,10 @@ void HP_clif_instance_join(int fd, int instance_id) { HPMHooks.source.clif.instance_join(fd, instance_id); } if( HPMHooks.count.HP_clif_instance_join_post ) { - void (*postHookFunc) (int *fd, int *instance_id); + void (*postHookFunc) (int fd, int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_join_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_instance_join_post[hIndex].func; - postHookFunc(&fd, &instance_id); + postHookFunc(fd, instance_id); } } return; @@ -15077,10 +15100,10 @@ void HP_clif_instance_leave(int fd) { HPMHooks.source.clif.instance_leave(fd); } if( HPMHooks.count.HP_clif_instance_leave_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_instance_leave_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -15088,11 +15111,11 @@ void HP_clif_instance_leave(int fd) { void HP_clif_catch_process(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_catch_process_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_catch_process_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_catch_process_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15114,11 +15137,11 @@ void HP_clif_catch_process(struct map_session_data *sd) { void HP_clif_pet_roulette(struct map_session_data *sd, int data) { int hIndex = 0; if( HPMHooks.count.HP_clif_pet_roulette_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *data); + void (*preHookFunc) (struct map_session_data **sd, int *data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_roulette_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pet_roulette_pre[hIndex].func; - preHookFunc(sd, &data); + preHookFunc(&sd, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15129,10 +15152,10 @@ void HP_clif_pet_roulette(struct map_session_data *sd, int data) { HPMHooks.source.clif.pet_roulette(sd, data); } if( HPMHooks.count.HP_clif_pet_roulette_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *data); + void (*postHookFunc) (struct map_session_data *sd, int data); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_roulette_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pet_roulette_post[hIndex].func; - postHookFunc(sd, &data); + postHookFunc(sd, data); } } return; @@ -15140,11 +15163,11 @@ void HP_clif_pet_roulette(struct map_session_data *sd, int data) { void HP_clif_sendegg(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_sendegg_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_sendegg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_sendegg_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15166,11 +15189,11 @@ void HP_clif_sendegg(struct map_session_data *sd) { void HP_clif_send_petstatus(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_send_petstatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_petstatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_send_petstatus_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15192,11 +15215,11 @@ void HP_clif_send_petstatus(struct map_session_data *sd) { void HP_clif_send_petdata(struct map_session_data *sd, struct pet_data *pd, int type, int param) { int hIndex = 0; if( HPMHooks.count.HP_clif_send_petdata_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd, int *type, int *param); + void (*preHookFunc) (struct map_session_data **sd, struct pet_data **pd, int *type, int *param); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_petdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_send_petdata_pre[hIndex].func; - preHookFunc(sd, pd, &type, ¶m); + preHookFunc(&sd, &pd, &type, ¶m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15207,10 +15230,10 @@ void HP_clif_send_petdata(struct map_session_data *sd, struct pet_data *pd, int HPMHooks.source.clif.send_petdata(sd, pd, type, param); } if( HPMHooks.count.HP_clif_send_petdata_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct pet_data *pd, int *type, int *param); + void (*postHookFunc) (struct map_session_data *sd, struct pet_data *pd, int type, int param); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_petdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_send_petdata_post[hIndex].func; - postHookFunc(sd, pd, &type, ¶m); + postHookFunc(sd, pd, type, param); } } return; @@ -15218,11 +15241,11 @@ void HP_clif_send_petdata(struct map_session_data *sd, struct pet_data *pd, int void HP_clif_pet_emotion(struct pet_data *pd, int param) { int hIndex = 0; if( HPMHooks.count.HP_clif_pet_emotion_pre ) { - void (*preHookFunc) (struct pet_data *pd, int *param); + void (*preHookFunc) (struct pet_data **pd, int *param); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_emotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pet_emotion_pre[hIndex].func; - preHookFunc(pd, ¶m); + preHookFunc(&pd, ¶m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15233,10 +15256,10 @@ void HP_clif_pet_emotion(struct pet_data *pd, int param) { HPMHooks.source.clif.pet_emotion(pd, param); } if( HPMHooks.count.HP_clif_pet_emotion_post ) { - void (*postHookFunc) (struct pet_data *pd, int *param); + void (*postHookFunc) (struct pet_data *pd, int param); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_emotion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pet_emotion_post[hIndex].func; - postHookFunc(pd, ¶m); + postHookFunc(pd, param); } } return; @@ -15244,11 +15267,11 @@ void HP_clif_pet_emotion(struct pet_data *pd, int param) { void HP_clif_pet_food(struct map_session_data *sd, int foodid, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_pet_food_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *foodid, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *foodid, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_food_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pet_food_pre[hIndex].func; - preHookFunc(sd, &foodid, &fail); + preHookFunc(&sd, &foodid, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15259,10 +15282,10 @@ void HP_clif_pet_food(struct map_session_data *sd, int foodid, int fail) { HPMHooks.source.clif.pet_food(sd, foodid, fail); } if( HPMHooks.count.HP_clif_pet_food_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *foodid, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int foodid, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pet_food_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pet_food_post[hIndex].func; - postHookFunc(sd, &foodid, &fail); + postHookFunc(sd, foodid, fail); } } return; @@ -15271,12 +15294,12 @@ int HP_clif_friendslist_toggle_sub(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_friendslist_toggle_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_toggle_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_clif_friendslist_toggle_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -15303,11 +15326,11 @@ int HP_clif_friendslist_toggle_sub(struct map_session_data *sd, va_list ap) { void HP_clif_friendslist_send(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_friendslist_send_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_friendslist_send_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15329,11 +15352,11 @@ void HP_clif_friendslist_send(struct map_session_data *sd) { void HP_clif_friendslist_reqack(struct map_session_data *sd, struct map_session_data *f_sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_friendslist_reqack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *f_sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **f_sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_reqack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_friendslist_reqack_pre[hIndex].func; - preHookFunc(sd, f_sd, &type); + preHookFunc(&sd, &f_sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15344,10 +15367,10 @@ void HP_clif_friendslist_reqack(struct map_session_data *sd, struct map_session_ HPMHooks.source.clif.friendslist_reqack(sd, f_sd, type); } if( HPMHooks.count.HP_clif_friendslist_reqack_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *f_sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *f_sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_reqack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_friendslist_reqack_post[hIndex].func; - postHookFunc(sd, f_sd, &type); + postHookFunc(sd, f_sd, type); } } return; @@ -15355,11 +15378,11 @@ void HP_clif_friendslist_reqack(struct map_session_data *sd, struct map_session_ void HP_clif_friendslist_toggle(struct map_session_data *sd, int account_id, int char_id, int online) { int hIndex = 0; if( HPMHooks.count.HP_clif_friendslist_toggle_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, int *online); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, int *char_id, int *online); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_toggle_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_friendslist_toggle_pre[hIndex].func; - preHookFunc(sd, &account_id, &char_id, &online); + preHookFunc(&sd, &account_id, &char_id, &online); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15370,10 +15393,10 @@ void HP_clif_friendslist_toggle(struct map_session_data *sd, int account_id, int HPMHooks.source.clif.friendslist_toggle(sd, account_id, char_id, online); } if( HPMHooks.count.HP_clif_friendslist_toggle_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, int *online); + void (*postHookFunc) (struct map_session_data *sd, int account_id, int char_id, int online); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_toggle_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_friendslist_toggle_post[hIndex].func; - postHookFunc(sd, &account_id, &char_id, &online); + postHookFunc(sd, account_id, char_id, online); } } return; @@ -15381,11 +15404,11 @@ void HP_clif_friendslist_toggle(struct map_session_data *sd, int account_id, int void HP_clif_friendlist_req(struct map_session_data *sd, int account_id, int char_id, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_friendlist_req_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, const char *name); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, int *char_id, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendlist_req_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_friendlist_req_pre[hIndex].func; - preHookFunc(sd, &account_id, &char_id, name); + preHookFunc(&sd, &account_id, &char_id, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15396,10 +15419,10 @@ void HP_clif_friendlist_req(struct map_session_data *sd, int account_id, int cha HPMHooks.source.clif.friendlist_req(sd, account_id, char_id, name); } if( HPMHooks.count.HP_clif_friendlist_req_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, const char *name); + void (*postHookFunc) (struct map_session_data *sd, int account_id, int char_id, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendlist_req_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_friendlist_req_post[hIndex].func; - postHookFunc(sd, &account_id, &char_id, name); + postHookFunc(sd, account_id, char_id, name); } } return; @@ -15407,11 +15430,11 @@ void HP_clif_friendlist_req(struct map_session_data *sd, int account_id, int cha void HP_clif_GM_kickack(struct map_session_data *sd, int result) { int hIndex = 0; if( HPMHooks.count.HP_clif_GM_kickack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *result); + void (*preHookFunc) (struct map_session_data **sd, int *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GM_kickack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_GM_kickack_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15422,10 +15445,10 @@ void HP_clif_GM_kickack(struct map_session_data *sd, int result) { HPMHooks.source.clif.GM_kickack(sd, result); } if( HPMHooks.count.HP_clif_GM_kickack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *result); + void (*postHookFunc) (struct map_session_data *sd, int result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GM_kickack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_GM_kickack_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -15433,11 +15456,11 @@ void HP_clif_GM_kickack(struct map_session_data *sd, int result) { void HP_clif_GM_kick(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; if( HPMHooks.count.HP_clif_GM_kick_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GM_kick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_GM_kick_pre[hIndex].func; - preHookFunc(sd, tsd); + preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15459,11 +15482,11 @@ void HP_clif_GM_kick(struct map_session_data *sd, struct map_session_data *tsd) void HP_clif_manner_message(struct map_session_data *sd, uint32 type) { int hIndex = 0; if( HPMHooks.count.HP_clif_manner_message_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint32 *type); + void (*preHookFunc) (struct map_session_data **sd, uint32 *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_manner_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_manner_message_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15474,10 +15497,10 @@ void HP_clif_manner_message(struct map_session_data *sd, uint32 type) { HPMHooks.source.clif.manner_message(sd, type); } if( HPMHooks.count.HP_clif_manner_message_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint32 *type); + void (*postHookFunc) (struct map_session_data *sd, uint32 type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_manner_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_manner_message_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -15485,11 +15508,11 @@ void HP_clif_manner_message(struct map_session_data *sd, uint32 type) { void HP_clif_GM_silence(struct map_session_data *sd, struct map_session_data *tsd, uint8 type) { int hIndex = 0; if( HPMHooks.count.HP_clif_GM_silence_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, uint8 *type); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd, uint8 *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GM_silence_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_GM_silence_pre[hIndex].func; - preHookFunc(sd, tsd, &type); + preHookFunc(&sd, &tsd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15500,10 +15523,10 @@ void HP_clif_GM_silence(struct map_session_data *sd, struct map_session_data *ts HPMHooks.source.clif.GM_silence(sd, tsd, type); } if( HPMHooks.count.HP_clif_GM_silence_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, uint8 *type); + void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *tsd, uint8 type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_GM_silence_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_GM_silence_post[hIndex].func; - postHookFunc(sd, tsd, &type); + postHookFunc(sd, tsd, type); } } return; @@ -15511,11 +15534,11 @@ void HP_clif_GM_silence(struct map_session_data *sd, struct map_session_data *ts void HP_clif_account_name(struct map_session_data *sd, int account_id, const char *accname) { int hIndex = 0; if( HPMHooks.count.HP_clif_account_name_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, const char *accname); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, const char **accname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_account_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_account_name_pre[hIndex].func; - preHookFunc(sd, &account_id, accname); + preHookFunc(&sd, &account_id, &accname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15526,10 +15549,10 @@ void HP_clif_account_name(struct map_session_data *sd, int account_id, const cha HPMHooks.source.clif.account_name(sd, account_id, accname); } if( HPMHooks.count.HP_clif_account_name_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, const char *accname); + void (*postHookFunc) (struct map_session_data *sd, int account_id, const char *accname); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_account_name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_account_name_post[hIndex].func; - postHookFunc(sd, &account_id, accname); + postHookFunc(sd, account_id, accname); } } return; @@ -15537,11 +15560,11 @@ void HP_clif_account_name(struct map_session_data *sd, int account_id, const cha void HP_clif_check(int fd, struct map_session_data *pl_sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_check_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *pl_sd); + void (*preHookFunc) (int *fd, struct map_session_data **pl_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_check_pre[hIndex].func; - preHookFunc(&fd, pl_sd); + preHookFunc(&fd, &pl_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15552,10 +15575,10 @@ void HP_clif_check(int fd, struct map_session_data *pl_sd) { HPMHooks.source.clif.check(fd, pl_sd); } if( HPMHooks.count.HP_clif_check_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *pl_sd); + void (*postHookFunc) (int fd, struct map_session_data *pl_sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_check_post[hIndex].func; - postHookFunc(&fd, pl_sd); + postHookFunc(fd, pl_sd); } } return; @@ -15563,11 +15586,11 @@ void HP_clif_check(int fd, struct map_session_data *pl_sd) { void HP_clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_hominfo_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct homun_data *hd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, struct homun_data **hd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hominfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_hominfo_pre[hIndex].func; - preHookFunc(sd, hd, &flag); + preHookFunc(&sd, &hd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15578,10 +15601,10 @@ void HP_clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int fla HPMHooks.source.clif.hominfo(sd, hd, flag); } if( HPMHooks.count.HP_clif_hominfo_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct homun_data *hd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, struct homun_data *hd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hominfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_hominfo_post[hIndex].func; - postHookFunc(sd, hd, &flag); + postHookFunc(sd, hd, flag); } } return; @@ -15589,11 +15612,11 @@ void HP_clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int fla void HP_clif_homskillinfoblock(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_homskillinfoblock_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_homskillinfoblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_homskillinfoblock_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15615,11 +15638,11 @@ void HP_clif_homskillinfoblock(struct map_session_data *sd) { void HP_clif_homskillup(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_homskillup_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_homskillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_homskillup_pre[hIndex].func; - preHookFunc(sd, &skill_id); + preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15630,10 +15653,10 @@ void HP_clif_homskillup(struct map_session_data *sd, uint16 skill_id) { HPMHooks.source.clif.homskillup(sd, skill_id); } if( HPMHooks.count.HP_clif_homskillup_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_homskillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_homskillup_post[hIndex].func; - postHookFunc(sd, &skill_id); + postHookFunc(sd, skill_id); } } return; @@ -15641,11 +15664,11 @@ void HP_clif_homskillup(struct map_session_data *sd, uint16 skill_id) { void HP_clif_hom_food(struct map_session_data *sd, int foodid, int fail) { int hIndex = 0; if( HPMHooks.count.HP_clif_hom_food_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *foodid, int *fail); + void (*preHookFunc) (struct map_session_data **sd, int *foodid, int *fail); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hom_food_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_hom_food_pre[hIndex].func; - preHookFunc(sd, &foodid, &fail); + preHookFunc(&sd, &foodid, &fail); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15656,10 +15679,10 @@ void HP_clif_hom_food(struct map_session_data *sd, int foodid, int fail) { HPMHooks.source.clif.hom_food(sd, foodid, fail); } if( HPMHooks.count.HP_clif_hom_food_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *foodid, int *fail); + void (*postHookFunc) (struct map_session_data *sd, int foodid, int fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hom_food_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_hom_food_post[hIndex].func; - postHookFunc(sd, &foodid, &fail); + postHookFunc(sd, foodid, fail); } } return; @@ -15667,11 +15690,11 @@ void HP_clif_hom_food(struct map_session_data *sd, int foodid, int fail) { void HP_clif_send_homdata(struct map_session_data *sd, int state, int param) { int hIndex = 0; if( HPMHooks.count.HP_clif_send_homdata_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *state, int *param); + void (*preHookFunc) (struct map_session_data **sd, int *state, int *param); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_homdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_send_homdata_pre[hIndex].func; - preHookFunc(sd, &state, ¶m); + preHookFunc(&sd, &state, ¶m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15682,10 +15705,10 @@ void HP_clif_send_homdata(struct map_session_data *sd, int state, int param) { HPMHooks.source.clif.send_homdata(sd, state, param); } if( HPMHooks.count.HP_clif_send_homdata_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *state, int *param); + void (*postHookFunc) (struct map_session_data *sd, int state, int param); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_homdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_send_homdata_post[hIndex].func; - postHookFunc(sd, &state, ¶m); + postHookFunc(sd, state, param); } } return; @@ -15693,11 +15716,11 @@ void HP_clif_send_homdata(struct map_session_data *sd, int state, int param) { void HP_clif_quest_send_list(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_send_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_send_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_send_list_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15719,11 +15742,11 @@ void HP_clif_quest_send_list(struct map_session_data *sd) { void HP_clif_quest_send_mission(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_send_mission_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_send_mission_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_send_mission_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15745,11 +15768,11 @@ void HP_clif_quest_send_mission(struct map_session_data *sd) { void HP_clif_quest_add(struct map_session_data *sd, struct quest *qd) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_add_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct quest *qd); + void (*preHookFunc) (struct map_session_data **sd, struct quest **qd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_add_pre[hIndex].func; - preHookFunc(sd, qd); + preHookFunc(&sd, &qd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15771,11 +15794,11 @@ void HP_clif_quest_add(struct map_session_data *sd, struct quest *qd) { void HP_clif_quest_delete(struct map_session_data *sd, int quest_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_delete_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *quest_id); + void (*preHookFunc) (struct map_session_data **sd, int *quest_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_delete_pre[hIndex].func; - preHookFunc(sd, &quest_id); + preHookFunc(&sd, &quest_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15786,10 +15809,10 @@ void HP_clif_quest_delete(struct map_session_data *sd, int quest_id) { HPMHooks.source.clif.quest_delete(sd, quest_id); } if( HPMHooks.count.HP_clif_quest_delete_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *quest_id); + void (*postHookFunc) (struct map_session_data *sd, int quest_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_quest_delete_post[hIndex].func; - postHookFunc(sd, &quest_id); + postHookFunc(sd, quest_id); } } return; @@ -15797,11 +15820,11 @@ void HP_clif_quest_delete(struct map_session_data *sd, int quest_id) { void HP_clif_quest_update_status(struct map_session_data *sd, int quest_id, bool active) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_update_status_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *quest_id, bool *active); + void (*preHookFunc) (struct map_session_data **sd, int *quest_id, bool *active); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_update_status_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_update_status_pre[hIndex].func; - preHookFunc(sd, &quest_id, &active); + preHookFunc(&sd, &quest_id, &active); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15812,10 +15835,10 @@ void HP_clif_quest_update_status(struct map_session_data *sd, int quest_id, bool HPMHooks.source.clif.quest_update_status(sd, quest_id, active); } if( HPMHooks.count.HP_clif_quest_update_status_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *quest_id, bool *active); + void (*postHookFunc) (struct map_session_data *sd, int quest_id, bool active); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_update_status_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_quest_update_status_post[hIndex].func; - postHookFunc(sd, &quest_id, &active); + postHookFunc(sd, quest_id, active); } } return; @@ -15823,11 +15846,11 @@ void HP_clif_quest_update_status(struct map_session_data *sd, int quest_id, bool void HP_clif_quest_update_objective(struct map_session_data *sd, struct quest *qd) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_update_objective_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct quest *qd); + void (*preHookFunc) (struct map_session_data **sd, struct quest **qd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_update_objective_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_update_objective_pre[hIndex].func; - preHookFunc(sd, qd); + preHookFunc(&sd, &qd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15849,11 +15872,11 @@ void HP_clif_quest_update_objective(struct map_session_data *sd, struct quest *q void HP_clif_quest_show_event(struct map_session_data *sd, struct block_list *bl, short state, short color) { int hIndex = 0; if( HPMHooks.count.HP_clif_quest_show_event_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, short *state, short *color); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **bl, short *state, short *color); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_show_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_quest_show_event_pre[hIndex].func; - preHookFunc(sd, bl, &state, &color); + preHookFunc(&sd, &bl, &state, &color); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15864,10 +15887,10 @@ void HP_clif_quest_show_event(struct map_session_data *sd, struct block_list *bl HPMHooks.source.clif.quest_show_event(sd, bl, state, color); } if( HPMHooks.count.HP_clif_quest_show_event_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct block_list *bl, short *state, short *color); + void (*postHookFunc) (struct map_session_data *sd, struct block_list *bl, short state, short color); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_quest_show_event_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_quest_show_event_post[hIndex].func; - postHookFunc(sd, bl, &state, &color); + postHookFunc(sd, bl, state, color); } } return; @@ -15890,10 +15913,10 @@ void HP_clif_mail_window(int fd, int flag) { HPMHooks.source.clif.mail_window(fd, flag); } if( HPMHooks.count.HP_clif_mail_window_post ) { - void (*postHookFunc) (int *fd, int *flag); + void (*postHookFunc) (int fd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_window_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_window_post[hIndex].func; - postHookFunc(&fd, &flag); + postHookFunc(fd, flag); } } return; @@ -15901,11 +15924,11 @@ void HP_clif_mail_window(int fd, int flag) { void HP_clif_mail_read(struct map_session_data *sd, int mail_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_mail_read_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *mail_id); + void (*preHookFunc) (struct map_session_data **sd, int *mail_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mail_read_pre[hIndex].func; - preHookFunc(sd, &mail_id); + preHookFunc(&sd, &mail_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -15916,10 +15939,10 @@ void HP_clif_mail_read(struct map_session_data *sd, int mail_id) { HPMHooks.source.clif.mail_read(sd, mail_id); } if( HPMHooks.count.HP_clif_mail_read_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *mail_id); + void (*postHookFunc) (struct map_session_data *sd, int mail_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_read_post[hIndex].func; - postHookFunc(sd, &mail_id); + postHookFunc(sd, mail_id); } } return; @@ -15942,10 +15965,10 @@ void HP_clif_mail_delete(int fd, int mail_id, short fail) { HPMHooks.source.clif.mail_delete(fd, mail_id, fail); } if( HPMHooks.count.HP_clif_mail_delete_post ) { - void (*postHookFunc) (int *fd, int *mail_id, short *fail); + void (*postHookFunc) (int fd, int mail_id, short fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_delete_post[hIndex].func; - postHookFunc(&fd, &mail_id, &fail); + postHookFunc(fd, mail_id, fail); } } return; @@ -15968,10 +15991,10 @@ void HP_clif_mail_return(int fd, int mail_id, short fail) { HPMHooks.source.clif.mail_return(fd, mail_id, fail); } if( HPMHooks.count.HP_clif_mail_return_post ) { - void (*postHookFunc) (int *fd, int *mail_id, short *fail); + void (*postHookFunc) (int fd, int mail_id, short fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_return_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_return_post[hIndex].func; - postHookFunc(&fd, &mail_id, &fail); + postHookFunc(fd, mail_id, fail); } } return; @@ -15994,10 +16017,10 @@ void HP_clif_mail_send(int fd, bool fail) { HPMHooks.source.clif.mail_send(fd, fail); } if( HPMHooks.count.HP_clif_mail_send_post ) { - void (*postHookFunc) (int *fd, bool *fail); + void (*postHookFunc) (int fd, bool fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_send_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_send_post[hIndex].func; - postHookFunc(&fd, &fail); + postHookFunc(fd, fail); } } return; @@ -16005,11 +16028,11 @@ void HP_clif_mail_send(int fd, bool fail) { void HP_clif_mail_new(int fd, int mail_id, const char *sender, const char *title) { int hIndex = 0; if( HPMHooks.count.HP_clif_mail_new_pre ) { - void (*preHookFunc) (int *fd, int *mail_id, const char *sender, const char *title); + void (*preHookFunc) (int *fd, int *mail_id, const char **sender, const char **title); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_new_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mail_new_pre[hIndex].func; - preHookFunc(&fd, &mail_id, sender, title); + preHookFunc(&fd, &mail_id, &sender, &title); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16020,10 +16043,10 @@ void HP_clif_mail_new(int fd, int mail_id, const char *sender, const char *title HPMHooks.source.clif.mail_new(fd, mail_id, sender, title); } if( HPMHooks.count.HP_clif_mail_new_post ) { - void (*postHookFunc) (int *fd, int *mail_id, const char *sender, const char *title); + void (*postHookFunc) (int fd, int mail_id, const char *sender, const char *title); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_new_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_new_post[hIndex].func; - postHookFunc(&fd, &mail_id, sender, title); + postHookFunc(fd, mail_id, sender, title); } } return; @@ -16031,11 +16054,11 @@ void HP_clif_mail_new(int fd, int mail_id, const char *sender, const char *title void HP_clif_mail_refreshinbox(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_mail_refreshinbox_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_refreshinbox_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mail_refreshinbox_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16072,10 +16095,10 @@ void HP_clif_mail_getattachment(int fd, uint8 flag) { HPMHooks.source.clif.mail_getattachment(fd, flag); } if( HPMHooks.count.HP_clif_mail_getattachment_post ) { - void (*postHookFunc) (int *fd, uint8 *flag); + void (*postHookFunc) (int fd, uint8 flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_getattachment_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_getattachment_post[hIndex].func; - postHookFunc(&fd, &flag); + postHookFunc(fd, flag); } } return; @@ -16098,10 +16121,10 @@ void HP_clif_mail_setattachment(int fd, int index, uint8 flag) { HPMHooks.source.clif.mail_setattachment(fd, index, flag); } if( HPMHooks.count.HP_clif_mail_setattachment_post ) { - void (*postHookFunc) (int *fd, int *index, uint8 *flag); + void (*postHookFunc) (int fd, int index, uint8 flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mail_setattachment_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mail_setattachment_post[hIndex].func; - postHookFunc(&fd, &index, &flag); + postHookFunc(fd, index, flag); } } return; @@ -16109,11 +16132,11 @@ void HP_clif_mail_setattachment(int fd, int index, uint8 flag) { void HP_clif_auction_openwindow(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_auction_openwindow_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_openwindow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_auction_openwindow_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16135,11 +16158,11 @@ void HP_clif_auction_openwindow(struct map_session_data *sd) { void HP_clif_auction_results(struct map_session_data *sd, short count, short pages, const uint8 *buf) { int hIndex = 0; if( HPMHooks.count.HP_clif_auction_results_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *count, short *pages, const uint8 *buf); + void (*preHookFunc) (struct map_session_data **sd, short *count, short *pages, const uint8 **buf); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_results_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_auction_results_pre[hIndex].func; - preHookFunc(sd, &count, &pages, buf); + preHookFunc(&sd, &count, &pages, &buf); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16150,10 +16173,10 @@ void HP_clif_auction_results(struct map_session_data *sd, short count, short pag HPMHooks.source.clif.auction_results(sd, count, pages, buf); } if( HPMHooks.count.HP_clif_auction_results_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *count, short *pages, const uint8 *buf); + void (*postHookFunc) (struct map_session_data *sd, short count, short pages, const uint8 *buf); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_results_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_auction_results_post[hIndex].func; - postHookFunc(sd, &count, &pages, buf); + postHookFunc(sd, count, pages, buf); } } return; @@ -16176,10 +16199,10 @@ void HP_clif_auction_message(int fd, unsigned char flag) { HPMHooks.source.clif.auction_message(fd, flag); } if( HPMHooks.count.HP_clif_auction_message_post ) { - void (*postHookFunc) (int *fd, unsigned char *flag); + void (*postHookFunc) (int fd, unsigned char flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_auction_message_post[hIndex].func; - postHookFunc(&fd, &flag); + postHookFunc(fd, flag); } } return; @@ -16202,10 +16225,10 @@ void HP_clif_auction_close(int fd, unsigned char flag) { HPMHooks.source.clif.auction_close(fd, flag); } if( HPMHooks.count.HP_clif_auction_close_post ) { - void (*postHookFunc) (int *fd, unsigned char *flag); + void (*postHookFunc) (int fd, unsigned char flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_close_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_auction_close_post[hIndex].func; - postHookFunc(&fd, &flag); + postHookFunc(fd, flag); } } return; @@ -16228,10 +16251,10 @@ void HP_clif_auction_setitem(int fd, int index, bool fail) { HPMHooks.source.clif.auction_setitem(fd, index, fail); } if( HPMHooks.count.HP_clif_auction_setitem_post ) { - void (*postHookFunc) (int *fd, int *index, bool *fail); + void (*postHookFunc) (int fd, int index, bool fail); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_auction_setitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_auction_setitem_post[hIndex].func; - postHookFunc(&fd, &index, &fail); + postHookFunc(fd, index, fail); } } return; @@ -16239,11 +16262,11 @@ void HP_clif_auction_setitem(int fd, int index, bool fail) { void HP_clif_mercenary_info(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_mercenary_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mercenary_info_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16265,11 +16288,11 @@ void HP_clif_mercenary_info(struct map_session_data *sd) { void HP_clif_mercenary_skillblock(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_mercenary_skillblock_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_skillblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mercenary_skillblock_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16291,11 +16314,11 @@ void HP_clif_mercenary_skillblock(struct map_session_data *sd) { void HP_clif_mercenary_message(struct map_session_data *sd, int message) { int hIndex = 0; if( HPMHooks.count.HP_clif_mercenary_message_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *message); + void (*preHookFunc) (struct map_session_data **sd, int *message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mercenary_message_pre[hIndex].func; - preHookFunc(sd, &message); + preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16306,10 +16329,10 @@ void HP_clif_mercenary_message(struct map_session_data *sd, int message) { HPMHooks.source.clif.mercenary_message(sd, message); } if( HPMHooks.count.HP_clif_mercenary_message_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *message); + void (*postHookFunc) (struct map_session_data *sd, int message); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mercenary_message_post[hIndex].func; - postHookFunc(sd, &message); + postHookFunc(sd, message); } } return; @@ -16317,11 +16340,11 @@ void HP_clif_mercenary_message(struct map_session_data *sd, int message) { void HP_clif_mercenary_updatestatus(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_mercenary_updatestatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_updatestatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_mercenary_updatestatus_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16332,10 +16355,10 @@ void HP_clif_mercenary_updatestatus(struct map_session_data *sd, int type) { HPMHooks.source.clif.mercenary_updatestatus(sd, type); } if( HPMHooks.count.HP_clif_mercenary_updatestatus_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_mercenary_updatestatus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_mercenary_updatestatus_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -16358,10 +16381,10 @@ void HP_clif_rental_time(int fd, int nameid, int seconds) { HPMHooks.source.clif.rental_time(fd, nameid, seconds); } if( HPMHooks.count.HP_clif_rental_time_post ) { - void (*postHookFunc) (int *fd, int *nameid, int *seconds); + void (*postHookFunc) (int fd, int nameid, int seconds); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_rental_time_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_rental_time_post[hIndex].func; - postHookFunc(&fd, &nameid, &seconds); + postHookFunc(fd, nameid, seconds); } } return; @@ -16384,10 +16407,10 @@ void HP_clif_rental_expired(int fd, int index, int nameid) { HPMHooks.source.clif.rental_expired(fd, index, nameid); } if( HPMHooks.count.HP_clif_rental_expired_post ) { - void (*postHookFunc) (int *fd, int *index, int *nameid); + void (*postHookFunc) (int fd, int index, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_rental_expired_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_rental_expired_post[hIndex].func; - postHookFunc(&fd, &index, &nameid); + postHookFunc(fd, index, nameid); } } return; @@ -16395,11 +16418,11 @@ void HP_clif_rental_expired(int fd, int index, int nameid) { void HP_clif_PartyBookingRegisterAck(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingRegisterAck_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingRegisterAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingRegisterAck_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16410,10 +16433,10 @@ void HP_clif_PartyBookingRegisterAck(struct map_session_data *sd, int flag) { HPMHooks.source.clif.PartyBookingRegisterAck(sd, flag); } if( HPMHooks.count.HP_clif_PartyBookingRegisterAck_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingRegisterAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingRegisterAck_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -16421,11 +16444,11 @@ void HP_clif_PartyBookingRegisterAck(struct map_session_data *sd, int flag) { void HP_clif_PartyBookingDeleteAck(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingDeleteAck_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingDeleteAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingDeleteAck_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16436,10 +16459,10 @@ void HP_clif_PartyBookingDeleteAck(struct map_session_data *sd, int flag) { HPMHooks.source.clif.PartyBookingDeleteAck(sd, flag); } if( HPMHooks.count.HP_clif_PartyBookingDeleteAck_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingDeleteAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingDeleteAck_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -16447,11 +16470,11 @@ void HP_clif_PartyBookingDeleteAck(struct map_session_data *sd, int flag) { void HP_clif_PartyBookingSearchAck(int fd, struct party_booking_ad_info **results, int count, bool more_result) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingSearchAck_pre ) { - void (*preHookFunc) (int *fd, struct party_booking_ad_info **results, int *count, bool *more_result); + void (*preHookFunc) (int *fd, struct party_booking_ad_info ***results, int *count, bool *more_result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingSearchAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingSearchAck_pre[hIndex].func; - preHookFunc(&fd, results, &count, &more_result); + preHookFunc(&fd, &results, &count, &more_result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16462,10 +16485,10 @@ void HP_clif_PartyBookingSearchAck(int fd, struct party_booking_ad_info **result HPMHooks.source.clif.PartyBookingSearchAck(fd, results, count, more_result); } if( HPMHooks.count.HP_clif_PartyBookingSearchAck_post ) { - void (*postHookFunc) (int *fd, struct party_booking_ad_info **results, int *count, bool *more_result); + void (*postHookFunc) (int fd, struct party_booking_ad_info **results, int count, bool more_result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingSearchAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingSearchAck_post[hIndex].func; - postHookFunc(&fd, results, &count, &more_result); + postHookFunc(fd, results, count, more_result); } } return; @@ -16473,11 +16496,11 @@ void HP_clif_PartyBookingSearchAck(int fd, struct party_booking_ad_info **result void HP_clif_PartyBookingUpdateNotify(struct map_session_data *sd, struct party_booking_ad_info *pb_ad) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingUpdateNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct party_booking_ad_info *pb_ad); + void (*preHookFunc) (struct map_session_data **sd, struct party_booking_ad_info **pb_ad); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingUpdateNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingUpdateNotify_pre[hIndex].func; - preHookFunc(sd, pb_ad); + preHookFunc(&sd, &pb_ad); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16499,11 +16522,11 @@ void HP_clif_PartyBookingUpdateNotify(struct map_session_data *sd, struct party_ void HP_clif_PartyBookingDeleteNotify(struct map_session_data *sd, int index) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingDeleteNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index); + void (*preHookFunc) (struct map_session_data **sd, int *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingDeleteNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingDeleteNotify_pre[hIndex].func; - preHookFunc(sd, &index); + preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16514,10 +16537,10 @@ void HP_clif_PartyBookingDeleteNotify(struct map_session_data *sd, int index) { HPMHooks.source.clif.PartyBookingDeleteNotify(sd, index); } if( HPMHooks.count.HP_clif_PartyBookingDeleteNotify_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index); + void (*postHookFunc) (struct map_session_data *sd, int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingDeleteNotify_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingDeleteNotify_post[hIndex].func; - postHookFunc(sd, &index); + postHookFunc(sd, index); } } return; @@ -16525,11 +16548,11 @@ void HP_clif_PartyBookingDeleteNotify(struct map_session_data *sd, int index) { void HP_clif_PartyBookingInsertNotify(struct map_session_data *sd, struct party_booking_ad_info *pb_ad) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingInsertNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct party_booking_ad_info *pb_ad); + void (*preHookFunc) (struct map_session_data **sd, struct party_booking_ad_info **pb_ad); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingInsertNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingInsertNotify_pre[hIndex].func; - preHookFunc(sd, pb_ad); + preHookFunc(&sd, &pb_ad); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16551,11 +16574,11 @@ void HP_clif_PartyBookingInsertNotify(struct map_session_data *sd, struct party_ void HP_clif_PartyRecruitRegisterAck(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitRegisterAck_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitRegisterAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitRegisterAck_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16566,10 +16589,10 @@ void HP_clif_PartyRecruitRegisterAck(struct map_session_data *sd, int flag) { HPMHooks.source.clif.PartyRecruitRegisterAck(sd, flag); } if( HPMHooks.count.HP_clif_PartyRecruitRegisterAck_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitRegisterAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyRecruitRegisterAck_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -16577,11 +16600,11 @@ void HP_clif_PartyRecruitRegisterAck(struct map_session_data *sd, int flag) { void HP_clif_PartyRecruitDeleteAck(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitDeleteAck_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitDeleteAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitDeleteAck_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16592,10 +16615,10 @@ void HP_clif_PartyRecruitDeleteAck(struct map_session_data *sd, int flag) { HPMHooks.source.clif.PartyRecruitDeleteAck(sd, flag); } if( HPMHooks.count.HP_clif_PartyRecruitDeleteAck_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitDeleteAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyRecruitDeleteAck_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -16603,11 +16626,11 @@ void HP_clif_PartyRecruitDeleteAck(struct map_session_data *sd, int flag) { void HP_clif_PartyRecruitSearchAck(int fd, struct party_booking_ad_info **results, int count, bool more_result) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitSearchAck_pre ) { - void (*preHookFunc) (int *fd, struct party_booking_ad_info **results, int *count, bool *more_result); + void (*preHookFunc) (int *fd, struct party_booking_ad_info ***results, int *count, bool *more_result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitSearchAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitSearchAck_pre[hIndex].func; - preHookFunc(&fd, results, &count, &more_result); + preHookFunc(&fd, &results, &count, &more_result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16618,10 +16641,10 @@ void HP_clif_PartyRecruitSearchAck(int fd, struct party_booking_ad_info **result HPMHooks.source.clif.PartyRecruitSearchAck(fd, results, count, more_result); } if( HPMHooks.count.HP_clif_PartyRecruitSearchAck_post ) { - void (*postHookFunc) (int *fd, struct party_booking_ad_info **results, int *count, bool *more_result); + void (*postHookFunc) (int fd, struct party_booking_ad_info **results, int count, bool more_result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitSearchAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyRecruitSearchAck_post[hIndex].func; - postHookFunc(&fd, results, &count, &more_result); + postHookFunc(fd, results, count, more_result); } } return; @@ -16629,11 +16652,11 @@ void HP_clif_PartyRecruitSearchAck(int fd, struct party_booking_ad_info **result void HP_clif_PartyRecruitUpdateNotify(struct map_session_data *sd, struct party_booking_ad_info *pb_ad) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitUpdateNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct party_booking_ad_info *pb_ad); + void (*preHookFunc) (struct map_session_data **sd, struct party_booking_ad_info **pb_ad); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitUpdateNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitUpdateNotify_pre[hIndex].func; - preHookFunc(sd, pb_ad); + preHookFunc(&sd, &pb_ad); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16655,11 +16678,11 @@ void HP_clif_PartyRecruitUpdateNotify(struct map_session_data *sd, struct party_ void HP_clif_PartyRecruitDeleteNotify(struct map_session_data *sd, int index) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitDeleteNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *index); + void (*preHookFunc) (struct map_session_data **sd, int *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitDeleteNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitDeleteNotify_pre[hIndex].func; - preHookFunc(sd, &index); + preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16670,10 +16693,10 @@ void HP_clif_PartyRecruitDeleteNotify(struct map_session_data *sd, int index) { HPMHooks.source.clif.PartyRecruitDeleteNotify(sd, index); } if( HPMHooks.count.HP_clif_PartyRecruitDeleteNotify_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *index); + void (*postHookFunc) (struct map_session_data *sd, int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitDeleteNotify_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyRecruitDeleteNotify_post[hIndex].func; - postHookFunc(sd, &index); + postHookFunc(sd, index); } } return; @@ -16681,11 +16704,11 @@ void HP_clif_PartyRecruitDeleteNotify(struct map_session_data *sd, int index) { void HP_clif_PartyRecruitInsertNotify(struct map_session_data *sd, struct party_booking_ad_info *pb_ad) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyRecruitInsertNotify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct party_booking_ad_info *pb_ad); + void (*preHookFunc) (struct map_session_data **sd, struct party_booking_ad_info **pb_ad); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyRecruitInsertNotify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyRecruitInsertNotify_pre[hIndex].func; - preHookFunc(sd, pb_ad); + preHookFunc(&sd, &pb_ad); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16707,11 +16730,11 @@ void HP_clif_PartyRecruitInsertNotify(struct map_session_data *sd, struct party_ void HP_clif_PartyBookingVolunteerInfo(int index, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingVolunteerInfo_pre ) { - void (*preHookFunc) (int *index, struct map_session_data *sd); + void (*preHookFunc) (int *index, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingVolunteerInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingVolunteerInfo_pre[hIndex].func; - preHookFunc(&index, sd); + preHookFunc(&index, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16722,10 +16745,10 @@ void HP_clif_PartyBookingVolunteerInfo(int index, struct map_session_data *sd) { HPMHooks.source.clif.PartyBookingVolunteerInfo(index, sd); } if( HPMHooks.count.HP_clif_PartyBookingVolunteerInfo_post ) { - void (*postHookFunc) (int *index, struct map_session_data *sd); + void (*postHookFunc) (int index, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingVolunteerInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingVolunteerInfo_post[hIndex].func; - postHookFunc(&index, sd); + postHookFunc(index, sd); } } return; @@ -16733,11 +16756,11 @@ void HP_clif_PartyBookingVolunteerInfo(int index, struct map_session_data *sd) { void HP_clif_PartyBookingRefuseVolunteer(unsigned int aid, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingRefuseVolunteer_pre ) { - void (*preHookFunc) (unsigned int *aid, struct map_session_data *sd); + void (*preHookFunc) (unsigned int *aid, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingRefuseVolunteer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingRefuseVolunteer_pre[hIndex].func; - preHookFunc(&aid, sd); + preHookFunc(&aid, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16748,10 +16771,10 @@ void HP_clif_PartyBookingRefuseVolunteer(unsigned int aid, struct map_session_da HPMHooks.source.clif.PartyBookingRefuseVolunteer(aid, sd); } if( HPMHooks.count.HP_clif_PartyBookingRefuseVolunteer_post ) { - void (*postHookFunc) (unsigned int *aid, struct map_session_data *sd); + void (*postHookFunc) (unsigned int aid, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingRefuseVolunteer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingRefuseVolunteer_post[hIndex].func; - postHookFunc(&aid, sd); + postHookFunc(aid, sd); } } return; @@ -16759,11 +16782,11 @@ void HP_clif_PartyBookingRefuseVolunteer(unsigned int aid, struct map_session_da void HP_clif_PartyBookingCancelVolunteer(int index, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingCancelVolunteer_pre ) { - void (*preHookFunc) (int *index, struct map_session_data *sd); + void (*preHookFunc) (int *index, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingCancelVolunteer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingCancelVolunteer_pre[hIndex].func; - preHookFunc(&index, sd); + preHookFunc(&index, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16774,10 +16797,10 @@ void HP_clif_PartyBookingCancelVolunteer(int index, struct map_session_data *sd) HPMHooks.source.clif.PartyBookingCancelVolunteer(index, sd); } if( HPMHooks.count.HP_clif_PartyBookingCancelVolunteer_post ) { - void (*postHookFunc) (int *index, struct map_session_data *sd); + void (*postHookFunc) (int index, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingCancelVolunteer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingCancelVolunteer_post[hIndex].func; - postHookFunc(&index, sd); + postHookFunc(index, sd); } } return; @@ -16785,11 +16808,11 @@ void HP_clif_PartyBookingCancelVolunteer(int index, struct map_session_data *sd) void HP_clif_PartyBookingAddFilteringList(int index, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingAddFilteringList_pre ) { - void (*preHookFunc) (int *index, struct map_session_data *sd); + void (*preHookFunc) (int *index, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingAddFilteringList_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingAddFilteringList_pre[hIndex].func; - preHookFunc(&index, sd); + preHookFunc(&index, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16800,10 +16823,10 @@ void HP_clif_PartyBookingAddFilteringList(int index, struct map_session_data *sd HPMHooks.source.clif.PartyBookingAddFilteringList(index, sd); } if( HPMHooks.count.HP_clif_PartyBookingAddFilteringList_post ) { - void (*postHookFunc) (int *index, struct map_session_data *sd); + void (*postHookFunc) (int index, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingAddFilteringList_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingAddFilteringList_post[hIndex].func; - postHookFunc(&index, sd); + postHookFunc(index, sd); } } return; @@ -16811,11 +16834,11 @@ void HP_clif_PartyBookingAddFilteringList(int index, struct map_session_data *sd void HP_clif_PartyBookingSubFilteringList(int gid, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_PartyBookingSubFilteringList_pre ) { - void (*preHookFunc) (int *gid, struct map_session_data *sd); + void (*preHookFunc) (int *gid, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingSubFilteringList_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_PartyBookingSubFilteringList_pre[hIndex].func; - preHookFunc(&gid, sd); + preHookFunc(&gid, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16826,10 +16849,10 @@ void HP_clif_PartyBookingSubFilteringList(int gid, struct map_session_data *sd) HPMHooks.source.clif.PartyBookingSubFilteringList(gid, sd); } if( HPMHooks.count.HP_clif_PartyBookingSubFilteringList_post ) { - void (*postHookFunc) (int *gid, struct map_session_data *sd); + void (*postHookFunc) (int gid, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyBookingSubFilteringList_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_PartyBookingSubFilteringList_post[hIndex].func; - postHookFunc(&gid, sd); + postHookFunc(gid, sd); } } return; @@ -16837,11 +16860,11 @@ void HP_clif_PartyBookingSubFilteringList(int gid, struct map_session_data *sd) void HP_clif_buyingstore_open(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_open_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_open_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16863,11 +16886,11 @@ void HP_clif_buyingstore_open(struct map_session_data *sd) { void HP_clif_buyingstore_open_failed(struct map_session_data *sd, unsigned short result, unsigned int weight) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_open_failed_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *result, unsigned int *weight); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *result, unsigned int *weight); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_open_failed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_open_failed_pre[hIndex].func; - preHookFunc(sd, &result, &weight); + preHookFunc(&sd, &result, &weight); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16878,10 +16901,10 @@ void HP_clif_buyingstore_open_failed(struct map_session_data *sd, unsigned short HPMHooks.source.clif.buyingstore_open_failed(sd, result, weight); } if( HPMHooks.count.HP_clif_buyingstore_open_failed_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *result, unsigned int *weight); + void (*postHookFunc) (struct map_session_data *sd, unsigned short result, unsigned int weight); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_open_failed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyingstore_open_failed_post[hIndex].func; - postHookFunc(sd, &result, &weight); + postHookFunc(sd, result, weight); } } return; @@ -16889,11 +16912,11 @@ void HP_clif_buyingstore_open_failed(struct map_session_data *sd, unsigned short void HP_clif_buyingstore_myitemlist(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_myitemlist_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_myitemlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_myitemlist_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16915,11 +16938,11 @@ void HP_clif_buyingstore_myitemlist(struct map_session_data *sd) { void HP_clif_buyingstore_entry(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_entry_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_entry_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16941,11 +16964,11 @@ void HP_clif_buyingstore_entry(struct map_session_data *sd) { void HP_clif_buyingstore_entry_single(struct map_session_data *sd, struct map_session_data *pl_sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_entry_single_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *pl_sd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **pl_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_entry_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_entry_single_pre[hIndex].func; - preHookFunc(sd, pl_sd); + preHookFunc(&sd, &pl_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16967,11 +16990,11 @@ void HP_clif_buyingstore_entry_single(struct map_session_data *sd, struct map_se void HP_clif_buyingstore_disappear_entry(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_disappear_entry_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_disappear_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_disappear_entry_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -16993,11 +17016,11 @@ void HP_clif_buyingstore_disappear_entry(struct map_session_data *sd) { void HP_clif_buyingstore_disappear_entry_single(struct map_session_data *sd, struct map_session_data *pl_sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_disappear_entry_single_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *pl_sd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **pl_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_disappear_entry_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_disappear_entry_single_pre[hIndex].func; - preHookFunc(sd, pl_sd); + preHookFunc(&sd, &pl_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17019,11 +17042,11 @@ void HP_clif_buyingstore_disappear_entry_single(struct map_session_data *sd, str void HP_clif_buyingstore_itemlist(struct map_session_data *sd, struct map_session_data *pl_sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_itemlist_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *pl_sd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **pl_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_itemlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_itemlist_pre[hIndex].func; - preHookFunc(sd, pl_sd); + preHookFunc(&sd, &pl_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17045,11 +17068,11 @@ void HP_clif_buyingstore_itemlist(struct map_session_data *sd, struct map_sessio void HP_clif_buyingstore_trade_failed_buyer(struct map_session_data *sd, short result) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_trade_failed_buyer_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *result); + void (*preHookFunc) (struct map_session_data **sd, short *result); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_trade_failed_buyer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_trade_failed_buyer_pre[hIndex].func; - preHookFunc(sd, &result); + preHookFunc(&sd, &result); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17060,10 +17083,10 @@ void HP_clif_buyingstore_trade_failed_buyer(struct map_session_data *sd, short r HPMHooks.source.clif.buyingstore_trade_failed_buyer(sd, result); } if( HPMHooks.count.HP_clif_buyingstore_trade_failed_buyer_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *result); + void (*postHookFunc) (struct map_session_data *sd, short result); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_trade_failed_buyer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyingstore_trade_failed_buyer_post[hIndex].func; - postHookFunc(sd, &result); + postHookFunc(sd, result); } } return; @@ -17071,11 +17094,11 @@ void HP_clif_buyingstore_trade_failed_buyer(struct map_session_data *sd, short r void HP_clif_buyingstore_update_item(struct map_session_data *sd, unsigned short nameid, unsigned short amount) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_update_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid, unsigned short *amount); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *nameid, unsigned short *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_update_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_update_item_pre[hIndex].func; - preHookFunc(sd, &nameid, &amount); + preHookFunc(&sd, &nameid, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17086,10 +17109,10 @@ void HP_clif_buyingstore_update_item(struct map_session_data *sd, unsigned short HPMHooks.source.clif.buyingstore_update_item(sd, nameid, amount); } if( HPMHooks.count.HP_clif_buyingstore_update_item_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *nameid, unsigned short *amount); + void (*postHookFunc) (struct map_session_data *sd, unsigned short nameid, unsigned short amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_update_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyingstore_update_item_post[hIndex].func; - postHookFunc(sd, &nameid, &amount); + postHookFunc(sd, nameid, amount); } } return; @@ -17097,11 +17120,11 @@ void HP_clif_buyingstore_update_item(struct map_session_data *sd, unsigned short void HP_clif_buyingstore_delete_item(struct map_session_data *sd, short index, unsigned short amount, int price) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_delete_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *index, unsigned short *amount, int *price); + void (*preHookFunc) (struct map_session_data **sd, short *index, unsigned short *amount, int *price); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_delete_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_delete_item_pre[hIndex].func; - preHookFunc(sd, &index, &amount, &price); + preHookFunc(&sd, &index, &amount, &price); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17112,10 +17135,10 @@ void HP_clif_buyingstore_delete_item(struct map_session_data *sd, short index, u HPMHooks.source.clif.buyingstore_delete_item(sd, index, amount, price); } if( HPMHooks.count.HP_clif_buyingstore_delete_item_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *index, unsigned short *amount, int *price); + void (*postHookFunc) (struct map_session_data *sd, short index, unsigned short amount, int price); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_delete_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyingstore_delete_item_post[hIndex].func; - postHookFunc(sd, &index, &amount, &price); + postHookFunc(sd, index, amount, price); } } return; @@ -17123,11 +17146,11 @@ void HP_clif_buyingstore_delete_item(struct map_session_data *sd, short index, u void HP_clif_buyingstore_trade_failed_seller(struct map_session_data *sd, short result, unsigned short nameid) { int hIndex = 0; if( HPMHooks.count.HP_clif_buyingstore_trade_failed_seller_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *result, unsigned short *nameid); + void (*preHookFunc) (struct map_session_data **sd, short *result, unsigned short *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_trade_failed_seller_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_buyingstore_trade_failed_seller_pre[hIndex].func; - preHookFunc(sd, &result, &nameid); + preHookFunc(&sd, &result, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17138,10 +17161,10 @@ void HP_clif_buyingstore_trade_failed_seller(struct map_session_data *sd, short HPMHooks.source.clif.buyingstore_trade_failed_seller(sd, result, nameid); } if( HPMHooks.count.HP_clif_buyingstore_trade_failed_seller_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *result, unsigned short *nameid); + void (*postHookFunc) (struct map_session_data *sd, short result, unsigned short nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_buyingstore_trade_failed_seller_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_buyingstore_trade_failed_seller_post[hIndex].func; - postHookFunc(sd, &result, &nameid); + postHookFunc(sd, result, nameid); } } return; @@ -17149,11 +17172,11 @@ void HP_clif_buyingstore_trade_failed_seller(struct map_session_data *sd, short void HP_clif_search_store_info_ack(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_search_store_info_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_search_store_info_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_search_store_info_ack_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17175,11 +17198,11 @@ void HP_clif_search_store_info_ack(struct map_session_data *sd) { void HP_clif_search_store_info_failed(struct map_session_data *sd, unsigned char reason) { int hIndex = 0; if( HPMHooks.count.HP_clif_search_store_info_failed_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *reason); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *reason); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_search_store_info_failed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_search_store_info_failed_pre[hIndex].func; - preHookFunc(sd, &reason); + preHookFunc(&sd, &reason); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17190,10 +17213,10 @@ void HP_clif_search_store_info_failed(struct map_session_data *sd, unsigned char HPMHooks.source.clif.search_store_info_failed(sd, reason); } if( HPMHooks.count.HP_clif_search_store_info_failed_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *reason); + void (*postHookFunc) (struct map_session_data *sd, unsigned char reason); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_search_store_info_failed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_search_store_info_failed_post[hIndex].func; - postHookFunc(sd, &reason); + postHookFunc(sd, reason); } } return; @@ -17201,11 +17224,11 @@ void HP_clif_search_store_info_failed(struct map_session_data *sd, unsigned char void HP_clif_open_search_store_info(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_open_search_store_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_open_search_store_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_open_search_store_info_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17227,11 +17250,11 @@ void HP_clif_open_search_store_info(struct map_session_data *sd) { void HP_clif_search_store_info_click_ack(struct map_session_data *sd, short x, short y) { int hIndex = 0; if( HPMHooks.count.HP_clif_search_store_info_click_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *x, short *y); + void (*preHookFunc) (struct map_session_data **sd, short *x, short *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_search_store_info_click_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_search_store_info_click_ack_pre[hIndex].func; - preHookFunc(sd, &x, &y); + preHookFunc(&sd, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17242,10 +17265,10 @@ void HP_clif_search_store_info_click_ack(struct map_session_data *sd, short x, s HPMHooks.source.clif.search_store_info_click_ack(sd, x, y); } if( HPMHooks.count.HP_clif_search_store_info_click_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *x, short *y); + void (*postHookFunc) (struct map_session_data *sd, short x, short y); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_search_store_info_click_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_search_store_info_click_ack_post[hIndex].func; - postHookFunc(sd, &x, &y); + postHookFunc(sd, x, y); } } return; @@ -17253,11 +17276,11 @@ void HP_clif_search_store_info_click_ack(struct map_session_data *sd, short x, s void HP_clif_elemental_info(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_elemental_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_elemental_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_elemental_info_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17279,11 +17302,11 @@ void HP_clif_elemental_info(struct map_session_data *sd) { void HP_clif_elemental_updatestatus(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_elemental_updatestatus_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_elemental_updatestatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_elemental_updatestatus_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17294,10 +17317,10 @@ void HP_clif_elemental_updatestatus(struct map_session_data *sd, int type) { HPMHooks.source.clif.elemental_updatestatus(sd, type); } if( HPMHooks.count.HP_clif_elemental_updatestatus_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_elemental_updatestatus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_elemental_updatestatus_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -17305,11 +17328,11 @@ void HP_clif_elemental_updatestatus(struct map_session_data *sd, int type) { void HP_clif_bgqueue_ack(struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_ACK response, unsigned char arena_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_ACK *response, unsigned char *arena_id); + void (*preHookFunc) (struct map_session_data **sd, enum BATTLEGROUNDS_QUEUE_ACK *response, unsigned char *arena_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_ack_pre[hIndex].func; - preHookFunc(sd, &response, &arena_id); + preHookFunc(&sd, &response, &arena_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17320,10 +17343,10 @@ void HP_clif_bgqueue_ack(struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_A HPMHooks.source.clif.bgqueue_ack(sd, response, arena_id); } if( HPMHooks.count.HP_clif_bgqueue_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_ACK *response, unsigned char *arena_id); + void (*postHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_ACK response, unsigned char arena_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bgqueue_ack_post[hIndex].func; - postHookFunc(sd, &response, &arena_id); + postHookFunc(sd, response, arena_id); } } return; @@ -17331,11 +17354,11 @@ void HP_clif_bgqueue_ack(struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_A void HP_clif_bgqueue_notice_delete(struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_NOTICE_DELETED response, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_notice_delete_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_NOTICE_DELETED *response, const char *name); + void (*preHookFunc) (struct map_session_data **sd, enum BATTLEGROUNDS_QUEUE_NOTICE_DELETED *response, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_notice_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_notice_delete_pre[hIndex].func; - preHookFunc(sd, &response, name); + preHookFunc(&sd, &response, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17346,10 +17369,10 @@ void HP_clif_bgqueue_notice_delete(struct map_session_data *sd, enum BATTLEGROUN HPMHooks.source.clif.bgqueue_notice_delete(sd, response, name); } if( HPMHooks.count.HP_clif_bgqueue_notice_delete_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_NOTICE_DELETED *response, const char *name); + void (*postHookFunc) (struct map_session_data *sd, enum BATTLEGROUNDS_QUEUE_NOTICE_DELETED response, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_notice_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bgqueue_notice_delete_post[hIndex].func; - postHookFunc(sd, &response, name); + postHookFunc(sd, response, name); } } return; @@ -17357,11 +17380,11 @@ void HP_clif_bgqueue_notice_delete(struct map_session_data *sd, enum BATTLEGROUN void HP_clif_bgqueue_update_info(struct map_session_data *sd, unsigned char arena_id, int position) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_update_info_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *arena_id, int *position); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *arena_id, int *position); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_update_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_update_info_pre[hIndex].func; - preHookFunc(sd, &arena_id, &position); + preHookFunc(&sd, &arena_id, &position); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17372,10 +17395,10 @@ void HP_clif_bgqueue_update_info(struct map_session_data *sd, unsigned char aren HPMHooks.source.clif.bgqueue_update_info(sd, arena_id, position); } if( HPMHooks.count.HP_clif_bgqueue_update_info_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *arena_id, int *position); + void (*postHookFunc) (struct map_session_data *sd, unsigned char arena_id, int position); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_update_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bgqueue_update_info_post[hIndex].func; - postHookFunc(sd, &arena_id, &position); + postHookFunc(sd, arena_id, position); } } return; @@ -17383,11 +17406,11 @@ void HP_clif_bgqueue_update_info(struct map_session_data *sd, unsigned char aren void HP_clif_bgqueue_joined(struct map_session_data *sd, int pos) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_joined_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *pos); + void (*preHookFunc) (struct map_session_data **sd, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_joined_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_joined_pre[hIndex].func; - preHookFunc(sd, &pos); + preHookFunc(&sd, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17398,10 +17421,10 @@ void HP_clif_bgqueue_joined(struct map_session_data *sd, int pos) { HPMHooks.source.clif.bgqueue_joined(sd, pos); } if( HPMHooks.count.HP_clif_bgqueue_joined_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *pos); + void (*postHookFunc) (struct map_session_data *sd, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_joined_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bgqueue_joined_post[hIndex].func; - postHookFunc(sd, &pos); + postHookFunc(sd, pos); } } return; @@ -17409,11 +17432,11 @@ void HP_clif_bgqueue_joined(struct map_session_data *sd, int pos) { void HP_clif_bgqueue_pcleft(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_pcleft_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_pcleft_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_pcleft_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17435,11 +17458,11 @@ void HP_clif_bgqueue_pcleft(struct map_session_data *sd) { void HP_clif_bgqueue_battlebegins(struct map_session_data *sd, unsigned char arena_id, enum send_target target) { int hIndex = 0; if( HPMHooks.count.HP_clif_bgqueue_battlebegins_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *arena_id, enum send_target *target); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *arena_id, enum send_target *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_battlebegins_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bgqueue_battlebegins_pre[hIndex].func; - preHookFunc(sd, &arena_id, &target); + preHookFunc(&sd, &arena_id, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17450,10 +17473,10 @@ void HP_clif_bgqueue_battlebegins(struct map_session_data *sd, unsigned char are HPMHooks.source.clif.bgqueue_battlebegins(sd, arena_id, target); } if( HPMHooks.count.HP_clif_bgqueue_battlebegins_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *arena_id, enum send_target *target); + void (*postHookFunc) (struct map_session_data *sd, unsigned char arena_id, enum send_target target); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bgqueue_battlebegins_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bgqueue_battlebegins_post[hIndex].func; - postHookFunc(sd, &arena_id, &target); + postHookFunc(sd, arena_id, target); } } return; @@ -17461,11 +17484,11 @@ void HP_clif_bgqueue_battlebegins(struct map_session_data *sd, unsigned char are void HP_clif_adopt_reply(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_adopt_reply_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_adopt_reply_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_adopt_reply_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17476,10 +17499,10 @@ void HP_clif_adopt_reply(struct map_session_data *sd, int type) { HPMHooks.source.clif.adopt_reply(sd, type); } if( HPMHooks.count.HP_clif_adopt_reply_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_adopt_reply_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_adopt_reply_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -17487,11 +17510,11 @@ void HP_clif_adopt_reply(struct map_session_data *sd, int type) { void HP_clif_adopt_request(struct map_session_data *sd, struct map_session_data *src, int p_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_adopt_request_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *src, int *p_id); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **src, int *p_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_adopt_request_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_adopt_request_pre[hIndex].func; - preHookFunc(sd, src, &p_id); + preHookFunc(&sd, &src, &p_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17502,10 +17525,10 @@ void HP_clif_adopt_request(struct map_session_data *sd, struct map_session_data HPMHooks.source.clif.adopt_request(sd, src, p_id); } if( HPMHooks.count.HP_clif_adopt_request_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *src, int *p_id); + void (*postHookFunc) (struct map_session_data *sd, struct map_session_data *src, int p_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_adopt_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_adopt_request_post[hIndex].func; - postHookFunc(sd, src, &p_id); + postHookFunc(sd, src, p_id); } } return; @@ -17528,10 +17551,10 @@ void HP_clif_readbook(int fd, int book_id, int page) { HPMHooks.source.clif.readbook(fd, book_id, page); } if( HPMHooks.count.HP_clif_readbook_post ) { - void (*postHookFunc) (int *fd, int *book_id, int *page); + void (*postHookFunc) (int fd, int book_id, int page); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_readbook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_readbook_post[hIndex].func; - postHookFunc(&fd, &book_id, &page); + postHookFunc(fd, book_id, page); } } return; @@ -17539,11 +17562,11 @@ void HP_clif_readbook(int fd, int book_id, int page) { void HP_clif_notify_time(struct map_session_data *sd, int64 time) { int hIndex = 0; if( HPMHooks.count.HP_clif_notify_time_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int64 *time); + void (*preHookFunc) (struct map_session_data **sd, int64 *time); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_time_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_notify_time_pre[hIndex].func; - preHookFunc(sd, &time); + preHookFunc(&sd, &time); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17554,10 +17577,10 @@ void HP_clif_notify_time(struct map_session_data *sd, int64 time) { HPMHooks.source.clif.notify_time(sd, time); } if( HPMHooks.count.HP_clif_notify_time_post ) { - void (*postHookFunc) (struct map_session_data *sd, int64 *time); + void (*postHookFunc) (struct map_session_data *sd, int64 time); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_time_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_notify_time_post[hIndex].func; - postHookFunc(sd, &time); + postHookFunc(sd, time); } } return; @@ -17565,11 +17588,11 @@ void HP_clif_notify_time(struct map_session_data *sd, int64 time) { void HP_clif_user_count(struct map_session_data *sd, int count) { int hIndex = 0; if( HPMHooks.count.HP_clif_user_count_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *count); + void (*preHookFunc) (struct map_session_data **sd, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_user_count_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_user_count_pre[hIndex].func; - preHookFunc(sd, &count); + preHookFunc(&sd, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17580,10 +17603,10 @@ void HP_clif_user_count(struct map_session_data *sd, int count) { HPMHooks.source.clif.user_count(sd, count); } if( HPMHooks.count.HP_clif_user_count_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *count); + void (*postHookFunc) (struct map_session_data *sd, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_user_count_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_user_count_post[hIndex].func; - postHookFunc(sd, &count); + postHookFunc(sd, count); } } return; @@ -17591,11 +17614,11 @@ void HP_clif_user_count(struct map_session_data *sd, int count) { void HP_clif_noask_sub(struct map_session_data *src, struct map_session_data *target, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_noask_sub_pre ) { - void (*preHookFunc) (struct map_session_data *src, struct map_session_data *target, int *type); + void (*preHookFunc) (struct map_session_data **src, struct map_session_data **target, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_noask_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_noask_sub_pre[hIndex].func; - preHookFunc(src, target, &type); + preHookFunc(&src, &target, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17606,10 +17629,10 @@ void HP_clif_noask_sub(struct map_session_data *src, struct map_session_data *ta HPMHooks.source.clif.noask_sub(src, target, type); } if( HPMHooks.count.HP_clif_noask_sub_post ) { - void (*postHookFunc) (struct map_session_data *src, struct map_session_data *target, int *type); + void (*postHookFunc) (struct map_session_data *src, struct map_session_data *target, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_noask_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_noask_sub_post[hIndex].func; - postHookFunc(src, target, &type); + postHookFunc(src, target, type); } } return; @@ -17643,11 +17666,11 @@ void HP_clif_bc_ready(void) { void HP_clif_channel_msg(struct channel_data *chan, struct map_session_data *sd, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_clif_channel_msg_pre ) { - void (*preHookFunc) (struct channel_data *chan, struct map_session_data *sd, char *msg); + void (*preHookFunc) (struct channel_data **chan, struct map_session_data **sd, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_channel_msg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_channel_msg_pre[hIndex].func; - preHookFunc(chan, sd, msg); + preHookFunc(&chan, &sd, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17669,11 +17692,11 @@ void HP_clif_channel_msg(struct channel_data *chan, struct map_session_data *sd, void HP_clif_channel_msg2(struct channel_data *chan, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_clif_channel_msg2_pre ) { - void (*preHookFunc) (struct channel_data *chan, char *msg); + void (*preHookFunc) (struct channel_data **chan, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_channel_msg2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_channel_msg2_pre[hIndex].func; - preHookFunc(chan, msg); + preHookFunc(&chan, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17711,10 +17734,10 @@ int HP_clif_undisguise_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.clif.undisguise_timer(tid, tick, id, data); } if( HPMHooks.count.HP_clif_undisguise_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_undisguise_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_undisguise_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -17722,11 +17745,11 @@ int HP_clif_undisguise_timer(int tid, int64 tick, int id, intptr_t data) { void HP_clif_bank_deposit(struct map_session_data *sd, enum e_BANKING_DEPOSIT_ACK reason) { int hIndex = 0; if( HPMHooks.count.HP_clif_bank_deposit_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_BANKING_DEPOSIT_ACK *reason); + void (*preHookFunc) (struct map_session_data **sd, enum e_BANKING_DEPOSIT_ACK *reason); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bank_deposit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bank_deposit_pre[hIndex].func; - preHookFunc(sd, &reason); + preHookFunc(&sd, &reason); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17737,10 +17760,10 @@ void HP_clif_bank_deposit(struct map_session_data *sd, enum e_BANKING_DEPOSIT_AC HPMHooks.source.clif.bank_deposit(sd, reason); } if( HPMHooks.count.HP_clif_bank_deposit_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_BANKING_DEPOSIT_ACK *reason); + void (*postHookFunc) (struct map_session_data *sd, enum e_BANKING_DEPOSIT_ACK reason); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bank_deposit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bank_deposit_post[hIndex].func; - postHookFunc(sd, &reason); + postHookFunc(sd, reason); } } return; @@ -17748,11 +17771,11 @@ void HP_clif_bank_deposit(struct map_session_data *sd, enum e_BANKING_DEPOSIT_AC void HP_clif_bank_withdraw(struct map_session_data *sd, enum e_BANKING_WITHDRAW_ACK reason) { int hIndex = 0; if( HPMHooks.count.HP_clif_bank_withdraw_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_BANKING_WITHDRAW_ACK *reason); + void (*preHookFunc) (struct map_session_data **sd, enum e_BANKING_WITHDRAW_ACK *reason); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bank_withdraw_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_bank_withdraw_pre[hIndex].func; - preHookFunc(sd, &reason); + preHookFunc(&sd, &reason); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17763,10 +17786,10 @@ void HP_clif_bank_withdraw(struct map_session_data *sd, enum e_BANKING_WITHDRAW_ HPMHooks.source.clif.bank_withdraw(sd, reason); } if( HPMHooks.count.HP_clif_bank_withdraw_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_BANKING_WITHDRAW_ACK *reason); + void (*postHookFunc) (struct map_session_data *sd, enum e_BANKING_WITHDRAW_ACK reason); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_bank_withdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_bank_withdraw_post[hIndex].func; - postHookFunc(sd, &reason); + postHookFunc(sd, reason); } } return; @@ -17774,11 +17797,11 @@ void HP_clif_bank_withdraw(struct map_session_data *sd, enum e_BANKING_WITHDRAW_ void HP_clif_show_modifiers(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_show_modifiers_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_show_modifiers_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_show_modifiers_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17800,11 +17823,11 @@ void HP_clif_show_modifiers(struct map_session_data *sd) { void HP_clif_notify_bounditem(struct map_session_data *sd, unsigned short index) { int hIndex = 0; if( HPMHooks.count.HP_clif_notify_bounditem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned short *index); + void (*preHookFunc) (struct map_session_data **sd, unsigned short *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_bounditem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_notify_bounditem_pre[hIndex].func; - preHookFunc(sd, &index); + preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17815,10 +17838,10 @@ void HP_clif_notify_bounditem(struct map_session_data *sd, unsigned short index) HPMHooks.source.clif.notify_bounditem(sd, index); } if( HPMHooks.count.HP_clif_notify_bounditem_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned short *index); + void (*postHookFunc) (struct map_session_data *sd, unsigned short index); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_bounditem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_notify_bounditem_post[hIndex].func; - postHookFunc(sd, &index); + postHookFunc(sd, index); } } return; @@ -17827,11 +17850,11 @@ int HP_clif_delay_damage(int64 tick, struct block_list *src, struct block_list * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_delay_damage_pre ) { - int (*preHookFunc) (int64 *tick, struct block_list *src, struct block_list *dst, int *sdelay, int *ddelay, int64 *in_damage, short *div, unsigned char *type); + int (*preHookFunc) (int64 *tick, struct block_list **src, struct block_list **dst, int *sdelay, int *ddelay, int64 *in_damage, short *div, unsigned char *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delay_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_delay_damage_pre[hIndex].func; - retVal___ = preHookFunc(&tick, src, dst, &sdelay, &ddelay, &in_damage, &div, &type); + retVal___ = preHookFunc(&tick, &src, &dst, &sdelay, &ddelay, &in_damage, &div, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17842,10 +17865,10 @@ int HP_clif_delay_damage(int64 tick, struct block_list *src, struct block_list * retVal___ = HPMHooks.source.clif.delay_damage(tick, src, dst, sdelay, ddelay, in_damage, div, type); } if( HPMHooks.count.HP_clif_delay_damage_post ) { - int (*postHookFunc) (int retVal___, int64 *tick, struct block_list *src, struct block_list *dst, int *sdelay, int *ddelay, int64 *in_damage, short *div, unsigned char *type); + int (*postHookFunc) (int retVal___, int64 tick, struct block_list *src, struct block_list *dst, int sdelay, int ddelay, int64 in_damage, short div, unsigned char type); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delay_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_delay_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tick, src, dst, &sdelay, &ddelay, &in_damage, &div, &type); + retVal___ = postHookFunc(retVal___, tick, src, dst, sdelay, ddelay, in_damage, div, type); } } return retVal___; @@ -17869,10 +17892,10 @@ int HP_clif_delay_damage_sub(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.clif.delay_damage_sub(tid, tick, id, data); } if( HPMHooks.count.HP_clif_delay_damage_sub_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delay_damage_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_delay_damage_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -17880,11 +17903,11 @@ int HP_clif_delay_damage_sub(int tid, int64 tick, int id, intptr_t data) { void HP_clif_npc_market_open(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_clif_npc_market_open_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + void (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_market_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_npc_market_open_pre[hIndex].func; - preHookFunc(sd, nd); + preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17906,11 +17929,11 @@ void HP_clif_npc_market_open(struct map_session_data *sd, struct npc_data *nd) { void HP_clif_npc_market_purchase_ack(struct map_session_data *sd, const struct itemlist *item_list, unsigned char response) { int hIndex = 0; if( HPMHooks.count.HP_clif_npc_market_purchase_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const struct itemlist *item_list, unsigned char *response); + void (*preHookFunc) (struct map_session_data **sd, const struct itemlist **item_list, unsigned char *response); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_market_purchase_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_npc_market_purchase_ack_pre[hIndex].func; - preHookFunc(sd, item_list, &response); + preHookFunc(&sd, &item_list, &response); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17921,10 +17944,10 @@ void HP_clif_npc_market_purchase_ack(struct map_session_data *sd, const struct i HPMHooks.source.clif.npc_market_purchase_ack(sd, item_list, response); } if( HPMHooks.count.HP_clif_npc_market_purchase_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, const struct itemlist *item_list, unsigned char *response); + void (*postHookFunc) (struct map_session_data *sd, const struct itemlist *item_list, unsigned char response); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_npc_market_purchase_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_npc_market_purchase_ack_post[hIndex].func; - postHookFunc(sd, item_list, &response); + postHookFunc(sd, item_list, response); } } return; @@ -17959,11 +17982,11 @@ bool HP_clif_parse_roulette_db(void) { void HP_clif_roulette_generate_ack(struct map_session_data *sd, unsigned char result, short stage, short prizeIdx, short bonusItemID) { int hIndex = 0; if( HPMHooks.count.HP_clif_roulette_generate_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *result, short *stage, short *prizeIdx, short *bonusItemID); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *result, short *stage, short *prizeIdx, short *bonusItemID); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_roulette_generate_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_roulette_generate_ack_pre[hIndex].func; - preHookFunc(sd, &result, &stage, &prizeIdx, &bonusItemID); + preHookFunc(&sd, &result, &stage, &prizeIdx, &bonusItemID); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -17974,10 +17997,10 @@ void HP_clif_roulette_generate_ack(struct map_session_data *sd, unsigned char re HPMHooks.source.clif.roulette_generate_ack(sd, result, stage, prizeIdx, bonusItemID); } if( HPMHooks.count.HP_clif_roulette_generate_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *result, short *stage, short *prizeIdx, short *bonusItemID); + void (*postHookFunc) (struct map_session_data *sd, unsigned char result, short stage, short prizeIdx, short bonusItemID); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_roulette_generate_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_roulette_generate_ack_post[hIndex].func; - postHookFunc(sd, &result, &stage, &prizeIdx, &bonusItemID); + postHookFunc(sd, result, stage, prizeIdx, bonusItemID); } } return; @@ -17985,11 +18008,11 @@ void HP_clif_roulette_generate_ack(struct map_session_data *sd, unsigned char re void HP_clif_openmergeitem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_openmergeitem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openmergeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_openmergeitem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18000,10 +18023,10 @@ void HP_clif_openmergeitem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.openmergeitem(fd, sd); } if( HPMHooks.count.HP_clif_openmergeitem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_openmergeitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_openmergeitem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18011,11 +18034,11 @@ void HP_clif_openmergeitem(int fd, struct map_session_data *sd) { void HP_clif_cancelmergeitem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_cancelmergeitem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cancelmergeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_cancelmergeitem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18026,10 +18049,10 @@ void HP_clif_cancelmergeitem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.cancelmergeitem(fd, sd); } if( HPMHooks.count.HP_clif_cancelmergeitem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_cancelmergeitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_cancelmergeitem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18038,11 +18061,11 @@ int HP_clif_comparemergeitem(const void *a, const void *b) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_clif_comparemergeitem_pre ) { - int (*preHookFunc) (const void *a, const void *b); + int (*preHookFunc) (const void **a, const void **b); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_comparemergeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_comparemergeitem_pre[hIndex].func; - retVal___ = preHookFunc(a, b); + retVal___ = preHookFunc(&a, &b); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18064,11 +18087,11 @@ int HP_clif_comparemergeitem(const void *a, const void *b) { void HP_clif_ackmergeitems(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_ackmergeitems_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ackmergeitems_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_ackmergeitems_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18079,10 +18102,10 @@ void HP_clif_ackmergeitems(int fd, struct map_session_data *sd) { HPMHooks.source.clif.ackmergeitems(fd, sd); } if( HPMHooks.count.HP_clif_ackmergeitems_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_ackmergeitems_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_ackmergeitems_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18090,11 +18113,11 @@ void HP_clif_ackmergeitems(int fd, struct map_session_data *sd) { void HP_clif_pWantToConnection(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pWantToConnection_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWantToConnection_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pWantToConnection_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18105,10 +18128,10 @@ void HP_clif_pWantToConnection(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pWantToConnection(fd, sd); } if( HPMHooks.count.HP_clif_pWantToConnection_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWantToConnection_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pWantToConnection_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18116,11 +18139,11 @@ void HP_clif_pWantToConnection(int fd, struct map_session_data *sd) { void HP_clif_pLoadEndAck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pLoadEndAck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLoadEndAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pLoadEndAck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18131,10 +18154,10 @@ void HP_clif_pLoadEndAck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pLoadEndAck(fd, sd); } if( HPMHooks.count.HP_clif_pLoadEndAck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLoadEndAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pLoadEndAck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18142,11 +18165,11 @@ void HP_clif_pLoadEndAck(int fd, struct map_session_data *sd) { void HP_clif_pTickSend(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTickSend_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTickSend_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTickSend_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18157,10 +18180,10 @@ void HP_clif_pTickSend(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTickSend(fd, sd); } if( HPMHooks.count.HP_clif_pTickSend_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTickSend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTickSend_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18168,11 +18191,11 @@ void HP_clif_pTickSend(int fd, struct map_session_data *sd) { void HP_clif_pHotkey(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHotkey_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHotkey_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18183,10 +18206,10 @@ void HP_clif_pHotkey(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHotkey(fd, sd); } if( HPMHooks.count.HP_clif_pHotkey_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHotkey_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18194,11 +18217,11 @@ void HP_clif_pHotkey(int fd, struct map_session_data *sd) { void HP_clif_pProgressbar(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pProgressbar_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pProgressbar_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pProgressbar_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18209,10 +18232,10 @@ void HP_clif_pProgressbar(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pProgressbar(fd, sd); } if( HPMHooks.count.HP_clif_pProgressbar_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pProgressbar_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pProgressbar_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18220,11 +18243,11 @@ void HP_clif_pProgressbar(int fd, struct map_session_data *sd) { void HP_clif_pWalkToXY(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pWalkToXY_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWalkToXY_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pWalkToXY_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18235,10 +18258,10 @@ void HP_clif_pWalkToXY(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pWalkToXY(fd, sd); } if( HPMHooks.count.HP_clif_pWalkToXY_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWalkToXY_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pWalkToXY_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18246,11 +18269,11 @@ void HP_clif_pWalkToXY(int fd, struct map_session_data *sd) { void HP_clif_pQuitGame(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pQuitGame_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pQuitGame_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pQuitGame_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18261,10 +18284,10 @@ void HP_clif_pQuitGame(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pQuitGame(fd, sd); } if( HPMHooks.count.HP_clif_pQuitGame_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pQuitGame_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pQuitGame_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18272,11 +18295,11 @@ void HP_clif_pQuitGame(int fd, struct map_session_data *sd) { void HP_clif_pGetCharNameRequest(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGetCharNameRequest_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGetCharNameRequest_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGetCharNameRequest_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18287,10 +18310,10 @@ void HP_clif_pGetCharNameRequest(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGetCharNameRequest(fd, sd); } if( HPMHooks.count.HP_clif_pGetCharNameRequest_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGetCharNameRequest_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGetCharNameRequest_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18298,11 +18321,11 @@ void HP_clif_pGetCharNameRequest(int fd, struct map_session_data *sd) { void HP_clif_pGlobalMessage(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGlobalMessage_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGlobalMessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGlobalMessage_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18313,10 +18336,10 @@ void HP_clif_pGlobalMessage(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGlobalMessage(fd, sd); } if( HPMHooks.count.HP_clif_pGlobalMessage_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGlobalMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGlobalMessage_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18324,11 +18347,11 @@ void HP_clif_pGlobalMessage(int fd, struct map_session_data *sd) { void HP_clif_pMapMove(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMapMove_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMapMove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMapMove_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18339,10 +18362,10 @@ void HP_clif_pMapMove(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMapMove(fd, sd); } if( HPMHooks.count.HP_clif_pMapMove_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMapMove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMapMove_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18350,11 +18373,11 @@ void HP_clif_pMapMove(int fd, struct map_session_data *sd) { void HP_clif_pChangeDir(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChangeDir_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeDir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChangeDir_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18365,10 +18388,10 @@ void HP_clif_pChangeDir(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChangeDir(fd, sd); } if( HPMHooks.count.HP_clif_pChangeDir_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeDir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChangeDir_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18376,11 +18399,11 @@ void HP_clif_pChangeDir(int fd, struct map_session_data *sd) { void HP_clif_pEmotion(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pEmotion_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEmotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pEmotion_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18391,10 +18414,10 @@ void HP_clif_pEmotion(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pEmotion(fd, sd); } if( HPMHooks.count.HP_clif_pEmotion_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEmotion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pEmotion_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18402,11 +18425,11 @@ void HP_clif_pEmotion(int fd, struct map_session_data *sd) { void HP_clif_pHowManyConnections(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHowManyConnections_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHowManyConnections_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHowManyConnections_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18417,10 +18440,10 @@ void HP_clif_pHowManyConnections(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHowManyConnections(fd, sd); } if( HPMHooks.count.HP_clif_pHowManyConnections_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHowManyConnections_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHowManyConnections_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18428,11 +18451,11 @@ void HP_clif_pHowManyConnections(int fd, struct map_session_data *sd) { void HP_clif_pActionRequest(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pActionRequest_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pActionRequest_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pActionRequest_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18443,10 +18466,10 @@ void HP_clif_pActionRequest(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pActionRequest(fd, sd); } if( HPMHooks.count.HP_clif_pActionRequest_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pActionRequest_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pActionRequest_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18454,11 +18477,11 @@ void HP_clif_pActionRequest(int fd, struct map_session_data *sd) { void HP_clif_pActionRequest_sub(struct map_session_data *sd, int action_type, int target_id, int64 tick) { int hIndex = 0; if( HPMHooks.count.HP_clif_pActionRequest_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *action_type, int *target_id, int64 *tick); + void (*preHookFunc) (struct map_session_data **sd, int *action_type, int *target_id, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pActionRequest_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pActionRequest_sub_pre[hIndex].func; - preHookFunc(sd, &action_type, &target_id, &tick); + preHookFunc(&sd, &action_type, &target_id, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18469,10 +18492,10 @@ void HP_clif_pActionRequest_sub(struct map_session_data *sd, int action_type, in HPMHooks.source.clif.pActionRequest_sub(sd, action_type, target_id, tick); } if( HPMHooks.count.HP_clif_pActionRequest_sub_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *action_type, int *target_id, int64 *tick); + void (*postHookFunc) (struct map_session_data *sd, int action_type, int target_id, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pActionRequest_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pActionRequest_sub_post[hIndex].func; - postHookFunc(sd, &action_type, &target_id, &tick); + postHookFunc(sd, action_type, target_id, tick); } } return; @@ -18480,11 +18503,11 @@ void HP_clif_pActionRequest_sub(struct map_session_data *sd, int action_type, in void HP_clif_pRestart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRestart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRestart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRestart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18495,10 +18518,10 @@ void HP_clif_pRestart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRestart(fd, sd); } if( HPMHooks.count.HP_clif_pRestart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRestart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRestart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18506,11 +18529,11 @@ void HP_clif_pRestart(int fd, struct map_session_data *sd) { void HP_clif_pWisMessage(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pWisMessage_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWisMessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pWisMessage_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18521,10 +18544,10 @@ void HP_clif_pWisMessage(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pWisMessage(fd, sd); } if( HPMHooks.count.HP_clif_pWisMessage_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWisMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pWisMessage_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18532,11 +18555,11 @@ void HP_clif_pWisMessage(int fd, struct map_session_data *sd) { void HP_clif_pBroadcast(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBroadcast_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBroadcast_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBroadcast_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18547,10 +18570,10 @@ void HP_clif_pBroadcast(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBroadcast(fd, sd); } if( HPMHooks.count.HP_clif_pBroadcast_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBroadcast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBroadcast_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18558,11 +18581,11 @@ void HP_clif_pBroadcast(int fd, struct map_session_data *sd) { void HP_clif_pTakeItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTakeItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTakeItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTakeItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18573,10 +18596,10 @@ void HP_clif_pTakeItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTakeItem(fd, sd); } if( HPMHooks.count.HP_clif_pTakeItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTakeItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTakeItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18584,11 +18607,11 @@ void HP_clif_pTakeItem(int fd, struct map_session_data *sd) { void HP_clif_pDropItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pDropItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDropItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pDropItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18599,10 +18622,10 @@ void HP_clif_pDropItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pDropItem(fd, sd); } if( HPMHooks.count.HP_clif_pDropItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDropItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pDropItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18610,11 +18633,11 @@ void HP_clif_pDropItem(int fd, struct map_session_data *sd) { void HP_clif_pUseItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18625,10 +18648,10 @@ void HP_clif_pUseItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseItem(fd, sd); } if( HPMHooks.count.HP_clif_pUseItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18636,11 +18659,11 @@ void HP_clif_pUseItem(int fd, struct map_session_data *sd) { void HP_clif_pEquipItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pEquipItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEquipItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pEquipItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18651,10 +18674,10 @@ void HP_clif_pEquipItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pEquipItem(fd, sd); } if( HPMHooks.count.HP_clif_pEquipItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEquipItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pEquipItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18662,11 +18685,11 @@ void HP_clif_pEquipItem(int fd, struct map_session_data *sd) { void HP_clif_pUnequipItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUnequipItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUnequipItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUnequipItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18677,10 +18700,10 @@ void HP_clif_pUnequipItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUnequipItem(fd, sd); } if( HPMHooks.count.HP_clif_pUnequipItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUnequipItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUnequipItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18688,11 +18711,11 @@ void HP_clif_pUnequipItem(int fd, struct map_session_data *sd) { void HP_clif_pNpcClicked(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcClicked_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcClicked_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcClicked_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18703,10 +18726,10 @@ void HP_clif_pNpcClicked(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcClicked(fd, sd); } if( HPMHooks.count.HP_clif_pNpcClicked_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcClicked_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcClicked_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18714,11 +18737,11 @@ void HP_clif_pNpcClicked(int fd, struct map_session_data *sd) { void HP_clif_pNpcBuySellSelected(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcBuySellSelected_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcBuySellSelected_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcBuySellSelected_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18729,10 +18752,10 @@ void HP_clif_pNpcBuySellSelected(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcBuySellSelected(fd, sd); } if( HPMHooks.count.HP_clif_pNpcBuySellSelected_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcBuySellSelected_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcBuySellSelected_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18740,11 +18763,11 @@ void HP_clif_pNpcBuySellSelected(int fd, struct map_session_data *sd) { void HP_clif_pNpcBuyListSend(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcBuyListSend_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcBuyListSend_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcBuyListSend_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18755,10 +18778,10 @@ void HP_clif_pNpcBuyListSend(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcBuyListSend(fd, sd); } if( HPMHooks.count.HP_clif_pNpcBuyListSend_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcBuyListSend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcBuyListSend_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18766,11 +18789,11 @@ void HP_clif_pNpcBuyListSend(int fd, struct map_session_data *sd) { void HP_clif_pNpcSellListSend(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcSellListSend_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcSellListSend_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcSellListSend_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18781,10 +18804,10 @@ void HP_clif_pNpcSellListSend(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcSellListSend(fd, sd); } if( HPMHooks.count.HP_clif_pNpcSellListSend_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcSellListSend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcSellListSend_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18792,11 +18815,11 @@ void HP_clif_pNpcSellListSend(int fd, struct map_session_data *sd) { void HP_clif_pCreateChatRoom(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCreateChatRoom_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateChatRoom_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCreateChatRoom_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18807,10 +18830,10 @@ void HP_clif_pCreateChatRoom(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCreateChatRoom(fd, sd); } if( HPMHooks.count.HP_clif_pCreateChatRoom_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateChatRoom_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCreateChatRoom_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18818,11 +18841,11 @@ void HP_clif_pCreateChatRoom(int fd, struct map_session_data *sd) { void HP_clif_pChatAddMember(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChatAddMember_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatAddMember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChatAddMember_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18833,10 +18856,10 @@ void HP_clif_pChatAddMember(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChatAddMember(fd, sd); } if( HPMHooks.count.HP_clif_pChatAddMember_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatAddMember_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChatAddMember_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18844,11 +18867,11 @@ void HP_clif_pChatAddMember(int fd, struct map_session_data *sd) { void HP_clif_pChatRoomStatusChange(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChatRoomStatusChange_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatRoomStatusChange_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChatRoomStatusChange_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18859,10 +18882,10 @@ void HP_clif_pChatRoomStatusChange(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChatRoomStatusChange(fd, sd); } if( HPMHooks.count.HP_clif_pChatRoomStatusChange_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatRoomStatusChange_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChatRoomStatusChange_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18870,11 +18893,11 @@ void HP_clif_pChatRoomStatusChange(int fd, struct map_session_data *sd) { void HP_clif_pChangeChatOwner(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChangeChatOwner_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeChatOwner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChangeChatOwner_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18885,10 +18908,10 @@ void HP_clif_pChangeChatOwner(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChangeChatOwner(fd, sd); } if( HPMHooks.count.HP_clif_pChangeChatOwner_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeChatOwner_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChangeChatOwner_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18896,11 +18919,11 @@ void HP_clif_pChangeChatOwner(int fd, struct map_session_data *sd) { void HP_clif_pKickFromChat(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pKickFromChat_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pKickFromChat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pKickFromChat_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18911,10 +18934,10 @@ void HP_clif_pKickFromChat(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pKickFromChat(fd, sd); } if( HPMHooks.count.HP_clif_pKickFromChat_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pKickFromChat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pKickFromChat_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18922,11 +18945,11 @@ void HP_clif_pKickFromChat(int fd, struct map_session_data *sd) { void HP_clif_pChatLeave(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChatLeave_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatLeave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChatLeave_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18937,10 +18960,10 @@ void HP_clif_pChatLeave(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChatLeave(fd, sd); } if( HPMHooks.count.HP_clif_pChatLeave_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChatLeave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChatLeave_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18948,11 +18971,11 @@ void HP_clif_pChatLeave(int fd, struct map_session_data *sd) { void HP_clif_pTradeRequest(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeRequest_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeRequest_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeRequest_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18963,10 +18986,10 @@ void HP_clif_pTradeRequest(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeRequest(fd, sd); } if( HPMHooks.count.HP_clif_pTradeRequest_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeRequest_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeRequest_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -18974,11 +18997,11 @@ void HP_clif_pTradeRequest(int fd, struct map_session_data *sd) { void HP_clif_pTradeAck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeAck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeAck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -18989,10 +19012,10 @@ void HP_clif_pTradeAck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeAck(fd, sd); } if( HPMHooks.count.HP_clif_pTradeAck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeAck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19000,11 +19023,11 @@ void HP_clif_pTradeAck(int fd, struct map_session_data *sd) { void HP_clif_pTradeAddItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeAddItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeAddItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeAddItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19015,10 +19038,10 @@ void HP_clif_pTradeAddItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeAddItem(fd, sd); } if( HPMHooks.count.HP_clif_pTradeAddItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeAddItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeAddItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19026,11 +19049,11 @@ void HP_clif_pTradeAddItem(int fd, struct map_session_data *sd) { void HP_clif_pTradeOk(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeOk_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeOk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeOk_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19041,10 +19064,10 @@ void HP_clif_pTradeOk(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeOk(fd, sd); } if( HPMHooks.count.HP_clif_pTradeOk_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeOk_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19052,11 +19075,11 @@ void HP_clif_pTradeOk(int fd, struct map_session_data *sd) { void HP_clif_pTradeCancel(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeCancel_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeCancel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeCancel_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19067,10 +19090,10 @@ void HP_clif_pTradeCancel(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeCancel(fd, sd); } if( HPMHooks.count.HP_clif_pTradeCancel_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeCancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeCancel_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19078,11 +19101,11 @@ void HP_clif_pTradeCancel(int fd, struct map_session_data *sd) { void HP_clif_pTradeCommit(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTradeCommit_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeCommit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTradeCommit_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19093,10 +19116,10 @@ void HP_clif_pTradeCommit(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTradeCommit(fd, sd); } if( HPMHooks.count.HP_clif_pTradeCommit_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTradeCommit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTradeCommit_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19104,11 +19127,11 @@ void HP_clif_pTradeCommit(int fd, struct map_session_data *sd) { void HP_clif_pStopAttack(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pStopAttack_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStopAttack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pStopAttack_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19119,10 +19142,10 @@ void HP_clif_pStopAttack(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pStopAttack(fd, sd); } if( HPMHooks.count.HP_clif_pStopAttack_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStopAttack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pStopAttack_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19130,11 +19153,11 @@ void HP_clif_pStopAttack(int fd, struct map_session_data *sd) { void HP_clif_pPutItemToCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPutItemToCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPutItemToCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPutItemToCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19145,10 +19168,10 @@ void HP_clif_pPutItemToCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPutItemToCart(fd, sd); } if( HPMHooks.count.HP_clif_pPutItemToCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPutItemToCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPutItemToCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19156,11 +19179,11 @@ void HP_clif_pPutItemToCart(int fd, struct map_session_data *sd) { void HP_clif_pGetItemFromCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGetItemFromCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGetItemFromCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGetItemFromCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19171,10 +19194,10 @@ void HP_clif_pGetItemFromCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGetItemFromCart(fd, sd); } if( HPMHooks.count.HP_clif_pGetItemFromCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGetItemFromCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGetItemFromCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19182,11 +19205,11 @@ void HP_clif_pGetItemFromCart(int fd, struct map_session_data *sd) { void HP_clif_pRemoveOption(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRemoveOption_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRemoveOption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRemoveOption_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19197,10 +19220,10 @@ void HP_clif_pRemoveOption(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRemoveOption(fd, sd); } if( HPMHooks.count.HP_clif_pRemoveOption_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRemoveOption_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRemoveOption_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19208,11 +19231,11 @@ void HP_clif_pRemoveOption(int fd, struct map_session_data *sd) { void HP_clif_pChangeCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChangeCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChangeCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19223,10 +19246,10 @@ void HP_clif_pChangeCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChangeCart(fd, sd); } if( HPMHooks.count.HP_clif_pChangeCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChangeCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19234,11 +19257,11 @@ void HP_clif_pChangeCart(int fd, struct map_session_data *sd) { void HP_clif_pStatusUp(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pStatusUp_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStatusUp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pStatusUp_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19249,10 +19272,10 @@ void HP_clif_pStatusUp(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pStatusUp(fd, sd); } if( HPMHooks.count.HP_clif_pStatusUp_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStatusUp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pStatusUp_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19260,11 +19283,11 @@ void HP_clif_pStatusUp(int fd, struct map_session_data *sd) { void HP_clif_pSkillUp(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSkillUp_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSkillUp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSkillUp_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19275,10 +19298,10 @@ void HP_clif_pSkillUp(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSkillUp(fd, sd); } if( HPMHooks.count.HP_clif_pSkillUp_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSkillUp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSkillUp_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19286,11 +19309,11 @@ void HP_clif_pSkillUp(int fd, struct map_session_data *sd) { void HP_clif_pUseSkillToId(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToId_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19301,10 +19324,10 @@ void HP_clif_pUseSkillToId(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseSkillToId(fd, sd); } if( HPMHooks.count.HP_clif_pUseSkillToId_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19312,11 +19335,11 @@ void HP_clif_pUseSkillToId(int fd, struct map_session_data *sd) { void HP_clif_pUseSkillToId_homun(struct homun_data *hd, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, int target_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToId_homun_pre ) { - void (*preHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); + void (*preHookFunc) (struct homun_data **hd, struct map_session_data **sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_homun_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_homun_pre[hIndex].func; - preHookFunc(hd, sd, &tick, &skill_id, &skill_lv, &target_id); + preHookFunc(&hd, &sd, &tick, &skill_id, &skill_lv, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19327,10 +19350,10 @@ void HP_clif_pUseSkillToId_homun(struct homun_data *hd, struct map_session_data HPMHooks.source.clif.pUseSkillToId_homun(hd, sd, tick, skill_id, skill_lv, target_id); } if( HPMHooks.count.HP_clif_pUseSkillToId_homun_post ) { - void (*postHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); + void (*postHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_homun_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_homun_post[hIndex].func; - postHookFunc(hd, sd, &tick, &skill_id, &skill_lv, &target_id); + postHookFunc(hd, sd, tick, skill_id, skill_lv, target_id); } } return; @@ -19338,11 +19361,11 @@ void HP_clif_pUseSkillToId_homun(struct homun_data *hd, struct map_session_data void HP_clif_pUseSkillToId_mercenary(struct mercenary_data *md, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, int target_id) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToId_mercenary_pre ) { - void (*preHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); + void (*preHookFunc) (struct mercenary_data **md, struct map_session_data **sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_mercenary_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_mercenary_pre[hIndex].func; - preHookFunc(md, sd, &tick, &skill_id, &skill_lv, &target_id); + preHookFunc(&md, &sd, &tick, &skill_id, &skill_lv, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19353,10 +19376,10 @@ void HP_clif_pUseSkillToId_mercenary(struct mercenary_data *md, struct map_sessi HPMHooks.source.clif.pUseSkillToId_mercenary(md, sd, tick, skill_id, skill_lv, target_id); } if( HPMHooks.count.HP_clif_pUseSkillToId_mercenary_post ) { - void (*postHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, int *target_id); + void (*postHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToId_mercenary_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToId_mercenary_post[hIndex].func; - postHookFunc(md, sd, &tick, &skill_id, &skill_lv, &target_id); + postHookFunc(md, sd, tick, skill_id, skill_lv, target_id); } } return; @@ -19364,11 +19387,11 @@ void HP_clif_pUseSkillToId_mercenary(struct mercenary_data *md, struct map_sessi void HP_clif_pUseSkillToPos(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToPos_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19379,10 +19402,10 @@ void HP_clif_pUseSkillToPos(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseSkillToPos(fd, sd); } if( HPMHooks.count.HP_clif_pUseSkillToPos_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19390,11 +19413,11 @@ void HP_clif_pUseSkillToPos(int fd, struct map_session_data *sd) { void HP_clif_pUseSkillToPosSub(int fd, struct map_session_data *sd, uint16 skill_lv, uint16 skill_id, short x, short y, int skillmoreinfo) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToPosSub_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd, uint16 *skill_lv, uint16 *skill_id, short *x, short *y, int *skillmoreinfo); + void (*preHookFunc) (int *fd, struct map_session_data **sd, uint16 *skill_lv, uint16 *skill_id, short *x, short *y, int *skillmoreinfo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPosSub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToPosSub_pre[hIndex].func; - preHookFunc(&fd, sd, &skill_lv, &skill_id, &x, &y, &skillmoreinfo); + preHookFunc(&fd, &sd, &skill_lv, &skill_id, &x, &y, &skillmoreinfo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19405,10 +19428,10 @@ void HP_clif_pUseSkillToPosSub(int fd, struct map_session_data *sd, uint16 skill HPMHooks.source.clif.pUseSkillToPosSub(fd, sd, skill_lv, skill_id, x, y, skillmoreinfo); } if( HPMHooks.count.HP_clif_pUseSkillToPosSub_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd, uint16 *skill_lv, uint16 *skill_id, short *x, short *y, int *skillmoreinfo); + void (*postHookFunc) (int fd, struct map_session_data *sd, uint16 skill_lv, uint16 skill_id, short x, short y, int skillmoreinfo); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPosSub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToPosSub_post[hIndex].func; - postHookFunc(&fd, sd, &skill_lv, &skill_id, &x, &y, &skillmoreinfo); + postHookFunc(fd, sd, skill_lv, skill_id, x, y, skillmoreinfo); } } return; @@ -19416,11 +19439,11 @@ void HP_clif_pUseSkillToPosSub(int fd, struct map_session_data *sd, uint16 skill void HP_clif_pUseSkillToPos_homun(struct homun_data *hd, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, short x, short y, int skillmoreinfo) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToPos_homun_pre ) { - void (*preHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); + void (*preHookFunc) (struct homun_data **hd, struct map_session_data **sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_homun_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_homun_pre[hIndex].func; - preHookFunc(hd, sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); + preHookFunc(&hd, &sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19431,10 +19454,10 @@ void HP_clif_pUseSkillToPos_homun(struct homun_data *hd, struct map_session_data HPMHooks.source.clif.pUseSkillToPos_homun(hd, sd, tick, skill_id, skill_lv, x, y, skillmoreinfo); } if( HPMHooks.count.HP_clif_pUseSkillToPos_homun_post ) { - void (*postHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); + void (*postHookFunc) (struct homun_data *hd, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, short x, short y, int skillmoreinfo); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_homun_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_homun_post[hIndex].func; - postHookFunc(hd, sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); + postHookFunc(hd, sd, tick, skill_id, skill_lv, x, y, skillmoreinfo); } } return; @@ -19442,11 +19465,11 @@ void HP_clif_pUseSkillToPos_homun(struct homun_data *hd, struct map_session_data void HP_clif_pUseSkillToPos_mercenary(struct mercenary_data *md, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, short x, short y, int skillmoreinfo) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToPos_mercenary_pre ) { - void (*preHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); + void (*preHookFunc) (struct mercenary_data **md, struct map_session_data **sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_mercenary_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_mercenary_pre[hIndex].func; - preHookFunc(md, sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); + preHookFunc(&md, &sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19457,10 +19480,10 @@ void HP_clif_pUseSkillToPos_mercenary(struct mercenary_data *md, struct map_sess HPMHooks.source.clif.pUseSkillToPos_mercenary(md, sd, tick, skill_id, skill_lv, x, y, skillmoreinfo); } if( HPMHooks.count.HP_clif_pUseSkillToPos_mercenary_post ) { - void (*postHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 *tick, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *skillmoreinfo); + void (*postHookFunc) (struct mercenary_data *md, struct map_session_data *sd, int64 tick, uint16 skill_id, uint16 skill_lv, short x, short y, int skillmoreinfo); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPos_mercenary_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToPos_mercenary_post[hIndex].func; - postHookFunc(md, sd, &tick, &skill_id, &skill_lv, &x, &y, &skillmoreinfo); + postHookFunc(md, sd, tick, skill_id, skill_lv, x, y, skillmoreinfo); } } return; @@ -19468,11 +19491,11 @@ void HP_clif_pUseSkillToPos_mercenary(struct mercenary_data *md, struct map_sess void HP_clif_pUseSkillToPosMoreInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillToPosMoreInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPosMoreInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillToPosMoreInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19483,10 +19506,10 @@ void HP_clif_pUseSkillToPosMoreInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseSkillToPosMoreInfo(fd, sd); } if( HPMHooks.count.HP_clif_pUseSkillToPosMoreInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillToPosMoreInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillToPosMoreInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19494,11 +19517,11 @@ void HP_clif_pUseSkillToPosMoreInfo(int fd, struct map_session_data *sd) { void HP_clif_pUseSkillMap(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseSkillMap_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillMap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseSkillMap_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19509,10 +19532,10 @@ void HP_clif_pUseSkillMap(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseSkillMap(fd, sd); } if( HPMHooks.count.HP_clif_pUseSkillMap_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseSkillMap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseSkillMap_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19520,11 +19543,11 @@ void HP_clif_pUseSkillMap(int fd, struct map_session_data *sd) { void HP_clif_pRequestMemo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRequestMemo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRequestMemo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRequestMemo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19535,10 +19558,10 @@ void HP_clif_pRequestMemo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRequestMemo(fd, sd); } if( HPMHooks.count.HP_clif_pRequestMemo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRequestMemo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRequestMemo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19546,11 +19569,11 @@ void HP_clif_pRequestMemo(int fd, struct map_session_data *sd) { void HP_clif_pProduceMix(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pProduceMix_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pProduceMix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pProduceMix_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19561,10 +19584,10 @@ void HP_clif_pProduceMix(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pProduceMix(fd, sd); } if( HPMHooks.count.HP_clif_pProduceMix_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pProduceMix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pProduceMix_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19572,11 +19595,11 @@ void HP_clif_pProduceMix(int fd, struct map_session_data *sd) { void HP_clif_pCooking(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCooking_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCooking_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCooking_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19587,10 +19610,10 @@ void HP_clif_pCooking(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCooking(fd, sd); } if( HPMHooks.count.HP_clif_pCooking_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCooking_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCooking_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19598,11 +19621,11 @@ void HP_clif_pCooking(int fd, struct map_session_data *sd) { void HP_clif_pRepairItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRepairItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRepairItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRepairItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19613,10 +19636,10 @@ void HP_clif_pRepairItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRepairItem(fd, sd); } if( HPMHooks.count.HP_clif_pRepairItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRepairItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRepairItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19624,11 +19647,11 @@ void HP_clif_pRepairItem(int fd, struct map_session_data *sd) { void HP_clif_pWeaponRefine(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pWeaponRefine_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWeaponRefine_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pWeaponRefine_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19639,10 +19662,10 @@ void HP_clif_pWeaponRefine(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pWeaponRefine(fd, sd); } if( HPMHooks.count.HP_clif_pWeaponRefine_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pWeaponRefine_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pWeaponRefine_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19650,11 +19673,11 @@ void HP_clif_pWeaponRefine(int fd, struct map_session_data *sd) { void HP_clif_pNpcSelectMenu(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcSelectMenu_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcSelectMenu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcSelectMenu_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19665,10 +19688,10 @@ void HP_clif_pNpcSelectMenu(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcSelectMenu(fd, sd); } if( HPMHooks.count.HP_clif_pNpcSelectMenu_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcSelectMenu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcSelectMenu_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19676,11 +19699,11 @@ void HP_clif_pNpcSelectMenu(int fd, struct map_session_data *sd) { void HP_clif_pNpcNextClicked(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcNextClicked_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcNextClicked_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcNextClicked_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19691,10 +19714,10 @@ void HP_clif_pNpcNextClicked(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcNextClicked(fd, sd); } if( HPMHooks.count.HP_clif_pNpcNextClicked_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcNextClicked_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcNextClicked_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19702,11 +19725,11 @@ void HP_clif_pNpcNextClicked(int fd, struct map_session_data *sd) { void HP_clif_pNpcAmountInput(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcAmountInput_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcAmountInput_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcAmountInput_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19717,10 +19740,10 @@ void HP_clif_pNpcAmountInput(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcAmountInput(fd, sd); } if( HPMHooks.count.HP_clif_pNpcAmountInput_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcAmountInput_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcAmountInput_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19728,11 +19751,11 @@ void HP_clif_pNpcAmountInput(int fd, struct map_session_data *sd) { void HP_clif_pNpcStringInput(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcStringInput_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcStringInput_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcStringInput_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19743,10 +19766,10 @@ void HP_clif_pNpcStringInput(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcStringInput(fd, sd); } if( HPMHooks.count.HP_clif_pNpcStringInput_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcStringInput_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcStringInput_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19754,11 +19777,11 @@ void HP_clif_pNpcStringInput(int fd, struct map_session_data *sd) { void HP_clif_pNpcCloseClicked(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNpcCloseClicked_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcCloseClicked_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNpcCloseClicked_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19769,10 +19792,10 @@ void HP_clif_pNpcCloseClicked(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNpcCloseClicked(fd, sd); } if( HPMHooks.count.HP_clif_pNpcCloseClicked_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNpcCloseClicked_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNpcCloseClicked_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19780,11 +19803,11 @@ void HP_clif_pNpcCloseClicked(int fd, struct map_session_data *sd) { void HP_clif_pItemIdentify(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pItemIdentify_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pItemIdentify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pItemIdentify_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19795,10 +19818,10 @@ void HP_clif_pItemIdentify(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pItemIdentify(fd, sd); } if( HPMHooks.count.HP_clif_pItemIdentify_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pItemIdentify_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pItemIdentify_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19806,11 +19829,11 @@ void HP_clif_pItemIdentify(int fd, struct map_session_data *sd) { void HP_clif_pSelectArrow(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSelectArrow_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectArrow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSelectArrow_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19821,10 +19844,10 @@ void HP_clif_pSelectArrow(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSelectArrow(fd, sd); } if( HPMHooks.count.HP_clif_pSelectArrow_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectArrow_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSelectArrow_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19832,11 +19855,11 @@ void HP_clif_pSelectArrow(int fd, struct map_session_data *sd) { void HP_clif_pAutoSpell(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAutoSpell_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAutoSpell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAutoSpell_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19847,10 +19870,10 @@ void HP_clif_pAutoSpell(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAutoSpell(fd, sd); } if( HPMHooks.count.HP_clif_pAutoSpell_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAutoSpell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAutoSpell_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19858,11 +19881,11 @@ void HP_clif_pAutoSpell(int fd, struct map_session_data *sd) { void HP_clif_pUseCard(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pUseCard_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseCard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pUseCard_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19873,10 +19896,10 @@ void HP_clif_pUseCard(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pUseCard(fd, sd); } if( HPMHooks.count.HP_clif_pUseCard_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pUseCard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pUseCard_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19884,11 +19907,11 @@ void HP_clif_pUseCard(int fd, struct map_session_data *sd) { void HP_clif_pInsertCard(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pInsertCard_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pInsertCard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pInsertCard_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19899,10 +19922,10 @@ void HP_clif_pInsertCard(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pInsertCard(fd, sd); } if( HPMHooks.count.HP_clif_pInsertCard_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pInsertCard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pInsertCard_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19910,11 +19933,11 @@ void HP_clif_pInsertCard(int fd, struct map_session_data *sd) { void HP_clif_pSolveCharName(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSolveCharName_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSolveCharName_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSolveCharName_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19925,10 +19948,10 @@ void HP_clif_pSolveCharName(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSolveCharName(fd, sd); } if( HPMHooks.count.HP_clif_pSolveCharName_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSolveCharName_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSolveCharName_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19936,11 +19959,11 @@ void HP_clif_pSolveCharName(int fd, struct map_session_data *sd) { void HP_clif_pResetChar(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pResetChar_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pResetChar_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pResetChar_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19951,10 +19974,10 @@ void HP_clif_pResetChar(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pResetChar(fd, sd); } if( HPMHooks.count.HP_clif_pResetChar_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pResetChar_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pResetChar_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19962,11 +19985,11 @@ void HP_clif_pResetChar(int fd, struct map_session_data *sd) { void HP_clif_pLocalBroadcast(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pLocalBroadcast_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLocalBroadcast_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pLocalBroadcast_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -19977,10 +20000,10 @@ void HP_clif_pLocalBroadcast(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pLocalBroadcast(fd, sd); } if( HPMHooks.count.HP_clif_pLocalBroadcast_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLocalBroadcast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pLocalBroadcast_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -19988,11 +20011,11 @@ void HP_clif_pLocalBroadcast(int fd, struct map_session_data *sd) { void HP_clif_pMoveToKafra(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMoveToKafra_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveToKafra_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMoveToKafra_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20003,10 +20026,10 @@ void HP_clif_pMoveToKafra(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMoveToKafra(fd, sd); } if( HPMHooks.count.HP_clif_pMoveToKafra_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveToKafra_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMoveToKafra_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20014,11 +20037,11 @@ void HP_clif_pMoveToKafra(int fd, struct map_session_data *sd) { void HP_clif_pMoveFromKafra(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMoveFromKafra_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveFromKafra_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMoveFromKafra_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20029,10 +20052,10 @@ void HP_clif_pMoveFromKafra(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMoveFromKafra(fd, sd); } if( HPMHooks.count.HP_clif_pMoveFromKafra_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveFromKafra_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMoveFromKafra_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20040,11 +20063,11 @@ void HP_clif_pMoveFromKafra(int fd, struct map_session_data *sd) { void HP_clif_pMoveToKafraFromCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMoveToKafraFromCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveToKafraFromCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMoveToKafraFromCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20055,10 +20078,10 @@ void HP_clif_pMoveToKafraFromCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMoveToKafraFromCart(fd, sd); } if( HPMHooks.count.HP_clif_pMoveToKafraFromCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveToKafraFromCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMoveToKafraFromCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20066,11 +20089,11 @@ void HP_clif_pMoveToKafraFromCart(int fd, struct map_session_data *sd) { void HP_clif_pMoveFromKafraToCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMoveFromKafraToCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveFromKafraToCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMoveFromKafraToCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20081,10 +20104,10 @@ void HP_clif_pMoveFromKafraToCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMoveFromKafraToCart(fd, sd); } if( HPMHooks.count.HP_clif_pMoveFromKafraToCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveFromKafraToCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMoveFromKafraToCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20092,11 +20115,11 @@ void HP_clif_pMoveFromKafraToCart(int fd, struct map_session_data *sd) { void HP_clif_pCloseKafra(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCloseKafra_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseKafra_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCloseKafra_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20107,10 +20130,10 @@ void HP_clif_pCloseKafra(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCloseKafra(fd, sd); } if( HPMHooks.count.HP_clif_pCloseKafra_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseKafra_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCloseKafra_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20118,11 +20141,11 @@ void HP_clif_pCloseKafra(int fd, struct map_session_data *sd) { void HP_clif_pStoragePassword(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pStoragePassword_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStoragePassword_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pStoragePassword_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20133,10 +20156,10 @@ void HP_clif_pStoragePassword(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pStoragePassword(fd, sd); } if( HPMHooks.count.HP_clif_pStoragePassword_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pStoragePassword_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pStoragePassword_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20144,11 +20167,11 @@ void HP_clif_pStoragePassword(int fd, struct map_session_data *sd) { void HP_clif_pCreateParty(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCreateParty_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateParty_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCreateParty_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20159,10 +20182,10 @@ void HP_clif_pCreateParty(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCreateParty(fd, sd); } if( HPMHooks.count.HP_clif_pCreateParty_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateParty_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCreateParty_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20170,11 +20193,11 @@ void HP_clif_pCreateParty(int fd, struct map_session_data *sd) { void HP_clif_pCreateParty2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCreateParty2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateParty2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCreateParty2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20185,10 +20208,10 @@ void HP_clif_pCreateParty2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCreateParty2(fd, sd); } if( HPMHooks.count.HP_clif_pCreateParty2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateParty2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCreateParty2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20196,11 +20219,11 @@ void HP_clif_pCreateParty2(int fd, struct map_session_data *sd) { void HP_clif_pPartyInvite(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyInvite_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyInvite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyInvite_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20211,10 +20234,10 @@ void HP_clif_pPartyInvite(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyInvite(fd, sd); } if( HPMHooks.count.HP_clif_pPartyInvite_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyInvite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyInvite_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20222,11 +20245,11 @@ void HP_clif_pPartyInvite(int fd, struct map_session_data *sd) { void HP_clif_pPartyInvite2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyInvite2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyInvite2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyInvite2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20237,10 +20260,10 @@ void HP_clif_pPartyInvite2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyInvite2(fd, sd); } if( HPMHooks.count.HP_clif_pPartyInvite2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyInvite2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyInvite2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20248,11 +20271,11 @@ void HP_clif_pPartyInvite2(int fd, struct map_session_data *sd) { void HP_clif_pReplyPartyInvite(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReplyPartyInvite_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReplyPartyInvite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReplyPartyInvite_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20263,10 +20286,10 @@ void HP_clif_pReplyPartyInvite(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReplyPartyInvite(fd, sd); } if( HPMHooks.count.HP_clif_pReplyPartyInvite_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReplyPartyInvite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReplyPartyInvite_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20274,11 +20297,11 @@ void HP_clif_pReplyPartyInvite(int fd, struct map_session_data *sd) { void HP_clif_pReplyPartyInvite2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReplyPartyInvite2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReplyPartyInvite2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReplyPartyInvite2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20289,10 +20312,10 @@ void HP_clif_pReplyPartyInvite2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReplyPartyInvite2(fd, sd); } if( HPMHooks.count.HP_clif_pReplyPartyInvite2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReplyPartyInvite2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReplyPartyInvite2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20300,11 +20323,11 @@ void HP_clif_pReplyPartyInvite2(int fd, struct map_session_data *sd) { void HP_clif_pLeaveParty(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pLeaveParty_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLeaveParty_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pLeaveParty_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20315,10 +20338,10 @@ void HP_clif_pLeaveParty(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pLeaveParty(fd, sd); } if( HPMHooks.count.HP_clif_pLeaveParty_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLeaveParty_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pLeaveParty_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20326,11 +20349,11 @@ void HP_clif_pLeaveParty(int fd, struct map_session_data *sd) { void HP_clif_pRemovePartyMember(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRemovePartyMember_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRemovePartyMember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRemovePartyMember_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20341,10 +20364,10 @@ void HP_clif_pRemovePartyMember(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRemovePartyMember(fd, sd); } if( HPMHooks.count.HP_clif_pRemovePartyMember_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRemovePartyMember_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRemovePartyMember_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20352,11 +20375,11 @@ void HP_clif_pRemovePartyMember(int fd, struct map_session_data *sd) { void HP_clif_pPartyChangeOption(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyChangeOption_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyChangeOption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyChangeOption_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20367,10 +20390,10 @@ void HP_clif_pPartyChangeOption(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyChangeOption(fd, sd); } if( HPMHooks.count.HP_clif_pPartyChangeOption_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyChangeOption_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyChangeOption_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20378,11 +20401,11 @@ void HP_clif_pPartyChangeOption(int fd, struct map_session_data *sd) { void HP_clif_pPartyMessage(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyMessage_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyMessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyMessage_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20393,10 +20416,10 @@ void HP_clif_pPartyMessage(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyMessage(fd, sd); } if( HPMHooks.count.HP_clif_pPartyMessage_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyMessage_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20404,11 +20427,11 @@ void HP_clif_pPartyMessage(int fd, struct map_session_data *sd) { void HP_clif_pPartyChangeLeader(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyChangeLeader_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyChangeLeader_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyChangeLeader_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20419,10 +20442,10 @@ void HP_clif_pPartyChangeLeader(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyChangeLeader(fd, sd); } if( HPMHooks.count.HP_clif_pPartyChangeLeader_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyChangeLeader_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyChangeLeader_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20430,11 +20453,11 @@ void HP_clif_pPartyChangeLeader(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingRegisterReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingRegisterReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingRegisterReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingRegisterReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20445,10 +20468,10 @@ void HP_clif_pPartyBookingRegisterReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingRegisterReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingRegisterReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingRegisterReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingRegisterReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20456,11 +20479,11 @@ void HP_clif_pPartyBookingRegisterReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingSearchReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingSearchReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingSearchReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingSearchReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20471,10 +20494,10 @@ void HP_clif_pPartyBookingSearchReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingSearchReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingSearchReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingSearchReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingSearchReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20482,11 +20505,11 @@ void HP_clif_pPartyBookingSearchReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingDeleteReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingDeleteReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingDeleteReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingDeleteReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20497,10 +20520,10 @@ void HP_clif_pPartyBookingDeleteReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingDeleteReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingDeleteReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingDeleteReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingDeleteReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20508,11 +20531,11 @@ void HP_clif_pPartyBookingDeleteReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingUpdateReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingUpdateReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingUpdateReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingUpdateReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20523,10 +20546,10 @@ void HP_clif_pPartyBookingUpdateReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingUpdateReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingUpdateReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingUpdateReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingUpdateReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20534,11 +20557,11 @@ void HP_clif_pPartyBookingUpdateReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyRecruitRegisterReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyRecruitRegisterReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitRegisterReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyRecruitRegisterReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20549,10 +20572,10 @@ void HP_clif_pPartyRecruitRegisterReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyRecruitRegisterReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyRecruitRegisterReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitRegisterReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyRecruitRegisterReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20560,11 +20583,11 @@ void HP_clif_pPartyRecruitRegisterReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyRecruitSearchReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyRecruitSearchReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitSearchReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyRecruitSearchReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20575,10 +20598,10 @@ void HP_clif_pPartyRecruitSearchReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyRecruitSearchReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyRecruitSearchReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitSearchReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyRecruitSearchReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20586,11 +20609,11 @@ void HP_clif_pPartyRecruitSearchReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyRecruitDeleteReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyRecruitDeleteReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitDeleteReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyRecruitDeleteReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20601,10 +20624,10 @@ void HP_clif_pPartyRecruitDeleteReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyRecruitDeleteReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyRecruitDeleteReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitDeleteReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyRecruitDeleteReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20612,11 +20635,11 @@ void HP_clif_pPartyRecruitDeleteReq(int fd, struct map_session_data *sd) { void HP_clif_pPartyRecruitUpdateReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyRecruitUpdateReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitUpdateReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyRecruitUpdateReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20627,10 +20650,10 @@ void HP_clif_pPartyRecruitUpdateReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyRecruitUpdateReq(fd, sd); } if( HPMHooks.count.HP_clif_pPartyRecruitUpdateReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyRecruitUpdateReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyRecruitUpdateReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20638,11 +20661,11 @@ void HP_clif_pPartyRecruitUpdateReq(int fd, struct map_session_data *sd) { void HP_clif_pCloseVending(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCloseVending_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseVending_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCloseVending_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20653,10 +20676,10 @@ void HP_clif_pCloseVending(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCloseVending(fd, sd); } if( HPMHooks.count.HP_clif_pCloseVending_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseVending_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCloseVending_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20664,11 +20687,11 @@ void HP_clif_pCloseVending(int fd, struct map_session_data *sd) { void HP_clif_pVendingListReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pVendingListReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pVendingListReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pVendingListReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20679,10 +20702,10 @@ void HP_clif_pVendingListReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pVendingListReq(fd, sd); } if( HPMHooks.count.HP_clif_pVendingListReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pVendingListReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pVendingListReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20690,11 +20713,11 @@ void HP_clif_pVendingListReq(int fd, struct map_session_data *sd) { void HP_clif_pPurchaseReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPurchaseReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPurchaseReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPurchaseReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20705,10 +20728,10 @@ void HP_clif_pPurchaseReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPurchaseReq(fd, sd); } if( HPMHooks.count.HP_clif_pPurchaseReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPurchaseReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPurchaseReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20716,11 +20739,11 @@ void HP_clif_pPurchaseReq(int fd, struct map_session_data *sd) { void HP_clif_pPurchaseReq2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPurchaseReq2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPurchaseReq2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPurchaseReq2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20731,10 +20754,10 @@ void HP_clif_pPurchaseReq2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPurchaseReq2(fd, sd); } if( HPMHooks.count.HP_clif_pPurchaseReq2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPurchaseReq2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPurchaseReq2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20742,11 +20765,11 @@ void HP_clif_pPurchaseReq2(int fd, struct map_session_data *sd) { void HP_clif_pOpenVending(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pOpenVending_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pOpenVending_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pOpenVending_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20757,10 +20780,10 @@ void HP_clif_pOpenVending(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pOpenVending(fd, sd); } if( HPMHooks.count.HP_clif_pOpenVending_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pOpenVending_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pOpenVending_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20768,11 +20791,11 @@ void HP_clif_pOpenVending(int fd, struct map_session_data *sd) { void HP_clif_pCreateGuild(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCreateGuild_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateGuild_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCreateGuild_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20783,10 +20806,10 @@ void HP_clif_pCreateGuild(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCreateGuild(fd, sd); } if( HPMHooks.count.HP_clif_pCreateGuild_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCreateGuild_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCreateGuild_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20794,11 +20817,11 @@ void HP_clif_pCreateGuild(int fd, struct map_session_data *sd) { void HP_clif_pGuildCheckMaster(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildCheckMaster_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildCheckMaster_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildCheckMaster_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20809,10 +20832,10 @@ void HP_clif_pGuildCheckMaster(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildCheckMaster(fd, sd); } if( HPMHooks.count.HP_clif_pGuildCheckMaster_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildCheckMaster_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildCheckMaster_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20820,11 +20843,11 @@ void HP_clif_pGuildCheckMaster(int fd, struct map_session_data *sd) { void HP_clif_pGuildRequestInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildRequestInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildRequestInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20835,10 +20858,10 @@ void HP_clif_pGuildRequestInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildRequestInfo(fd, sd); } if( HPMHooks.count.HP_clif_pGuildRequestInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildRequestInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20846,11 +20869,11 @@ void HP_clif_pGuildRequestInfo(int fd, struct map_session_data *sd) { void HP_clif_pGuildChangePositionInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildChangePositionInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangePositionInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildChangePositionInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20861,10 +20884,10 @@ void HP_clif_pGuildChangePositionInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildChangePositionInfo(fd, sd); } if( HPMHooks.count.HP_clif_pGuildChangePositionInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangePositionInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildChangePositionInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20872,11 +20895,11 @@ void HP_clif_pGuildChangePositionInfo(int fd, struct map_session_data *sd) { void HP_clif_pGuildChangeMemberPosition(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildChangeMemberPosition_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeMemberPosition_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildChangeMemberPosition_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20887,10 +20910,10 @@ void HP_clif_pGuildChangeMemberPosition(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildChangeMemberPosition(fd, sd); } if( HPMHooks.count.HP_clif_pGuildChangeMemberPosition_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeMemberPosition_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildChangeMemberPosition_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20898,11 +20921,11 @@ void HP_clif_pGuildChangeMemberPosition(int fd, struct map_session_data *sd) { void HP_clif_pGuildRequestEmblem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildRequestEmblem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestEmblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildRequestEmblem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20913,10 +20936,10 @@ void HP_clif_pGuildRequestEmblem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildRequestEmblem(fd, sd); } if( HPMHooks.count.HP_clif_pGuildRequestEmblem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestEmblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildRequestEmblem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20924,11 +20947,11 @@ void HP_clif_pGuildRequestEmblem(int fd, struct map_session_data *sd) { void HP_clif_pGuildChangeEmblem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildChangeEmblem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeEmblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildChangeEmblem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20939,10 +20962,10 @@ void HP_clif_pGuildChangeEmblem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildChangeEmblem(fd, sd); } if( HPMHooks.count.HP_clif_pGuildChangeEmblem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeEmblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildChangeEmblem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20950,11 +20973,11 @@ void HP_clif_pGuildChangeEmblem(int fd, struct map_session_data *sd) { void HP_clif_pGuildChangeNotice(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildChangeNotice_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeNotice_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildChangeNotice_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20965,10 +20988,10 @@ void HP_clif_pGuildChangeNotice(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildChangeNotice(fd, sd); } if( HPMHooks.count.HP_clif_pGuildChangeNotice_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildChangeNotice_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildChangeNotice_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -20976,11 +20999,11 @@ void HP_clif_pGuildChangeNotice(int fd, struct map_session_data *sd) { void HP_clif_pGuildInvite(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildInvite_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildInvite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildInvite_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -20991,10 +21014,10 @@ void HP_clif_pGuildInvite(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildInvite(fd, sd); } if( HPMHooks.count.HP_clif_pGuildInvite_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildInvite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildInvite_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21002,11 +21025,11 @@ void HP_clif_pGuildInvite(int fd, struct map_session_data *sd) { void HP_clif_pGuildReplyInvite(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildReplyInvite_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildReplyInvite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildReplyInvite_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21017,10 +21040,10 @@ void HP_clif_pGuildReplyInvite(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildReplyInvite(fd, sd); } if( HPMHooks.count.HP_clif_pGuildReplyInvite_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildReplyInvite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildReplyInvite_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21028,11 +21051,11 @@ void HP_clif_pGuildReplyInvite(int fd, struct map_session_data *sd) { void HP_clif_pGuildLeave(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildLeave_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildLeave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildLeave_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21043,10 +21066,10 @@ void HP_clif_pGuildLeave(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildLeave(fd, sd); } if( HPMHooks.count.HP_clif_pGuildLeave_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildLeave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildLeave_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21054,11 +21077,11 @@ void HP_clif_pGuildLeave(int fd, struct map_session_data *sd) { void HP_clif_pGuildExpulsion(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildExpulsion_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildExpulsion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildExpulsion_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21069,10 +21092,10 @@ void HP_clif_pGuildExpulsion(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildExpulsion(fd, sd); } if( HPMHooks.count.HP_clif_pGuildExpulsion_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildExpulsion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildExpulsion_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21080,11 +21103,11 @@ void HP_clif_pGuildExpulsion(int fd, struct map_session_data *sd) { void HP_clif_pGuildMessage(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildMessage_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildMessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildMessage_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21095,10 +21118,10 @@ void HP_clif_pGuildMessage(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildMessage(fd, sd); } if( HPMHooks.count.HP_clif_pGuildMessage_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildMessage_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21106,11 +21129,11 @@ void HP_clif_pGuildMessage(int fd, struct map_session_data *sd) { void HP_clif_pGuildRequestAlliance(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildRequestAlliance_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestAlliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildRequestAlliance_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21121,10 +21144,10 @@ void HP_clif_pGuildRequestAlliance(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildRequestAlliance(fd, sd); } if( HPMHooks.count.HP_clif_pGuildRequestAlliance_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildRequestAlliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildRequestAlliance_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21132,11 +21155,11 @@ void HP_clif_pGuildRequestAlliance(int fd, struct map_session_data *sd) { void HP_clif_pGuildReplyAlliance(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildReplyAlliance_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildReplyAlliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildReplyAlliance_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21147,10 +21170,10 @@ void HP_clif_pGuildReplyAlliance(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildReplyAlliance(fd, sd); } if( HPMHooks.count.HP_clif_pGuildReplyAlliance_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildReplyAlliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildReplyAlliance_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21158,11 +21181,11 @@ void HP_clif_pGuildReplyAlliance(int fd, struct map_session_data *sd) { void HP_clif_pGuildDelAlliance(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildDelAlliance_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildDelAlliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildDelAlliance_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21173,10 +21196,10 @@ void HP_clif_pGuildDelAlliance(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildDelAlliance(fd, sd); } if( HPMHooks.count.HP_clif_pGuildDelAlliance_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildDelAlliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildDelAlliance_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21184,11 +21207,11 @@ void HP_clif_pGuildDelAlliance(int fd, struct map_session_data *sd) { void HP_clif_pGuildOpposition(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildOpposition_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildOpposition_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildOpposition_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21199,10 +21222,10 @@ void HP_clif_pGuildOpposition(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildOpposition(fd, sd); } if( HPMHooks.count.HP_clif_pGuildOpposition_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildOpposition_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildOpposition_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21210,11 +21233,11 @@ void HP_clif_pGuildOpposition(int fd, struct map_session_data *sd) { void HP_clif_pGuildBreak(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildBreak_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildBreak_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildBreak_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21225,10 +21248,10 @@ void HP_clif_pGuildBreak(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildBreak(fd, sd); } if( HPMHooks.count.HP_clif_pGuildBreak_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildBreak_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildBreak_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21236,11 +21259,11 @@ void HP_clif_pGuildBreak(int fd, struct map_session_data *sd) { void HP_clif_pPetMenu(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPetMenu_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPetMenu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPetMenu_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21251,10 +21274,10 @@ void HP_clif_pPetMenu(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPetMenu(fd, sd); } if( HPMHooks.count.HP_clif_pPetMenu_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPetMenu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPetMenu_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21262,11 +21285,11 @@ void HP_clif_pPetMenu(int fd, struct map_session_data *sd) { void HP_clif_pCatchPet(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCatchPet_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCatchPet_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCatchPet_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21277,10 +21300,10 @@ void HP_clif_pCatchPet(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCatchPet(fd, sd); } if( HPMHooks.count.HP_clif_pCatchPet_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCatchPet_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCatchPet_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21288,11 +21311,11 @@ void HP_clif_pCatchPet(int fd, struct map_session_data *sd) { void HP_clif_pSelectEgg(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSelectEgg_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectEgg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSelectEgg_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21303,10 +21326,10 @@ void HP_clif_pSelectEgg(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSelectEgg(fd, sd); } if( HPMHooks.count.HP_clif_pSelectEgg_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectEgg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSelectEgg_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21314,11 +21337,11 @@ void HP_clif_pSelectEgg(int fd, struct map_session_data *sd) { void HP_clif_pSendEmotion(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSendEmotion_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSendEmotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSendEmotion_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21329,10 +21352,10 @@ void HP_clif_pSendEmotion(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSendEmotion(fd, sd); } if( HPMHooks.count.HP_clif_pSendEmotion_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSendEmotion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSendEmotion_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21340,11 +21363,11 @@ void HP_clif_pSendEmotion(int fd, struct map_session_data *sd) { void HP_clif_pChangePetName(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChangePetName_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangePetName_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChangePetName_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21355,10 +21378,10 @@ void HP_clif_pChangePetName(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChangePetName(fd, sd); } if( HPMHooks.count.HP_clif_pChangePetName_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangePetName_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChangePetName_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21366,11 +21389,11 @@ void HP_clif_pChangePetName(int fd, struct map_session_data *sd) { void HP_clif_pGMKick(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMKick_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMKick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMKick_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21381,10 +21404,10 @@ void HP_clif_pGMKick(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMKick(fd, sd); } if( HPMHooks.count.HP_clif_pGMKick_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMKick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMKick_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21392,11 +21415,11 @@ void HP_clif_pGMKick(int fd, struct map_session_data *sd) { void HP_clif_pGMKickAll(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMKickAll_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMKickAll_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMKickAll_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21407,10 +21430,10 @@ void HP_clif_pGMKickAll(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMKickAll(fd, sd); } if( HPMHooks.count.HP_clif_pGMKickAll_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMKickAll_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMKickAll_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21418,11 +21441,11 @@ void HP_clif_pGMKickAll(int fd, struct map_session_data *sd) { void HP_clif_pGMShift(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMShift_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMShift_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMShift_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21433,10 +21456,10 @@ void HP_clif_pGMShift(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMShift(fd, sd); } if( HPMHooks.count.HP_clif_pGMShift_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMShift_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMShift_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21444,11 +21467,11 @@ void HP_clif_pGMShift(int fd, struct map_session_data *sd) { void HP_clif_pGMRemove2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMRemove2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRemove2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMRemove2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21459,10 +21482,10 @@ void HP_clif_pGMRemove2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMRemove2(fd, sd); } if( HPMHooks.count.HP_clif_pGMRemove2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRemove2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMRemove2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21470,11 +21493,11 @@ void HP_clif_pGMRemove2(int fd, struct map_session_data *sd) { void HP_clif_pGMRecall(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMRecall_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRecall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMRecall_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21485,10 +21508,10 @@ void HP_clif_pGMRecall(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMRecall(fd, sd); } if( HPMHooks.count.HP_clif_pGMRecall_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRecall_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMRecall_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21496,11 +21519,11 @@ void HP_clif_pGMRecall(int fd, struct map_session_data *sd) { void HP_clif_pGMRecall2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMRecall2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRecall2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMRecall2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21511,10 +21534,10 @@ void HP_clif_pGMRecall2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMRecall2(fd, sd); } if( HPMHooks.count.HP_clif_pGMRecall2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRecall2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMRecall2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21522,11 +21545,11 @@ void HP_clif_pGMRecall2(int fd, struct map_session_data *sd) { void HP_clif_pGM_Monster_Item(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGM_Monster_Item_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGM_Monster_Item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGM_Monster_Item_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21537,10 +21560,10 @@ void HP_clif_pGM_Monster_Item(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGM_Monster_Item(fd, sd); } if( HPMHooks.count.HP_clif_pGM_Monster_Item_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGM_Monster_Item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGM_Monster_Item_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21548,11 +21571,11 @@ void HP_clif_pGM_Monster_Item(int fd, struct map_session_data *sd) { void HP_clif_pGMHide(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMHide_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMHide_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMHide_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21563,10 +21586,10 @@ void HP_clif_pGMHide(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMHide(fd, sd); } if( HPMHooks.count.HP_clif_pGMHide_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMHide_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMHide_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21574,11 +21597,11 @@ void HP_clif_pGMHide(int fd, struct map_session_data *sd) { void HP_clif_pGMReqNoChat(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMReqNoChat_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMReqNoChat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMReqNoChat_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21589,10 +21612,10 @@ void HP_clif_pGMReqNoChat(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMReqNoChat(fd, sd); } if( HPMHooks.count.HP_clif_pGMReqNoChat_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMReqNoChat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMReqNoChat_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21600,11 +21623,11 @@ void HP_clif_pGMReqNoChat(int fd, struct map_session_data *sd) { void HP_clif_pGMRc(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMRc_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMRc_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21615,10 +21638,10 @@ void HP_clif_pGMRc(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMRc(fd, sd); } if( HPMHooks.count.HP_clif_pGMRc_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMRc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMRc_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21626,11 +21649,11 @@ void HP_clif_pGMRc(int fd, struct map_session_data *sd) { void HP_clif_pGMReqAccountName(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMReqAccountName_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMReqAccountName_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMReqAccountName_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21641,10 +21664,10 @@ void HP_clif_pGMReqAccountName(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMReqAccountName(fd, sd); } if( HPMHooks.count.HP_clif_pGMReqAccountName_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMReqAccountName_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMReqAccountName_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21652,11 +21675,11 @@ void HP_clif_pGMReqAccountName(int fd, struct map_session_data *sd) { void HP_clif_pGMChangeMapType(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMChangeMapType_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMChangeMapType_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMChangeMapType_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21667,10 +21690,10 @@ void HP_clif_pGMChangeMapType(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMChangeMapType(fd, sd); } if( HPMHooks.count.HP_clif_pGMChangeMapType_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMChangeMapType_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMChangeMapType_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21678,11 +21701,11 @@ void HP_clif_pGMChangeMapType(int fd, struct map_session_data *sd) { void HP_clif_pGMFullStrip(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGMFullStrip_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMFullStrip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGMFullStrip_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21693,10 +21716,10 @@ void HP_clif_pGMFullStrip(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGMFullStrip(fd, sd); } if( HPMHooks.count.HP_clif_pGMFullStrip_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGMFullStrip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGMFullStrip_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21704,11 +21727,11 @@ void HP_clif_pGMFullStrip(int fd, struct map_session_data *sd) { void HP_clif_pPMIgnore(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPMIgnore_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnore_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPMIgnore_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21719,10 +21742,10 @@ void HP_clif_pPMIgnore(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPMIgnore(fd, sd); } if( HPMHooks.count.HP_clif_pPMIgnore_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPMIgnore_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21730,11 +21753,11 @@ void HP_clif_pPMIgnore(int fd, struct map_session_data *sd) { void HP_clif_pPMIgnoreAll(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPMIgnoreAll_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnoreAll_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPMIgnoreAll_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21745,10 +21768,10 @@ void HP_clif_pPMIgnoreAll(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPMIgnoreAll(fd, sd); } if( HPMHooks.count.HP_clif_pPMIgnoreAll_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnoreAll_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPMIgnoreAll_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21756,11 +21779,11 @@ void HP_clif_pPMIgnoreAll(int fd, struct map_session_data *sd) { void HP_clif_pPMIgnoreList(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPMIgnoreList_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnoreList_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPMIgnoreList_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21771,10 +21794,10 @@ void HP_clif_pPMIgnoreList(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPMIgnoreList(fd, sd); } if( HPMHooks.count.HP_clif_pPMIgnoreList_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPMIgnoreList_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPMIgnoreList_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21782,11 +21805,11 @@ void HP_clif_pPMIgnoreList(int fd, struct map_session_data *sd) { void HP_clif_pNoviceDoriDori(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNoviceDoriDori_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNoviceDoriDori_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNoviceDoriDori_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21797,10 +21820,10 @@ void HP_clif_pNoviceDoriDori(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNoviceDoriDori(fd, sd); } if( HPMHooks.count.HP_clif_pNoviceDoriDori_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNoviceDoriDori_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNoviceDoriDori_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21808,11 +21831,11 @@ void HP_clif_pNoviceDoriDori(int fd, struct map_session_data *sd) { void HP_clif_pNoviceExplosionSpirits(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNoviceExplosionSpirits_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNoviceExplosionSpirits_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNoviceExplosionSpirits_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21823,10 +21846,10 @@ void HP_clif_pNoviceExplosionSpirits(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNoviceExplosionSpirits(fd, sd); } if( HPMHooks.count.HP_clif_pNoviceExplosionSpirits_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNoviceExplosionSpirits_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNoviceExplosionSpirits_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21834,11 +21857,11 @@ void HP_clif_pNoviceExplosionSpirits(int fd, struct map_session_data *sd) { void HP_clif_pFriendsListAdd(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pFriendsListAdd_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListAdd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pFriendsListAdd_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21849,10 +21872,10 @@ void HP_clif_pFriendsListAdd(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pFriendsListAdd(fd, sd); } if( HPMHooks.count.HP_clif_pFriendsListAdd_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListAdd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pFriendsListAdd_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21860,11 +21883,11 @@ void HP_clif_pFriendsListAdd(int fd, struct map_session_data *sd) { void HP_clif_pFriendsListReply(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pFriendsListReply_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListReply_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pFriendsListReply_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21875,10 +21898,10 @@ void HP_clif_pFriendsListReply(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pFriendsListReply(fd, sd); } if( HPMHooks.count.HP_clif_pFriendsListReply_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListReply_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pFriendsListReply_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21886,11 +21909,11 @@ void HP_clif_pFriendsListReply(int fd, struct map_session_data *sd) { void HP_clif_pFriendsListRemove(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pFriendsListRemove_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListRemove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pFriendsListRemove_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21901,10 +21924,10 @@ void HP_clif_pFriendsListRemove(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pFriendsListRemove(fd, sd); } if( HPMHooks.count.HP_clif_pFriendsListRemove_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFriendsListRemove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pFriendsListRemove_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21912,11 +21935,11 @@ void HP_clif_pFriendsListRemove(int fd, struct map_session_data *sd) { void HP_clif_pPVPInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPVPInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPVPInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPVPInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21927,10 +21950,10 @@ void HP_clif_pPVPInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPVPInfo(fd, sd); } if( HPMHooks.count.HP_clif_pPVPInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPVPInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPVPInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21938,11 +21961,11 @@ void HP_clif_pPVPInfo(int fd, struct map_session_data *sd) { void HP_clif_pBlacksmith(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBlacksmith_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBlacksmith_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBlacksmith_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21953,10 +21976,10 @@ void HP_clif_pBlacksmith(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBlacksmith(fd, sd); } if( HPMHooks.count.HP_clif_pBlacksmith_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBlacksmith_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBlacksmith_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21964,11 +21987,11 @@ void HP_clif_pBlacksmith(int fd, struct map_session_data *sd) { void HP_clif_pAlchemist(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAlchemist_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAlchemist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAlchemist_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -21979,10 +22002,10 @@ void HP_clif_pAlchemist(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAlchemist(fd, sd); } if( HPMHooks.count.HP_clif_pAlchemist_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAlchemist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAlchemist_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -21990,11 +22013,11 @@ void HP_clif_pAlchemist(int fd, struct map_session_data *sd) { void HP_clif_pTaekwon(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pTaekwon_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTaekwon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pTaekwon_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22005,10 +22028,10 @@ void HP_clif_pTaekwon(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pTaekwon(fd, sd); } if( HPMHooks.count.HP_clif_pTaekwon_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pTaekwon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pTaekwon_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22016,11 +22039,11 @@ void HP_clif_pTaekwon(int fd, struct map_session_data *sd) { void HP_clif_pRankingPk(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRankingPk_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRankingPk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRankingPk_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22031,10 +22054,10 @@ void HP_clif_pRankingPk(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRankingPk(fd, sd); } if( HPMHooks.count.HP_clif_pRankingPk_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRankingPk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRankingPk_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22042,11 +22065,11 @@ void HP_clif_pRankingPk(int fd, struct map_session_data *sd) { void HP_clif_pFeelSaveOk(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pFeelSaveOk_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFeelSaveOk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pFeelSaveOk_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22057,10 +22080,10 @@ void HP_clif_pFeelSaveOk(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pFeelSaveOk(fd, sd); } if( HPMHooks.count.HP_clif_pFeelSaveOk_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pFeelSaveOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pFeelSaveOk_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22068,11 +22091,11 @@ void HP_clif_pFeelSaveOk(int fd, struct map_session_data *sd) { void HP_clif_pChangeHomunculusName(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pChangeHomunculusName_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeHomunculusName_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pChangeHomunculusName_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22083,10 +22106,10 @@ void HP_clif_pChangeHomunculusName(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pChangeHomunculusName(fd, sd); } if( HPMHooks.count.HP_clif_pChangeHomunculusName_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pChangeHomunculusName_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pChangeHomunculusName_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22094,11 +22117,11 @@ void HP_clif_pChangeHomunculusName(int fd, struct map_session_data *sd) { void HP_clif_pHomMoveToMaster(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHomMoveToMaster_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMoveToMaster_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHomMoveToMaster_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22109,10 +22132,10 @@ void HP_clif_pHomMoveToMaster(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHomMoveToMaster(fd, sd); } if( HPMHooks.count.HP_clif_pHomMoveToMaster_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMoveToMaster_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHomMoveToMaster_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22120,11 +22143,11 @@ void HP_clif_pHomMoveToMaster(int fd, struct map_session_data *sd) { void HP_clif_pHomMoveTo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHomMoveTo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMoveTo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHomMoveTo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22135,10 +22158,10 @@ void HP_clif_pHomMoveTo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHomMoveTo(fd, sd); } if( HPMHooks.count.HP_clif_pHomMoveTo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMoveTo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHomMoveTo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22146,11 +22169,11 @@ void HP_clif_pHomMoveTo(int fd, struct map_session_data *sd) { void HP_clif_pHomAttack(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHomAttack_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomAttack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHomAttack_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22161,10 +22184,10 @@ void HP_clif_pHomAttack(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHomAttack(fd, sd); } if( HPMHooks.count.HP_clif_pHomAttack_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomAttack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHomAttack_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22172,11 +22195,11 @@ void HP_clif_pHomAttack(int fd, struct map_session_data *sd) { void HP_clif_pHomMenu(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHomMenu_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMenu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHomMenu_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22187,10 +22210,10 @@ void HP_clif_pHomMenu(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHomMenu(fd, sd); } if( HPMHooks.count.HP_clif_pHomMenu_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHomMenu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHomMenu_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22198,11 +22221,11 @@ void HP_clif_pHomMenu(int fd, struct map_session_data *sd) { void HP_clif_pAutoRevive(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAutoRevive_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAutoRevive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAutoRevive_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22213,10 +22236,10 @@ void HP_clif_pAutoRevive(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAutoRevive(fd, sd); } if( HPMHooks.count.HP_clif_pAutoRevive_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAutoRevive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAutoRevive_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22224,11 +22247,11 @@ void HP_clif_pAutoRevive(int fd, struct map_session_data *sd) { void HP_clif_pCheck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCheck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCheck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCheck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22239,10 +22262,10 @@ void HP_clif_pCheck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCheck(fd, sd); } if( HPMHooks.count.HP_clif_pCheck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCheck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCheck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22250,11 +22273,11 @@ void HP_clif_pCheck(int fd, struct map_session_data *sd) { void HP_clif_pMail_refreshinbox(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_refreshinbox_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_refreshinbox_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_refreshinbox_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22265,10 +22288,10 @@ void HP_clif_pMail_refreshinbox(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_refreshinbox(fd, sd); } if( HPMHooks.count.HP_clif_pMail_refreshinbox_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_refreshinbox_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_refreshinbox_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22276,11 +22299,11 @@ void HP_clif_pMail_refreshinbox(int fd, struct map_session_data *sd) { void HP_clif_pMail_read(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_read_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_read_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22291,10 +22314,10 @@ void HP_clif_pMail_read(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_read(fd, sd); } if( HPMHooks.count.HP_clif_pMail_read_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_read_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22302,11 +22325,11 @@ void HP_clif_pMail_read(int fd, struct map_session_data *sd) { void HP_clif_pMail_getattach(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_getattach_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_getattach_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_getattach_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22317,10 +22340,10 @@ void HP_clif_pMail_getattach(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_getattach(fd, sd); } if( HPMHooks.count.HP_clif_pMail_getattach_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_getattach_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_getattach_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22328,11 +22351,11 @@ void HP_clif_pMail_getattach(int fd, struct map_session_data *sd) { void HP_clif_pMail_delete(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_delete_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_delete_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22343,10 +22366,10 @@ void HP_clif_pMail_delete(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_delete(fd, sd); } if( HPMHooks.count.HP_clif_pMail_delete_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_delete_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22354,11 +22377,11 @@ void HP_clif_pMail_delete(int fd, struct map_session_data *sd) { void HP_clif_pMail_return(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_return_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_return_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_return_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22369,10 +22392,10 @@ void HP_clif_pMail_return(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_return(fd, sd); } if( HPMHooks.count.HP_clif_pMail_return_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_return_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_return_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22380,11 +22403,11 @@ void HP_clif_pMail_return(int fd, struct map_session_data *sd) { void HP_clif_pMail_setattach(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_setattach_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_setattach_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_setattach_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22395,10 +22418,10 @@ void HP_clif_pMail_setattach(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_setattach(fd, sd); } if( HPMHooks.count.HP_clif_pMail_setattach_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_setattach_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_setattach_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22406,11 +22429,11 @@ void HP_clif_pMail_setattach(int fd, struct map_session_data *sd) { void HP_clif_pMail_winopen(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_winopen_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_winopen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_winopen_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22421,10 +22444,10 @@ void HP_clif_pMail_winopen(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_winopen(fd, sd); } if( HPMHooks.count.HP_clif_pMail_winopen_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_winopen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_winopen_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22432,11 +22455,11 @@ void HP_clif_pMail_winopen(int fd, struct map_session_data *sd) { void HP_clif_pMail_send(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMail_send_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMail_send_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22447,10 +22470,10 @@ void HP_clif_pMail_send(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMail_send(fd, sd); } if( HPMHooks.count.HP_clif_pMail_send_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMail_send_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMail_send_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22458,11 +22481,11 @@ void HP_clif_pMail_send(int fd, struct map_session_data *sd) { void HP_clif_pAuction_cancelreg(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_cancelreg_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_cancelreg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_cancelreg_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22473,10 +22496,10 @@ void HP_clif_pAuction_cancelreg(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_cancelreg(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_cancelreg_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_cancelreg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_cancelreg_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22484,11 +22507,11 @@ void HP_clif_pAuction_cancelreg(int fd, struct map_session_data *sd) { void HP_clif_pAuction_setitem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_setitem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_setitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_setitem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22499,10 +22522,10 @@ void HP_clif_pAuction_setitem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_setitem(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_setitem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_setitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_setitem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22510,11 +22533,11 @@ void HP_clif_pAuction_setitem(int fd, struct map_session_data *sd) { void HP_clif_pAuction_register(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_register_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_register_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_register_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22525,10 +22548,10 @@ void HP_clif_pAuction_register(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_register(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_register_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_register_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_register_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22536,11 +22559,11 @@ void HP_clif_pAuction_register(int fd, struct map_session_data *sd) { void HP_clif_pAuction_cancel(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_cancel_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_cancel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_cancel_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22551,10 +22574,10 @@ void HP_clif_pAuction_cancel(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_cancel(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_cancel_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_cancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_cancel_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22562,11 +22585,11 @@ void HP_clif_pAuction_cancel(int fd, struct map_session_data *sd) { void HP_clif_pAuction_close(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_close_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_close_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22577,10 +22600,10 @@ void HP_clif_pAuction_close(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_close(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_close_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_close_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_close_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22588,11 +22611,11 @@ void HP_clif_pAuction_close(int fd, struct map_session_data *sd) { void HP_clif_pAuction_bid(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_bid_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_bid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_bid_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22603,10 +22626,10 @@ void HP_clif_pAuction_bid(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_bid(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_bid_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_bid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_bid_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22614,11 +22637,11 @@ void HP_clif_pAuction_bid(int fd, struct map_session_data *sd) { void HP_clif_pAuction_search(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_search_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_search_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22629,10 +22652,10 @@ void HP_clif_pAuction_search(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_search(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_search_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_search_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22640,11 +22663,11 @@ void HP_clif_pAuction_search(int fd, struct map_session_data *sd) { void HP_clif_pAuction_buysell(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAuction_buysell_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_buysell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAuction_buysell_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22655,10 +22678,10 @@ void HP_clif_pAuction_buysell(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAuction_buysell(fd, sd); } if( HPMHooks.count.HP_clif_pAuction_buysell_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAuction_buysell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAuction_buysell_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22666,11 +22689,11 @@ void HP_clif_pAuction_buysell(int fd, struct map_session_data *sd) { void HP_clif_pcashshop_buy(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pcashshop_buy_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pcashshop_buy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pcashshop_buy_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22681,10 +22704,10 @@ void HP_clif_pcashshop_buy(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pcashshop_buy(fd, sd); } if( HPMHooks.count.HP_clif_pcashshop_buy_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pcashshop_buy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pcashshop_buy_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22692,11 +22715,11 @@ void HP_clif_pcashshop_buy(int fd, struct map_session_data *sd) { void HP_clif_pAdopt_request(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAdopt_request_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAdopt_request_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAdopt_request_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22707,10 +22730,10 @@ void HP_clif_pAdopt_request(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAdopt_request(fd, sd); } if( HPMHooks.count.HP_clif_pAdopt_request_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAdopt_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAdopt_request_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22718,11 +22741,11 @@ void HP_clif_pAdopt_request(int fd, struct map_session_data *sd) { void HP_clif_pAdopt_reply(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pAdopt_reply_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAdopt_reply_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pAdopt_reply_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22733,10 +22756,10 @@ void HP_clif_pAdopt_reply(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pAdopt_reply(fd, sd); } if( HPMHooks.count.HP_clif_pAdopt_reply_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pAdopt_reply_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pAdopt_reply_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22744,11 +22767,11 @@ void HP_clif_pAdopt_reply(int fd, struct map_session_data *sd) { void HP_clif_pViewPlayerEquip(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pViewPlayerEquip_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pViewPlayerEquip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pViewPlayerEquip_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22759,10 +22782,10 @@ void HP_clif_pViewPlayerEquip(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pViewPlayerEquip(fd, sd); } if( HPMHooks.count.HP_clif_pViewPlayerEquip_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pViewPlayerEquip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pViewPlayerEquip_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22770,11 +22793,11 @@ void HP_clif_pViewPlayerEquip(int fd, struct map_session_data *sd) { void HP_clif_pEquipTick(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pEquipTick_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEquipTick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pEquipTick_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22785,10 +22808,10 @@ void HP_clif_pEquipTick(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pEquipTick(fd, sd); } if( HPMHooks.count.HP_clif_pEquipTick_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pEquipTick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pEquipTick_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22796,11 +22819,11 @@ void HP_clif_pEquipTick(int fd, struct map_session_data *sd) { void HP_clif_pquestStateAck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pquestStateAck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pquestStateAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pquestStateAck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22811,10 +22834,10 @@ void HP_clif_pquestStateAck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pquestStateAck(fd, sd); } if( HPMHooks.count.HP_clif_pquestStateAck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pquestStateAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pquestStateAck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22822,11 +22845,11 @@ void HP_clif_pquestStateAck(int fd, struct map_session_data *sd) { void HP_clif_pmercenary_action(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pmercenary_action_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pmercenary_action_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pmercenary_action_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22837,10 +22860,10 @@ void HP_clif_pmercenary_action(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pmercenary_action(fd, sd); } if( HPMHooks.count.HP_clif_pmercenary_action_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pmercenary_action_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pmercenary_action_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22848,11 +22871,11 @@ void HP_clif_pmercenary_action(int fd, struct map_session_data *sd) { void HP_clif_pBattleChat(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBattleChat_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBattleChat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBattleChat_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22863,10 +22886,10 @@ void HP_clif_pBattleChat(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBattleChat(fd, sd); } if( HPMHooks.count.HP_clif_pBattleChat_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBattleChat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBattleChat_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22874,11 +22897,11 @@ void HP_clif_pBattleChat(int fd, struct map_session_data *sd) { void HP_clif_pLessEffect(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pLessEffect_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLessEffect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pLessEffect_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22889,10 +22912,10 @@ void HP_clif_pLessEffect(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pLessEffect(fd, sd); } if( HPMHooks.count.HP_clif_pLessEffect_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pLessEffect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pLessEffect_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22900,11 +22923,11 @@ void HP_clif_pLessEffect(int fd, struct map_session_data *sd) { void HP_clif_pItemListWindowSelected(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pItemListWindowSelected_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pItemListWindowSelected_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pItemListWindowSelected_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22915,10 +22938,10 @@ void HP_clif_pItemListWindowSelected(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pItemListWindowSelected(fd, sd); } if( HPMHooks.count.HP_clif_pItemListWindowSelected_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pItemListWindowSelected_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pItemListWindowSelected_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22926,11 +22949,11 @@ void HP_clif_pItemListWindowSelected(int fd, struct map_session_data *sd) { void HP_clif_pReqOpenBuyingStore(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReqOpenBuyingStore_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqOpenBuyingStore_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReqOpenBuyingStore_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22941,10 +22964,10 @@ void HP_clif_pReqOpenBuyingStore(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReqOpenBuyingStore(fd, sd); } if( HPMHooks.count.HP_clif_pReqOpenBuyingStore_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqOpenBuyingStore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReqOpenBuyingStore_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22952,11 +22975,11 @@ void HP_clif_pReqOpenBuyingStore(int fd, struct map_session_data *sd) { void HP_clif_pReqCloseBuyingStore(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReqCloseBuyingStore_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqCloseBuyingStore_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReqCloseBuyingStore_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22967,10 +22990,10 @@ void HP_clif_pReqCloseBuyingStore(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReqCloseBuyingStore(fd, sd); } if( HPMHooks.count.HP_clif_pReqCloseBuyingStore_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqCloseBuyingStore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReqCloseBuyingStore_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -22978,11 +23001,11 @@ void HP_clif_pReqCloseBuyingStore(int fd, struct map_session_data *sd) { void HP_clif_pReqClickBuyingStore(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReqClickBuyingStore_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqClickBuyingStore_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReqClickBuyingStore_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -22993,10 +23016,10 @@ void HP_clif_pReqClickBuyingStore(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReqClickBuyingStore(fd, sd); } if( HPMHooks.count.HP_clif_pReqClickBuyingStore_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqClickBuyingStore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReqClickBuyingStore_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23004,11 +23027,11 @@ void HP_clif_pReqClickBuyingStore(int fd, struct map_session_data *sd) { void HP_clif_pReqTradeBuyingStore(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pReqTradeBuyingStore_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqTradeBuyingStore_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pReqTradeBuyingStore_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23019,10 +23042,10 @@ void HP_clif_pReqTradeBuyingStore(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pReqTradeBuyingStore(fd, sd); } if( HPMHooks.count.HP_clif_pReqTradeBuyingStore_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pReqTradeBuyingStore_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pReqTradeBuyingStore_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23030,11 +23053,11 @@ void HP_clif_pReqTradeBuyingStore(int fd, struct map_session_data *sd) { void HP_clif_pSearchStoreInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSearchStoreInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23045,10 +23068,10 @@ void HP_clif_pSearchStoreInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSearchStoreInfo(fd, sd); } if( HPMHooks.count.HP_clif_pSearchStoreInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23056,11 +23079,11 @@ void HP_clif_pSearchStoreInfo(int fd, struct map_session_data *sd) { void HP_clif_pSearchStoreInfoNextPage(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSearchStoreInfoNextPage_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfoNextPage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfoNextPage_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23071,10 +23094,10 @@ void HP_clif_pSearchStoreInfoNextPage(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSearchStoreInfoNextPage(fd, sd); } if( HPMHooks.count.HP_clif_pSearchStoreInfoNextPage_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfoNextPage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfoNextPage_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23082,11 +23105,11 @@ void HP_clif_pSearchStoreInfoNextPage(int fd, struct map_session_data *sd) { void HP_clif_pCloseSearchStoreInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCloseSearchStoreInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseSearchStoreInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCloseSearchStoreInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23097,10 +23120,10 @@ void HP_clif_pCloseSearchStoreInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCloseSearchStoreInfo(fd, sd); } if( HPMHooks.count.HP_clif_pCloseSearchStoreInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCloseSearchStoreInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCloseSearchStoreInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23108,11 +23131,11 @@ void HP_clif_pCloseSearchStoreInfo(int fd, struct map_session_data *sd) { void HP_clif_pSearchStoreInfoListItemClick(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSearchStoreInfoListItemClick_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfoListItemClick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfoListItemClick_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23123,10 +23146,10 @@ void HP_clif_pSearchStoreInfoListItemClick(int fd, struct map_session_data *sd) HPMHooks.source.clif.pSearchStoreInfoListItemClick(fd, sd); } if( HPMHooks.count.HP_clif_pSearchStoreInfoListItemClick_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSearchStoreInfoListItemClick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSearchStoreInfoListItemClick_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23134,11 +23157,11 @@ void HP_clif_pSearchStoreInfoListItemClick(int fd, struct map_session_data *sd) void HP_clif_pDebug(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pDebug_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDebug_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pDebug_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23149,10 +23172,10 @@ void HP_clif_pDebug(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pDebug(fd, sd); } if( HPMHooks.count.HP_clif_pDebug_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDebug_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pDebug_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23160,11 +23183,11 @@ void HP_clif_pDebug(int fd, struct map_session_data *sd) { void HP_clif_pSkillSelectMenu(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSkillSelectMenu_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSkillSelectMenu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSkillSelectMenu_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23175,10 +23198,10 @@ void HP_clif_pSkillSelectMenu(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSkillSelectMenu(fd, sd); } if( HPMHooks.count.HP_clif_pSkillSelectMenu_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSkillSelectMenu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSkillSelectMenu_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23186,11 +23209,11 @@ void HP_clif_pSkillSelectMenu(int fd, struct map_session_data *sd) { void HP_clif_pMoveItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pMoveItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pMoveItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23201,10 +23224,10 @@ void HP_clif_pMoveItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pMoveItem(fd, sd); } if( HPMHooks.count.HP_clif_pMoveItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pMoveItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pMoveItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23212,11 +23235,11 @@ void HP_clif_pMoveItem(int fd, struct map_session_data *sd) { void HP_clif_pDull(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pDull_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDull_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pDull_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23227,10 +23250,10 @@ void HP_clif_pDull(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pDull(fd, sd); } if( HPMHooks.count.HP_clif_pDull_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pDull_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pDull_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23238,11 +23261,11 @@ void HP_clif_pDull(int fd, struct map_session_data *sd) { void HP_clif_pBGQueueRegister(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBGQueueRegister_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueRegister_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBGQueueRegister_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23253,10 +23276,10 @@ void HP_clif_pBGQueueRegister(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBGQueueRegister(fd, sd); } if( HPMHooks.count.HP_clif_pBGQueueRegister_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueRegister_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBGQueueRegister_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23264,11 +23287,11 @@ void HP_clif_pBGQueueRegister(int fd, struct map_session_data *sd) { void HP_clif_pBGQueueCheckState(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBGQueueCheckState_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueCheckState_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBGQueueCheckState_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23279,10 +23302,10 @@ void HP_clif_pBGQueueCheckState(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBGQueueCheckState(fd, sd); } if( HPMHooks.count.HP_clif_pBGQueueCheckState_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueCheckState_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBGQueueCheckState_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23290,11 +23313,11 @@ void HP_clif_pBGQueueCheckState(int fd, struct map_session_data *sd) { void HP_clif_pBGQueueRevokeReq(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBGQueueRevokeReq_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueRevokeReq_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBGQueueRevokeReq_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23305,10 +23328,10 @@ void HP_clif_pBGQueueRevokeReq(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBGQueueRevokeReq(fd, sd); } if( HPMHooks.count.HP_clif_pBGQueueRevokeReq_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueRevokeReq_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBGQueueRevokeReq_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23316,11 +23339,11 @@ void HP_clif_pBGQueueRevokeReq(int fd, struct map_session_data *sd) { void HP_clif_pBGQueueBattleBeginAck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBGQueueBattleBeginAck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueBattleBeginAck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBGQueueBattleBeginAck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23331,10 +23354,10 @@ void HP_clif_pBGQueueBattleBeginAck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBGQueueBattleBeginAck(fd, sd); } if( HPMHooks.count.HP_clif_pBGQueueBattleBeginAck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBGQueueBattleBeginAck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBGQueueBattleBeginAck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23342,11 +23365,11 @@ void HP_clif_pBGQueueBattleBeginAck(int fd, struct map_session_data *sd) { void HP_clif_pCashShopOpen(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCashShopOpen_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopOpen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCashShopOpen_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23357,10 +23380,10 @@ void HP_clif_pCashShopOpen(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCashShopOpen(fd, sd); } if( HPMHooks.count.HP_clif_pCashShopOpen_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopOpen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCashShopOpen_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23368,11 +23391,11 @@ void HP_clif_pCashShopOpen(int fd, struct map_session_data *sd) { void HP_clif_pCashShopClose(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCashShopClose_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopClose_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCashShopClose_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23383,10 +23406,10 @@ void HP_clif_pCashShopClose(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCashShopClose(fd, sd); } if( HPMHooks.count.HP_clif_pCashShopClose_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopClose_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCashShopClose_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23394,11 +23417,11 @@ void HP_clif_pCashShopClose(int fd, struct map_session_data *sd) { void HP_clif_pCashShopReqTab(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCashShopReqTab_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopReqTab_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCashShopReqTab_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23409,10 +23432,10 @@ void HP_clif_pCashShopReqTab(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCashShopReqTab(fd, sd); } if( HPMHooks.count.HP_clif_pCashShopReqTab_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopReqTab_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCashShopReqTab_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23420,11 +23443,11 @@ void HP_clif_pCashShopReqTab(int fd, struct map_session_data *sd) { void HP_clif_pCashShopSchedule(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCashShopSchedule_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopSchedule_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCashShopSchedule_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23435,10 +23458,10 @@ void HP_clif_pCashShopSchedule(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCashShopSchedule(fd, sd); } if( HPMHooks.count.HP_clif_pCashShopSchedule_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopSchedule_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCashShopSchedule_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23446,11 +23469,11 @@ void HP_clif_pCashShopSchedule(int fd, struct map_session_data *sd) { void HP_clif_pCashShopBuy(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pCashShopBuy_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopBuy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pCashShopBuy_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23461,10 +23484,10 @@ void HP_clif_pCashShopBuy(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pCashShopBuy(fd, sd); } if( HPMHooks.count.HP_clif_pCashShopBuy_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pCashShopBuy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pCashShopBuy_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23472,11 +23495,11 @@ void HP_clif_pCashShopBuy(int fd, struct map_session_data *sd) { void HP_clif_pPartyTick(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyTick_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyTick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyTick_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23487,10 +23510,10 @@ void HP_clif_pPartyTick(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyTick(fd, sd); } if( HPMHooks.count.HP_clif_pPartyTick_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyTick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyTick_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23498,11 +23521,11 @@ void HP_clif_pPartyTick(int fd, struct map_session_data *sd) { void HP_clif_pGuildInvite2(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pGuildInvite2_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildInvite2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pGuildInvite2_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23513,10 +23536,10 @@ void HP_clif_pGuildInvite2(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pGuildInvite2(fd, sd); } if( HPMHooks.count.HP_clif_pGuildInvite2_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pGuildInvite2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pGuildInvite2_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23524,11 +23547,11 @@ void HP_clif_pGuildInvite2(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingAddFilter(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingAddFilter_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingAddFilter_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingAddFilter_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23539,10 +23562,10 @@ void HP_clif_pPartyBookingAddFilter(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingAddFilter(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingAddFilter_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingAddFilter_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingAddFilter_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23550,11 +23573,11 @@ void HP_clif_pPartyBookingAddFilter(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingSubFilter(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingSubFilter_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingSubFilter_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingSubFilter_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23565,10 +23588,10 @@ void HP_clif_pPartyBookingSubFilter(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingSubFilter(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingSubFilter_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingSubFilter_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingSubFilter_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23576,11 +23599,11 @@ void HP_clif_pPartyBookingSubFilter(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingReqVolunteer(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingReqVolunteer_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingReqVolunteer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingReqVolunteer_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23591,10 +23614,10 @@ void HP_clif_pPartyBookingReqVolunteer(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingReqVolunteer(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingReqVolunteer_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingReqVolunteer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingReqVolunteer_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23602,11 +23625,11 @@ void HP_clif_pPartyBookingReqVolunteer(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingRefuseVolunteer(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingRefuseVolunteer_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingRefuseVolunteer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingRefuseVolunteer_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23617,10 +23640,10 @@ void HP_clif_pPartyBookingRefuseVolunteer(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingRefuseVolunteer(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingRefuseVolunteer_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingRefuseVolunteer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingRefuseVolunteer_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23628,11 +23651,11 @@ void HP_clif_pPartyBookingRefuseVolunteer(int fd, struct map_session_data *sd) { void HP_clif_pPartyBookingCancelVolunteer(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pPartyBookingCancelVolunteer_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingCancelVolunteer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pPartyBookingCancelVolunteer_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23643,10 +23666,10 @@ void HP_clif_pPartyBookingCancelVolunteer(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pPartyBookingCancelVolunteer(fd, sd); } if( HPMHooks.count.HP_clif_pPartyBookingCancelVolunteer_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pPartyBookingCancelVolunteer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pPartyBookingCancelVolunteer_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23654,11 +23677,11 @@ void HP_clif_pPartyBookingCancelVolunteer(int fd, struct map_session_data *sd) { void HP_clif_pBankDeposit(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBankDeposit_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankDeposit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBankDeposit_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23669,10 +23692,10 @@ void HP_clif_pBankDeposit(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBankDeposit(fd, sd); } if( HPMHooks.count.HP_clif_pBankDeposit_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankDeposit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBankDeposit_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23680,11 +23703,11 @@ void HP_clif_pBankDeposit(int fd, struct map_session_data *sd) { void HP_clif_pBankWithdraw(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBankWithdraw_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankWithdraw_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBankWithdraw_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23695,10 +23718,10 @@ void HP_clif_pBankWithdraw(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBankWithdraw(fd, sd); } if( HPMHooks.count.HP_clif_pBankWithdraw_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankWithdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBankWithdraw_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23706,11 +23729,11 @@ void HP_clif_pBankWithdraw(int fd, struct map_session_data *sd) { void HP_clif_pBankCheck(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBankCheck_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankCheck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBankCheck_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23721,10 +23744,10 @@ void HP_clif_pBankCheck(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBankCheck(fd, sd); } if( HPMHooks.count.HP_clif_pBankCheck_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankCheck_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBankCheck_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23732,11 +23755,11 @@ void HP_clif_pBankCheck(int fd, struct map_session_data *sd) { void HP_clif_pBankOpen(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBankOpen_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankOpen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBankOpen_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23747,10 +23770,10 @@ void HP_clif_pBankOpen(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBankOpen(fd, sd); } if( HPMHooks.count.HP_clif_pBankOpen_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankOpen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBankOpen_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23758,11 +23781,11 @@ void HP_clif_pBankOpen(int fd, struct map_session_data *sd) { void HP_clif_pBankClose(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pBankClose_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankClose_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pBankClose_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23773,10 +23796,10 @@ void HP_clif_pBankClose(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pBankClose(fd, sd); } if( HPMHooks.count.HP_clif_pBankClose_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pBankClose_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pBankClose_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23784,11 +23807,11 @@ void HP_clif_pBankClose(int fd, struct map_session_data *sd) { void HP_clif_pRouletteOpen(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRouletteOpen_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteOpen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRouletteOpen_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23799,10 +23822,10 @@ void HP_clif_pRouletteOpen(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRouletteOpen(fd, sd); } if( HPMHooks.count.HP_clif_pRouletteOpen_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteOpen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRouletteOpen_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23810,11 +23833,11 @@ void HP_clif_pRouletteOpen(int fd, struct map_session_data *sd) { void HP_clif_pRouletteInfo(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRouletteInfo_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteInfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRouletteInfo_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23825,10 +23848,10 @@ void HP_clif_pRouletteInfo(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRouletteInfo(fd, sd); } if( HPMHooks.count.HP_clif_pRouletteInfo_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRouletteInfo_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23836,11 +23859,11 @@ void HP_clif_pRouletteInfo(int fd, struct map_session_data *sd) { void HP_clif_pRouletteClose(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRouletteClose_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteClose_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRouletteClose_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23851,10 +23874,10 @@ void HP_clif_pRouletteClose(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRouletteClose(fd, sd); } if( HPMHooks.count.HP_clif_pRouletteClose_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteClose_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRouletteClose_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23862,11 +23885,11 @@ void HP_clif_pRouletteClose(int fd, struct map_session_data *sd) { void HP_clif_pRouletteGenerate(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRouletteGenerate_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteGenerate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRouletteGenerate_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23877,10 +23900,10 @@ void HP_clif_pRouletteGenerate(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRouletteGenerate(fd, sd); } if( HPMHooks.count.HP_clif_pRouletteGenerate_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteGenerate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRouletteGenerate_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23888,11 +23911,11 @@ void HP_clif_pRouletteGenerate(int fd, struct map_session_data *sd) { void HP_clif_pRouletteRecvItem(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pRouletteRecvItem_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteRecvItem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pRouletteRecvItem_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23903,10 +23926,10 @@ void HP_clif_pRouletteRecvItem(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pRouletteRecvItem(fd, sd); } if( HPMHooks.count.HP_clif_pRouletteRecvItem_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pRouletteRecvItem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pRouletteRecvItem_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23914,11 +23937,11 @@ void HP_clif_pRouletteRecvItem(int fd, struct map_session_data *sd) { void HP_clif_pNPCShopClosed(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNPCShopClosed_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCShopClosed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNPCShopClosed_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23929,10 +23952,10 @@ void HP_clif_pNPCShopClosed(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNPCShopClosed(fd, sd); } if( HPMHooks.count.HP_clif_pNPCShopClosed_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCShopClosed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNPCShopClosed_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23940,11 +23963,11 @@ void HP_clif_pNPCShopClosed(int fd, struct map_session_data *sd) { void HP_clif_pNPCMarketClosed(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNPCMarketClosed_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCMarketClosed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNPCMarketClosed_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23955,10 +23978,10 @@ void HP_clif_pNPCMarketClosed(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNPCMarketClosed(fd, sd); } if( HPMHooks.count.HP_clif_pNPCMarketClosed_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCMarketClosed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNPCMarketClosed_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23966,11 +23989,11 @@ void HP_clif_pNPCMarketClosed(int fd, struct map_session_data *sd) { void HP_clif_pNPCMarketPurchase(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNPCMarketPurchase_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCMarketPurchase_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pNPCMarketPurchase_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -23981,10 +24004,10 @@ void HP_clif_pNPCMarketPurchase(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pNPCMarketPurchase(fd, sd); } if( HPMHooks.count.HP_clif_pNPCMarketPurchase_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pNPCMarketPurchase_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pNPCMarketPurchase_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -23992,11 +24015,11 @@ void HP_clif_pNPCMarketPurchase(int fd, struct map_session_data *sd) { void HP_clif_add_random_options(unsigned char *buf, struct item *item) { int hIndex = 0; if( HPMHooks.count.HP_clif_add_random_options_pre ) { - void (*preHookFunc) (unsigned char *buf, struct item *item); + void (*preHookFunc) (unsigned char **buf, struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_add_random_options_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_add_random_options_pre[hIndex].func; - preHookFunc(buf, item); + preHookFunc(&buf, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24018,11 +24041,11 @@ void HP_clif_add_random_options(unsigned char *buf, struct item *item) { void HP_clif_pHotkeyRowShift(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pHotkeyRowShift_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24033,10 +24056,10 @@ void HP_clif_pHotkeyRowShift(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pHotkeyRowShift(fd, sd); } if( HPMHooks.count.HP_clif_pHotkeyRowShift_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -24044,11 +24067,11 @@ void HP_clif_pHotkeyRowShift(int fd, struct map_session_data *sd) { void HP_clif_dressroom_open(struct map_session_data *sd, int view) { int hIndex = 0; if( HPMHooks.count.HP_clif_dressroom_open_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *view); + void (*preHookFunc) (struct map_session_data **sd, int *view); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dressroom_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_dressroom_open_pre[hIndex].func; - preHookFunc(sd, &view); + preHookFunc(&sd, &view); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24059,10 +24082,10 @@ void HP_clif_dressroom_open(struct map_session_data *sd, int view) { HPMHooks.source.clif.dressroom_open(sd, view); } if( HPMHooks.count.HP_clif_dressroom_open_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *view); + void (*postHookFunc) (struct map_session_data *sd, int view); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_dressroom_open_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_dressroom_open_post[hIndex].func; - postHookFunc(sd, &view); + postHookFunc(sd, view); } } return; @@ -24070,11 +24093,11 @@ void HP_clif_dressroom_open(struct map_session_data *sd, int view) { void HP_clif_pOneClick_ItemIdentify(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pOneClick_ItemIdentify_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pOneClick_ItemIdentify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pOneClick_ItemIdentify_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24085,10 +24108,10 @@ void HP_clif_pOneClick_ItemIdentify(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pOneClick_ItemIdentify(fd, sd); } if( HPMHooks.count.HP_clif_pOneClick_ItemIdentify_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pOneClick_ItemIdentify_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pOneClick_ItemIdentify_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; @@ -24096,11 +24119,11 @@ void HP_clif_pOneClick_ItemIdentify(int fd, struct map_session_data *sd) { void HP_clif_selectcart(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_selectcart_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_selectcart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_selectcart_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24122,11 +24145,11 @@ void HP_clif_selectcart(struct map_session_data *sd) { void HP_clif_pSelectCart(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pSelectCart_pre ) { - void (*preHookFunc) (int *fd, struct map_session_data *sd); + void (*preHookFunc) (int *fd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectCart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_clif_pSelectCart_pre[hIndex].func; - preHookFunc(&fd, sd); + preHookFunc(&fd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24137,15 +24160,42 @@ void HP_clif_pSelectCart(int fd, struct map_session_data *sd) { HPMHooks.source.clif.pSelectCart(fd, sd); } if( HPMHooks.count.HP_clif_pSelectCart_post ) { - void (*postHookFunc) (int *fd, struct map_session_data *sd); + void (*postHookFunc) (int fd, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_pSelectCart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_clif_pSelectCart_post[hIndex].func; - postHookFunc(&fd, sd); + postHookFunc(fd, sd); } } return; } -/* cmdline */ +const char* HP_clif_get_bl_name(const struct block_list *bl) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_clif_get_bl_name_pre ) { + const char* (*preHookFunc) (const struct block_list **bl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_get_bl_name_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_get_bl_name_pre[hIndex].func; + retVal___ = preHookFunc(&bl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.clif.get_bl_name(bl); + } + if( HPMHooks.count.HP_clif_get_bl_name_post ) { + const char* (*postHookFunc) (const char* retVal___, const struct block_list *bl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_get_bl_name_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_get_bl_name_post[hIndex].func; + retVal___ = postHookFunc(retVal___, bl); + } + } + return retVal___; +} +/* cmdline_interface */ void HP_cmdline_init(void) { int hIndex = 0; if( HPMHooks.count.HP_cmdline_init_pre ) { @@ -24202,11 +24252,11 @@ bool HP_cmdline_arg_add(unsigned int pluginID, const char *name, char shortname, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_cmdline_arg_add_pre ) { - bool (*preHookFunc) (unsigned int *pluginID, const char *name, char *shortname, CmdlineExecFunc *func, const char *help, unsigned int *options); + bool (*preHookFunc) (unsigned int *pluginID, const char **name, char *shortname, CmdlineExecFunc *func, const char **help, unsigned int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_cmdline_arg_add_pre[hIndex].func; - retVal___ = preHookFunc(&pluginID, name, &shortname, &func, help, &options); + retVal___ = preHookFunc(&pluginID, &name, &shortname, &func, &help, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24217,10 +24267,10 @@ bool HP_cmdline_arg_add(unsigned int pluginID, const char *name, char shortname, retVal___ = HPMHooks.source.cmdline.arg_add(pluginID, name, shortname, func, help, options); } if( HPMHooks.count.HP_cmdline_arg_add_post ) { - bool (*postHookFunc) (bool retVal___, unsigned int *pluginID, const char *name, char *shortname, CmdlineExecFunc *func, const char *help, unsigned int *options); + bool (*postHookFunc) (bool retVal___, unsigned int pluginID, const char *name, char shortname, CmdlineExecFunc func, const char *help, unsigned int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_cmdline_arg_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &pluginID, name, &shortname, &func, help, &options); + retVal___ = postHookFunc(retVal___, pluginID, name, shortname, func, help, options); } } return retVal___; @@ -24229,11 +24279,11 @@ int HP_cmdline_exec(int argc, char **argv, unsigned int options) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_cmdline_exec_pre ) { - int (*preHookFunc) (int *argc, char **argv, unsigned int *options); + int (*preHookFunc) (int *argc, char ***argv, unsigned int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_cmdline_exec_pre[hIndex].func; - retVal___ = preHookFunc(&argc, argv, &options); + retVal___ = preHookFunc(&argc, &argv, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24244,10 +24294,10 @@ int HP_cmdline_exec(int argc, char **argv, unsigned int options) { retVal___ = HPMHooks.source.cmdline.exec(argc, argv, options); } if( HPMHooks.count.HP_cmdline_exec_post ) { - int (*postHookFunc) (int retVal___, int *argc, char **argv, unsigned int *options); + int (*postHookFunc) (int retVal___, int argc, char **argv, unsigned int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_exec_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_cmdline_exec_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &argc, argv, &options); + retVal___ = postHookFunc(retVal___, argc, argv, options); } } return retVal___; @@ -24256,11 +24306,11 @@ bool HP_cmdline_arg_next_value(const char *name, int current_arg, int argc) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_cmdline_arg_next_value_pre ) { - bool (*preHookFunc) (const char *name, int *current_arg, int *argc); + bool (*preHookFunc) (const char **name, int *current_arg, int *argc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_cmdline_arg_next_value_pre[hIndex].func; - retVal___ = preHookFunc(name, ¤t_arg, &argc); + retVal___ = preHookFunc(&name, ¤t_arg, &argc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24271,10 +24321,10 @@ bool HP_cmdline_arg_next_value(const char *name, int current_arg, int argc) { retVal___ = HPMHooks.source.cmdline.arg_next_value(name, current_arg, argc); } if( HPMHooks.count.HP_cmdline_arg_next_value_post ) { - bool (*postHookFunc) (bool retVal___, const char *name, int *current_arg, int *argc); + bool (*postHookFunc) (bool retVal___, const char *name, int current_arg, int argc); for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_next_value_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_cmdline_arg_next_value_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, ¤t_arg, &argc); + retVal___ = postHookFunc(retVal___, name, current_arg, argc); } } return retVal___; @@ -24283,11 +24333,11 @@ const char* HP_cmdline_arg_source(struct CmdlineArgData *arg) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_cmdline_arg_source_pre ) { - const char* (*preHookFunc) (struct CmdlineArgData *arg); + const char* (*preHookFunc) (struct CmdlineArgData **arg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_cmdline_arg_source_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_cmdline_arg_source_pre[hIndex].func; - retVal___ = preHookFunc(arg); + retVal___ = preHookFunc(&arg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24306,7 +24356,7 @@ const char* HP_cmdline_arg_source(struct CmdlineArgData *arg) { } return retVal___; } -/* console */ +/* console_interface */ void HP_console_init(void) { int hIndex = 0; if( HPMHooks.count.HP_console_init_pre ) { @@ -24411,7 +24461,7 @@ void HP_console_display_gplnotice(void) { } return; } -/* core */ +/* core_interface */ void HP_core_shutdown_callback(void) { int hIndex = 0; if( HPMHooks.count.HP_core_shutdown_callback_pre ) { @@ -24438,12 +24488,12 @@ void HP_core_shutdown_callback(void) { } return; } -/* DB */ -DBOptions HP_DB_fix_options(DBType type, DBOptions options) { +/* db_interface */ +enum DBOptions HP_DB_fix_options(enum DBType type, enum DBOptions options) { int hIndex = 0; - DBOptions retVal___ = DB_OPT_BASE; + enum DBOptions retVal___ = DB_OPT_BASE; if( HPMHooks.count.HP_DB_fix_options_pre ) { - DBOptions (*preHookFunc) (DBType *type, DBOptions *options); + enum DBOptions (*preHookFunc) (enum DBType *type, enum DBOptions *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_fix_options_pre[hIndex].func; @@ -24458,19 +24508,19 @@ DBOptions HP_DB_fix_options(DBType type, DBOptions options) { retVal___ = HPMHooks.source.DB.fix_options(type, options); } if( HPMHooks.count.HP_DB_fix_options_post ) { - DBOptions (*postHookFunc) (DBOptions retVal___, DBType *type, DBOptions *options); + enum DBOptions (*postHookFunc) (enum DBOptions retVal___, enum DBType type, enum DBOptions options); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_fix_options_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_fix_options_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type, &options); + retVal___ = postHookFunc(retVal___, type, options); } } return retVal___; } -DBComparator HP_DB_default_cmp(DBType type) { +DBComparator HP_DB_default_cmp(enum DBType type) { int hIndex = 0; DBComparator retVal___ = NULL; if( HPMHooks.count.HP_DB_default_cmp_pre ) { - DBComparator (*preHookFunc) (DBType *type); + DBComparator (*preHookFunc) (enum DBType *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_default_cmp_pre[hIndex].func; @@ -24485,19 +24535,19 @@ DBComparator HP_DB_default_cmp(DBType type) { retVal___ = HPMHooks.source.DB.default_cmp(type); } if( HPMHooks.count.HP_DB_default_cmp_post ) { - DBComparator (*postHookFunc) (DBComparator retVal___, DBType *type); + DBComparator (*postHookFunc) (DBComparator retVal___, enum DBType type); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_cmp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_default_cmp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; } -DBHasher HP_DB_default_hash(DBType type) { +DBHasher HP_DB_default_hash(enum DBType type) { int hIndex = 0; DBHasher retVal___ = NULL; if( HPMHooks.count.HP_DB_default_hash_pre ) { - DBHasher (*preHookFunc) (DBType *type); + DBHasher (*preHookFunc) (enum DBType *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_default_hash_pre[hIndex].func; @@ -24512,19 +24562,19 @@ DBHasher HP_DB_default_hash(DBType type) { retVal___ = HPMHooks.source.DB.default_hash(type); } if( HPMHooks.count.HP_DB_default_hash_post ) { - DBHasher (*postHookFunc) (DBHasher retVal___, DBType *type); + DBHasher (*postHookFunc) (DBHasher retVal___, enum DBType type); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_hash_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_default_hash_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; } -DBReleaser HP_DB_default_release(DBType type, DBOptions options) { +DBReleaser HP_DB_default_release(enum DBType type, enum DBOptions options) { int hIndex = 0; DBReleaser retVal___ = NULL; if( HPMHooks.count.HP_DB_default_release_pre ) { - DBReleaser (*preHookFunc) (DBType *type, DBOptions *options); + DBReleaser (*preHookFunc) (enum DBType *type, enum DBOptions *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_default_release_pre[hIndex].func; @@ -24539,19 +24589,19 @@ DBReleaser HP_DB_default_release(DBType type, DBOptions options) { retVal___ = HPMHooks.source.DB.default_release(type, options); } if( HPMHooks.count.HP_DB_default_release_post ) { - DBReleaser (*postHookFunc) (DBReleaser retVal___, DBType *type, DBOptions *options); + DBReleaser (*postHookFunc) (DBReleaser retVal___, enum DBType type, enum DBOptions options); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_default_release_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_default_release_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type, &options); + retVal___ = postHookFunc(retVal___, type, options); } } return retVal___; } -DBReleaser HP_DB_custom_release(DBRelease which) { +DBReleaser HP_DB_custom_release(enum DBReleaseOption which) { int hIndex = 0; DBReleaser retVal___ = NULL; if( HPMHooks.count.HP_DB_custom_release_pre ) { - DBReleaser (*preHookFunc) (DBRelease *which); + DBReleaser (*preHookFunc) (enum DBReleaseOption *which); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_custom_release_pre[hIndex].func; @@ -24566,23 +24616,23 @@ DBReleaser HP_DB_custom_release(DBRelease which) { retVal___ = HPMHooks.source.DB.custom_release(which); } if( HPMHooks.count.HP_DB_custom_release_post ) { - DBReleaser (*postHookFunc) (DBReleaser retVal___, DBRelease *which); + DBReleaser (*postHookFunc) (DBReleaser retVal___, enum DBReleaseOption which); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_custom_release_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_custom_release_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &which); + retVal___ = postHookFunc(retVal___, which); } } return retVal___; } -DBMap* HP_DB_alloc(const char *file, const char *func, int line, DBType type, DBOptions options, unsigned short maxlen) { +struct DBMap* HP_DB_alloc(const char *file, const char *func, int line, enum DBType type, enum DBOptions options, unsigned short maxlen) { int hIndex = 0; - DBMap* retVal___ = NULL; + struct DBMap* retVal___ = NULL; if( HPMHooks.count.HP_DB_alloc_pre ) { - DBMap* (*preHookFunc) (const char *file, const char *func, int *line, DBType *type, DBOptions *options, unsigned short *maxlen); + struct DBMap* (*preHookFunc) (const char **file, const char **func, int *line, enum DBType *type, enum DBOptions *options, unsigned short *maxlen); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_alloc_pre[hIndex].func; - retVal___ = preHookFunc(file, func, &line, &type, &options, &maxlen); + retVal___ = preHookFunc(&file, &func, &line, &type, &options, &maxlen); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24593,20 +24643,19 @@ DBMap* HP_DB_alloc(const char *file, const char *func, int line, DBType type, DB retVal___ = HPMHooks.source.DB.alloc(file, func, line, type, options, maxlen); } if( HPMHooks.count.HP_DB_alloc_post ) { - DBMap* (*postHookFunc) (DBMap* retVal___, const char *file, const char *func, int *line, DBType *type, DBOptions *options, unsigned short *maxlen); + struct DBMap* (*postHookFunc) (struct DBMap* retVal___, const char *file, const char *func, int line, enum DBType type, enum DBOptions options, unsigned short maxlen); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_alloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_alloc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, file, func, &line, &type, &options, &maxlen); + retVal___ = postHookFunc(retVal___, file, func, line, type, options, maxlen); } } return retVal___; } -DBKey HP_DB_i2key(int key) { +union DBKey HP_DB_i2key(int key) { int hIndex = 0; - DBKey retVal___; - memset(&retVal___, '\0', sizeof(DBKey)); + union DBKey retVal___ = { 0 }; if( HPMHooks.count.HP_DB_i2key_pre ) { - DBKey (*preHookFunc) (int *key); + union DBKey (*preHookFunc) (int *key); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_i2key_pre[hIndex].func; @@ -24621,20 +24670,19 @@ DBKey HP_DB_i2key(int key) { retVal___ = HPMHooks.source.DB.i2key(key); } if( HPMHooks.count.HP_DB_i2key_post ) { - DBKey (*postHookFunc) (DBKey retVal___, int *key); + union DBKey (*postHookFunc) (union DBKey retVal___, int key); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2key_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_i2key_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key); + retVal___ = postHookFunc(retVal___, key); } } return retVal___; } -DBKey HP_DB_ui2key(unsigned int key) { +union DBKey HP_DB_ui2key(unsigned int key) { int hIndex = 0; - DBKey retVal___; - memset(&retVal___, '\0', sizeof(DBKey)); + union DBKey retVal___ = { 0 }; if( HPMHooks.count.HP_DB_ui2key_pre ) { - DBKey (*preHookFunc) (unsigned int *key); + union DBKey (*preHookFunc) (unsigned int *key); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_ui2key_pre[hIndex].func; @@ -24649,24 +24697,23 @@ DBKey HP_DB_ui2key(unsigned int key) { retVal___ = HPMHooks.source.DB.ui2key(key); } if( HPMHooks.count.HP_DB_ui2key_post ) { - DBKey (*postHookFunc) (DBKey retVal___, unsigned int *key); + union DBKey (*postHookFunc) (union DBKey retVal___, unsigned int key); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2key_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_ui2key_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key); + retVal___ = postHookFunc(retVal___, key); } } return retVal___; } -DBKey HP_DB_str2key(const char *key) { +union DBKey HP_DB_str2key(const char *key) { int hIndex = 0; - DBKey retVal___; - memset(&retVal___, '\0', sizeof(DBKey)); + union DBKey retVal___ = { 0 }; if( HPMHooks.count.HP_DB_str2key_pre ) { - DBKey (*preHookFunc) (const char *key); + union DBKey (*preHookFunc) (const char **key); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_str2key_pre[hIndex].func; - retVal___ = preHookFunc(key); + retVal___ = preHookFunc(&key); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24677,7 +24724,7 @@ DBKey HP_DB_str2key(const char *key) { retVal___ = HPMHooks.source.DB.str2key(key); } if( HPMHooks.count.HP_DB_str2key_post ) { - DBKey (*postHookFunc) (DBKey retVal___, const char *key); + union DBKey (*postHookFunc) (union DBKey retVal___, const char *key); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_str2key_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_str2key_post[hIndex].func; retVal___ = postHookFunc(retVal___, key); @@ -24685,12 +24732,11 @@ DBKey HP_DB_str2key(const char *key) { } return retVal___; } -DBKey HP_DB_i642key(int64 key) { +union DBKey HP_DB_i642key(int64 key) { int hIndex = 0; - DBKey retVal___; - memset(&retVal___, '\0', sizeof(DBKey)); + union DBKey retVal___ = { 0 }; if( HPMHooks.count.HP_DB_i642key_pre ) { - DBKey (*preHookFunc) (int64 *key); + union DBKey (*preHookFunc) (int64 *key); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_i642key_pre[hIndex].func; @@ -24705,20 +24751,19 @@ DBKey HP_DB_i642key(int64 key) { retVal___ = HPMHooks.source.DB.i642key(key); } if( HPMHooks.count.HP_DB_i642key_post ) { - DBKey (*postHookFunc) (DBKey retVal___, int64 *key); + union DBKey (*postHookFunc) (union DBKey retVal___, int64 key); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i642key_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_i642key_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key); + retVal___ = postHookFunc(retVal___, key); } } return retVal___; } -DBKey HP_DB_ui642key(uint64 key) { +union DBKey HP_DB_ui642key(uint64 key) { int hIndex = 0; - DBKey retVal___; - memset(&retVal___, '\0', sizeof(DBKey)); + union DBKey retVal___ = { 0 }; if( HPMHooks.count.HP_DB_ui642key_pre ) { - DBKey (*preHookFunc) (uint64 *key); + union DBKey (*preHookFunc) (uint64 *key); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_ui642key_pre[hIndex].func; @@ -24733,20 +24778,19 @@ DBKey HP_DB_ui642key(uint64 key) { retVal___ = HPMHooks.source.DB.ui642key(key); } if( HPMHooks.count.HP_DB_ui642key_post ) { - DBKey (*postHookFunc) (DBKey retVal___, uint64 *key); + union DBKey (*postHookFunc) (union DBKey retVal___, uint64 key); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui642key_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_ui642key_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key); + retVal___ = postHookFunc(retVal___, key); } } return retVal___; } -DBData HP_DB_i2data(int data) { +struct DBData HP_DB_i2data(int data) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_DB_i2data_pre ) { - DBData (*preHookFunc) (int *data); + struct DBData (*preHookFunc) (int *data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_i2data_pre[hIndex].func; @@ -24761,20 +24805,19 @@ DBData HP_DB_i2data(int data) { retVal___ = HPMHooks.source.DB.i2data(data); } if( HPMHooks.count.HP_DB_i2data_post ) { - DBData (*postHookFunc) (DBData retVal___, int *data); + struct DBData (*postHookFunc) (struct DBData retVal___, int data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_i2data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_i2data_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &data); + retVal___ = postHookFunc(retVal___, data); } } return retVal___; } -DBData HP_DB_ui2data(unsigned int data) { +struct DBData HP_DB_ui2data(unsigned int data) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_DB_ui2data_pre ) { - DBData (*preHookFunc) (unsigned int *data); + struct DBData (*preHookFunc) (unsigned int *data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_ui2data_pre[hIndex].func; @@ -24789,24 +24832,23 @@ DBData HP_DB_ui2data(unsigned int data) { retVal___ = HPMHooks.source.DB.ui2data(data); } if( HPMHooks.count.HP_DB_ui2data_post ) { - DBData (*postHookFunc) (DBData retVal___, unsigned int *data); + struct DBData (*postHookFunc) (struct DBData retVal___, unsigned int data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ui2data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_ui2data_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &data); + retVal___ = postHookFunc(retVal___, data); } } return retVal___; } -DBData HP_DB_ptr2data(void *data) { +struct DBData HP_DB_ptr2data(void *data) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_DB_ptr2data_pre ) { - DBData (*preHookFunc) (void *data); + struct DBData (*preHookFunc) (void **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_ptr2data_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24817,7 +24859,7 @@ DBData HP_DB_ptr2data(void *data) { retVal___ = HPMHooks.source.DB.ptr2data(data); } if( HPMHooks.count.HP_DB_ptr2data_post ) { - DBData (*postHookFunc) (DBData retVal___, void *data); + struct DBData (*postHookFunc) (struct DBData retVal___, void *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_ptr2data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_ptr2data_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); @@ -24825,15 +24867,15 @@ DBData HP_DB_ptr2data(void *data) { } return retVal___; } -int HP_DB_data2i(DBData *data) { +int HP_DB_data2i(struct DBData *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_DB_data2i_pre ) { - int (*preHookFunc) (DBData *data); + int (*preHookFunc) (struct DBData **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_data2i_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24844,7 +24886,7 @@ int HP_DB_data2i(DBData *data) { retVal___ = HPMHooks.source.DB.data2i(data); } if( HPMHooks.count.HP_DB_data2i_post ) { - int (*postHookFunc) (int retVal___, DBData *data); + int (*postHookFunc) (int retVal___, struct DBData *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2i_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_data2i_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); @@ -24852,15 +24894,15 @@ int HP_DB_data2i(DBData *data) { } return retVal___; } -unsigned int HP_DB_data2ui(DBData *data) { +unsigned int HP_DB_data2ui(struct DBData *data) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_DB_data2ui_pre ) { - unsigned int (*preHookFunc) (DBData *data); + unsigned int (*preHookFunc) (struct DBData **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_data2ui_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24871,7 +24913,7 @@ unsigned int HP_DB_data2ui(DBData *data) { retVal___ = HPMHooks.source.DB.data2ui(data); } if( HPMHooks.count.HP_DB_data2ui_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, DBData *data); + unsigned int (*postHookFunc) (unsigned int retVal___, struct DBData *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ui_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_data2ui_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); @@ -24879,15 +24921,15 @@ unsigned int HP_DB_data2ui(DBData *data) { } return retVal___; } -void* HP_DB_data2ptr(DBData *data) { +void* HP_DB_data2ptr(struct DBData *data) { int hIndex = 0; void* retVal___ = NULL; if( HPMHooks.count.HP_DB_data2ptr_pre ) { - void* (*preHookFunc) (DBData *data); + void* (*preHookFunc) (struct DBData **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_DB_data2ptr_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24898,7 +24940,7 @@ void* HP_DB_data2ptr(DBData *data) { retVal___ = HPMHooks.source.DB.data2ptr(data); } if( HPMHooks.count.HP_DB_data2ptr_post ) { - void* (*postHookFunc) (void* retVal___, DBData *data); + void* (*postHookFunc) (void* retVal___, struct DBData *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_DB_data2ptr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_DB_data2ptr_post[hIndex].func; retVal___ = postHookFunc(retVal___, data); @@ -24958,16 +25000,16 @@ void HP_DB_final(void) { } return; } -/* duel */ +/* duel_interface */ int HP_duel_create(struct map_session_data *sd, const unsigned int maxpl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_duel_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const unsigned int *maxpl); + int (*preHookFunc) (struct map_session_data **sd, const unsigned int *maxpl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, &maxpl); + retVal___ = preHookFunc(&sd, &maxpl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -24978,10 +25020,10 @@ int HP_duel_create(struct map_session_data *sd, const unsigned int maxpl) { retVal___ = HPMHooks.source.duel.create(sd, maxpl); } if( HPMHooks.count.HP_duel_create_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const unsigned int *maxpl); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const unsigned int maxpl); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &maxpl); + retVal___ = postHookFunc(retVal___, sd, maxpl); } } return retVal___; @@ -24989,11 +25031,11 @@ int HP_duel_create(struct map_session_data *sd, const unsigned int maxpl) { void HP_duel_invite(const unsigned int did, struct map_session_data *sd, struct map_session_data *target_sd) { int hIndex = 0; if( HPMHooks.count.HP_duel_invite_pre ) { - void (*preHookFunc) (const unsigned int *did, struct map_session_data *sd, struct map_session_data *target_sd); + void (*preHookFunc) (const unsigned int *did, struct map_session_data **sd, struct map_session_data **target_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_invite_pre[hIndex].func; - preHookFunc(&did, sd, target_sd); + preHookFunc(&did, &sd, &target_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25004,10 +25046,10 @@ void HP_duel_invite(const unsigned int did, struct map_session_data *sd, struct HPMHooks.source.duel.invite(did, sd, target_sd); } if( HPMHooks.count.HP_duel_invite_post ) { - void (*postHookFunc) (const unsigned int *did, struct map_session_data *sd, struct map_session_data *target_sd); + void (*postHookFunc) (const unsigned int did, struct map_session_data *sd, struct map_session_data *target_sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_invite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_invite_post[hIndex].func; - postHookFunc(&did, sd, target_sd); + postHookFunc(did, sd, target_sd); } } return; @@ -25015,11 +25057,11 @@ void HP_duel_invite(const unsigned int did, struct map_session_data *sd, struct void HP_duel_accept(const unsigned int did, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_duel_accept_pre ) { - void (*preHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*preHookFunc) (const unsigned int *did, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_accept_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_accept_pre[hIndex].func; - preHookFunc(&did, sd); + preHookFunc(&did, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25030,10 +25072,10 @@ void HP_duel_accept(const unsigned int did, struct map_session_data *sd) { HPMHooks.source.duel.accept(did, sd); } if( HPMHooks.count.HP_duel_accept_post ) { - void (*postHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*postHookFunc) (const unsigned int did, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_accept_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_accept_post[hIndex].func; - postHookFunc(&did, sd); + postHookFunc(did, sd); } } return; @@ -25041,11 +25083,11 @@ void HP_duel_accept(const unsigned int did, struct map_session_data *sd) { void HP_duel_reject(const unsigned int did, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_duel_reject_pre ) { - void (*preHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*preHookFunc) (const unsigned int *did, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_reject_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_reject_pre[hIndex].func; - preHookFunc(&did, sd); + preHookFunc(&did, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25056,10 +25098,10 @@ void HP_duel_reject(const unsigned int did, struct map_session_data *sd) { HPMHooks.source.duel.reject(did, sd); } if( HPMHooks.count.HP_duel_reject_post ) { - void (*postHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*postHookFunc) (const unsigned int did, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_reject_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_reject_post[hIndex].func; - postHookFunc(&did, sd); + postHookFunc(did, sd); } } return; @@ -25067,11 +25109,11 @@ void HP_duel_reject(const unsigned int did, struct map_session_data *sd) { void HP_duel_leave(const unsigned int did, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_duel_leave_pre ) { - void (*preHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*preHookFunc) (const unsigned int *did, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_leave_pre[hIndex].func; - preHookFunc(&did, sd); + preHookFunc(&did, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25082,10 +25124,10 @@ void HP_duel_leave(const unsigned int did, struct map_session_data *sd) { HPMHooks.source.duel.leave(did, sd); } if( HPMHooks.count.HP_duel_leave_post ) { - void (*postHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*postHookFunc) (const unsigned int did, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_leave_post[hIndex].func; - postHookFunc(&did, sd); + postHookFunc(did, sd); } } return; @@ -25093,11 +25135,11 @@ void HP_duel_leave(const unsigned int did, struct map_session_data *sd) { void HP_duel_showinfo(const unsigned int did, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_duel_showinfo_pre ) { - void (*preHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*preHookFunc) (const unsigned int *did, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_showinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_showinfo_pre[hIndex].func; - preHookFunc(&did, sd); + preHookFunc(&did, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25108,10 +25150,10 @@ void HP_duel_showinfo(const unsigned int did, struct map_session_data *sd) { HPMHooks.source.duel.showinfo(did, sd); } if( HPMHooks.count.HP_duel_showinfo_post ) { - void (*postHookFunc) (const unsigned int *did, struct map_session_data *sd); + void (*postHookFunc) (const unsigned int did, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_showinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_showinfo_post[hIndex].func; - postHookFunc(&did, sd); + postHookFunc(did, sd); } } return; @@ -25120,11 +25162,11 @@ int HP_duel_checktime(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_duel_checktime_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_checktime_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_duel_checktime_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25161,10 +25203,10 @@ void HP_duel_init(bool minimal) { HPMHooks.source.duel.init(minimal); } if( HPMHooks.count.HP_duel_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_duel_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -25195,7 +25237,7 @@ void HP_duel_final(void) { } return; } -/* elemental */ +/* elemental_interface */ int HP_elemental_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -25215,10 +25257,10 @@ int HP_elemental_init(bool minimal) { retVal___ = HPMHooks.source.elemental.init(minimal); } if( HPMHooks.count.HP_elemental_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -25268,10 +25310,10 @@ bool HP_elemental_class(int class_) { retVal___ = HPMHooks.source.elemental.class(class_); } if( HPMHooks.count.HP_elemental_class_post ) { - bool (*postHookFunc) (bool retVal___, int *class_); + bool (*postHookFunc) (bool retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_class_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_class_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -25295,10 +25337,10 @@ struct view_data* HP_elemental_get_viewdata(int class_) { retVal___ = HPMHooks.source.elemental.get_viewdata(class_); } if( HPMHooks.count.HP_elemental_get_viewdata_post ) { - struct view_data* (*postHookFunc) (struct view_data* retVal___, int *class_); + struct view_data* (*postHookFunc) (struct view_data* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_get_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_get_viewdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -25307,11 +25349,11 @@ int HP_elemental_create(struct map_session_data *sd, int class_, unsigned int li int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *class_, unsigned int *lifetime); + int (*preHookFunc) (struct map_session_data **sd, int *class_, unsigned int *lifetime); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, &class_, &lifetime); + retVal___ = preHookFunc(&sd, &class_, &lifetime); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25322,10 +25364,10 @@ int HP_elemental_create(struct map_session_data *sd, int class_, unsigned int li retVal___ = HPMHooks.source.elemental.create(sd, class_, lifetime); } if( HPMHooks.count.HP_elemental_create_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *class_, unsigned int *lifetime); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int class_, unsigned int lifetime); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &class_, &lifetime); + retVal___ = postHookFunc(retVal___, sd, class_, lifetime); } } return retVal___; @@ -25334,11 +25376,11 @@ int HP_elemental_data_received(const struct s_elemental *ele, bool flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_data_received_pre ) { - int (*preHookFunc) (const struct s_elemental *ele, bool *flag); + int (*preHookFunc) (const struct s_elemental **ele, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_data_received_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_data_received_pre[hIndex].func; - retVal___ = preHookFunc(ele, &flag); + retVal___ = preHookFunc(&ele, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25349,10 +25391,10 @@ int HP_elemental_data_received(const struct s_elemental *ele, bool flag) { retVal___ = HPMHooks.source.elemental.data_received(ele, flag); } if( HPMHooks.count.HP_elemental_data_received_post ) { - int (*postHookFunc) (int retVal___, const struct s_elemental *ele, bool *flag); + int (*postHookFunc) (int retVal___, const struct s_elemental *ele, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_data_received_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_data_received_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ele, &flag); + retVal___ = postHookFunc(retVal___, ele, flag); } } return retVal___; @@ -25361,11 +25403,11 @@ int HP_elemental_save(struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_save_pre ) { - int (*preHookFunc) (struct elemental_data *ed); + int (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_save_pre[hIndex].func; - retVal___ = preHookFunc(ed); + retVal___ = preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25388,11 +25430,11 @@ int HP_elemental_change_mode_ack(struct elemental_data *ed, int mode) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_change_mode_ack_pre ) { - int (*preHookFunc) (struct elemental_data *ed, int *mode); + int (*preHookFunc) (struct elemental_data **ed, int *mode); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_change_mode_ack_pre[hIndex].func; - retVal___ = preHookFunc(ed, &mode); + retVal___ = preHookFunc(&ed, &mode); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25403,10 +25445,10 @@ int HP_elemental_change_mode_ack(struct elemental_data *ed, int mode) { retVal___ = HPMHooks.source.elemental.change_mode_ack(ed, mode); } if( HPMHooks.count.HP_elemental_change_mode_ack_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, int *mode); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, int mode); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_change_mode_ack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, &mode); + retVal___ = postHookFunc(retVal___, ed, mode); } } return retVal___; @@ -25415,11 +25457,11 @@ int HP_elemental_change_mode(struct elemental_data *ed, uint32 mode) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_change_mode_pre ) { - int (*preHookFunc) (struct elemental_data *ed, uint32 *mode); + int (*preHookFunc) (struct elemental_data **ed, uint32 *mode); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_change_mode_pre[hIndex].func; - retVal___ = preHookFunc(ed, &mode); + retVal___ = preHookFunc(&ed, &mode); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25430,10 +25472,10 @@ int HP_elemental_change_mode(struct elemental_data *ed, uint32 mode) { retVal___ = HPMHooks.source.elemental.change_mode(ed, mode); } if( HPMHooks.count.HP_elemental_change_mode_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, uint32 *mode); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, uint32 mode); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_change_mode_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, &mode); + retVal___ = postHookFunc(retVal___, ed, mode); } } return retVal___; @@ -25441,11 +25483,11 @@ int HP_elemental_change_mode(struct elemental_data *ed, uint32 mode) { void HP_elemental_heal(struct elemental_data *ed, int hp, int sp) { int hIndex = 0; if( HPMHooks.count.HP_elemental_heal_pre ) { - void (*preHookFunc) (struct elemental_data *ed, int *hp, int *sp); + void (*preHookFunc) (struct elemental_data **ed, int *hp, int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_heal_pre[hIndex].func; - preHookFunc(ed, &hp, &sp); + preHookFunc(&ed, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25456,10 +25498,10 @@ void HP_elemental_heal(struct elemental_data *ed, int hp, int sp) { HPMHooks.source.elemental.heal(ed, hp, sp); } if( HPMHooks.count.HP_elemental_heal_post ) { - void (*postHookFunc) (struct elemental_data *ed, int *hp, int *sp); + void (*postHookFunc) (struct elemental_data *ed, int hp, int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_heal_post[hIndex].func; - postHookFunc(ed, &hp, &sp); + postHookFunc(ed, hp, sp); } } return; @@ -25468,11 +25510,11 @@ int HP_elemental_dead(struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_dead_pre ) { - int (*preHookFunc) (struct elemental_data *ed); + int (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_dead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_dead_pre[hIndex].func; - retVal___ = preHookFunc(ed); + retVal___ = preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25495,11 +25537,11 @@ int HP_elemental_delete(struct elemental_data *ed, int reply) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_delete_pre ) { - int (*preHookFunc) (struct elemental_data *ed, int *reply); + int (*preHookFunc) (struct elemental_data **ed, int *reply); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_delete_pre[hIndex].func; - retVal___ = preHookFunc(ed, &reply); + retVal___ = preHookFunc(&ed, &reply); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25510,10 +25552,10 @@ int HP_elemental_delete(struct elemental_data *ed, int reply) { retVal___ = HPMHooks.source.elemental.delete(ed, reply); } if( HPMHooks.count.HP_elemental_delete_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, int *reply); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, int reply); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, &reply); + retVal___ = postHookFunc(retVal___, ed, reply); } } return retVal___; @@ -25521,11 +25563,11 @@ int HP_elemental_delete(struct elemental_data *ed, int reply) { void HP_elemental_summon_stop(struct elemental_data *ed) { int hIndex = 0; if( HPMHooks.count.HP_elemental_summon_stop_pre ) { - void (*preHookFunc) (struct elemental_data *ed); + void (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_summon_stop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_summon_stop_pre[hIndex].func; - preHookFunc(ed); + preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25548,11 +25590,11 @@ int HP_elemental_get_lifetime(struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_get_lifetime_pre ) { - int (*preHookFunc) (struct elemental_data *ed); + int (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_get_lifetime_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_get_lifetime_pre[hIndex].func; - retVal___ = preHookFunc(ed); + retVal___ = preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25575,11 +25617,11 @@ int HP_elemental_unlocktarget(struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_unlocktarget_pre ) { - int (*preHookFunc) (struct elemental_data *ed); + int (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_unlocktarget_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_unlocktarget_pre[hIndex].func; - retVal___ = preHookFunc(ed); + retVal___ = preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25602,11 +25644,11 @@ int HP_elemental_skillnotok(uint16 skill_id, struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_skillnotok_pre ) { - int (*preHookFunc) (uint16 *skill_id, struct elemental_data *ed); + int (*preHookFunc) (uint16 *skill_id, struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_skillnotok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_skillnotok_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, ed); + retVal___ = preHookFunc(&skill_id, &ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25617,10 +25659,10 @@ int HP_elemental_skillnotok(uint16 skill_id, struct elemental_data *ed) { retVal___ = HPMHooks.source.elemental.skillnotok(skill_id, ed); } if( HPMHooks.count.HP_elemental_skillnotok_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, struct elemental_data *ed); + int (*postHookFunc) (int retVal___, uint16 skill_id, struct elemental_data *ed); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_skillnotok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_skillnotok_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, ed); + retVal___ = postHookFunc(retVal___, skill_id, ed); } } return retVal___; @@ -25629,11 +25671,11 @@ int HP_elemental_set_target(struct map_session_data *sd, struct block_list *bl) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_set_target_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_set_target_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_set_target_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl); + retVal___ = preHookFunc(&sd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25656,11 +25698,11 @@ int HP_elemental_clean_single_effect(struct elemental_data *ed, uint16 skill_id) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_clean_single_effect_pre ) { - int (*preHookFunc) (struct elemental_data *ed, uint16 *skill_id); + int (*preHookFunc) (struct elemental_data **ed, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_clean_single_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_clean_single_effect_pre[hIndex].func; - retVal___ = preHookFunc(ed, &skill_id); + retVal___ = preHookFunc(&ed, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25671,10 +25713,10 @@ int HP_elemental_clean_single_effect(struct elemental_data *ed, uint16 skill_id) retVal___ = HPMHooks.source.elemental.clean_single_effect(ed, skill_id); } if( HPMHooks.count.HP_elemental_clean_single_effect_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_clean_single_effect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_clean_single_effect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, &skill_id); + retVal___ = postHookFunc(retVal___, ed, skill_id); } } return retVal___; @@ -25683,11 +25725,11 @@ int HP_elemental_clean_effect(struct elemental_data *ed) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_clean_effect_pre ) { - int (*preHookFunc) (struct elemental_data *ed); + int (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_clean_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_clean_effect_pre[hIndex].func; - retVal___ = preHookFunc(ed); + retVal___ = preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25710,11 +25752,11 @@ int HP_elemental_action(struct elemental_data *ed, struct block_list *bl, int64 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_action_pre ) { - int (*preHookFunc) (struct elemental_data *ed, struct block_list *bl, int64 *tick); + int (*preHookFunc) (struct elemental_data **ed, struct block_list **bl, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_action_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_action_pre[hIndex].func; - retVal___ = preHookFunc(ed, bl, &tick); + retVal___ = preHookFunc(&ed, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25725,18 +25767,17 @@ int HP_elemental_action(struct elemental_data *ed, struct block_list *bl, int64 retVal___ = HPMHooks.source.elemental.action(ed, bl, tick); } if( HPMHooks.count.HP_elemental_action_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, struct block_list *bl, int64 *tick); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, struct block_list *bl, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_action_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_action_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, bl, &tick); + retVal___ = postHookFunc(retVal___, ed, bl, tick); } } return retVal___; } struct skill_condition HP_elemental_skill_get_requirements(uint16 skill_id, uint16 skill_lv) { int hIndex = 0; - struct skill_condition retVal___; - memset(&retVal___, '\0', sizeof(struct skill_condition)); + struct skill_condition retVal___ = { 0 }; if( HPMHooks.count.HP_elemental_skill_get_requirements_pre ) { struct skill_condition (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; @@ -25753,10 +25794,10 @@ struct skill_condition HP_elemental_skill_get_requirements(uint16 skill_id, uint retVal___ = HPMHooks.source.elemental.skill_get_requirements(skill_id, skill_lv); } if( HPMHooks.count.HP_elemental_skill_get_requirements_post ) { - struct skill_condition (*postHookFunc) (struct skill_condition retVal___, uint16 *skill_id, uint16 *skill_lv); + struct skill_condition (*postHookFunc) (struct skill_condition retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_skill_get_requirements_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_skill_get_requirements_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -25859,10 +25900,10 @@ int HP_elemental_search_index(int class_) { retVal___ = HPMHooks.source.elemental.search_index(class_); } if( HPMHooks.count.HP_elemental_search_index_post ) { - int (*postHookFunc) (int retVal___, int *class_); + int (*postHookFunc) (int retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_search_index_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_search_index_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -25870,11 +25911,11 @@ int HP_elemental_search_index(int class_) { void HP_elemental_summon_init(struct elemental_data *ed) { int hIndex = 0; if( HPMHooks.count.HP_elemental_summon_init_pre ) { - void (*preHookFunc) (struct elemental_data *ed); + void (*preHookFunc) (struct elemental_data **ed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_summon_init_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_summon_init_pre[hIndex].func; - preHookFunc(ed); + preHookFunc(&ed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25912,10 +25953,10 @@ int HP_elemental_summon_end_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.elemental.summon_end_timer(tid, tick, id, data); } if( HPMHooks.count.HP_elemental_summon_end_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_summon_end_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_summon_end_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -25924,12 +25965,12 @@ int HP_elemental_ai_sub_timer_activesearch(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_ai_sub_timer_activesearch_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_timer_activesearch_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_elemental_ai_sub_timer_activesearch_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -25957,11 +25998,11 @@ int HP_elemental_ai_sub_timer(struct elemental_data *ed, struct map_session_data int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_ai_sub_timer_pre ) { - int (*preHookFunc) (struct elemental_data *ed, struct map_session_data *sd, int64 *tick); + int (*preHookFunc) (struct elemental_data **ed, struct map_session_data **sd, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_timer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_elemental_ai_sub_timer_pre[hIndex].func; - retVal___ = preHookFunc(ed, sd, &tick); + retVal___ = preHookFunc(&ed, &sd, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -25972,10 +26013,10 @@ int HP_elemental_ai_sub_timer(struct elemental_data *ed, struct map_session_data retVal___ = HPMHooks.source.elemental.ai_sub_timer(ed, sd, tick); } if( HPMHooks.count.HP_elemental_ai_sub_timer_post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, struct map_session_data *sd, int64 *tick); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, struct map_session_data *sd, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_ai_sub_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, sd, &tick); + retVal___ = postHookFunc(retVal___, ed, sd, tick); } } return retVal___; @@ -25984,12 +26025,12 @@ int HP_elemental_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_elemental_ai_sub_foreachclient_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_foreachclient_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_elemental_ai_sub_foreachclient_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -26032,10 +26073,10 @@ int HP_elemental_ai_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.elemental.ai_timer(tid, tick, id, data); } if( HPMHooks.count.HP_elemental_ai_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_elemental_ai_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -26067,7 +26108,7 @@ int HP_elemental_read_db(void) { } return retVal___; } -/* guild */ +/* guild_interface */ void HP_guild_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_guild_init_pre ) { @@ -26086,10 +26127,10 @@ void HP_guild_init(bool minimal) { HPMHooks.source.guild.init(minimal); } if( HPMHooks.count.HP_guild_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -26139,10 +26180,10 @@ int HP_guild_skill_get_max(int id) { retVal___ = HPMHooks.source.guild.skill_get_max(id); } if( HPMHooks.count.HP_guild_skill_get_max_post ) { - int (*postHookFunc) (int retVal___, int *id); + int (*postHookFunc) (int retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skill_get_max_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_skill_get_max_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -26151,11 +26192,11 @@ int HP_guild_checkskill(struct guild *g, int id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_checkskill_pre ) { - int (*preHookFunc) (struct guild *g, int *id); + int (*preHookFunc) (struct guild **g, int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_checkskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_checkskill_pre[hIndex].func; - retVal___ = preHookFunc(g, &id); + retVal___ = preHookFunc(&g, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26166,10 +26207,10 @@ int HP_guild_checkskill(struct guild *g, int id) { retVal___ = HPMHooks.source.guild.checkskill(g, id); } if( HPMHooks.count.HP_guild_checkskill_post ) { - int (*postHookFunc) (int retVal___, struct guild *g, int *id); + int (*postHookFunc) (int retVal___, struct guild *g, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_checkskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_checkskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, g, &id); + retVal___ = postHookFunc(retVal___, g, id); } } return retVal___; @@ -26178,11 +26219,11 @@ int HP_guild_check_skill_require(struct guild *g, int id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_check_skill_require_pre ) { - int (*preHookFunc) (struct guild *g, int *id); + int (*preHookFunc) (struct guild **g, int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_skill_require_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_check_skill_require_pre[hIndex].func; - retVal___ = preHookFunc(g, &id); + retVal___ = preHookFunc(&g, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26193,10 +26234,10 @@ int HP_guild_check_skill_require(struct guild *g, int id) { retVal___ = HPMHooks.source.guild.check_skill_require(g, id); } if( HPMHooks.count.HP_guild_check_skill_require_post ) { - int (*postHookFunc) (int retVal___, struct guild *g, int *id); + int (*postHookFunc) (int retVal___, struct guild *g, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_skill_require_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_check_skill_require_post[hIndex].func; - retVal___ = postHookFunc(retVal___, g, &id); + retVal___ = postHookFunc(retVal___, g, id); } } return retVal___; @@ -26205,11 +26246,11 @@ int HP_guild_checkcastles(struct guild *g) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_checkcastles_pre ) { - int (*preHookFunc) (struct guild *g); + int (*preHookFunc) (struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_checkcastles_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_checkcastles_pre[hIndex].func; - retVal___ = preHookFunc(g); + retVal___ = preHookFunc(&g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26247,10 +26288,10 @@ bool HP_guild_isallied(int guild_id, int guild_id2) { retVal___ = HPMHooks.source.guild.isallied(guild_id, guild_id2); } if( HPMHooks.count.HP_guild_isallied_post ) { - bool (*postHookFunc) (bool retVal___, int *guild_id, int *guild_id2); + bool (*postHookFunc) (bool retVal___, int guild_id, int guild_id2); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_isallied_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_isallied_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &guild_id2); + retVal___ = postHookFunc(retVal___, guild_id, guild_id2); } } return retVal___; @@ -26274,10 +26315,10 @@ struct guild* HP_guild_search(int guild_id) { retVal___ = HPMHooks.source.guild.search(guild_id); } if( HPMHooks.count.HP_guild_search_post ) { - struct guild* (*postHookFunc) (struct guild* retVal___, int *guild_id); + struct guild* (*postHookFunc) (struct guild* retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -26286,11 +26327,11 @@ struct guild* HP_guild_searchname(char *str) { int hIndex = 0; struct guild* retVal___ = NULL; if( HPMHooks.count.HP_guild_searchname_pre ) { - struct guild* (*preHookFunc) (char *str); + struct guild* (*preHookFunc) (char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_searchname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_searchname_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26328,10 +26369,10 @@ struct guild_castle* HP_guild_castle_search(int gcid) { retVal___ = HPMHooks.source.guild.castle_search(gcid); } if( HPMHooks.count.HP_guild_castle_search_post ) { - struct guild_castle* (*postHookFunc) (struct guild_castle* retVal___, int *gcid); + struct guild_castle* (*postHookFunc) (struct guild_castle* retVal___, int gcid); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_castle_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &gcid); + retVal___ = postHookFunc(retVal___, gcid); } } return retVal___; @@ -26340,11 +26381,11 @@ struct guild_castle* HP_guild_mapname2gc(const char *mapname) { int hIndex = 0; struct guild_castle* retVal___ = NULL; if( HPMHooks.count.HP_guild_mapname2gc_pre ) { - struct guild_castle* (*preHookFunc) (const char *mapname); + struct guild_castle* (*preHookFunc) (const char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_mapname2gc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_mapname2gc_pre[hIndex].func; - retVal___ = preHookFunc(mapname); + retVal___ = preHookFunc(&mapname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26382,10 +26423,10 @@ struct guild_castle* HP_guild_mapindex2gc(short map_index) { retVal___ = HPMHooks.source.guild.mapindex2gc(map_index); } if( HPMHooks.count.HP_guild_mapindex2gc_post ) { - struct guild_castle* (*postHookFunc) (struct guild_castle* retVal___, short *map_index); + struct guild_castle* (*postHookFunc) (struct guild_castle* retVal___, short map_index); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_mapindex2gc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_mapindex2gc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &map_index); + retVal___ = postHookFunc(retVal___, map_index); } } return retVal___; @@ -26394,11 +26435,11 @@ struct map_session_data* HP_guild_getavailablesd(struct guild *g) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_guild_getavailablesd_pre ) { - struct map_session_data* (*preHookFunc) (struct guild *g); + struct map_session_data* (*preHookFunc) (struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getavailablesd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_getavailablesd_pre[hIndex].func; - retVal___ = preHookFunc(g); + retVal___ = preHookFunc(&g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26421,11 +26462,11 @@ int HP_guild_getindex(const struct guild *g, int account_id, int char_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_getindex_pre ) { - int (*preHookFunc) (const struct guild *g, int *account_id, int *char_id); + int (*preHookFunc) (const struct guild **g, int *account_id, int *char_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getindex_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_getindex_pre[hIndex].func; - retVal___ = preHookFunc(g, &account_id, &char_id); + retVal___ = preHookFunc(&g, &account_id, &char_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26436,10 +26477,10 @@ int HP_guild_getindex(const struct guild *g, int account_id, int char_id) { retVal___ = HPMHooks.source.guild.getindex(g, account_id, char_id); } if( HPMHooks.count.HP_guild_getindex_post ) { - int (*postHookFunc) (int retVal___, const struct guild *g, int *account_id, int *char_id); + int (*postHookFunc) (int retVal___, const struct guild *g, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getindex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_getindex_post[hIndex].func; - retVal___ = postHookFunc(retVal___, g, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, g, account_id, char_id); } } return retVal___; @@ -26448,11 +26489,11 @@ int HP_guild_getposition(struct guild *g, struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_getposition_pre ) { - int (*preHookFunc) (struct guild *g, struct map_session_data *sd); + int (*preHookFunc) (struct guild **g, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getposition_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_getposition_pre[hIndex].func; - retVal___ = preHookFunc(g, sd); + retVal___ = preHookFunc(&g, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26475,11 +26516,11 @@ unsigned int HP_guild_payexp(struct map_session_data *sd, unsigned int exp) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_guild_payexp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd, unsigned int *exp); + unsigned int (*preHookFunc) (struct map_session_data **sd, unsigned int *exp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_payexp_pre[hIndex].func; - retVal___ = preHookFunc(sd, &exp); + retVal___ = preHookFunc(&sd, &exp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26490,10 +26531,10 @@ unsigned int HP_guild_payexp(struct map_session_data *sd, unsigned int exp) { retVal___ = HPMHooks.source.guild.payexp(sd, exp); } if( HPMHooks.count.HP_guild_payexp_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct map_session_data *sd, unsigned int *exp); + unsigned int (*postHookFunc) (unsigned int retVal___, struct map_session_data *sd, unsigned int exp); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_payexp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &exp); + retVal___ = postHookFunc(retVal___, sd, exp); } } return retVal___; @@ -26502,11 +26543,11 @@ int HP_guild_getexp(struct map_session_data *sd, int exp) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_getexp_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *exp); + int (*preHookFunc) (struct map_session_data **sd, int *exp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_getexp_pre[hIndex].func; - retVal___ = preHookFunc(sd, &exp); + retVal___ = preHookFunc(&sd, &exp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26517,10 +26558,10 @@ int HP_guild_getexp(struct map_session_data *sd, int exp) { retVal___ = HPMHooks.source.guild.getexp(sd, exp); } if( HPMHooks.count.HP_guild_getexp_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *exp); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int exp); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_getexp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &exp); + retVal___ = postHookFunc(retVal___, sd, exp); } } return retVal___; @@ -26529,11 +26570,11 @@ int HP_guild_create(struct map_session_data *sd, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name); + int (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, name); + retVal___ = preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26571,10 +26612,10 @@ int HP_guild_created(int account_id, int guild_id) { retVal___ = HPMHooks.source.guild.created(account_id, guild_id); } if( HPMHooks.count.HP_guild_created_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *guild_id); + int (*postHookFunc) (int retVal___, int account_id, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_created_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_created_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &guild_id); + retVal___ = postHookFunc(retVal___, account_id, guild_id); } } return retVal___; @@ -26598,10 +26639,10 @@ int HP_guild_request_info(int guild_id) { retVal___ = HPMHooks.source.guild.request_info(guild_id); } if( HPMHooks.count.HP_guild_request_info_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_request_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_request_info_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -26625,10 +26666,10 @@ int HP_guild_recv_noinfo(int guild_id) { retVal___ = HPMHooks.source.guild.recv_noinfo(guild_id); } if( HPMHooks.count.HP_guild_recv_noinfo_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_noinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_recv_noinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -26637,11 +26678,11 @@ int HP_guild_recv_info(const struct guild *sg) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_recv_info_pre ) { - int (*preHookFunc) (const struct guild *sg); + int (*preHookFunc) (const struct guild **sg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_recv_info_pre[hIndex].func; - retVal___ = preHookFunc(sg); + retVal___ = preHookFunc(&sg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26664,11 +26705,11 @@ int HP_guild_npc_request_info(int guild_id, const char *ev) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_npc_request_info_pre ) { - int (*preHookFunc) (int *guild_id, const char *ev); + int (*preHookFunc) (int *guild_id, const char **ev); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_npc_request_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_npc_request_info_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, ev); + retVal___ = preHookFunc(&guild_id, &ev); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26679,10 +26720,10 @@ int HP_guild_npc_request_info(int guild_id, const char *ev) { retVal___ = HPMHooks.source.guild.npc_request_info(guild_id, ev); } if( HPMHooks.count.HP_guild_npc_request_info_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, const char *ev); + int (*postHookFunc) (int retVal___, int guild_id, const char *ev); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_npc_request_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_npc_request_info_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, ev); + retVal___ = postHookFunc(retVal___, guild_id, ev); } } return retVal___; @@ -26691,11 +26732,11 @@ int HP_guild_invite(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_invite_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_invite_pre[hIndex].func; - retVal___ = preHookFunc(sd, tsd); + retVal___ = preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26718,11 +26759,11 @@ int HP_guild_reply_invite(struct map_session_data *sd, int guild_id, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_reply_invite_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *guild_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_reply_invite_pre[hIndex].func; - retVal___ = preHookFunc(sd, &guild_id, &flag); + retVal___ = preHookFunc(&sd, &guild_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26733,10 +26774,10 @@ int HP_guild_reply_invite(struct map_session_data *sd, int guild_id, int flag) { retVal___ = HPMHooks.source.guild.reply_invite(sd, guild_id, flag); } if( HPMHooks.count.HP_guild_reply_invite_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *guild_id, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int guild_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_invite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_reply_invite_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &guild_id, &flag); + retVal___ = postHookFunc(retVal___, sd, guild_id, flag); } } return retVal___; @@ -26744,11 +26785,11 @@ int HP_guild_reply_invite(struct map_session_data *sd, int guild_id, int flag) { void HP_guild_member_joined(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_guild_member_joined_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_joined_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_member_joined_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26786,10 +26827,10 @@ int HP_guild_member_added(int guild_id, int account_id, int char_id, int flag) { retVal___ = HPMHooks.source.guild.member_added(guild_id, account_id, char_id, flag); } if( HPMHooks.count.HP_guild_member_added_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *flag); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_added_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_member_added_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &flag); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, flag); } } return retVal___; @@ -26798,11 +26839,11 @@ int HP_guild_leave(struct map_session_data *sd, int guild_id, int account_id, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_leave_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes); + int (*preHookFunc) (struct map_session_data **sd, int *guild_id, int *account_id, int *char_id, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_leave_pre[hIndex].func; - retVal___ = preHookFunc(sd, &guild_id, &account_id, &char_id, mes); + retVal___ = preHookFunc(&sd, &guild_id, &account_id, &char_id, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26813,10 +26854,10 @@ int HP_guild_leave(struct map_session_data *sd, int guild_id, int account_id, in retVal___ = HPMHooks.source.guild.leave(sd, guild_id, account_id, char_id, mes); } if( HPMHooks.count.HP_guild_leave_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_leave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &guild_id, &account_id, &char_id, mes); + retVal___ = postHookFunc(retVal___, sd, guild_id, account_id, char_id, mes); } } return retVal___; @@ -26825,11 +26866,11 @@ int HP_guild_member_withdraw(int guild_id, int account_id, int char_id, int flag int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_member_withdraw_pre ) { - int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char *name, const char *mes); + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char **name, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_withdraw_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_member_withdraw_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &flag, name, mes); + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &flag, &name, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26840,10 +26881,10 @@ int HP_guild_member_withdraw(int guild_id, int account_id, int char_id, int flag retVal___ = HPMHooks.source.guild.member_withdraw(guild_id, account_id, char_id, flag, name, mes); } if( HPMHooks.count.HP_guild_member_withdraw_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *flag, const char *name, const char *mes); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_withdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_member_withdraw_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &flag, name, mes); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, flag, name, mes); } } return retVal___; @@ -26852,11 +26893,11 @@ int HP_guild_expulsion(struct map_session_data *sd, int guild_id, int account_id int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_expulsion_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes); + int (*preHookFunc) (struct map_session_data **sd, int *guild_id, int *account_id, int *char_id, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expulsion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_expulsion_pre[hIndex].func; - retVal___ = preHookFunc(sd, &guild_id, &account_id, &char_id, mes); + retVal___ = preHookFunc(&sd, &guild_id, &account_id, &char_id, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26867,10 +26908,10 @@ int HP_guild_expulsion(struct map_session_data *sd, int guild_id, int account_id retVal___ = HPMHooks.source.guild.expulsion(sd, guild_id, account_id, char_id, mes); } if( HPMHooks.count.HP_guild_expulsion_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expulsion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_expulsion_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &guild_id, &account_id, &char_id, mes); + retVal___ = postHookFunc(retVal___, sd, guild_id, account_id, char_id, mes); } } return retVal___; @@ -26879,11 +26920,11 @@ int HP_guild_skillup(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_skillup_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_skillup_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26894,10 +26935,10 @@ int HP_guild_skillup(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.guild.skillup(sd, skill_id); } if( HPMHooks.count.HP_guild_skillup_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_skillup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -26905,11 +26946,11 @@ int HP_guild_skillup(struct map_session_data *sd, uint16 skill_id) { void HP_guild_block_skill(struct map_session_data *sd, int time) { int hIndex = 0; if( HPMHooks.count.HP_guild_block_skill_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *time); + void (*preHookFunc) (struct map_session_data **sd, int *time); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_block_skill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_block_skill_pre[hIndex].func; - preHookFunc(sd, &time); + preHookFunc(&sd, &time); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26920,10 +26961,10 @@ void HP_guild_block_skill(struct map_session_data *sd, int time) { HPMHooks.source.guild.block_skill(sd, time); } if( HPMHooks.count.HP_guild_block_skill_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *time); + void (*postHookFunc) (struct map_session_data *sd, int time); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_block_skill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_block_skill_post[hIndex].func; - postHookFunc(sd, &time); + postHookFunc(sd, time); } } return; @@ -26932,11 +26973,11 @@ int HP_guild_reqalliance(struct map_session_data *sd, struct map_session_data *t int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_reqalliance_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reqalliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_reqalliance_pre[hIndex].func; - retVal___ = preHookFunc(sd, tsd); + retVal___ = preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26959,11 +27000,11 @@ int HP_guild_reply_reqalliance(struct map_session_data *sd, int account_id, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_reply_reqalliance_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *account_id, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *account_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_reqalliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_reply_reqalliance_pre[hIndex].func; - retVal___ = preHookFunc(sd, &account_id, &flag); + retVal___ = preHookFunc(&sd, &account_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -26974,10 +27015,10 @@ int HP_guild_reply_reqalliance(struct map_session_data *sd, int account_id, int retVal___ = HPMHooks.source.guild.reply_reqalliance(sd, account_id, flag); } if( HPMHooks.count.HP_guild_reply_reqalliance_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *account_id, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int account_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_reqalliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_reply_reqalliance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &account_id, &flag); + retVal___ = postHookFunc(retVal___, sd, account_id, flag); } } return retVal___; @@ -26986,11 +27027,11 @@ int HP_guild_allianceack(int guild_id1, int guild_id2, int account_id1, int acco int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_allianceack_pre ) { - int (*preHookFunc) (int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag, const char *name1, const char *name2); + int (*preHookFunc) (int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag, const char **name1, const char **name2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_allianceack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_allianceack_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id1, &guild_id2, &account_id1, &account_id2, &flag, name1, name2); + retVal___ = preHookFunc(&guild_id1, &guild_id2, &account_id1, &account_id2, &flag, &name1, &name2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27001,10 +27042,10 @@ int HP_guild_allianceack(int guild_id1, int guild_id2, int account_id1, int acco retVal___ = HPMHooks.source.guild.allianceack(guild_id1, guild_id2, account_id1, account_id2, flag, name1, name2); } if( HPMHooks.count.HP_guild_allianceack_post ) { - int (*postHookFunc) (int retVal___, int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag, const char *name1, const char *name2); + int (*postHookFunc) (int retVal___, int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_allianceack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_allianceack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id1, &guild_id2, &account_id1, &account_id2, &flag, name1, name2); + retVal___ = postHookFunc(retVal___, guild_id1, guild_id2, account_id1, account_id2, flag, name1, name2); } } return retVal___; @@ -27013,11 +27054,11 @@ int HP_guild_delalliance(struct map_session_data *sd, int guild_id, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_delalliance_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *guild_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_delalliance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_delalliance_pre[hIndex].func; - retVal___ = preHookFunc(sd, &guild_id, &flag); + retVal___ = preHookFunc(&sd, &guild_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27028,10 +27069,10 @@ int HP_guild_delalliance(struct map_session_data *sd, int guild_id, int flag) { retVal___ = HPMHooks.source.guild.delalliance(sd, guild_id, flag); } if( HPMHooks.count.HP_guild_delalliance_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *guild_id, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int guild_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_delalliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_delalliance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &guild_id, &flag); + retVal___ = postHookFunc(retVal___, sd, guild_id, flag); } } return retVal___; @@ -27040,11 +27081,11 @@ int HP_guild_opposition(struct map_session_data *sd, struct map_session_data *ts int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_opposition_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_opposition_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_opposition_pre[hIndex].func; - retVal___ = preHookFunc(sd, tsd); + retVal___ = preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27082,10 +27123,10 @@ int HP_guild_check_alliance(int guild_id1, int guild_id2, int flag) { retVal___ = HPMHooks.source.guild.check_alliance(guild_id1, guild_id2, flag); } if( HPMHooks.count.HP_guild_check_alliance_post ) { - int (*postHookFunc) (int retVal___, int *guild_id1, int *guild_id2, int *flag); + int (*postHookFunc) (int retVal___, int guild_id1, int guild_id2, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_alliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_check_alliance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id1, &guild_id2, &flag); + retVal___ = postHookFunc(retVal___, guild_id1, guild_id2, flag); } } return retVal___; @@ -27094,11 +27135,11 @@ int HP_guild_send_memberinfoshort(struct map_session_data *sd, int online) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_send_memberinfoshort_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *online); + int (*preHookFunc) (struct map_session_data **sd, int *online); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_memberinfoshort_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_send_memberinfoshort_pre[hIndex].func; - retVal___ = preHookFunc(sd, &online); + retVal___ = preHookFunc(&sd, &online); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27109,10 +27150,10 @@ int HP_guild_send_memberinfoshort(struct map_session_data *sd, int online) { retVal___ = HPMHooks.source.guild.send_memberinfoshort(sd, online); } if( HPMHooks.count.HP_guild_send_memberinfoshort_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *online); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int online); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_memberinfoshort_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_send_memberinfoshort_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &online); + retVal___ = postHookFunc(retVal___, sd, online); } } return retVal___; @@ -27136,10 +27177,10 @@ int HP_guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int retVal___ = HPMHooks.source.guild.recv_memberinfoshort(guild_id, account_id, char_id, online, lv, class_); } if( HPMHooks.count.HP_guild_recv_memberinfoshort_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int online, int lv, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_memberinfoshort_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_recv_memberinfoshort_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &online, &lv, &class_); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, online, lv, class_); } } return retVal___; @@ -27163,10 +27204,10 @@ int HP_guild_change_memberposition(int guild_id, int account_id, int char_id, sh retVal___ = HPMHooks.source.guild.change_memberposition(guild_id, account_id, char_id, idx); } if( HPMHooks.count.HP_guild_change_memberposition_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, short *idx); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, short idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_memberposition_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_change_memberposition_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &idx); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, idx); } } return retVal___; @@ -27175,11 +27216,11 @@ int HP_guild_memberposition_changed(struct guild *g, int idx, int pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_memberposition_changed_pre ) { - int (*preHookFunc) (struct guild *g, int *idx, int *pos); + int (*preHookFunc) (struct guild **g, int *idx, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_memberposition_changed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_memberposition_changed_pre[hIndex].func; - retVal___ = preHookFunc(g, &idx, &pos); + retVal___ = preHookFunc(&g, &idx, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27190,10 +27231,10 @@ int HP_guild_memberposition_changed(struct guild *g, int idx, int pos) { retVal___ = HPMHooks.source.guild.memberposition_changed(g, idx, pos); } if( HPMHooks.count.HP_guild_memberposition_changed_post ) { - int (*postHookFunc) (int retVal___, struct guild *g, int *idx, int *pos); + int (*postHookFunc) (int retVal___, struct guild *g, int idx, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_memberposition_changed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_memberposition_changed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, g, &idx, &pos); + retVal___ = postHookFunc(retVal___, g, idx, pos); } } return retVal___; @@ -27202,11 +27243,11 @@ int HP_guild_change_position(int guild_id, int idx, int mode, int exp_mode, cons int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_change_position_pre ) { - int (*preHookFunc) (int *guild_id, int *idx, int *mode, int *exp_mode, const char *name); + int (*preHookFunc) (int *guild_id, int *idx, int *mode, int *exp_mode, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_position_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_change_position_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &idx, &mode, &exp_mode, name); + retVal___ = preHookFunc(&guild_id, &idx, &mode, &exp_mode, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27217,10 +27258,10 @@ int HP_guild_change_position(int guild_id, int idx, int mode, int exp_mode, cons retVal___ = HPMHooks.source.guild.change_position(guild_id, idx, mode, exp_mode, name); } if( HPMHooks.count.HP_guild_change_position_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *idx, int *mode, int *exp_mode, const char *name); + int (*postHookFunc) (int retVal___, int guild_id, int idx, int mode, int exp_mode, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_position_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_change_position_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &idx, &mode, &exp_mode, name); + retVal___ = postHookFunc(retVal___, guild_id, idx, mode, exp_mode, name); } } return retVal___; @@ -27229,11 +27270,11 @@ int HP_guild_position_changed(int guild_id, int idx, const struct guild_position int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_position_changed_pre ) { - int (*preHookFunc) (int *guild_id, int *idx, const struct guild_position *p); + int (*preHookFunc) (int *guild_id, int *idx, const struct guild_position **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_position_changed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_position_changed_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &idx, p); + retVal___ = preHookFunc(&guild_id, &idx, &p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27244,10 +27285,10 @@ int HP_guild_position_changed(int guild_id, int idx, const struct guild_position retVal___ = HPMHooks.source.guild.position_changed(guild_id, idx, p); } if( HPMHooks.count.HP_guild_position_changed_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *idx, const struct guild_position *p); + int (*postHookFunc) (int retVal___, int guild_id, int idx, const struct guild_position *p); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_position_changed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_position_changed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &idx, p); + retVal___ = postHookFunc(retVal___, guild_id, idx, p); } } return retVal___; @@ -27256,11 +27297,11 @@ int HP_guild_change_notice(struct map_session_data *sd, int guild_id, const char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_change_notice_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *guild_id, const char *mes1, const char *mes2); + int (*preHookFunc) (struct map_session_data **sd, int *guild_id, const char **mes1, const char **mes2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_notice_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_change_notice_pre[hIndex].func; - retVal___ = preHookFunc(sd, &guild_id, mes1, mes2); + retVal___ = preHookFunc(&sd, &guild_id, &mes1, &mes2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27271,10 +27312,10 @@ int HP_guild_change_notice(struct map_session_data *sd, int guild_id, const char retVal___ = HPMHooks.source.guild.change_notice(sd, guild_id, mes1, mes2); } if( HPMHooks.count.HP_guild_change_notice_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *guild_id, const char *mes1, const char *mes2); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int guild_id, const char *mes1, const char *mes2); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_notice_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_change_notice_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &guild_id, mes1, mes2); + retVal___ = postHookFunc(retVal___, sd, guild_id, mes1, mes2); } } return retVal___; @@ -27283,11 +27324,11 @@ int HP_guild_notice_changed(int guild_id, const char *mes1, const char *mes2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_notice_changed_pre ) { - int (*preHookFunc) (int *guild_id, const char *mes1, const char *mes2); + int (*preHookFunc) (int *guild_id, const char **mes1, const char **mes2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_notice_changed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_notice_changed_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, mes1, mes2); + retVal___ = preHookFunc(&guild_id, &mes1, &mes2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27298,10 +27339,10 @@ int HP_guild_notice_changed(int guild_id, const char *mes1, const char *mes2) { retVal___ = HPMHooks.source.guild.notice_changed(guild_id, mes1, mes2); } if( HPMHooks.count.HP_guild_notice_changed_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, const char *mes1, const char *mes2); + int (*postHookFunc) (int retVal___, int guild_id, const char *mes1, const char *mes2); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_notice_changed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_notice_changed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, mes1, mes2); + retVal___ = postHookFunc(retVal___, guild_id, mes1, mes2); } } return retVal___; @@ -27310,11 +27351,11 @@ int HP_guild_change_emblem(struct map_session_data *sd, int len, const char *dat int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_change_emblem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *len, const char *data); + int (*preHookFunc) (struct map_session_data **sd, int *len, const char **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_emblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_change_emblem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &len, data); + retVal___ = preHookFunc(&sd, &len, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27325,10 +27366,10 @@ int HP_guild_change_emblem(struct map_session_data *sd, int len, const char *dat retVal___ = HPMHooks.source.guild.change_emblem(sd, len, data); } if( HPMHooks.count.HP_guild_change_emblem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *len, const char *data); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int len, const char *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_emblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_change_emblem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &len, data); + retVal___ = postHookFunc(retVal___, sd, len, data); } } return retVal___; @@ -27337,11 +27378,11 @@ int HP_guild_emblem_changed(int len, int guild_id, int emblem_id, const char *da int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_emblem_changed_pre ) { - int (*preHookFunc) (int *len, int *guild_id, int *emblem_id, const char *data); + int (*preHookFunc) (int *len, int *guild_id, int *emblem_id, const char **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_emblem_changed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_emblem_changed_pre[hIndex].func; - retVal___ = preHookFunc(&len, &guild_id, &emblem_id, data); + retVal___ = preHookFunc(&len, &guild_id, &emblem_id, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27352,23 +27393,23 @@ int HP_guild_emblem_changed(int len, int guild_id, int emblem_id, const char *da retVal___ = HPMHooks.source.guild.emblem_changed(len, guild_id, emblem_id, data); } if( HPMHooks.count.HP_guild_emblem_changed_post ) { - int (*postHookFunc) (int retVal___, int *len, int *guild_id, int *emblem_id, const char *data); + int (*postHookFunc) (int retVal___, int len, int guild_id, int emblem_id, const char *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_emblem_changed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_emblem_changed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &len, &guild_id, &emblem_id, data); + retVal___ = postHookFunc(retVal___, len, guild_id, emblem_id, data); } } return retVal___; } -int HP_guild_send_message(struct map_session_data *sd, const char *mes, int len) { +int HP_guild_send_message(struct map_session_data *sd, const char *mes) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_send_message_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len); + int (*preHookFunc) (struct map_session_data **sd, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_send_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, mes, &len); + retVal___ = preHookFunc(&sd, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27376,13 +27417,13 @@ int HP_guild_send_message(struct map_session_data *sd, const char *mes, int len) } } { - retVal___ = HPMHooks.source.guild.send_message(sd, mes, len); + retVal___ = HPMHooks.source.guild.send_message(sd, mes); } if( HPMHooks.count.HP_guild_send_message_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *mes, int *len); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_send_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, mes, &len); + retVal___ = postHookFunc(retVal___, sd, mes); } } return retVal___; @@ -27391,11 +27432,11 @@ int HP_guild_recv_message(int guild_id, int account_id, const char *mes, int len int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_recv_message_pre ) { - int (*preHookFunc) (int *guild_id, int *account_id, const char *mes, int *len); + int (*preHookFunc) (int *guild_id, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_recv_message_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &account_id, mes, &len); + retVal___ = preHookFunc(&guild_id, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27406,10 +27447,10 @@ int HP_guild_recv_message(int guild_id, int account_id, const char *mes, int len retVal___ = HPMHooks.source.guild.recv_message(guild_id, account_id, mes, len); } if( HPMHooks.count.HP_guild_recv_message_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, const char *mes, int *len); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_recv_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, mes, &len); + retVal___ = postHookFunc(retVal___, guild_id, account_id, mes, len); } } return retVal___; @@ -27418,11 +27459,11 @@ int HP_guild_send_dot_remove(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_send_dot_remove_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_dot_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_send_dot_remove_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27460,10 +27501,10 @@ int HP_guild_skillupack(int guild_id, uint16 skill_id, int account_id) { retVal___ = HPMHooks.source.guild.skillupack(guild_id, skill_id, account_id); } if( HPMHooks.count.HP_guild_skillupack_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, uint16 *skill_id, int *account_id); + int (*postHookFunc) (int retVal___, int guild_id, uint16 skill_id, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skillupack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_skillupack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &skill_id, &account_id); + retVal___ = postHookFunc(retVal___, guild_id, skill_id, account_id); } } return retVal___; @@ -27472,11 +27513,11 @@ int HP_guild_dobreak(struct map_session_data *sd, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_dobreak_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name); + int (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_dobreak_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_dobreak_pre[hIndex].func; - retVal___ = preHookFunc(sd, name); + retVal___ = preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27514,10 +27555,10 @@ int HP_guild_broken(int guild_id, int flag) { retVal___ = HPMHooks.source.guild.broken(guild_id, flag); } if( HPMHooks.count.HP_guild_broken_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *flag); + int (*postHookFunc) (int retVal___, int guild_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_broken_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_broken_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &flag); + retVal___ = postHookFunc(retVal___, guild_id, flag); } } return retVal___; @@ -27526,11 +27567,11 @@ int HP_guild_gm_change(int guild_id, struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_gm_change_pre ) { - int (*preHookFunc) (int *guild_id, struct map_session_data *sd); + int (*preHookFunc) (int *guild_id, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_gm_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_gm_change_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, sd); + retVal___ = preHookFunc(&guild_id, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27541,10 +27582,10 @@ int HP_guild_gm_change(int guild_id, struct map_session_data *sd) { retVal___ = HPMHooks.source.guild.gm_change(guild_id, sd); } if( HPMHooks.count.HP_guild_gm_change_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, struct map_session_data *sd); + int (*postHookFunc) (int retVal___, int guild_id, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_gm_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_gm_change_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, sd); + retVal___ = postHookFunc(retVal___, guild_id, sd); } } return retVal___; @@ -27568,10 +27609,10 @@ int HP_guild_gm_changed(int guild_id, int account_id, int char_id) { retVal___ = HPMHooks.source.guild.gm_changed(guild_id, account_id, char_id); } if( HPMHooks.count.HP_guild_gm_changed_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_gm_changed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_gm_changed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id); } } return retVal___; @@ -27621,10 +27662,10 @@ int HP_guild_castledatasave(int castle_id, int index, int value) { retVal___ = HPMHooks.source.guild.castledatasave(castle_id, index, value); } if( HPMHooks.count.HP_guild_castledatasave_post ) { - int (*postHookFunc) (int retVal___, int *castle_id, int *index, int *value); + int (*postHookFunc) (int retVal___, int castle_id, int index, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castledatasave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_castledatasave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &castle_id, &index, &value); + retVal___ = postHookFunc(retVal___, castle_id, index, value); } } return retVal___; @@ -27633,11 +27674,11 @@ int HP_guild_castledataloadack(int len, const struct guild_castle *gc) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_castledataloadack_pre ) { - int (*preHookFunc) (int *len, const struct guild_castle *gc); + int (*preHookFunc) (int *len, const struct guild_castle **gc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castledataloadack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_castledataloadack_pre[hIndex].func; - retVal___ = preHookFunc(&len, gc); + retVal___ = preHookFunc(&len, &gc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27648,10 +27689,10 @@ int HP_guild_castledataloadack(int len, const struct guild_castle *gc) { retVal___ = HPMHooks.source.guild.castledataloadack(len, gc); } if( HPMHooks.count.HP_guild_castledataloadack_post ) { - int (*postHookFunc) (int retVal___, int *len, const struct guild_castle *gc); + int (*postHookFunc) (int retVal___, int len, const struct guild_castle *gc); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castledataloadack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_castledataloadack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &len, gc); + retVal___ = postHookFunc(retVal___, len, gc); } } return retVal___; @@ -27674,10 +27715,10 @@ void HP_guild_castle_reconnect(int castle_id, int index, int value) { HPMHooks.source.guild.castle_reconnect(castle_id, index, value); } if( HPMHooks.count.HP_guild_castle_reconnect_post ) { - void (*postHookFunc) (int *castle_id, int *index, int *value); + void (*postHookFunc) (int castle_id, int index, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_reconnect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_castle_reconnect_post[hIndex].func; - postHookFunc(&castle_id, &index, &value); + postHookFunc(castle_id, index, value); } } return; @@ -27789,11 +27830,11 @@ void HP_guild_agit2_end(void) { void HP_guild_flag_add(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_guild_flag_add_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_flag_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_flag_add_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27815,11 +27856,11 @@ void HP_guild_flag_add(struct npc_data *nd) { void HP_guild_flag_remove(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_guild_flag_remove_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_flag_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_flag_remove_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27867,11 +27908,11 @@ void HP_guild_flags_clear(void) { void HP_guild_aura_refresh(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_guild_aura_refresh_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_aura_refresh_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_aura_refresh_pre[hIndex].func; - preHookFunc(sd, &skill_id, &skill_lv); + preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27882,10 +27923,10 @@ void HP_guild_aura_refresh(struct map_session_data *sd, uint16 skill_id, uint16 HPMHooks.source.guild.aura_refresh(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_guild_aura_refresh_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_aura_refresh_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_aura_refresh_post[hIndex].func; - postHookFunc(sd, &skill_id, &skill_lv); + postHookFunc(sd, skill_id, skill_lv); } } return; @@ -27908,10 +27949,10 @@ void HP_guild_retrieveitembound(int char_id, int aid, int guild_id) { HPMHooks.source.guild.retrieveitembound(char_id, aid, guild_id); } if( HPMHooks.count.HP_guild_retrieveitembound_post ) { - void (*postHookFunc) (int *char_id, int *aid, int *guild_id); + void (*postHookFunc) (int char_id, int aid, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_retrieveitembound_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_retrieveitembound_post[hIndex].func; - postHookFunc(&char_id, &aid, &guild_id); + postHookFunc(char_id, aid, guild_id); } } return; @@ -27935,10 +27976,10 @@ int HP_guild_payexp_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.guild.payexp_timer(tid, tick, id, data); } if( HPMHooks.count.HP_guild_payexp_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_payexp_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -27962,10 +28003,10 @@ struct map_session_data* HP_guild_sd_check(int guild_id, int account_id, int cha retVal___ = HPMHooks.source.guild.sd_check(guild_id, account_id, char_id); } if( HPMHooks.count.HP_guild_sd_check_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int *guild_id, int *account_id, int *char_id); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int guild_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_sd_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_sd_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id); } } return retVal___; @@ -27974,11 +28015,11 @@ bool HP_guild_read_guildskill_tree_db(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_guild_read_guildskill_tree_db_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_guildskill_tree_db_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_read_guildskill_tree_db_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -27989,10 +28030,10 @@ bool HP_guild_read_guildskill_tree_db(char *split[], int columns, int current) { retVal___ = HPMHooks.source.guild.read_guildskill_tree_db(split, columns, current); } if( HPMHooks.count.HP_guild_read_guildskill_tree_db_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_guildskill_tree_db_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_read_guildskill_tree_db_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -28001,11 +28042,11 @@ bool HP_guild_read_castledb(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_guild_read_castledb_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_read_castledb_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28016,24 +28057,24 @@ bool HP_guild_read_castledb(char *str[], int columns, int current) { retVal___ = HPMHooks.source.guild.read_castledb(str, columns, current); } if( HPMHooks.count.HP_guild_read_castledb_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_read_castledb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; } -int HP_guild_payexp_timer_sub(DBKey key, DBData *data, va_list ap) { +int HP_guild_payexp_timer_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_payexp_timer_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_payexp_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28047,26 +28088,26 @@ int HP_guild_payexp_timer_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_payexp_timer_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_timer_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_payexp_timer_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_guild_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) { +int HP_guild_send_xy_timer_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_send_xy_timer_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_xy_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_send_xy_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28080,11 +28121,11 @@ int HP_guild_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_send_xy_timer_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_xy_timer_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_send_xy_timer_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -28109,20 +28150,19 @@ int HP_guild_send_xy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.guild.send_xy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_guild_send_xy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_xy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_send_xy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -DBData HP_guild_create_expcache(DBKey key, va_list args) { +struct DBData HP_guild_create_expcache(union DBKey key, va_list args) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_guild_create_expcache_pre ) { - DBData (*preHookFunc) (DBKey *key, va_list args); + struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_create_expcache_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); @@ -28141,26 +28181,26 @@ DBData HP_guild_create_expcache(DBKey key, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_guild_create_expcache_post ) { - DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_create_expcache_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_guild_create_expcache_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, args___copy); + retVal___ = postHookFunc(retVal___, key, args___copy); va_end(args___copy); } } return retVal___; } -int HP_guild_eventlist_db_final(DBKey key, DBData *data, va_list ap) { +int HP_guild_eventlist_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_eventlist_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_eventlist_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_eventlist_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28174,26 +28214,26 @@ int HP_guild_eventlist_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_eventlist_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_eventlist_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_eventlist_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_guild_expcache_db_final(DBKey key, DBData *data, va_list ap) { +int HP_guild_expcache_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_expcache_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expcache_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_expcache_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28207,26 +28247,26 @@ int HP_guild_expcache_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_expcache_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expcache_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_expcache_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_guild_castle_db_final(DBKey key, DBData *data, va_list ap) { +int HP_guild_castle_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_castle_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_castle_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28240,26 +28280,26 @@ int HP_guild_castle_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_castle_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_castle_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_guild_broken_sub(DBKey key, DBData *data, va_list ap) { +int HP_guild_broken_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_broken_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_broken_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_broken_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28273,26 +28313,26 @@ int HP_guild_broken_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_broken_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_broken_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_broken_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_guild_castle_broken_sub(DBKey key, DBData *data, va_list ap) { +int HP_guild_castle_broken_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_castle_broken_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_broken_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_castle_broken_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28306,11 +28346,11 @@ int HP_guild_castle_broken_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_guild_castle_broken_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_broken_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_guild_castle_broken_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -28319,11 +28359,11 @@ int HP_guild_castle_broken_sub(DBKey key, DBData *data, va_list ap) { void HP_guild_makemember(struct guild_member *m, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_guild_makemember_pre ) { - void (*preHookFunc) (struct guild_member *m, struct map_session_data *sd); + void (*preHookFunc) (struct guild_member **m, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_makemember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_makemember_pre[hIndex].func; - preHookFunc(m, sd); + preHookFunc(&m, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28346,11 +28386,11 @@ int HP_guild_check_member(const struct guild *g) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_check_member_pre ) { - int (*preHookFunc) (const struct guild *g); + int (*preHookFunc) (const struct guild **g); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_member_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_check_member_pre[hIndex].func; - retVal___ = preHookFunc(g); + retVal___ = preHookFunc(&g); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28373,11 +28413,11 @@ int HP_guild_get_alliance_count(struct guild *g, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_guild_get_alliance_count_pre ) { - int (*preHookFunc) (struct guild *g, int *flag); + int (*preHookFunc) (struct guild **g, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_get_alliance_count_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_guild_get_alliance_count_pre[hIndex].func; - retVal___ = preHookFunc(g, &flag); + retVal___ = preHookFunc(&g, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28388,10 +28428,10 @@ int HP_guild_get_alliance_count(struct guild *g, int flag) { retVal___ = HPMHooks.source.guild.get_alliance_count(g, flag); } if( HPMHooks.count.HP_guild_get_alliance_count_post ) { - int (*postHookFunc) (int retVal___, struct guild *g, int *flag); + int (*postHookFunc) (int retVal___, struct guild *g, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_get_alliance_count_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_guild_get_alliance_count_post[hIndex].func; - retVal___ = postHookFunc(retVal___, g, &flag); + retVal___ = postHookFunc(retVal___, g, flag); } } return retVal___; @@ -28399,12 +28439,12 @@ int HP_guild_get_alliance_count(struct guild *g, int flag) { void HP_guild_castle_reconnect_sub(void *key, void *data, va_list ap) { int hIndex = 0; if( HPMHooks.count.HP_guild_castle_reconnect_sub_pre ) { - void (*preHookFunc) (void *key, void *data, va_list ap); + void (*preHookFunc) (void **key, void **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_reconnect_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_guild_castle_reconnect_sub_pre[hIndex].func; - preHookFunc(key, data, ap___copy); + preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -28428,7 +28468,7 @@ void HP_guild_castle_reconnect_sub(void *key, void *data, va_list ap) { } return; } -/* gstorage */ +/* guild_storage_interface */ struct guild_storage* HP_gstorage_ensure(int guild_id) { int hIndex = 0; struct guild_storage* retVal___ = NULL; @@ -28448,10 +28488,10 @@ struct guild_storage* HP_gstorage_ensure(int guild_id) { retVal___ = HPMHooks.source.gstorage.ensure(guild_id); } if( HPMHooks.count.HP_gstorage_ensure_post ) { - struct guild_storage* (*postHookFunc) (struct guild_storage* retVal___, int *guild_id); + struct guild_storage* (*postHookFunc) (struct guild_storage* retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_ensure_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_ensure_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -28474,10 +28514,10 @@ void HP_gstorage_init(bool minimal) { HPMHooks.source.gstorage.init(minimal); } if( HPMHooks.count.HP_gstorage_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -28527,10 +28567,10 @@ int HP_gstorage_delete(int guild_id) { retVal___ = HPMHooks.source.gstorage.delete(guild_id); } if( HPMHooks.count.HP_gstorage_delete_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -28539,11 +28579,11 @@ int HP_gstorage_open(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_open_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_open_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28566,11 +28606,11 @@ int HP_gstorage_additem(struct map_session_data *sd, struct guild_storage *stor, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_additem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct guild_storage *stor, struct item *item_data, int *amount); + int (*preHookFunc) (struct map_session_data **sd, struct guild_storage **stor, struct item **item_data, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_additem_pre[hIndex].func; - retVal___ = preHookFunc(sd, stor, item_data, &amount); + retVal___ = preHookFunc(&sd, &stor, &item_data, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28581,10 +28621,10 @@ int HP_gstorage_additem(struct map_session_data *sd, struct guild_storage *stor, retVal___ = HPMHooks.source.gstorage.additem(sd, stor, item_data, amount); } if( HPMHooks.count.HP_gstorage_additem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct guild_storage *stor, struct item *item_data, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct guild_storage *stor, struct item *item_data, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_additem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, stor, item_data, &amount); + retVal___ = postHookFunc(retVal___, sd, stor, item_data, amount); } } return retVal___; @@ -28593,11 +28633,11 @@ int HP_gstorage_delitem(struct map_session_data *sd, struct guild_storage *stor, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_delitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct guild_storage *stor, int *n, int *amount); + int (*preHookFunc) (struct map_session_data **sd, struct guild_storage **stor, int *n, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_delitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, stor, &n, &amount); + retVal___ = preHookFunc(&sd, &stor, &n, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28608,10 +28648,10 @@ int HP_gstorage_delitem(struct map_session_data *sd, struct guild_storage *stor, retVal___ = HPMHooks.source.gstorage.delitem(sd, stor, n, amount); } if( HPMHooks.count.HP_gstorage_delitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct guild_storage *stor, int *n, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct guild_storage *stor, int n, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_delitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, stor, &n, &amount); + retVal___ = postHookFunc(retVal___, sd, stor, n, amount); } } return retVal___; @@ -28620,11 +28660,11 @@ int HP_gstorage_add(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_add_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_add_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28635,10 +28675,10 @@ int HP_gstorage_add(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.gstorage.add(sd, index, amount); } if( HPMHooks.count.HP_gstorage_add_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -28647,11 +28687,11 @@ int HP_gstorage_get(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_get_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_get_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_get_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28662,10 +28702,10 @@ int HP_gstorage_get(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.gstorage.get(sd, index, amount); } if( HPMHooks.count.HP_gstorage_get_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_get_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_get_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -28674,11 +28714,11 @@ int HP_gstorage_addfromcart(struct map_session_data *sd, int index, int amount) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_addfromcart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_addfromcart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_addfromcart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28689,10 +28729,10 @@ int HP_gstorage_addfromcart(struct map_session_data *sd, int index, int amount) retVal___ = HPMHooks.source.gstorage.addfromcart(sd, index, amount); } if( HPMHooks.count.HP_gstorage_addfromcart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_addfromcart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_addfromcart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -28701,11 +28741,11 @@ int HP_gstorage_gettocart(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_gettocart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_gettocart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_gettocart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28716,10 +28756,10 @@ int HP_gstorage_gettocart(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.gstorage.gettocart(sd, index, amount); } if( HPMHooks.count.HP_gstorage_gettocart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_gettocart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_gettocart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -28728,11 +28768,11 @@ int HP_gstorage_close(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_close_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_close_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28755,11 +28795,11 @@ int HP_gstorage_pc_quit(struct map_session_data *sd, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_gstorage_pc_quit_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_pc_quit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_gstorage_pc_quit_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -28770,10 +28810,10 @@ int HP_gstorage_pc_quit(struct map_session_data *sd, int flag) { retVal___ = HPMHooks.source.gstorage.pc_quit(sd, flag); } if( HPMHooks.count.HP_gstorage_pc_quit_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_pc_quit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_pc_quit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -28797,10 +28837,10 @@ int HP_gstorage_save(int account_id, int guild_id, int flag) { retVal___ = HPMHooks.source.gstorage.save(account_id, guild_id, flag); } if( HPMHooks.count.HP_gstorage_save_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *guild_id, int *flag); + int (*postHookFunc) (int retVal___, int account_id, int guild_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_save_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_save_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &guild_id, &flag); + retVal___ = postHookFunc(retVal___, account_id, guild_id, flag); } } return retVal___; @@ -28824,20 +28864,19 @@ int HP_gstorage_saved(int guild_id) { retVal___ = HPMHooks.source.gstorage.saved(guild_id); } if( HPMHooks.count.HP_gstorage_saved_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_saved_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_gstorage_saved_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; } -DBData HP_gstorage_create(DBKey key, va_list args) { +struct DBData HP_gstorage_create(union DBKey key, va_list args) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_gstorage_create_pre ) { - DBData (*preHookFunc) (DBKey *key, va_list args); + struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_create_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); @@ -28856,17 +28895,17 @@ DBData HP_gstorage_create(DBKey key, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_gstorage_create_post ) { - DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_create_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_gstorage_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, args___copy); + retVal___ = postHookFunc(retVal___, key, args___copy); va_end(args___copy); } } return retVal___; } -/* homun */ +/* homunculus_interface */ void HP_homun_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_homun_init_pre ) { @@ -28885,10 +28924,10 @@ void HP_homun_init(bool minimal) { HPMHooks.source.homun.init(minimal); } if( HPMHooks.count.HP_homun_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -28990,10 +29029,10 @@ struct view_data* HP_homun_get_viewdata(int class_) { retVal___ = HPMHooks.source.homun.get_viewdata(class_); } if( HPMHooks.count.HP_homun_get_viewdata_post ) { - struct view_data* (*postHookFunc) (struct view_data* retVal___, int *class_); + struct view_data* (*postHookFunc) (struct view_data* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_get_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_get_viewdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -29017,10 +29056,10 @@ enum homun_type HP_homun_class2type(int class_) { retVal___ = HPMHooks.source.homun.class2type(class_); } if( HPMHooks.count.HP_homun_class2type_post ) { - enum homun_type (*postHookFunc) (enum homun_type retVal___, int *class_); + enum homun_type (*postHookFunc) (enum homun_type retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_class2type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_class2type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -29028,11 +29067,11 @@ enum homun_type HP_homun_class2type(int class_) { void HP_homun_damaged(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_damaged_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_damaged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_damaged_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29055,11 +29094,11 @@ int HP_homun_dead(struct homun_data *hd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_dead_pre ) { - int (*preHookFunc) (struct homun_data *hd); + int (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_dead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_dead_pre[hIndex].func; - retVal___ = preHookFunc(hd); + retVal___ = preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29082,11 +29121,11 @@ int HP_homun_vaporize(struct map_session_data *sd, enum homun_state flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_vaporize_pre ) { - int (*preHookFunc) (struct map_session_data *sd, enum homun_state *flag); + int (*preHookFunc) (struct map_session_data **sd, enum homun_state *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_vaporize_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_vaporize_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29097,10 +29136,10 @@ int HP_homun_vaporize(struct map_session_data *sd, enum homun_state flag) { retVal___ = HPMHooks.source.homun.vaporize(sd, flag); } if( HPMHooks.count.HP_homun_vaporize_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum homun_state *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum homun_state flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_vaporize_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_vaporize_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -29109,11 +29148,11 @@ int HP_homun_delete(struct homun_data *hd, int emote) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_delete_pre ) { - int (*preHookFunc) (struct homun_data *hd, int *emote); + int (*preHookFunc) (struct homun_data **hd, int *emote); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_delete_pre[hIndex].func; - retVal___ = preHookFunc(hd, &emote); + retVal___ = preHookFunc(&hd, &emote); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29124,10 +29163,10 @@ int HP_homun_delete(struct homun_data *hd, int emote) { retVal___ = HPMHooks.source.homun.delete(hd, emote); } if( HPMHooks.count.HP_homun_delete_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, int *emote); + int (*postHookFunc) (int retVal___, struct homun_data *hd, int emote); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &emote); + retVal___ = postHookFunc(retVal___, hd, emote); } } return retVal___; @@ -29136,11 +29175,11 @@ int HP_homun_checkskill(struct homun_data *hd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_checkskill_pre ) { - int (*preHookFunc) (struct homun_data *hd, uint16 *skill_id); + int (*preHookFunc) (struct homun_data **hd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_checkskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_checkskill_pre[hIndex].func; - retVal___ = preHookFunc(hd, &skill_id); + retVal___ = preHookFunc(&hd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29151,10 +29190,10 @@ int HP_homun_checkskill(struct homun_data *hd, uint16 skill_id) { retVal___ = HPMHooks.source.homun.checkskill(hd, skill_id); } if( HPMHooks.count.HP_homun_checkskill_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct homun_data *hd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_checkskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_checkskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &skill_id); + retVal___ = postHookFunc(retVal___, hd, skill_id); } } return retVal___; @@ -29163,11 +29202,11 @@ int HP_homun_calc_skilltree(struct homun_data *hd, int flag_evolve) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_calc_skilltree_pre ) { - int (*preHookFunc) (struct homun_data *hd, int *flag_evolve); + int (*preHookFunc) (struct homun_data **hd, int *flag_evolve); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_calc_skilltree_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_calc_skilltree_pre[hIndex].func; - retVal___ = preHookFunc(hd, &flag_evolve); + retVal___ = preHookFunc(&hd, &flag_evolve); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29178,10 +29217,10 @@ int HP_homun_calc_skilltree(struct homun_data *hd, int flag_evolve) { retVal___ = HPMHooks.source.homun.calc_skilltree(hd, flag_evolve); } if( HPMHooks.count.HP_homun_calc_skilltree_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, int *flag_evolve); + int (*postHookFunc) (int retVal___, struct homun_data *hd, int flag_evolve); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_calc_skilltree_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_calc_skilltree_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &flag_evolve); + retVal___ = postHookFunc(retVal___, hd, flag_evolve); } } return retVal___; @@ -29205,10 +29244,10 @@ int HP_homun_skill_tree_get_max(int id, int b_class) { retVal___ = HPMHooks.source.homun.skill_tree_get_max(id, b_class); } if( HPMHooks.count.HP_homun_skill_tree_get_max_post ) { - int (*postHookFunc) (int retVal___, int *id, int *b_class); + int (*postHookFunc) (int retVal___, int id, int b_class); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_skill_tree_get_max_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_skill_tree_get_max_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id, &b_class); + retVal___ = postHookFunc(retVal___, id, b_class); } } return retVal___; @@ -29216,11 +29255,11 @@ int HP_homun_skill_tree_get_max(int id, int b_class) { void HP_homun_skillup(struct homun_data *hd, uint16 skill_id) { int hIndex = 0; if( HPMHooks.count.HP_homun_skillup_pre ) { - void (*preHookFunc) (struct homun_data *hd, uint16 *skill_id); + void (*preHookFunc) (struct homun_data **hd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_skillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_skillup_pre[hIndex].func; - preHookFunc(hd, &skill_id); + preHookFunc(&hd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29231,10 +29270,10 @@ void HP_homun_skillup(struct homun_data *hd, uint16 skill_id) { HPMHooks.source.homun.skillup(hd, skill_id); } if( HPMHooks.count.HP_homun_skillup_post ) { - void (*postHookFunc) (struct homun_data *hd, uint16 *skill_id); + void (*postHookFunc) (struct homun_data *hd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_skillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_skillup_post[hIndex].func; - postHookFunc(hd, &skill_id); + postHookFunc(hd, skill_id); } } return; @@ -29243,11 +29282,11 @@ bool HP_homun_levelup(struct homun_data *hd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_levelup_pre ) { - bool (*preHookFunc) (struct homun_data *hd); + bool (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_levelup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_levelup_pre[hIndex].func; - retVal___ = preHookFunc(hd); + retVal___ = preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29270,11 +29309,11 @@ int HP_homun_change_class(struct homun_data *hd, short class_) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_change_class_pre ) { - int (*preHookFunc) (struct homun_data *hd, short *class_); + int (*preHookFunc) (struct homun_data **hd, short *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_class_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_change_class_pre[hIndex].func; - retVal___ = preHookFunc(hd, &class_); + retVal___ = preHookFunc(&hd, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29285,10 +29324,10 @@ int HP_homun_change_class(struct homun_data *hd, short class_) { retVal___ = HPMHooks.source.homun.change_class(hd, class_); } if( HPMHooks.count.HP_homun_change_class_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, short *class_); + int (*postHookFunc) (int retVal___, struct homun_data *hd, short class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_class_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_change_class_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &class_); + retVal___ = postHookFunc(retVal___, hd, class_); } } return retVal___; @@ -29297,11 +29336,11 @@ bool HP_homun_evolve(struct homun_data *hd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_evolve_pre ) { - bool (*preHookFunc) (struct homun_data *hd); + bool (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_evolve_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_evolve_pre[hIndex].func; - retVal___ = preHookFunc(hd); + retVal___ = preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29324,11 +29363,11 @@ bool HP_homun_mutate(struct homun_data *hd, int homun_id) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_mutate_pre ) { - bool (*preHookFunc) (struct homun_data *hd, int *homun_id); + bool (*preHookFunc) (struct homun_data **hd, int *homun_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_mutate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_mutate_pre[hIndex].func; - retVal___ = preHookFunc(hd, &homun_id); + retVal___ = preHookFunc(&hd, &homun_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29339,10 +29378,10 @@ bool HP_homun_mutate(struct homun_data *hd, int homun_id) { retVal___ = HPMHooks.source.homun.mutate(hd, homun_id); } if( HPMHooks.count.HP_homun_mutate_post ) { - bool (*postHookFunc) (bool retVal___, struct homun_data *hd, int *homun_id); + bool (*postHookFunc) (bool retVal___, struct homun_data *hd, int homun_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_mutate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_mutate_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &homun_id); + retVal___ = postHookFunc(retVal___, hd, homun_id); } } return retVal___; @@ -29351,11 +29390,11 @@ int HP_homun_gainexp(struct homun_data *hd, unsigned int exp) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_gainexp_pre ) { - int (*preHookFunc) (struct homun_data *hd, unsigned int *exp); + int (*preHookFunc) (struct homun_data **hd, unsigned int *exp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_gainexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_gainexp_pre[hIndex].func; - retVal___ = preHookFunc(hd, &exp); + retVal___ = preHookFunc(&hd, &exp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29366,10 +29405,10 @@ int HP_homun_gainexp(struct homun_data *hd, unsigned int exp) { retVal___ = HPMHooks.source.homun.gainexp(hd, exp); } if( HPMHooks.count.HP_homun_gainexp_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, unsigned int *exp); + int (*postHookFunc) (int retVal___, struct homun_data *hd, unsigned int exp); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_gainexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_gainexp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &exp); + retVal___ = postHookFunc(retVal___, hd, exp); } } return retVal___; @@ -29378,11 +29417,11 @@ unsigned int HP_homun_add_intimacy(struct homun_data *hd, unsigned int value) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_homun_add_intimacy_pre ) { - unsigned int (*preHookFunc) (struct homun_data *hd, unsigned int *value); + unsigned int (*preHookFunc) (struct homun_data **hd, unsigned int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_add_intimacy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_add_intimacy_pre[hIndex].func; - retVal___ = preHookFunc(hd, &value); + retVal___ = preHookFunc(&hd, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29393,10 +29432,10 @@ unsigned int HP_homun_add_intimacy(struct homun_data *hd, unsigned int value) { retVal___ = HPMHooks.source.homun.add_intimacy(hd, value); } if( HPMHooks.count.HP_homun_add_intimacy_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct homun_data *hd, unsigned int *value); + unsigned int (*postHookFunc) (unsigned int retVal___, struct homun_data *hd, unsigned int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_add_intimacy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_add_intimacy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &value); + retVal___ = postHookFunc(retVal___, hd, value); } } return retVal___; @@ -29405,11 +29444,11 @@ unsigned int HP_homun_consume_intimacy(struct homun_data *hd, unsigned int value int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_homun_consume_intimacy_pre ) { - unsigned int (*preHookFunc) (struct homun_data *hd, unsigned int *value); + unsigned int (*preHookFunc) (struct homun_data **hd, unsigned int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_consume_intimacy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_consume_intimacy_pre[hIndex].func; - retVal___ = preHookFunc(hd, &value); + retVal___ = preHookFunc(&hd, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29420,10 +29459,10 @@ unsigned int HP_homun_consume_intimacy(struct homun_data *hd, unsigned int value retVal___ = HPMHooks.source.homun.consume_intimacy(hd, value); } if( HPMHooks.count.HP_homun_consume_intimacy_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct homun_data *hd, unsigned int *value); + unsigned int (*postHookFunc) (unsigned int retVal___, struct homun_data *hd, unsigned int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_consume_intimacy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_consume_intimacy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &value); + retVal___ = postHookFunc(retVal___, hd, value); } } return retVal___; @@ -29431,11 +29470,11 @@ unsigned int HP_homun_consume_intimacy(struct homun_data *hd, unsigned int value void HP_homun_healed(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_healed_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_healed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_healed_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29457,11 +29496,11 @@ void HP_homun_healed(struct homun_data *hd) { void HP_homun_save(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_save_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_save_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29484,11 +29523,11 @@ unsigned char HP_homun_menu(struct map_session_data *sd, unsigned char menu_num) int hIndex = 0; unsigned char retVal___ = 0; if( HPMHooks.count.HP_homun_menu_pre ) { - unsigned char (*preHookFunc) (struct map_session_data *sd, unsigned char *menu_num); + unsigned char (*preHookFunc) (struct map_session_data **sd, unsigned char *menu_num); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_menu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_menu_pre[hIndex].func; - retVal___ = preHookFunc(sd, &menu_num); + retVal___ = preHookFunc(&sd, &menu_num); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29499,10 +29538,10 @@ unsigned char HP_homun_menu(struct map_session_data *sd, unsigned char menu_num) retVal___ = HPMHooks.source.homun.menu(sd, menu_num); } if( HPMHooks.count.HP_homun_menu_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, struct map_session_data *sd, unsigned char *menu_num); + unsigned char (*postHookFunc) (unsigned char retVal___, struct map_session_data *sd, unsigned char menu_num); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_menu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_menu_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &menu_num); + retVal___ = postHookFunc(retVal___, sd, menu_num); } } return retVal___; @@ -29511,11 +29550,11 @@ bool HP_homun_feed(struct map_session_data *sd, struct homun_data *hd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_feed_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct homun_data *hd); + bool (*preHookFunc) (struct map_session_data **sd, struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_feed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_feed_pre[hIndex].func; - retVal___ = preHookFunc(sd, hd); + retVal___ = preHookFunc(&sd, &hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29553,10 +29592,10 @@ int HP_homun_hunger_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.homun.hunger_timer(tid, tick, id, data); } if( HPMHooks.count.HP_homun_hunger_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_hunger_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_hunger_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -29564,11 +29603,11 @@ int HP_homun_hunger_timer(int tid, int64 tick, int id, intptr_t data) { void HP_homun_hunger_timer_delete(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_hunger_timer_delete_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_hunger_timer_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_hunger_timer_delete_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29591,11 +29630,11 @@ int HP_homun_change_name(struct map_session_data *sd, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_homun_change_name_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name); + int (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_change_name_pre[hIndex].func; - retVal___ = preHookFunc(sd, name); + retVal___ = preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29618,11 +29657,11 @@ bool HP_homun_change_name_ack(struct map_session_data *sd, const char *name, int int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_change_name_ack_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *name, int *flag); + bool (*preHookFunc) (struct map_session_data **sd, const char **name, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_name_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_change_name_ack_pre[hIndex].func; - retVal___ = preHookFunc(sd, name, &flag); + retVal___ = preHookFunc(&sd, &name, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29633,10 +29672,10 @@ bool HP_homun_change_name_ack(struct map_session_data *sd, const char *name, int retVal___ = HPMHooks.source.homun.change_name_ack(sd, name, flag); } if( HPMHooks.count.HP_homun_change_name_ack_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *name, int *flag); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *name, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_name_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_change_name_ack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, name, &flag); + retVal___ = postHookFunc(retVal___, sd, name, flag); } } return retVal___; @@ -29660,10 +29699,10 @@ int HP_homun_db_search(int key, int type) { retVal___ = HPMHooks.source.homun.db_search(key, type); } if( HPMHooks.count.HP_homun_db_search_post ) { - int (*postHookFunc) (int retVal___, int *key, int *type); + int (*postHookFunc) (int retVal___, int key, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_db_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_db_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, &type); + retVal___ = postHookFunc(retVal___, key, type); } } return retVal___; @@ -29672,11 +29711,11 @@ bool HP_homun_create(struct map_session_data *sd, const struct s_homunculus *hom int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_create_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const struct s_homunculus *hom); + bool (*preHookFunc) (struct map_session_data **sd, const struct s_homunculus **hom); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, hom); + retVal___ = preHookFunc(&sd, &hom); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29698,11 +29737,11 @@ bool HP_homun_create(struct map_session_data *sd, const struct s_homunculus *hom void HP_homun_init_timers(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_init_timers_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_init_timers_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_init_timers_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29725,11 +29764,11 @@ bool HP_homun_call(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_call_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_call_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_call_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29752,11 +29791,11 @@ bool HP_homun_recv_data(int account_id, const struct s_homunculus *sh, int flag) int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_recv_data_pre ) { - bool (*preHookFunc) (int *account_id, const struct s_homunculus *sh, int *flag); + bool (*preHookFunc) (int *account_id, const struct s_homunculus **sh, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_recv_data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_recv_data_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, sh, &flag); + retVal___ = preHookFunc(&account_id, &sh, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29767,10 +29806,10 @@ bool HP_homun_recv_data(int account_id, const struct s_homunculus *sh, int flag) retVal___ = HPMHooks.source.homun.recv_data(account_id, sh, flag); } if( HPMHooks.count.HP_homun_recv_data_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, const struct s_homunculus *sh, int *flag); + bool (*postHookFunc) (bool retVal___, int account_id, const struct s_homunculus *sh, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_recv_data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_recv_data_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, sh, &flag); + retVal___ = postHookFunc(retVal___, account_id, sh, flag); } } return retVal___; @@ -29779,11 +29818,11 @@ bool HP_homun_creation_request(struct map_session_data *sd, int class_) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_creation_request_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *class_); + bool (*preHookFunc) (struct map_session_data **sd, int *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_creation_request_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_creation_request_pre[hIndex].func; - retVal___ = preHookFunc(sd, &class_); + retVal___ = preHookFunc(&sd, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29794,10 +29833,10 @@ bool HP_homun_creation_request(struct map_session_data *sd, int class_) { retVal___ = HPMHooks.source.homun.creation_request(sd, class_); } if( HPMHooks.count.HP_homun_creation_request_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *class_); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_creation_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_creation_request_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &class_); + retVal___ = postHookFunc(retVal___, sd, class_); } } return retVal___; @@ -29806,11 +29845,11 @@ bool HP_homun_ressurect(struct map_session_data *sd, unsigned char per, short x, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_ressurect_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned char *per, short *x, short *y); + bool (*preHookFunc) (struct map_session_data **sd, unsigned char *per, short *x, short *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_ressurect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_ressurect_pre[hIndex].func; - retVal___ = preHookFunc(sd, &per, &x, &y); + retVal___ = preHookFunc(&sd, &per, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29821,10 +29860,10 @@ bool HP_homun_ressurect(struct map_session_data *sd, unsigned char per, short x, retVal___ = HPMHooks.source.homun.ressurect(sd, per, x, y); } if( HPMHooks.count.HP_homun_ressurect_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned char *per, short *x, short *y); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned char per, short x, short y); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_ressurect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_ressurect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &per, &x, &y); + retVal___ = postHookFunc(retVal___, sd, per, x, y); } } return retVal___; @@ -29832,11 +29871,11 @@ bool HP_homun_ressurect(struct map_session_data *sd, unsigned char per, short x, void HP_homun_revive(struct homun_data *hd, unsigned int hp, unsigned int sp) { int hIndex = 0; if( HPMHooks.count.HP_homun_revive_pre ) { - void (*preHookFunc) (struct homun_data *hd, unsigned int *hp, unsigned int *sp); + void (*preHookFunc) (struct homun_data **hd, unsigned int *hp, unsigned int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_revive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_revive_pre[hIndex].func; - preHookFunc(hd, &hp, &sp); + preHookFunc(&hd, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29847,10 +29886,10 @@ void HP_homun_revive(struct homun_data *hd, unsigned int hp, unsigned int sp) { HPMHooks.source.homun.revive(hd, hp, sp); } if( HPMHooks.count.HP_homun_revive_post ) { - void (*postHookFunc) (struct homun_data *hd, unsigned int *hp, unsigned int *sp); + void (*postHookFunc) (struct homun_data *hd, unsigned int hp, unsigned int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_revive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_revive_post[hIndex].func; - postHookFunc(hd, &hp, &sp); + postHookFunc(hd, hp, sp); } } return; @@ -29858,11 +29897,11 @@ void HP_homun_revive(struct homun_data *hd, unsigned int hp, unsigned int sp) { void HP_homun_stat_reset(struct homun_data *hd) { int hIndex = 0; if( HPMHooks.count.HP_homun_stat_reset_pre ) { - void (*preHookFunc) (struct homun_data *hd); + void (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_stat_reset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_stat_reset_pre[hIndex].func; - preHookFunc(hd); + preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29885,11 +29924,11 @@ bool HP_homun_shuffle(struct homun_data *hd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_shuffle_pre ) { - bool (*preHookFunc) (struct homun_data *hd); + bool (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_shuffle_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_shuffle_pre[hIndex].func; - retVal___ = preHookFunc(hd); + retVal___ = preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29912,11 +29951,11 @@ bool HP_homun_read_db_sub(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_read_db_sub_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_read_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29927,10 +29966,10 @@ bool HP_homun_read_db_sub(char *str[], int columns, int current) { retVal___ = HPMHooks.source.homun.read_db_sub(str, columns, current); } if( HPMHooks.count.HP_homun_read_db_sub_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_read_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; @@ -29965,11 +30004,11 @@ bool HP_homun_read_skill_db_sub(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_homun_read_skill_db_sub_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_skill_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_read_skill_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -29980,10 +30019,10 @@ bool HP_homun_read_skill_db_sub(char *split[], int columns, int current) { retVal___ = HPMHooks.source.homun.read_skill_db_sub(split, columns, current); } if( HPMHooks.count.HP_homun_read_skill_db_sub_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_skill_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_read_skill_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -30043,11 +30082,11 @@ void HP_homun_exp_db_read(void) { void HP_homun_addspiritball(struct homun_data *hd, int max) { int hIndex = 0; if( HPMHooks.count.HP_homun_addspiritball_pre ) { - void (*preHookFunc) (struct homun_data *hd, int *max); + void (*preHookFunc) (struct homun_data **hd, int *max); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_addspiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_addspiritball_pre[hIndex].func; - preHookFunc(hd, &max); + preHookFunc(&hd, &max); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30058,10 +30097,10 @@ void HP_homun_addspiritball(struct homun_data *hd, int max) { HPMHooks.source.homun.addspiritball(hd, max); } if( HPMHooks.count.HP_homun_addspiritball_post ) { - void (*postHookFunc) (struct homun_data *hd, int *max); + void (*postHookFunc) (struct homun_data *hd, int max); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_addspiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_addspiritball_post[hIndex].func; - postHookFunc(hd, &max); + postHookFunc(hd, max); } } return; @@ -30069,11 +30108,11 @@ void HP_homun_addspiritball(struct homun_data *hd, int max) { void HP_homun_delspiritball(struct homun_data *hd, int count, int type) { int hIndex = 0; if( HPMHooks.count.HP_homun_delspiritball_pre ) { - void (*preHookFunc) (struct homun_data *hd, int *count, int *type); + void (*preHookFunc) (struct homun_data **hd, int *count, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_delspiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_delspiritball_pre[hIndex].func; - preHookFunc(hd, &count, &type); + preHookFunc(&hd, &count, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30084,10 +30123,10 @@ void HP_homun_delspiritball(struct homun_data *hd, int count, int type) { HPMHooks.source.homun.delspiritball(hd, count, type); } if( HPMHooks.count.HP_homun_delspiritball_post ) { - void (*postHookFunc) (struct homun_data *hd, int *count, int *type); + void (*postHookFunc) (struct homun_data *hd, int count, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_delspiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_homun_delspiritball_post[hIndex].func; - postHookFunc(hd, &count, &type); + postHookFunc(hd, count, type); } } return; @@ -30096,11 +30135,11 @@ int8 HP_homun_get_intimacy_grade(struct homun_data *hd) { int hIndex = 0; int8 retVal___ = 0; if( HPMHooks.count.HP_homun_get_intimacy_grade_pre ) { - int8 (*preHookFunc) (struct homun_data *hd); + int8 (*preHookFunc) (struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_get_intimacy_grade_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_homun_get_intimacy_grade_pre[hIndex].func; - retVal___ = preHookFunc(hd); + retVal___ = preHookFunc(&hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30119,7 +30158,7 @@ int8 HP_homun_get_intimacy_grade(struct homun_data *hd) { } return retVal___; } -/* instance */ +/* instance_interface */ void HP_instance_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_instance_init_pre ) { @@ -30138,10 +30177,10 @@ void HP_instance_init(bool minimal) { HPMHooks.source.instance.init(minimal); } if( HPMHooks.count.HP_instance_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -30202,11 +30241,11 @@ int HP_instance_create(int party_id, const char *name, enum instance_owner_type int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_instance_create_pre ) { - int (*preHookFunc) (int *party_id, const char *name, enum instance_owner_type *type); + int (*preHookFunc) (int *party_id, const char **name, enum instance_owner_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_instance_create_pre[hIndex].func; - retVal___ = preHookFunc(&party_id, name, &type); + retVal___ = preHookFunc(&party_id, &name, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30217,10 +30256,10 @@ int HP_instance_create(int party_id, const char *name, enum instance_owner_type retVal___ = HPMHooks.source.instance.create(party_id, name, type); } if( HPMHooks.count.HP_instance_create_post ) { - int (*postHookFunc) (int retVal___, int *party_id, const char *name, enum instance_owner_type *type); + int (*postHookFunc) (int retVal___, int party_id, const char *name, enum instance_owner_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, name, &type); + retVal___ = postHookFunc(retVal___, party_id, name, type); } } return retVal___; @@ -30229,11 +30268,11 @@ int HP_instance_add_map(const char *name, int instance_id, bool usebasename, con int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_instance_add_map_pre ) { - int (*preHookFunc) (const char *name, int *instance_id, bool *usebasename, const char *map_name); + int (*preHookFunc) (const char **name, int *instance_id, bool *usebasename, const char **map_name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_add_map_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_instance_add_map_pre[hIndex].func; - retVal___ = preHookFunc(name, &instance_id, &usebasename, map_name); + retVal___ = preHookFunc(&name, &instance_id, &usebasename, &map_name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30244,10 +30283,10 @@ int HP_instance_add_map(const char *name, int instance_id, bool usebasename, con retVal___ = HPMHooks.source.instance.add_map(name, instance_id, usebasename, map_name); } if( HPMHooks.count.HP_instance_add_map_post ) { - int (*postHookFunc) (int retVal___, const char *name, int *instance_id, bool *usebasename, const char *map_name); + int (*postHookFunc) (int retVal___, const char *name, int instance_id, bool usebasename, const char *map_name); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_add_map_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_add_map_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &instance_id, &usebasename, map_name); + retVal___ = postHookFunc(retVal___, name, instance_id, usebasename, map_name); } } return retVal___; @@ -30270,10 +30309,10 @@ void HP_instance_del_map(int16 m) { HPMHooks.source.instance.del_map(m); } if( HPMHooks.count.HP_instance_del_map_post ) { - void (*postHookFunc) (int16 *m); + void (*postHookFunc) (int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_del_map_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_del_map_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -30297,10 +30336,10 @@ int HP_instance_map2imap(int16 m, int instance_id) { retVal___ = HPMHooks.source.instance.map2imap(m, instance_id); } if( HPMHooks.count.HP_instance_map2imap_post ) { - int (*postHookFunc) (int retVal___, int16 *m, int *instance_id); + int (*postHookFunc) (int retVal___, int16 m, int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_map2imap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_map2imap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, &instance_id); + retVal___ = postHookFunc(retVal___, m, instance_id); } } return retVal___; @@ -30324,10 +30363,10 @@ int HP_instance_mapid2imapid(int16 m, int instance_id) { retVal___ = HPMHooks.source.instance.mapid2imapid(m, instance_id); } if( HPMHooks.count.HP_instance_mapid2imapid_post ) { - int (*postHookFunc) (int retVal___, int16 *m, int *instance_id); + int (*postHookFunc) (int retVal___, int16 m, int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_mapid2imapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_mapid2imapid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, &instance_id); + retVal___ = postHookFunc(retVal___, m, instance_id); } } return retVal___; @@ -30336,11 +30375,11 @@ int HP_instance_mapname2imap(const char *map_name, int instance_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_instance_mapname2imap_pre ) { - int (*preHookFunc) (const char *map_name, int *instance_id); + int (*preHookFunc) (const char **map_name, int *instance_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_mapname2imap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_instance_mapname2imap_pre[hIndex].func; - retVal___ = preHookFunc(map_name, &instance_id); + retVal___ = preHookFunc(&map_name, &instance_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30351,10 +30390,10 @@ int HP_instance_mapname2imap(const char *map_name, int instance_id) { retVal___ = HPMHooks.source.instance.mapname2imap(map_name, instance_id); } if( HPMHooks.count.HP_instance_mapname2imap_post ) { - int (*postHookFunc) (int retVal___, const char *map_name, int *instance_id); + int (*postHookFunc) (int retVal___, const char *map_name, int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_mapname2imap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_mapname2imap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, map_name, &instance_id); + retVal___ = postHookFunc(retVal___, map_name, instance_id); } } return retVal___; @@ -30363,12 +30402,12 @@ int HP_instance_map_npcsub(struct block_list *bl, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_instance_map_npcsub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list args); + int (*preHookFunc) (struct block_list **bl, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_map_npcsub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_instance_map_npcsub_pre[hIndex].func; - retVal___ = preHookFunc(bl, args___copy); + retVal___ = preHookFunc(&bl, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -30396,12 +30435,12 @@ int HP_instance_init_npc(struct block_list *bl, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_instance_init_npc_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list args); + int (*preHookFunc) (struct block_list **bl, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_init_npc_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_instance_init_npc_pre[hIndex].func; - retVal___ = preHookFunc(bl, args___copy); + retVal___ = preHookFunc(&bl, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -30443,10 +30482,10 @@ void HP_instance_destroy(int instance_id) { HPMHooks.source.instance.destroy(instance_id); } if( HPMHooks.count.HP_instance_destroy_post ) { - void (*postHookFunc) (int *instance_id); + void (*postHookFunc) (int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_destroy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_destroy_post[hIndex].func; - postHookFunc(&instance_id); + postHookFunc(instance_id); } } return; @@ -30469,10 +30508,10 @@ void HP_instance_start(int instance_id) { HPMHooks.source.instance.start(instance_id); } if( HPMHooks.count.HP_instance_start_post ) { - void (*postHookFunc) (int *instance_id); + void (*postHookFunc) (int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_start_post[hIndex].func; - postHookFunc(&instance_id); + postHookFunc(instance_id); } } return; @@ -30495,10 +30534,10 @@ void HP_instance_check_idle(int instance_id) { HPMHooks.source.instance.check_idle(instance_id); } if( HPMHooks.count.HP_instance_check_idle_post ) { - void (*postHookFunc) (int *instance_id); + void (*postHookFunc) (int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_check_idle_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_check_idle_post[hIndex].func; - postHookFunc(&instance_id); + postHookFunc(instance_id); } } return; @@ -30506,11 +30545,11 @@ void HP_instance_check_idle(int instance_id) { void HP_instance_check_kick(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_instance_check_kick_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_check_kick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_instance_check_kick_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30547,10 +30586,10 @@ void HP_instance_set_timeout(int instance_id, unsigned int progress_timeout, uns HPMHooks.source.instance.set_timeout(instance_id, progress_timeout, idle_timeout); } if( HPMHooks.count.HP_instance_set_timeout_post ) { - void (*postHookFunc) (int *instance_id, unsigned int *progress_timeout, unsigned int *idle_timeout); + void (*postHookFunc) (int instance_id, unsigned int progress_timeout, unsigned int idle_timeout); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_set_timeout_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_set_timeout_post[hIndex].func; - postHookFunc(&instance_id, &progress_timeout, &idle_timeout); + postHookFunc(instance_id, progress_timeout, idle_timeout); } } return; @@ -30574,10 +30613,10 @@ bool HP_instance_valid(int instance_id) { retVal___ = HPMHooks.source.instance.valid(instance_id); } if( HPMHooks.count.HP_instance_valid_post ) { - bool (*postHookFunc) (bool retVal___, int *instance_id); + bool (*postHookFunc) (bool retVal___, int instance_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_valid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_valid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &instance_id); + retVal___ = postHookFunc(retVal___, instance_id); } } return retVal___; @@ -30601,15 +30640,15 @@ int HP_instance_destroy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.instance.destroy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_instance_destroy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_destroy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_instance_destroy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -/* intif */ +/* intif_interface */ int HP_intif_parse(int fd) { int hIndex = 0; int retVal___ = 0; @@ -30629,10 +30668,10 @@ int HP_intif_parse(int fd) { retVal___ = HPMHooks.source.intif.parse(fd); } if( HPMHooks.count.HP_intif_parse_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -30641,11 +30680,11 @@ int HP_intif_create_pet(int account_id, int char_id, short pet_type, short pet_l int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_create_pet_pre ) { - int (*preHookFunc) (int *account_id, int *char_id, short *pet_type, short *pet_lv, short *pet_egg_id, short *pet_equip, short *intimate, short *hungry, char *rename_flag, char *incubate, char *pet_name); + int (*preHookFunc) (int *account_id, int *char_id, short *pet_type, short *pet_lv, short *pet_egg_id, short *pet_equip, short *intimate, short *hungry, char *rename_flag, char *incubate, char **pet_name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_pet_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_create_pet_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, &char_id, &pet_type, &pet_lv, &pet_egg_id, &pet_equip, &intimate, &hungry, &rename_flag, &incubate, pet_name); + retVal___ = preHookFunc(&account_id, &char_id, &pet_type, &pet_lv, &pet_egg_id, &pet_equip, &intimate, &hungry, &rename_flag, &incubate, &pet_name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30656,23 +30695,23 @@ int HP_intif_create_pet(int account_id, int char_id, short pet_type, short pet_l retVal___ = HPMHooks.source.intif.create_pet(account_id, char_id, pet_type, pet_lv, pet_egg_id, pet_equip, intimate, hungry, rename_flag, incubate, pet_name); } if( HPMHooks.count.HP_intif_create_pet_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *char_id, short *pet_type, short *pet_lv, short *pet_egg_id, short *pet_equip, short *intimate, short *hungry, char *rename_flag, char *incubate, char *pet_name); + int (*postHookFunc) (int retVal___, int account_id, int char_id, short pet_type, short pet_lv, short pet_egg_id, short pet_equip, short intimate, short hungry, char rename_flag, char incubate, char *pet_name); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_pet_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_create_pet_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id, &pet_type, &pet_lv, &pet_egg_id, &pet_equip, &intimate, &hungry, &rename_flag, &incubate, pet_name); + retVal___ = postHookFunc(retVal___, account_id, char_id, pet_type, pet_lv, pet_egg_id, pet_equip, intimate, hungry, rename_flag, incubate, pet_name); } } return retVal___; } -int HP_intif_broadcast(const char *mes, size_t len, int type) { +int HP_intif_broadcast(const char *mes, int len, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_broadcast_pre ) { - int (*preHookFunc) (const char *mes, size_t *len, int *type); + int (*preHookFunc) (const char **mes, int *len, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_broadcast_pre[hIndex].func; - retVal___ = preHookFunc(mes, &len, &type); + retVal___ = preHookFunc(&mes, &len, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30683,23 +30722,23 @@ int HP_intif_broadcast(const char *mes, size_t len, int type) { retVal___ = HPMHooks.source.intif.broadcast(mes, len, type); } if( HPMHooks.count.HP_intif_broadcast_post ) { - int (*postHookFunc) (int retVal___, const char *mes, size_t *len, int *type); + int (*postHookFunc) (int retVal___, const char *mes, int len, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_broadcast_post[hIndex].func; - retVal___ = postHookFunc(retVal___, mes, &len, &type); + retVal___ = postHookFunc(retVal___, mes, len, type); } } return retVal___; } -int HP_intif_broadcast2(const char *mes, size_t len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY) { +int HP_intif_broadcast2(const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_broadcast2_pre ) { - int (*preHookFunc) (const char *mes, size_t *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY); + int (*preHookFunc) (const char **mes, int *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_broadcast2_pre[hIndex].func; - retVal___ = preHookFunc(mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY); + retVal___ = preHookFunc(&mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30710,10 +30749,10 @@ int HP_intif_broadcast2(const char *mes, size_t len, unsigned int fontColor, sho retVal___ = HPMHooks.source.intif.broadcast2(mes, len, fontColor, fontType, fontSize, fontAlign, fontY); } if( HPMHooks.count.HP_intif_broadcast2_post ) { - int (*postHookFunc) (int retVal___, const char *mes, size_t *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY); + int (*postHookFunc) (int retVal___, const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_broadcast2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY); + retVal___ = postHookFunc(retVal___, mes, len, fontColor, fontType, fontSize, fontAlign, fontY); } } return retVal___; @@ -30722,11 +30761,11 @@ int HP_intif_main_message(struct map_session_data *sd, const char *message) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_main_message_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *message); + int (*preHookFunc) (struct map_session_data **sd, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_main_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_main_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, message); + retVal___ = preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30745,15 +30784,15 @@ int HP_intif_main_message(struct map_session_data *sd, const char *message) { } return retVal___; } -int HP_intif_wis_message(struct map_session_data *sd, const char *nick, const char *mes, size_t mes_len) { +int HP_intif_wis_message(struct map_session_data *sd, const char *nick, const char *mes, int mes_len) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_wis_message_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *nick, const char *mes, size_t *mes_len); + int (*preHookFunc) (struct map_session_data **sd, const char **nick, const char **mes, int *mes_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_wis_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, nick, mes, &mes_len); + retVal___ = preHookFunc(&sd, &nick, &mes, &mes_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30764,10 +30803,10 @@ int HP_intif_wis_message(struct map_session_data *sd, const char *nick, const ch retVal___ = HPMHooks.source.intif.wis_message(sd, nick, mes, mes_len); } if( HPMHooks.count.HP_intif_wis_message_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *nick, const char *mes, size_t *mes_len); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *nick, const char *mes, int mes_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_wis_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, nick, mes, &mes_len); + retVal___ = postHookFunc(retVal___, sd, nick, mes, mes_len); } } return retVal___; @@ -30776,11 +30815,11 @@ int HP_intif_wis_message_to_gm(char *Wisp_name, int permission, char *mes) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_wis_message_to_gm_pre ) { - int (*preHookFunc) (char *Wisp_name, int *permission, char *mes); + int (*preHookFunc) (char **Wisp_name, int *permission, char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_to_gm_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_wis_message_to_gm_pre[hIndex].func; - retVal___ = preHookFunc(Wisp_name, &permission, mes); + retVal___ = preHookFunc(&Wisp_name, &permission, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30791,10 +30830,10 @@ int HP_intif_wis_message_to_gm(char *Wisp_name, int permission, char *mes) { retVal___ = HPMHooks.source.intif.wis_message_to_gm(Wisp_name, permission, mes); } if( HPMHooks.count.HP_intif_wis_message_to_gm_post ) { - int (*postHookFunc) (int retVal___, char *Wisp_name, int *permission, char *mes); + int (*postHookFunc) (int retVal___, char *Wisp_name, int permission, char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_to_gm_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_wis_message_to_gm_post[hIndex].func; - retVal___ = postHookFunc(retVal___, Wisp_name, &permission, mes); + retVal___ = postHookFunc(retVal___, Wisp_name, permission, mes); } } return retVal___; @@ -30803,11 +30842,11 @@ int HP_intif_saveregistry(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_saveregistry_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_saveregistry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_saveregistry_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30830,11 +30869,11 @@ int HP_intif_request_registry(struct map_session_data *sd, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_request_registry_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_registry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_request_registry_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30845,10 +30884,10 @@ int HP_intif_request_registry(struct map_session_data *sd, int flag) { retVal___ = HPMHooks.source.intif.request_registry(sd, flag); } if( HPMHooks.count.HP_intif_request_registry_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_registry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_request_registry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -30872,10 +30911,10 @@ int HP_intif_request_guild_storage(int account_id, int guild_id) { retVal___ = HPMHooks.source.intif.request_guild_storage(account_id, guild_id); } if( HPMHooks.count.HP_intif_request_guild_storage_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *guild_id); + int (*postHookFunc) (int retVal___, int account_id, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_guild_storage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_request_guild_storage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &guild_id); + retVal___ = postHookFunc(retVal___, account_id, guild_id); } } return retVal___; @@ -30884,11 +30923,11 @@ int HP_intif_send_guild_storage(int account_id, struct guild_storage *gstor) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_send_guild_storage_pre ) { - int (*preHookFunc) (int *account_id, struct guild_storage *gstor); + int (*preHookFunc) (int *account_id, struct guild_storage **gstor); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_guild_storage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_send_guild_storage_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, gstor); + retVal___ = preHookFunc(&account_id, &gstor); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30899,10 +30938,10 @@ int HP_intif_send_guild_storage(int account_id, struct guild_storage *gstor) { retVal___ = HPMHooks.source.intif.send_guild_storage(account_id, gstor); } if( HPMHooks.count.HP_intif_send_guild_storage_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct guild_storage *gstor); + int (*postHookFunc) (int retVal___, int account_id, struct guild_storage *gstor); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_guild_storage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_send_guild_storage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, gstor); + retVal___ = postHookFunc(retVal___, account_id, gstor); } } return retVal___; @@ -30911,11 +30950,11 @@ int HP_intif_create_party(struct party_member *member, const char *name, int ite int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_create_party_pre ) { - int (*preHookFunc) (struct party_member *member, const char *name, int *item, int *item2); + int (*preHookFunc) (struct party_member **member, const char **name, int *item, int *item2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_party_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_create_party_pre[hIndex].func; - retVal___ = preHookFunc(member, name, &item, &item2); + retVal___ = preHookFunc(&member, &name, &item, &item2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30926,10 +30965,10 @@ int HP_intif_create_party(struct party_member *member, const char *name, int ite retVal___ = HPMHooks.source.intif.create_party(member, name, item, item2); } if( HPMHooks.count.HP_intif_create_party_post ) { - int (*postHookFunc) (int retVal___, struct party_member *member, const char *name, int *item, int *item2); + int (*postHookFunc) (int retVal___, struct party_member *member, const char *name, int item, int item2); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_party_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_create_party_post[hIndex].func; - retVal___ = postHookFunc(retVal___, member, name, &item, &item2); + retVal___ = postHookFunc(retVal___, member, name, item, item2); } } return retVal___; @@ -30953,10 +30992,10 @@ int HP_intif_request_partyinfo(int party_id, int char_id) { retVal___ = HPMHooks.source.intif.request_partyinfo(party_id, char_id); } if( HPMHooks.count.HP_intif_request_partyinfo_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_partyinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_request_partyinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, char_id); } } return retVal___; @@ -30965,11 +31004,11 @@ int HP_intif_party_addmember(int party_id, struct party_member *member) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_party_addmember_pre ) { - int (*preHookFunc) (int *party_id, struct party_member *member); + int (*preHookFunc) (int *party_id, struct party_member **member); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_addmember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_party_addmember_pre[hIndex].func; - retVal___ = preHookFunc(&party_id, member); + retVal___ = preHookFunc(&party_id, &member); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -30980,10 +31019,10 @@ int HP_intif_party_addmember(int party_id, struct party_member *member) { retVal___ = HPMHooks.source.intif.party_addmember(party_id, member); } if( HPMHooks.count.HP_intif_party_addmember_post ) { - int (*postHookFunc) (int retVal___, int *party_id, struct party_member *member); + int (*postHookFunc) (int retVal___, int party_id, struct party_member *member); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_addmember_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_addmember_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, member); + retVal___ = postHookFunc(retVal___, party_id, member); } } return retVal___; @@ -31007,10 +31046,10 @@ int HP_intif_party_changeoption(int party_id, int account_id, int exp, int item) retVal___ = HPMHooks.source.intif.party_changeoption(party_id, account_id, exp, item); } if( HPMHooks.count.HP_intif_party_changeoption_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *exp, int *item); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int exp, int item); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_changeoption_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_changeoption_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &exp, &item); + retVal___ = postHookFunc(retVal___, party_id, account_id, exp, item); } } return retVal___; @@ -31034,10 +31073,10 @@ int HP_intif_party_leave(int party_id, int account_id, int char_id) { retVal___ = HPMHooks.source.intif.party_leave(party_id, account_id, char_id); } if( HPMHooks.count.HP_intif_party_leave_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_leave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id); } } return retVal___; @@ -31046,11 +31085,11 @@ int HP_intif_party_changemap(struct map_session_data *sd, int online) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_party_changemap_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *online); + int (*preHookFunc) (struct map_session_data **sd, int *online); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_changemap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_party_changemap_pre[hIndex].func; - retVal___ = preHookFunc(sd, &online); + retVal___ = preHookFunc(&sd, &online); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31061,10 +31100,10 @@ int HP_intif_party_changemap(struct map_session_data *sd, int online) { retVal___ = HPMHooks.source.intif.party_changemap(sd, online); } if( HPMHooks.count.HP_intif_party_changemap_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *online); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int online); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_changemap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_changemap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &online); + retVal___ = postHookFunc(retVal___, sd, online); } } return retVal___; @@ -31088,10 +31127,10 @@ int HP_intif_break_party(int party_id) { retVal___ = HPMHooks.source.intif.break_party(party_id); } if( HPMHooks.count.HP_intif_break_party_post ) { - int (*postHookFunc) (int retVal___, int *party_id); + int (*postHookFunc) (int retVal___, int party_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_break_party_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_break_party_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id); + retVal___ = postHookFunc(retVal___, party_id); } } return retVal___; @@ -31100,11 +31139,11 @@ int HP_intif_party_message(int party_id, int account_id, const char *mes, int le int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_party_message_pre ) { - int (*preHookFunc) (int *party_id, int *account_id, const char *mes, int *len); + int (*preHookFunc) (int *party_id, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_party_message_pre[hIndex].func; - retVal___ = preHookFunc(&party_id, &account_id, mes, &len); + retVal___ = preHookFunc(&party_id, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31115,10 +31154,10 @@ int HP_intif_party_message(int party_id, int account_id, const char *mes, int le retVal___ = HPMHooks.source.intif.party_message(party_id, account_id, mes, len); } if( HPMHooks.count.HP_intif_party_message_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, const char *mes, int *len); + int (*postHookFunc) (int retVal___, int party_id, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, mes, &len); + retVal___ = postHookFunc(retVal___, party_id, account_id, mes, len); } } return retVal___; @@ -31142,10 +31181,10 @@ int HP_intif_party_leaderchange(int party_id, int account_id, int char_id) { retVal___ = HPMHooks.source.intif.party_leaderchange(party_id, account_id, char_id); } if( HPMHooks.count.HP_intif_party_leaderchange_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_leaderchange_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_party_leaderchange_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id); } } return retVal___; @@ -31154,11 +31193,11 @@ int HP_intif_guild_create(const char *name, const struct guild_member *master) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_create_pre ) { - int (*preHookFunc) (const char *name, const struct guild_member *master); + int (*preHookFunc) (const char **name, const struct guild_member **master); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_create_pre[hIndex].func; - retVal___ = preHookFunc(name, master); + retVal___ = preHookFunc(&name, &master); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31196,10 +31235,10 @@ int HP_intif_guild_request_info(int guild_id) { retVal___ = HPMHooks.source.intif.guild_request_info(guild_id); } if( HPMHooks.count.HP_intif_guild_request_info_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_request_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_request_info_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -31208,11 +31247,11 @@ int HP_intif_guild_addmember(int guild_id, struct guild_member *m) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_addmember_pre ) { - int (*preHookFunc) (int *guild_id, struct guild_member *m); + int (*preHookFunc) (int *guild_id, struct guild_member **m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_addmember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_addmember_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, m); + retVal___ = preHookFunc(&guild_id, &m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31223,10 +31262,10 @@ int HP_intif_guild_addmember(int guild_id, struct guild_member *m) { retVal___ = HPMHooks.source.intif.guild_addmember(guild_id, m); } if( HPMHooks.count.HP_intif_guild_addmember_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, struct guild_member *m); + int (*postHookFunc) (int retVal___, int guild_id, struct guild_member *m); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_addmember_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_addmember_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, m); + retVal___ = postHookFunc(retVal___, guild_id, m); } } return retVal___; @@ -31235,11 +31274,11 @@ int HP_intif_guild_leave(int guild_id, int account_id, int char_id, int flag, co int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_leave_pre ) { - int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char *mes); + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_leave_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &flag, mes); + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &flag, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31250,10 +31289,10 @@ int HP_intif_guild_leave(int guild_id, int account_id, int char_id, int flag, co retVal___ = HPMHooks.source.intif.guild_leave(guild_id, account_id, char_id, flag, mes); } if( HPMHooks.count.HP_intif_guild_leave_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *flag, const char *mes); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int flag, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_leave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_leave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &flag, mes); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, flag, mes); } } return retVal___; @@ -31277,10 +31316,10 @@ int HP_intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, in retVal___ = HPMHooks.source.intif.guild_memberinfoshort(guild_id, account_id, char_id, online, lv, class_); } if( HPMHooks.count.HP_intif_guild_memberinfoshort_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int online, int lv, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_memberinfoshort_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_memberinfoshort_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &online, &lv, &class_); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, online, lv, class_); } } return retVal___; @@ -31304,10 +31343,10 @@ int HP_intif_guild_break(int guild_id) { retVal___ = HPMHooks.source.intif.guild_break(guild_id); } if( HPMHooks.count.HP_intif_guild_break_post ) { - int (*postHookFunc) (int retVal___, int *guild_id); + int (*postHookFunc) (int retVal___, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_break_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_break_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); + retVal___ = postHookFunc(retVal___, guild_id); } } return retVal___; @@ -31316,11 +31355,11 @@ int HP_intif_guild_message(int guild_id, int account_id, const char *mes, int le int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_message_pre ) { - int (*preHookFunc) (int *guild_id, int *account_id, const char *mes, int *len); + int (*preHookFunc) (int *guild_id, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_message_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &account_id, mes, &len); + retVal___ = preHookFunc(&guild_id, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31331,23 +31370,23 @@ int HP_intif_guild_message(int guild_id, int account_id, const char *mes, int le retVal___ = HPMHooks.source.intif.guild_message(guild_id, account_id, mes, len); } if( HPMHooks.count.HP_intif_guild_message_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, const char *mes, int *len); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, mes, &len); + retVal___ = postHookFunc(retVal___, guild_id, account_id, mes, len); } } return retVal___; } -int HP_intif_guild_change_gm(int guild_id, const char *name, size_t len) { +int HP_intif_guild_change_gm(int guild_id, const char *name, int len) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_change_gm_pre ) { - int (*preHookFunc) (int *guild_id, const char *name, size_t *len); + int (*preHookFunc) (int *guild_id, const char **name, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_gm_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_change_gm_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, name, &len); + retVal___ = preHookFunc(&guild_id, &name, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31358,10 +31397,10 @@ int HP_intif_guild_change_gm(int guild_id, const char *name, size_t len) { retVal___ = HPMHooks.source.intif.guild_change_gm(guild_id, name, len); } if( HPMHooks.count.HP_intif_guild_change_gm_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, const char *name, size_t *len); + int (*postHookFunc) (int retVal___, int guild_id, const char *name, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_gm_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_change_gm_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, name, &len); + retVal___ = postHookFunc(retVal___, guild_id, name, len); } } return retVal___; @@ -31370,11 +31409,11 @@ int HP_intif_guild_change_basicinfo(int guild_id, int type, const void *data, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_change_basicinfo_pre ) { - int (*preHookFunc) (int *guild_id, int *type, const void *data, int *len); + int (*preHookFunc) (int *guild_id, int *type, const void **data, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_basicinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_change_basicinfo_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &type, data, &len); + retVal___ = preHookFunc(&guild_id, &type, &data, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31385,10 +31424,10 @@ int HP_intif_guild_change_basicinfo(int guild_id, int type, const void *data, in retVal___ = HPMHooks.source.intif.guild_change_basicinfo(guild_id, type, data, len); } if( HPMHooks.count.HP_intif_guild_change_basicinfo_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *type, const void *data, int *len); + int (*postHookFunc) (int retVal___, int guild_id, int type, const void *data, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_basicinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_change_basicinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &type, data, &len); + retVal___ = postHookFunc(retVal___, guild_id, type, data, len); } } return retVal___; @@ -31397,11 +31436,11 @@ int HP_intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_change_memberinfo_pre ) { - int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *type, const void *data, int *len); + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *type, const void **data, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_memberinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_change_memberinfo_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &type, data, &len); + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &type, &data, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31412,10 +31451,10 @@ int HP_intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, retVal___ = HPMHooks.source.intif.guild_change_memberinfo(guild_id, account_id, char_id, type, data, len); } if( HPMHooks.count.HP_intif_guild_change_memberinfo_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, int *type, const void *data, int *len); + int (*postHookFunc) (int retVal___, int guild_id, int account_id, int char_id, int type, const void *data, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_memberinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_change_memberinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &type, data, &len); + retVal___ = postHookFunc(retVal___, guild_id, account_id, char_id, type, data, len); } } return retVal___; @@ -31424,11 +31463,11 @@ int HP_intif_guild_position(int guild_id, int idx, struct guild_position *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_position_pre ) { - int (*preHookFunc) (int *guild_id, int *idx, struct guild_position *p); + int (*preHookFunc) (int *guild_id, int *idx, struct guild_position **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_position_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_position_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &idx, p); + retVal___ = preHookFunc(&guild_id, &idx, &p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31439,10 +31478,10 @@ int HP_intif_guild_position(int guild_id, int idx, struct guild_position *p) { retVal___ = HPMHooks.source.intif.guild_position(guild_id, idx, p); } if( HPMHooks.count.HP_intif_guild_position_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *idx, struct guild_position *p); + int (*postHookFunc) (int retVal___, int guild_id, int idx, struct guild_position *p); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_position_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_position_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &idx, p); + retVal___ = postHookFunc(retVal___, guild_id, idx, p); } } return retVal___; @@ -31466,10 +31505,10 @@ int HP_intif_guild_skillup(int guild_id, uint16 skill_id, int account_id, int ma retVal___ = HPMHooks.source.intif.guild_skillup(guild_id, skill_id, account_id, max); } if( HPMHooks.count.HP_intif_guild_skillup_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, uint16 *skill_id, int *account_id, int *max); + int (*postHookFunc) (int retVal___, int guild_id, uint16 skill_id, int account_id, int max); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_skillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_skillup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &skill_id, &account_id, &max); + retVal___ = postHookFunc(retVal___, guild_id, skill_id, account_id, max); } } return retVal___; @@ -31493,10 +31532,10 @@ int HP_intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int a retVal___ = HPMHooks.source.intif.guild_alliance(guild_id1, guild_id2, account_id1, account_id2, flag); } if( HPMHooks.count.HP_intif_guild_alliance_post ) { - int (*postHookFunc) (int retVal___, int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag); + int (*postHookFunc) (int retVal___, int guild_id1, int guild_id2, int account_id1, int account_id2, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_alliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_alliance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id1, &guild_id2, &account_id1, &account_id2, &flag); + retVal___ = postHookFunc(retVal___, guild_id1, guild_id2, account_id1, account_id2, flag); } } return retVal___; @@ -31505,11 +31544,11 @@ int HP_intif_guild_notice(int guild_id, const char *mes1, const char *mes2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_notice_pre ) { - int (*preHookFunc) (int *guild_id, const char *mes1, const char *mes2); + int (*preHookFunc) (int *guild_id, const char **mes1, const char **mes2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_notice_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_notice_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, mes1, mes2); + retVal___ = preHookFunc(&guild_id, &mes1, &mes2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31520,10 +31559,10 @@ int HP_intif_guild_notice(int guild_id, const char *mes1, const char *mes2) { retVal___ = HPMHooks.source.intif.guild_notice(guild_id, mes1, mes2); } if( HPMHooks.count.HP_intif_guild_notice_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, const char *mes1, const char *mes2); + int (*postHookFunc) (int retVal___, int guild_id, const char *mes1, const char *mes2); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_notice_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_notice_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, mes1, mes2); + retVal___ = postHookFunc(retVal___, guild_id, mes1, mes2); } } return retVal___; @@ -31532,11 +31571,11 @@ int HP_intif_guild_emblem(int guild_id, int len, const char *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_emblem_pre ) { - int (*preHookFunc) (int *guild_id, int *len, const char *data); + int (*preHookFunc) (int *guild_id, int *len, const char **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_emblem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_emblem_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id, &len, data); + retVal___ = preHookFunc(&guild_id, &len, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31547,10 +31586,10 @@ int HP_intif_guild_emblem(int guild_id, int len, const char *data) { retVal___ = HPMHooks.source.intif.guild_emblem(guild_id, len, data); } if( HPMHooks.count.HP_intif_guild_emblem_post ) { - int (*postHookFunc) (int retVal___, int *guild_id, int *len, const char *data); + int (*postHookFunc) (int retVal___, int guild_id, int len, const char *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_emblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_emblem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id, &len, data); + retVal___ = postHookFunc(retVal___, guild_id, len, data); } } return retVal___; @@ -31559,11 +31598,11 @@ int HP_intif_guild_castle_dataload(int num, int *castle_ids) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_guild_castle_dataload_pre ) { - int (*preHookFunc) (int *num, int *castle_ids); + int (*preHookFunc) (int *num, int **castle_ids); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_castle_dataload_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_guild_castle_dataload_pre[hIndex].func; - retVal___ = preHookFunc(&num, castle_ids); + retVal___ = preHookFunc(&num, &castle_ids); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31574,10 +31613,10 @@ int HP_intif_guild_castle_dataload(int num, int *castle_ids) { retVal___ = HPMHooks.source.intif.guild_castle_dataload(num, castle_ids); } if( HPMHooks.count.HP_intif_guild_castle_dataload_post ) { - int (*postHookFunc) (int retVal___, int *num, int *castle_ids); + int (*postHookFunc) (int retVal___, int num, int *castle_ids); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_castle_dataload_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_castle_dataload_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &num, castle_ids); + retVal___ = postHookFunc(retVal___, num, castle_ids); } } return retVal___; @@ -31601,10 +31640,10 @@ int HP_intif_guild_castle_datasave(int castle_id, int index, int value) { retVal___ = HPMHooks.source.intif.guild_castle_datasave(castle_id, index, value); } if( HPMHooks.count.HP_intif_guild_castle_datasave_post ) { - int (*postHookFunc) (int retVal___, int *castle_id, int *index, int *value); + int (*postHookFunc) (int retVal___, int castle_id, int index, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_castle_datasave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_guild_castle_datasave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &castle_id, &index, &value); + retVal___ = postHookFunc(retVal___, castle_id, index, value); } } return retVal___; @@ -31627,10 +31666,10 @@ void HP_intif_itembound_req(int char_id, int aid, int guild_id) { HPMHooks.source.intif.itembound_req(char_id, aid, guild_id); } if( HPMHooks.count.HP_intif_itembound_req_post ) { - void (*postHookFunc) (int *char_id, int *aid, int *guild_id); + void (*postHookFunc) (int char_id, int aid, int guild_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_itembound_req_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_itembound_req_post[hIndex].func; - postHookFunc(&char_id, &aid, &guild_id); + postHookFunc(char_id, aid, guild_id); } } return; @@ -31654,10 +31693,10 @@ int HP_intif_request_petdata(int account_id, int char_id, int pet_id) { retVal___ = HPMHooks.source.intif.request_petdata(account_id, char_id, pet_id); } if( HPMHooks.count.HP_intif_request_petdata_post ) { - int (*postHookFunc) (int retVal___, int *account_id, int *char_id, int *pet_id); + int (*postHookFunc) (int retVal___, int account_id, int char_id, int pet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_petdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_request_petdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &char_id, &pet_id); + retVal___ = postHookFunc(retVal___, account_id, char_id, pet_id); } } return retVal___; @@ -31666,11 +31705,11 @@ int HP_intif_save_petdata(int account_id, struct s_pet *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_save_petdata_pre ) { - int (*preHookFunc) (int *account_id, struct s_pet *p); + int (*preHookFunc) (int *account_id, struct s_pet **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_save_petdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_save_petdata_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, p); + retVal___ = preHookFunc(&account_id, &p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31681,10 +31720,10 @@ int HP_intif_save_petdata(int account_id, struct s_pet *p) { retVal___ = HPMHooks.source.intif.save_petdata(account_id, p); } if( HPMHooks.count.HP_intif_save_petdata_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct s_pet *p); + int (*postHookFunc) (int retVal___, int account_id, struct s_pet *p); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_save_petdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_save_petdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, p); + retVal___ = postHookFunc(retVal___, account_id, p); } } return retVal___; @@ -31708,10 +31747,10 @@ int HP_intif_delete_petdata(int pet_id) { retVal___ = HPMHooks.source.intif.delete_petdata(pet_id); } if( HPMHooks.count.HP_intif_delete_petdata_post ) { - int (*postHookFunc) (int retVal___, int *pet_id); + int (*postHookFunc) (int retVal___, int pet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_delete_petdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_delete_petdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &pet_id); + retVal___ = postHookFunc(retVal___, pet_id); } } return retVal___; @@ -31720,11 +31759,11 @@ int HP_intif_rename(struct map_session_data *sd, int type, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_rename_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, const char *name); + int (*preHookFunc) (struct map_session_data **sd, int *type, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_rename_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_rename_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, name); + retVal___ = preHookFunc(&sd, &type, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31735,10 +31774,10 @@ int HP_intif_rename(struct map_session_data *sd, int type, const char *name) { retVal___ = HPMHooks.source.intif.rename(sd, type, name); } if( HPMHooks.count.HP_intif_rename_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, const char *name); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_rename_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_rename_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, name); + retVal___ = postHookFunc(retVal___, sd, type, name); } } return retVal___; @@ -31747,11 +31786,11 @@ int HP_intif_homunculus_create(int account_id, struct s_homunculus *sh) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_homunculus_create_pre ) { - int (*preHookFunc) (int *account_id, struct s_homunculus *sh); + int (*preHookFunc) (int *account_id, struct s_homunculus **sh); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_homunculus_create_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, sh); + retVal___ = preHookFunc(&account_id, &sh); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31762,10 +31801,10 @@ int HP_intif_homunculus_create(int account_id, struct s_homunculus *sh) { retVal___ = HPMHooks.source.intif.homunculus_create(account_id, sh); } if( HPMHooks.count.HP_intif_homunculus_create_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct s_homunculus *sh); + int (*postHookFunc) (int retVal___, int account_id, struct s_homunculus *sh); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_homunculus_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, sh); + retVal___ = postHookFunc(retVal___, account_id, sh); } } return retVal___; @@ -31789,10 +31828,10 @@ bool HP_intif_homunculus_requestload(int account_id, int homun_id) { retVal___ = HPMHooks.source.intif.homunculus_requestload(account_id, homun_id); } if( HPMHooks.count.HP_intif_homunculus_requestload_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, int *homun_id); + bool (*postHookFunc) (bool retVal___, int account_id, int homun_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestload_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_homunculus_requestload_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &homun_id); + retVal___ = postHookFunc(retVal___, account_id, homun_id); } } return retVal___; @@ -31801,11 +31840,11 @@ int HP_intif_homunculus_requestsave(int account_id, struct s_homunculus *sh) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_homunculus_requestsave_pre ) { - int (*preHookFunc) (int *account_id, struct s_homunculus *sh); + int (*preHookFunc) (int *account_id, struct s_homunculus **sh); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestsave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_homunculus_requestsave_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, sh); + retVal___ = preHookFunc(&account_id, &sh); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31816,10 +31855,10 @@ int HP_intif_homunculus_requestsave(int account_id, struct s_homunculus *sh) { retVal___ = HPMHooks.source.intif.homunculus_requestsave(account_id, sh); } if( HPMHooks.count.HP_intif_homunculus_requestsave_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct s_homunculus *sh); + int (*postHookFunc) (int retVal___, int account_id, struct s_homunculus *sh); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestsave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_homunculus_requestsave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, sh); + retVal___ = postHookFunc(retVal___, account_id, sh); } } return retVal___; @@ -31843,10 +31882,10 @@ int HP_intif_homunculus_requestdelete(int homun_id) { retVal___ = HPMHooks.source.intif.homunculus_requestdelete(homun_id); } if( HPMHooks.count.HP_intif_homunculus_requestdelete_post ) { - int (*postHookFunc) (int retVal___, int *homun_id); + int (*postHookFunc) (int retVal___, int homun_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestdelete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_homunculus_requestdelete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &homun_id); + retVal___ = postHookFunc(retVal___, homun_id); } } return retVal___; @@ -31854,11 +31893,11 @@ int HP_intif_homunculus_requestdelete(int homun_id) { void HP_intif_request_questlog(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_intif_request_questlog_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_questlog_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_request_questlog_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31881,11 +31920,11 @@ int HP_intif_quest_save(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_quest_save_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_quest_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_quest_save_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31908,11 +31947,11 @@ int HP_intif_mercenary_create(struct s_mercenary *merc) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_mercenary_create_pre ) { - int (*preHookFunc) (struct s_mercenary *merc); + int (*preHookFunc) (struct s_mercenary **merc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_mercenary_create_pre[hIndex].func; - retVal___ = preHookFunc(merc); + retVal___ = preHookFunc(&merc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -31950,10 +31989,10 @@ int HP_intif_mercenary_request(int merc_id, int char_id) { retVal___ = HPMHooks.source.intif.mercenary_request(merc_id, char_id); } if( HPMHooks.count.HP_intif_mercenary_request_post ) { - int (*postHookFunc) (int retVal___, int *merc_id, int *char_id); + int (*postHookFunc) (int retVal___, int merc_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_mercenary_request_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &merc_id, &char_id); + retVal___ = postHookFunc(retVal___, merc_id, char_id); } } return retVal___; @@ -31977,10 +32016,10 @@ int HP_intif_mercenary_delete(int merc_id) { retVal___ = HPMHooks.source.intif.mercenary_delete(merc_id); } if( HPMHooks.count.HP_intif_mercenary_delete_post ) { - int (*postHookFunc) (int retVal___, int *merc_id); + int (*postHookFunc) (int retVal___, int merc_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_mercenary_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &merc_id); + retVal___ = postHookFunc(retVal___, merc_id); } } return retVal___; @@ -31989,11 +32028,11 @@ int HP_intif_mercenary_save(struct s_mercenary *merc) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_mercenary_save_pre ) { - int (*preHookFunc) (struct s_mercenary *merc); + int (*preHookFunc) (struct s_mercenary **merc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_mercenary_save_pre[hIndex].func; - retVal___ = preHookFunc(merc); + retVal___ = preHookFunc(&merc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32031,10 +32070,10 @@ int HP_intif_Mail_requestinbox(int char_id, unsigned char flag) { retVal___ = HPMHooks.source.intif.Mail_requestinbox(char_id, flag); } if( HPMHooks.count.HP_intif_Mail_requestinbox_post ) { - int (*postHookFunc) (int retVal___, int *char_id, unsigned char *flag); + int (*postHookFunc) (int retVal___, int char_id, unsigned char flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_requestinbox_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_requestinbox_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &flag); + retVal___ = postHookFunc(retVal___, char_id, flag); } } return retVal___; @@ -32058,10 +32097,10 @@ int HP_intif_Mail_read(int mail_id) { retVal___ = HPMHooks.source.intif.Mail_read(mail_id); } if( HPMHooks.count.HP_intif_Mail_read_post ) { - int (*postHookFunc) (int retVal___, int *mail_id); + int (*postHookFunc) (int retVal___, int mail_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_read_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &mail_id); + retVal___ = postHookFunc(retVal___, mail_id); } } return retVal___; @@ -32085,10 +32124,10 @@ int HP_intif_Mail_getattach(int char_id, int mail_id) { retVal___ = HPMHooks.source.intif.Mail_getattach(char_id, mail_id); } if( HPMHooks.count.HP_intif_Mail_getattach_post ) { - int (*postHookFunc) (int retVal___, int *char_id, int *mail_id); + int (*postHookFunc) (int retVal___, int char_id, int mail_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_getattach_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_getattach_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &mail_id); + retVal___ = postHookFunc(retVal___, char_id, mail_id); } } return retVal___; @@ -32112,10 +32151,10 @@ int HP_intif_Mail_delete(int char_id, int mail_id) { retVal___ = HPMHooks.source.intif.Mail_delete(char_id, mail_id); } if( HPMHooks.count.HP_intif_Mail_delete_post ) { - int (*postHookFunc) (int retVal___, int *char_id, int *mail_id); + int (*postHookFunc) (int retVal___, int char_id, int mail_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &mail_id); + retVal___ = postHookFunc(retVal___, char_id, mail_id); } } return retVal___; @@ -32139,10 +32178,10 @@ int HP_intif_Mail_return(int char_id, int mail_id) { retVal___ = HPMHooks.source.intif.Mail_return(char_id, mail_id); } if( HPMHooks.count.HP_intif_Mail_return_post ) { - int (*postHookFunc) (int retVal___, int *char_id, int *mail_id); + int (*postHookFunc) (int retVal___, int char_id, int mail_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_return_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_return_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &mail_id); + retVal___ = postHookFunc(retVal___, char_id, mail_id); } } return retVal___; @@ -32151,11 +32190,11 @@ int HP_intif_Mail_send(int account_id, struct mail_message *msg) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_Mail_send_pre ) { - int (*preHookFunc) (int *account_id, struct mail_message *msg); + int (*preHookFunc) (int *account_id, struct mail_message **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_Mail_send_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, msg); + retVal___ = preHookFunc(&account_id, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32166,10 +32205,10 @@ int HP_intif_Mail_send(int account_id, struct mail_message *msg) { retVal___ = HPMHooks.source.intif.Mail_send(account_id, msg); } if( HPMHooks.count.HP_intif_Mail_send_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct mail_message *msg); + int (*postHookFunc) (int retVal___, int account_id, struct mail_message *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_send_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Mail_send_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, msg); + retVal___ = postHookFunc(retVal___, account_id, msg); } } return retVal___; @@ -32178,11 +32217,11 @@ int HP_intif_Auction_requestlist(int char_id, short type, int price, const char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_Auction_requestlist_pre ) { - int (*preHookFunc) (int *char_id, short *type, int *price, const char *searchtext, short *page); + int (*preHookFunc) (int *char_id, short *type, int *price, const char **searchtext, short *page); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_requestlist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_Auction_requestlist_pre[hIndex].func; - retVal___ = preHookFunc(&char_id, &type, &price, searchtext, &page); + retVal___ = preHookFunc(&char_id, &type, &price, &searchtext, &page); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32193,10 +32232,10 @@ int HP_intif_Auction_requestlist(int char_id, short type, int price, const char retVal___ = HPMHooks.source.intif.Auction_requestlist(char_id, type, price, searchtext, page); } if( HPMHooks.count.HP_intif_Auction_requestlist_post ) { - int (*postHookFunc) (int retVal___, int *char_id, short *type, int *price, const char *searchtext, short *page); + int (*postHookFunc) (int retVal___, int char_id, short type, int price, const char *searchtext, short page); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_requestlist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Auction_requestlist_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &type, &price, searchtext, &page); + retVal___ = postHookFunc(retVal___, char_id, type, price, searchtext, page); } } return retVal___; @@ -32205,11 +32244,11 @@ int HP_intif_Auction_register(struct auction_data *auction) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_Auction_register_pre ) { - int (*preHookFunc) (struct auction_data *auction); + int (*preHookFunc) (struct auction_data **auction); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_register_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_Auction_register_pre[hIndex].func; - retVal___ = preHookFunc(auction); + retVal___ = preHookFunc(&auction); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32247,10 +32286,10 @@ int HP_intif_Auction_cancel(int char_id, unsigned int auction_id) { retVal___ = HPMHooks.source.intif.Auction_cancel(char_id, auction_id); } if( HPMHooks.count.HP_intif_Auction_cancel_post ) { - int (*postHookFunc) (int retVal___, int *char_id, unsigned int *auction_id); + int (*postHookFunc) (int retVal___, int char_id, unsigned int auction_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_cancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Auction_cancel_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &auction_id); + retVal___ = postHookFunc(retVal___, char_id, auction_id); } } return retVal___; @@ -32274,10 +32313,10 @@ int HP_intif_Auction_close(int char_id, unsigned int auction_id) { retVal___ = HPMHooks.source.intif.Auction_close(char_id, auction_id); } if( HPMHooks.count.HP_intif_Auction_close_post ) { - int (*postHookFunc) (int retVal___, int *char_id, unsigned int *auction_id); + int (*postHookFunc) (int retVal___, int char_id, unsigned int auction_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_close_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Auction_close_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &auction_id); + retVal___ = postHookFunc(retVal___, char_id, auction_id); } } return retVal___; @@ -32286,11 +32325,11 @@ int HP_intif_Auction_bid(int char_id, const char *name, unsigned int auction_id, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_Auction_bid_pre ) { - int (*preHookFunc) (int *char_id, const char *name, unsigned int *auction_id, int *bid); + int (*preHookFunc) (int *char_id, const char **name, unsigned int *auction_id, int *bid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_bid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_Auction_bid_pre[hIndex].func; - retVal___ = preHookFunc(&char_id, name, &auction_id, &bid); + retVal___ = preHookFunc(&char_id, &name, &auction_id, &bid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32301,10 +32340,10 @@ int HP_intif_Auction_bid(int char_id, const char *name, unsigned int auction_id, retVal___ = HPMHooks.source.intif.Auction_bid(char_id, name, auction_id, bid); } if( HPMHooks.count.HP_intif_Auction_bid_post ) { - int (*postHookFunc) (int retVal___, int *char_id, const char *name, unsigned int *auction_id, int *bid); + int (*postHookFunc) (int retVal___, int char_id, const char *name, unsigned int auction_id, int bid); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_bid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_Auction_bid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, name, &auction_id, &bid); + retVal___ = postHookFunc(retVal___, char_id, name, auction_id, bid); } } return retVal___; @@ -32313,11 +32352,11 @@ int HP_intif_elemental_create(struct s_elemental *ele) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_elemental_create_pre ) { - int (*preHookFunc) (struct s_elemental *ele); + int (*preHookFunc) (struct s_elemental **ele); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_elemental_create_pre[hIndex].func; - retVal___ = preHookFunc(ele); + retVal___ = preHookFunc(&ele); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32355,10 +32394,10 @@ int HP_intif_elemental_request(int ele_id, int char_id) { retVal___ = HPMHooks.source.intif.elemental_request(ele_id, char_id); } if( HPMHooks.count.HP_intif_elemental_request_post ) { - int (*postHookFunc) (int retVal___, int *ele_id, int *char_id); + int (*postHookFunc) (int retVal___, int ele_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_request_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_elemental_request_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ele_id, &char_id); + retVal___ = postHookFunc(retVal___, ele_id, char_id); } } return retVal___; @@ -32382,10 +32421,10 @@ int HP_intif_elemental_delete(int ele_id) { retVal___ = HPMHooks.source.intif.elemental_delete(ele_id); } if( HPMHooks.count.HP_intif_elemental_delete_post ) { - int (*postHookFunc) (int retVal___, int *ele_id); + int (*postHookFunc) (int retVal___, int ele_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_elemental_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ele_id); + retVal___ = postHookFunc(retVal___, ele_id); } } return retVal___; @@ -32394,11 +32433,11 @@ int HP_intif_elemental_save(struct s_elemental *ele) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_elemental_save_pre ) { - int (*preHookFunc) (struct s_elemental *ele); + int (*preHookFunc) (struct s_elemental **ele); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_elemental_save_pre[hIndex].func; - retVal___ = preHookFunc(ele); + retVal___ = preHookFunc(&ele); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32420,11 +32459,11 @@ int HP_intif_elemental_save(struct s_elemental *ele) { void HP_intif_request_accinfo(int u_fd, int aid, int group_lv, char *query) { int hIndex = 0; if( HPMHooks.count.HP_intif_request_accinfo_pre ) { - void (*preHookFunc) (int *u_fd, int *aid, int *group_lv, char *query); + void (*preHookFunc) (int *u_fd, int *aid, int *group_lv, char **query); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_accinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_intif_request_accinfo_pre[hIndex].func; - preHookFunc(&u_fd, &aid, &group_lv, query); + preHookFunc(&u_fd, &aid, &group_lv, &query); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -32435,10 +32474,10 @@ void HP_intif_request_accinfo(int u_fd, int aid, int group_lv, char *query) { HPMHooks.source.intif.request_accinfo(u_fd, aid, group_lv, query); } if( HPMHooks.count.HP_intif_request_accinfo_post ) { - void (*postHookFunc) (int *u_fd, int *aid, int *group_lv, char *query); + void (*postHookFunc) (int u_fd, int aid, int group_lv, char *query); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_accinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_request_accinfo_post[hIndex].func; - postHookFunc(&u_fd, &aid, &group_lv, query); + postHookFunc(u_fd, aid, group_lv, query); } } return; @@ -32488,10 +32527,10 @@ void HP_intif_pWisMessage(int fd) { HPMHooks.source.intif.pWisMessage(fd); } if( HPMHooks.count.HP_intif_pWisMessage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pWisMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pWisMessage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32514,10 +32553,10 @@ void HP_intif_pWisEnd(int fd) { HPMHooks.source.intif.pWisEnd(fd); } if( HPMHooks.count.HP_intif_pWisEnd_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pWisEnd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pWisEnd_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32526,12 +32565,12 @@ int HP_intif_pWisToGM_sub(struct map_session_data *sd, va_list va) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_intif_pWisToGM_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list va); + int (*preHookFunc) (struct map_session_data **sd, va_list va); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pWisToGM_sub_pre; hIndex++ ) { va_list va___copy; va_copy(va___copy, va); preHookFunc = HPMHooks.list.HP_intif_pWisToGM_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, va___copy); + retVal___ = preHookFunc(&sd, va___copy); va_end(va___copy); } if( *HPMforce_return ) { @@ -32573,10 +32612,10 @@ void HP_intif_pWisToGM(int fd) { HPMHooks.source.intif.pWisToGM(fd); } if( HPMHooks.count.HP_intif_pWisToGM_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pWisToGM_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pWisToGM_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32599,10 +32638,10 @@ void HP_intif_pRegisters(int fd) { HPMHooks.source.intif.pRegisters(fd); } if( HPMHooks.count.HP_intif_pRegisters_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pRegisters_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pRegisters_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32625,10 +32664,10 @@ void HP_intif_pChangeNameOk(int fd) { HPMHooks.source.intif.pChangeNameOk(fd); } if( HPMHooks.count.HP_intif_pChangeNameOk_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pChangeNameOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pChangeNameOk_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32651,10 +32690,10 @@ void HP_intif_pMessageToFD(int fd) { HPMHooks.source.intif.pMessageToFD(fd); } if( HPMHooks.count.HP_intif_pMessageToFD_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMessageToFD_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMessageToFD_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32677,10 +32716,10 @@ void HP_intif_pLoadGuildStorage(int fd) { HPMHooks.source.intif.pLoadGuildStorage(fd); } if( HPMHooks.count.HP_intif_pLoadGuildStorage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pLoadGuildStorage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pLoadGuildStorage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32703,10 +32742,10 @@ void HP_intif_pSaveGuildStorage(int fd) { HPMHooks.source.intif.pSaveGuildStorage(fd); } if( HPMHooks.count.HP_intif_pSaveGuildStorage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pSaveGuildStorage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pSaveGuildStorage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32729,10 +32768,10 @@ void HP_intif_pPartyCreated(int fd) { HPMHooks.source.intif.pPartyCreated(fd); } if( HPMHooks.count.HP_intif_pPartyCreated_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyCreated_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyCreated_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32755,10 +32794,10 @@ void HP_intif_pPartyInfo(int fd) { HPMHooks.source.intif.pPartyInfo(fd); } if( HPMHooks.count.HP_intif_pPartyInfo_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyInfo_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32781,10 +32820,10 @@ void HP_intif_pPartyMemberAdded(int fd) { HPMHooks.source.intif.pPartyMemberAdded(fd); } if( HPMHooks.count.HP_intif_pPartyMemberAdded_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyMemberAdded_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyMemberAdded_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32807,10 +32846,10 @@ void HP_intif_pPartyOptionChanged(int fd) { HPMHooks.source.intif.pPartyOptionChanged(fd); } if( HPMHooks.count.HP_intif_pPartyOptionChanged_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyOptionChanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyOptionChanged_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32833,10 +32872,10 @@ void HP_intif_pPartyMemberWithdraw(int fd) { HPMHooks.source.intif.pPartyMemberWithdraw(fd); } if( HPMHooks.count.HP_intif_pPartyMemberWithdraw_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyMemberWithdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyMemberWithdraw_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32859,10 +32898,10 @@ void HP_intif_pPartyMove(int fd) { HPMHooks.source.intif.pPartyMove(fd); } if( HPMHooks.count.HP_intif_pPartyMove_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyMove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyMove_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32885,10 +32924,10 @@ void HP_intif_pPartyBroken(int fd) { HPMHooks.source.intif.pPartyBroken(fd); } if( HPMHooks.count.HP_intif_pPartyBroken_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyBroken_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyBroken_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32911,10 +32950,10 @@ void HP_intif_pPartyMessage(int fd) { HPMHooks.source.intif.pPartyMessage(fd); } if( HPMHooks.count.HP_intif_pPartyMessage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pPartyMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pPartyMessage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32937,10 +32976,10 @@ void HP_intif_pGuildCreated(int fd) { HPMHooks.source.intif.pGuildCreated(fd); } if( HPMHooks.count.HP_intif_pGuildCreated_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildCreated_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildCreated_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32963,10 +33002,10 @@ void HP_intif_pGuildInfo(int fd) { HPMHooks.source.intif.pGuildInfo(fd); } if( HPMHooks.count.HP_intif_pGuildInfo_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildInfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildInfo_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -32989,10 +33028,10 @@ void HP_intif_pGuildMemberAdded(int fd) { HPMHooks.source.intif.pGuildMemberAdded(fd); } if( HPMHooks.count.HP_intif_pGuildMemberAdded_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMemberAdded_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMemberAdded_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33015,10 +33054,10 @@ void HP_intif_pGuildMemberWithdraw(int fd) { HPMHooks.source.intif.pGuildMemberWithdraw(fd); } if( HPMHooks.count.HP_intif_pGuildMemberWithdraw_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMemberWithdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMemberWithdraw_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33041,10 +33080,10 @@ void HP_intif_pGuildMemberInfoShort(int fd) { HPMHooks.source.intif.pGuildMemberInfoShort(fd); } if( HPMHooks.count.HP_intif_pGuildMemberInfoShort_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMemberInfoShort_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMemberInfoShort_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33067,10 +33106,10 @@ void HP_intif_pGuildBroken(int fd) { HPMHooks.source.intif.pGuildBroken(fd); } if( HPMHooks.count.HP_intif_pGuildBroken_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildBroken_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildBroken_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33093,10 +33132,10 @@ void HP_intif_pGuildMessage(int fd) { HPMHooks.source.intif.pGuildMessage(fd); } if( HPMHooks.count.HP_intif_pGuildMessage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMessage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33119,10 +33158,10 @@ void HP_intif_pGuildBasicInfoChanged(int fd) { HPMHooks.source.intif.pGuildBasicInfoChanged(fd); } if( HPMHooks.count.HP_intif_pGuildBasicInfoChanged_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildBasicInfoChanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildBasicInfoChanged_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33145,10 +33184,10 @@ void HP_intif_pGuildMemberInfoChanged(int fd) { HPMHooks.source.intif.pGuildMemberInfoChanged(fd); } if( HPMHooks.count.HP_intif_pGuildMemberInfoChanged_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMemberInfoChanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMemberInfoChanged_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33171,10 +33210,10 @@ void HP_intif_pGuildPosition(int fd) { HPMHooks.source.intif.pGuildPosition(fd); } if( HPMHooks.count.HP_intif_pGuildPosition_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildPosition_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildPosition_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33197,10 +33236,10 @@ void HP_intif_pGuildSkillUp(int fd) { HPMHooks.source.intif.pGuildSkillUp(fd); } if( HPMHooks.count.HP_intif_pGuildSkillUp_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildSkillUp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildSkillUp_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33223,10 +33262,10 @@ void HP_intif_pGuildAlliance(int fd) { HPMHooks.source.intif.pGuildAlliance(fd); } if( HPMHooks.count.HP_intif_pGuildAlliance_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildAlliance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildAlliance_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33249,10 +33288,10 @@ void HP_intif_pGuildNotice(int fd) { HPMHooks.source.intif.pGuildNotice(fd); } if( HPMHooks.count.HP_intif_pGuildNotice_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildNotice_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildNotice_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33275,10 +33314,10 @@ void HP_intif_pGuildEmblem(int fd) { HPMHooks.source.intif.pGuildEmblem(fd); } if( HPMHooks.count.HP_intif_pGuildEmblem_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildEmblem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildEmblem_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33301,10 +33340,10 @@ void HP_intif_pGuildCastleDataLoad(int fd) { HPMHooks.source.intif.pGuildCastleDataLoad(fd); } if( HPMHooks.count.HP_intif_pGuildCastleDataLoad_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildCastleDataLoad_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildCastleDataLoad_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33327,10 +33366,10 @@ void HP_intif_pGuildMasterChanged(int fd) { HPMHooks.source.intif.pGuildMasterChanged(fd); } if( HPMHooks.count.HP_intif_pGuildMasterChanged_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pGuildMasterChanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pGuildMasterChanged_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33353,10 +33392,10 @@ void HP_intif_pQuestLog(int fd) { HPMHooks.source.intif.pQuestLog(fd); } if( HPMHooks.count.HP_intif_pQuestLog_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pQuestLog_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pQuestLog_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33379,10 +33418,10 @@ void HP_intif_pQuestSave(int fd) { HPMHooks.source.intif.pQuestSave(fd); } if( HPMHooks.count.HP_intif_pQuestSave_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pQuestSave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pQuestSave_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33405,10 +33444,10 @@ void HP_intif_pMailInboxReceived(int fd) { HPMHooks.source.intif.pMailInboxReceived(fd); } if( HPMHooks.count.HP_intif_pMailInboxReceived_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailInboxReceived_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailInboxReceived_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33431,10 +33470,10 @@ void HP_intif_pMailNew(int fd) { HPMHooks.source.intif.pMailNew(fd); } if( HPMHooks.count.HP_intif_pMailNew_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailNew_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailNew_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33457,10 +33496,10 @@ void HP_intif_pMailGetAttach(int fd) { HPMHooks.source.intif.pMailGetAttach(fd); } if( HPMHooks.count.HP_intif_pMailGetAttach_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailGetAttach_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailGetAttach_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33483,10 +33522,10 @@ void HP_intif_pMailDelete(int fd) { HPMHooks.source.intif.pMailDelete(fd); } if( HPMHooks.count.HP_intif_pMailDelete_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailDelete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailDelete_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33509,10 +33548,10 @@ void HP_intif_pMailReturn(int fd) { HPMHooks.source.intif.pMailReturn(fd); } if( HPMHooks.count.HP_intif_pMailReturn_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailReturn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailReturn_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33535,10 +33574,10 @@ void HP_intif_pMailSend(int fd) { HPMHooks.source.intif.pMailSend(fd); } if( HPMHooks.count.HP_intif_pMailSend_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMailSend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMailSend_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33561,10 +33600,10 @@ void HP_intif_pAuctionResults(int fd) { HPMHooks.source.intif.pAuctionResults(fd); } if( HPMHooks.count.HP_intif_pAuctionResults_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionResults_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionResults_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33587,10 +33626,10 @@ void HP_intif_pAuctionRegister(int fd) { HPMHooks.source.intif.pAuctionRegister(fd); } if( HPMHooks.count.HP_intif_pAuctionRegister_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionRegister_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionRegister_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33613,10 +33652,10 @@ void HP_intif_pAuctionCancel(int fd) { HPMHooks.source.intif.pAuctionCancel(fd); } if( HPMHooks.count.HP_intif_pAuctionCancel_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionCancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionCancel_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33639,10 +33678,10 @@ void HP_intif_pAuctionClose(int fd) { HPMHooks.source.intif.pAuctionClose(fd); } if( HPMHooks.count.HP_intif_pAuctionClose_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionClose_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionClose_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33665,10 +33704,10 @@ void HP_intif_pAuctionMessage(int fd) { HPMHooks.source.intif.pAuctionMessage(fd); } if( HPMHooks.count.HP_intif_pAuctionMessage_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionMessage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionMessage_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33691,10 +33730,10 @@ void HP_intif_pAuctionBid(int fd) { HPMHooks.source.intif.pAuctionBid(fd); } if( HPMHooks.count.HP_intif_pAuctionBid_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pAuctionBid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pAuctionBid_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33717,10 +33756,10 @@ void HP_intif_pItembound_ack(int fd) { HPMHooks.source.intif.pItembound_ack(fd); } if( HPMHooks.count.HP_intif_pItembound_ack_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pItembound_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pItembound_ack_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33743,10 +33782,10 @@ void HP_intif_pMercenaryReceived(int fd) { HPMHooks.source.intif.pMercenaryReceived(fd); } if( HPMHooks.count.HP_intif_pMercenaryReceived_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMercenaryReceived_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMercenaryReceived_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33769,10 +33808,10 @@ void HP_intif_pMercenaryDeleted(int fd) { HPMHooks.source.intif.pMercenaryDeleted(fd); } if( HPMHooks.count.HP_intif_pMercenaryDeleted_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMercenaryDeleted_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMercenaryDeleted_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33795,10 +33834,10 @@ void HP_intif_pMercenarySaved(int fd) { HPMHooks.source.intif.pMercenarySaved(fd); } if( HPMHooks.count.HP_intif_pMercenarySaved_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pMercenarySaved_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pMercenarySaved_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33821,10 +33860,10 @@ void HP_intif_pElementalReceived(int fd) { HPMHooks.source.intif.pElementalReceived(fd); } if( HPMHooks.count.HP_intif_pElementalReceived_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pElementalReceived_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pElementalReceived_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33847,10 +33886,10 @@ void HP_intif_pElementalDeleted(int fd) { HPMHooks.source.intif.pElementalDeleted(fd); } if( HPMHooks.count.HP_intif_pElementalDeleted_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pElementalDeleted_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pElementalDeleted_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33873,10 +33912,10 @@ void HP_intif_pElementalSaved(int fd) { HPMHooks.source.intif.pElementalSaved(fd); } if( HPMHooks.count.HP_intif_pElementalSaved_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pElementalSaved_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pElementalSaved_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33899,10 +33938,10 @@ void HP_intif_pCreatePet(int fd) { HPMHooks.source.intif.pCreatePet(fd); } if( HPMHooks.count.HP_intif_pCreatePet_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pCreatePet_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pCreatePet_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33925,10 +33964,10 @@ void HP_intif_pRecvPetData(int fd) { HPMHooks.source.intif.pRecvPetData(fd); } if( HPMHooks.count.HP_intif_pRecvPetData_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pRecvPetData_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pRecvPetData_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33951,10 +33990,10 @@ void HP_intif_pSavePetOk(int fd) { HPMHooks.source.intif.pSavePetOk(fd); } if( HPMHooks.count.HP_intif_pSavePetOk_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pSavePetOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pSavePetOk_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -33977,10 +34016,10 @@ void HP_intif_pDeletePetOk(int fd) { HPMHooks.source.intif.pDeletePetOk(fd); } if( HPMHooks.count.HP_intif_pDeletePetOk_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pDeletePetOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pDeletePetOk_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -34003,10 +34042,10 @@ void HP_intif_pCreateHomunculus(int fd) { HPMHooks.source.intif.pCreateHomunculus(fd); } if( HPMHooks.count.HP_intif_pCreateHomunculus_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pCreateHomunculus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pCreateHomunculus_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -34029,10 +34068,10 @@ void HP_intif_pRecvHomunculusData(int fd) { HPMHooks.source.intif.pRecvHomunculusData(fd); } if( HPMHooks.count.HP_intif_pRecvHomunculusData_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pRecvHomunculusData_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pRecvHomunculusData_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -34055,10 +34094,10 @@ void HP_intif_pSaveHomunculusOk(int fd) { HPMHooks.source.intif.pSaveHomunculusOk(fd); } if( HPMHooks.count.HP_intif_pSaveHomunculusOk_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pSaveHomunculusOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pSaveHomunculusOk_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -34081,15 +34120,15 @@ void HP_intif_pDeleteHomunculusOk(int fd) { HPMHooks.source.intif.pDeleteHomunculusOk(fd); } if( HPMHooks.count.HP_intif_pDeleteHomunculusOk_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pDeleteHomunculusOk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_intif_pDeleteHomunculusOk_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; } -/* ircbot */ +/* irc_bot_interface */ void HP_ircbot_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_init_pre ) { @@ -34108,10 +34147,10 @@ void HP_ircbot_init(bool minimal) { HPMHooks.source.ircbot.init(minimal); } if( HPMHooks.count.HP_ircbot_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -34161,10 +34200,10 @@ int HP_ircbot_parse(int fd) { retVal___ = HPMHooks.source.ircbot.parse(fd); } if( HPMHooks.count.HP_ircbot_parse_post ) { - int (*postHookFunc) (int retVal___, int *fd); + int (*postHookFunc) (int retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -34172,11 +34211,11 @@ int HP_ircbot_parse(int fd) { void HP_ircbot_parse_sub(int fd, char *str) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_parse_sub_pre ) { - void (*preHookFunc) (int *fd, char *str); + void (*preHookFunc) (int *fd, char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_parse_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_parse_sub_pre[hIndex].func; - preHookFunc(&fd, str); + preHookFunc(&fd, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34187,10 +34226,10 @@ void HP_ircbot_parse_sub(int fd, char *str) { HPMHooks.source.ircbot.parse_sub(fd, str); } if( HPMHooks.count.HP_ircbot_parse_sub_post ) { - void (*postHookFunc) (int *fd, char *str); + void (*postHookFunc) (int fd, char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_parse_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_parse_sub_post[hIndex].func; - postHookFunc(&fd, str); + postHookFunc(fd, str); } } return; @@ -34198,11 +34237,11 @@ void HP_ircbot_parse_sub(int fd, char *str) { void HP_ircbot_parse_source(char *source, char *nick, char *ident, char *host) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_parse_source_pre ) { - void (*preHookFunc) (char *source, char *nick, char *ident, char *host); + void (*preHookFunc) (char **source, char **nick, char **ident, char **host); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_parse_source_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_parse_source_pre[hIndex].func; - preHookFunc(source, nick, ident, host); + preHookFunc(&source, &nick, &ident, &host); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34225,11 +34264,11 @@ struct irc_func* HP_ircbot_func_search(char *function_name) { int hIndex = 0; struct irc_func* retVal___ = NULL; if( HPMHooks.count.HP_ircbot_func_search_pre ) { - struct irc_func* (*preHookFunc) (char *function_name); + struct irc_func* (*preHookFunc) (char **function_name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_func_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_func_search_pre[hIndex].func; - retVal___ = preHookFunc(function_name); + retVal___ = preHookFunc(&function_name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34267,10 +34306,10 @@ int HP_ircbot_connect_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.ircbot.connect_timer(tid, tick, id, data); } if( HPMHooks.count.HP_ircbot_connect_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_connect_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_connect_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -34294,10 +34333,10 @@ int HP_ircbot_identify_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.ircbot.identify_timer(tid, tick, id, data); } if( HPMHooks.count.HP_ircbot_identify_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_identify_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_identify_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -34321,22 +34360,75 @@ int HP_ircbot_join_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.ircbot.join_timer(tid, tick, id, data); } if( HPMHooks.count.HP_ircbot_join_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_join_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_join_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -void HP_ircbot_send(char *str) { +int HP_ircbot_queue_timer(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_ircbot_queue_timer_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_queue_timer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_ircbot_queue_timer_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.ircbot.queue_timer(tid, tick, id, data); + } + if( HPMHooks.count.HP_ircbot_queue_timer_post ) { + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_queue_timer_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_ircbot_queue_timer_post[hIndex].func; + retVal___ = postHookFunc(retVal___, tid, tick, id, data); + } + } + return retVal___; +} +void HP_ircbot_queue(char *str) { + int hIndex = 0; + if( HPMHooks.count.HP_ircbot_queue_pre ) { + void (*preHookFunc) (char **str); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_queue_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_ircbot_queue_pre[hIndex].func; + preHookFunc(&str); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.ircbot.queue(str); + } + if( HPMHooks.count.HP_ircbot_queue_post ) { + void (*postHookFunc) (char *str); + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_queue_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_ircbot_queue_post[hIndex].func; + postHookFunc(str); + } + } + return; +} +void HP_ircbot_send(char *str, bool force) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_send_pre ) { - void (*preHookFunc) (char *str); + void (*preHookFunc) (char **str, bool *force); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_send_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_send_pre[hIndex].func; - preHookFunc(str); + preHookFunc(&str, &force); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34344,13 +34436,13 @@ void HP_ircbot_send(char *str) { } } { - HPMHooks.source.ircbot.send(str); + HPMHooks.source.ircbot.send(str, force); } if( HPMHooks.count.HP_ircbot_send_post ) { - void (*postHookFunc) (char *str); + void (*postHookFunc) (char *str, bool force); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_send_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_send_post[hIndex].func; - postHookFunc(str); + postHookFunc(str, force); } } return; @@ -34358,11 +34450,11 @@ void HP_ircbot_send(char *str) { void HP_ircbot_relay(const char *name, const char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_relay_pre ) { - void (*preHookFunc) (const char *name, const char *msg); + void (*preHookFunc) (const char **name, const char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_relay_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_relay_pre[hIndex].func; - preHookFunc(name, msg); + preHookFunc(&name, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34384,11 +34476,11 @@ void HP_ircbot_relay(const char *name, const char *msg) { void HP_ircbot_pong(int fd, char *cmd, char *source, char *target, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_pong_pre ) { - void (*preHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_pong_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_pong_pre[hIndex].func; - preHookFunc(&fd, cmd, source, target, msg); + preHookFunc(&fd, &cmd, &source, &target, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34399,10 +34491,10 @@ void HP_ircbot_pong(int fd, char *cmd, char *source, char *target, char *msg) { HPMHooks.source.ircbot.pong(fd, cmd, source, target, msg); } if( HPMHooks.count.HP_ircbot_pong_post ) { - void (*postHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_pong_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_pong_post[hIndex].func; - postHookFunc(&fd, cmd, source, target, msg); + postHookFunc(fd, cmd, source, target, msg); } } return; @@ -34410,11 +34502,11 @@ void HP_ircbot_pong(int fd, char *cmd, char *source, char *target, char *msg) { void HP_ircbot_privmsg(int fd, char *cmd, char *source, char *target, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_privmsg_pre ) { - void (*preHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_privmsg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_privmsg_pre[hIndex].func; - preHookFunc(&fd, cmd, source, target, msg); + preHookFunc(&fd, &cmd, &source, &target, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34425,10 +34517,36 @@ void HP_ircbot_privmsg(int fd, char *cmd, char *source, char *target, char *msg) HPMHooks.source.ircbot.privmsg(fd, cmd, source, target, msg); } if( HPMHooks.count.HP_ircbot_privmsg_post ) { - void (*postHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_privmsg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_privmsg_post[hIndex].func; - postHookFunc(&fd, cmd, source, target, msg); + postHookFunc(fd, cmd, source, target, msg); + } + } + return; +} +void HP_ircbot_privmsg_ctcp(int fd, char *cmd, char *source, char *target, char *msg) { + int hIndex = 0; + if( HPMHooks.count.HP_ircbot_privmsg_ctcp_pre ) { + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_privmsg_ctcp_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_ircbot_privmsg_ctcp_pre[hIndex].func; + preHookFunc(&fd, &cmd, &source, &target, &msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.ircbot.privmsg_ctcp(fd, cmd, source, target, msg); + } + if( HPMHooks.count.HP_ircbot_privmsg_ctcp_post ) { + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_privmsg_ctcp_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_ircbot_privmsg_ctcp_post[hIndex].func; + postHookFunc(fd, cmd, source, target, msg); } } return; @@ -34436,11 +34554,11 @@ void HP_ircbot_privmsg(int fd, char *cmd, char *source, char *target, char *msg) void HP_ircbot_userjoin(int fd, char *cmd, char *source, char *target, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_userjoin_pre ) { - void (*preHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_userjoin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_userjoin_pre[hIndex].func; - preHookFunc(&fd, cmd, source, target, msg); + preHookFunc(&fd, &cmd, &source, &target, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34451,10 +34569,10 @@ void HP_ircbot_userjoin(int fd, char *cmd, char *source, char *target, char *msg HPMHooks.source.ircbot.userjoin(fd, cmd, source, target, msg); } if( HPMHooks.count.HP_ircbot_userjoin_post ) { - void (*postHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_userjoin_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_userjoin_post[hIndex].func; - postHookFunc(&fd, cmd, source, target, msg); + postHookFunc(fd, cmd, source, target, msg); } } return; @@ -34462,11 +34580,11 @@ void HP_ircbot_userjoin(int fd, char *cmd, char *source, char *target, char *msg void HP_ircbot_userleave(int fd, char *cmd, char *source, char *target, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_userleave_pre ) { - void (*preHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_userleave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_userleave_pre[hIndex].func; - preHookFunc(&fd, cmd, source, target, msg); + preHookFunc(&fd, &cmd, &source, &target, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34477,10 +34595,10 @@ void HP_ircbot_userleave(int fd, char *cmd, char *source, char *target, char *ms HPMHooks.source.ircbot.userleave(fd, cmd, source, target, msg); } if( HPMHooks.count.HP_ircbot_userleave_post ) { - void (*postHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_userleave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_userleave_post[hIndex].func; - postHookFunc(&fd, cmd, source, target, msg); + postHookFunc(fd, cmd, source, target, msg); } } return; @@ -34488,11 +34606,11 @@ void HP_ircbot_userleave(int fd, char *cmd, char *source, char *target, char *ms void HP_ircbot_usernick(int fd, char *cmd, char *source, char *target, char *msg) { int hIndex = 0; if( HPMHooks.count.HP_ircbot_usernick_pre ) { - void (*preHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*preHookFunc) (int *fd, char **cmd, char **source, char **target, char **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_usernick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_ircbot_usernick_pre[hIndex].func; - preHookFunc(&fd, cmd, source, target, msg); + preHookFunc(&fd, &cmd, &source, &target, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34503,15 +34621,15 @@ void HP_ircbot_usernick(int fd, char *cmd, char *source, char *target, char *msg HPMHooks.source.ircbot.usernick(fd, cmd, source, target, msg); } if( HPMHooks.count.HP_ircbot_usernick_post ) { - void (*postHookFunc) (int *fd, char *cmd, char *source, char *target, char *msg); + void (*postHookFunc) (int fd, char *cmd, char *source, char *target, char *msg); for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_usernick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_ircbot_usernick_post[hIndex].func; - postHookFunc(&fd, cmd, source, target, msg); + postHookFunc(fd, cmd, source, target, msg); } } return; } -/* itemdb */ +/* itemdb_interface */ void HP_itemdb_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_init_pre ) { @@ -34530,10 +34648,10 @@ void HP_itemdb_init(bool minimal) { HPMHooks.source.itemdb.init(minimal); } if( HPMHooks.count.HP_itemdb_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -34697,11 +34815,11 @@ void HP_itemdb_read_packages(void) { void HP_itemdb_write_cached_packages(const char *config_filename) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_write_cached_packages_pre ) { - void (*preHookFunc) (const char *config_filename); + void (*preHookFunc) (const char **config_filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_write_cached_packages_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_write_cached_packages_pre[hIndex].func; - preHookFunc(config_filename); + preHookFunc(&config_filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34724,11 +34842,11 @@ bool HP_itemdb_read_cached_packages(const char *config_filename) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_itemdb_read_cached_packages_pre ) { - bool (*preHookFunc) (const char *config_filename); + bool (*preHookFunc) (const char **config_filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_cached_packages_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_read_cached_packages_pre[hIndex].func; - retVal___ = preHookFunc(config_filename); + retVal___ = preHookFunc(&config_filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34751,11 +34869,11 @@ struct item_data* HP_itemdb_name2id(const char *str) { int hIndex = 0; struct item_data* retVal___ = NULL; if( HPMHooks.count.HP_itemdb_name2id_pre ) { - struct item_data* (*preHookFunc) (const char *str); + struct item_data* (*preHookFunc) (const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_name2id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_name2id_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34778,11 +34896,11 @@ struct item_data* HP_itemdb_search_name(const char *name) { int hIndex = 0; struct item_data* retVal___ = NULL; if( HPMHooks.count.HP_itemdb_search_name_pre ) { - struct item_data* (*preHookFunc) (const char *name); + struct item_data* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_search_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_search_name_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34805,11 +34923,11 @@ int HP_itemdb_search_name_array(struct item_data **data, int size, const char *s int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_search_name_array_pre ) { - int (*preHookFunc) (struct item_data **data, int *size, const char *str, int *flag); + int (*preHookFunc) (struct item_data ***data, int *size, const char **str, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_search_name_array_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_search_name_array_pre[hIndex].func; - retVal___ = preHookFunc(data, &size, str, &flag); + retVal___ = preHookFunc(&data, &size, &str, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34820,10 +34938,10 @@ int HP_itemdb_search_name_array(struct item_data **data, int size, const char *s retVal___ = HPMHooks.source.itemdb.search_name_array(data, size, str, flag); } if( HPMHooks.count.HP_itemdb_search_name_array_post ) { - int (*postHookFunc) (int retVal___, struct item_data **data, int *size, const char *str, int *flag); + int (*postHookFunc) (int retVal___, struct item_data **data, int size, const char *str, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_search_name_array_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_search_name_array_post[hIndex].func; - retVal___ = postHookFunc(retVal___, data, &size, str, &flag); + retVal___ = postHookFunc(retVal___, data, size, str, flag); } } return retVal___; @@ -34847,10 +34965,10 @@ struct item_data* HP_itemdb_load(int nameid) { retVal___ = HPMHooks.source.itemdb.load(nameid); } if( HPMHooks.count.HP_itemdb_load_post ) { - struct item_data* (*postHookFunc) (struct item_data* retVal___, int *nameid); + struct item_data* (*postHookFunc) (struct item_data* retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_load_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_load_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -34874,10 +34992,10 @@ struct item_data* HP_itemdb_search(int nameid) { retVal___ = HPMHooks.source.itemdb.search(nameid); } if( HPMHooks.count.HP_itemdb_search_post ) { - struct item_data* (*postHookFunc) (struct item_data* retVal___, int *nameid); + struct item_data* (*postHookFunc) (struct item_data* retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -34901,10 +35019,10 @@ struct item_data* HP_itemdb_exists(int nameid) { retVal___ = HPMHooks.source.itemdb.exists(nameid); } if( HPMHooks.count.HP_itemdb_exists_post ) { - struct item_data* (*postHookFunc) (struct item_data* retVal___, int *nameid); + struct item_data* (*postHookFunc) (struct item_data* retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_exists_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_exists_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -34913,11 +35031,11 @@ bool HP_itemdb_in_group(struct item_group *group, int nameid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_itemdb_in_group_pre ) { - bool (*preHookFunc) (struct item_group *group, int *nameid); + bool (*preHookFunc) (struct item_group **group, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_in_group_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_in_group_pre[hIndex].func; - retVal___ = preHookFunc(group, &nameid); + retVal___ = preHookFunc(&group, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34928,10 +35046,10 @@ bool HP_itemdb_in_group(struct item_group *group, int nameid) { retVal___ = HPMHooks.source.itemdb.in_group(group, nameid); } if( HPMHooks.count.HP_itemdb_in_group_post ) { - bool (*postHookFunc) (bool retVal___, struct item_group *group, int *nameid); + bool (*postHookFunc) (bool retVal___, struct item_group *group, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_in_group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_in_group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, group, &nameid); + retVal___ = postHookFunc(retVal___, group, nameid); } } return retVal___; @@ -34940,11 +35058,11 @@ int HP_itemdb_group_item(struct item_group *group) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_group_item_pre ) { - int (*preHookFunc) (struct item_group *group); + int (*preHookFunc) (struct item_group **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_group_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_group_item_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34967,11 +35085,11 @@ int HP_itemdb_chain_item(unsigned short chain_id, int *rate) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_chain_item_pre ) { - int (*preHookFunc) (unsigned short *chain_id, int *rate); + int (*preHookFunc) (unsigned short *chain_id, int **rate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_chain_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_chain_item_pre[hIndex].func; - retVal___ = preHookFunc(&chain_id, rate); + retVal___ = preHookFunc(&chain_id, &rate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -34982,10 +35100,10 @@ int HP_itemdb_chain_item(unsigned short chain_id, int *rate) { retVal___ = HPMHooks.source.itemdb.chain_item(chain_id, rate); } if( HPMHooks.count.HP_itemdb_chain_item_post ) { - int (*postHookFunc) (int retVal___, unsigned short *chain_id, int *rate); + int (*postHookFunc) (int retVal___, unsigned short chain_id, int *rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_chain_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_chain_item_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &chain_id, rate); + retVal___ = postHookFunc(retVal___, chain_id, rate); } } return retVal___; @@ -34993,11 +35111,11 @@ int HP_itemdb_chain_item(unsigned short chain_id, int *rate) { void HP_itemdb_package_item(struct map_session_data *sd, struct item_package *package) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_package_item_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item_package *package); + void (*preHookFunc) (struct map_session_data **sd, struct item_package **package); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_package_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_package_item_pre[hIndex].func; - preHookFunc(sd, package); + preHookFunc(&sd, &package); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35016,16 +35134,16 @@ void HP_itemdb_package_item(struct map_session_data *sd, struct item_package *pa } return; } -int HP_itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) { +int HP_itemdb_searchname_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_searchname_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_itemdb_searchname_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -35039,21 +35157,21 @@ int HP_itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_itemdb_searchname_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_itemdb_searchname_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_itemdb_searchname_array_sub(DBKey key, DBData data, va_list ap) { +int HP_itemdb_searchname_array_sub(union DBKey key, struct DBData data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_searchname_array_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData *data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_array_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); @@ -35072,11 +35190,11 @@ int HP_itemdb_searchname_array_sub(DBKey key, DBData data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_itemdb_searchname_array_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_array_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_itemdb_searchname_array_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, &data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -35086,11 +35204,11 @@ int HP_itemdb_searchrandomid(struct item_group *group) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_searchrandomid_pre ) { - int (*preHookFunc) (struct item_group *group); + int (*preHookFunc) (struct item_group **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchrandomid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_searchrandomid_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35128,10 +35246,10 @@ const char* HP_itemdb_typename(int type) { retVal___ = HPMHooks.source.itemdb.typename(type); } if( HPMHooks.count.HP_itemdb_typename_post ) { - const char* (*postHookFunc) (const char* retVal___, int *type); + const char* (*postHookFunc) (const char* retVal___, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_typename_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_typename_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; @@ -35139,11 +35257,11 @@ const char* HP_itemdb_typename(int type) { void HP_itemdb_jobmask2mapid(uint64 *bclass, uint64 jobmask) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_jobmask2mapid_pre ) { - void (*preHookFunc) (uint64 *bclass, uint64 *jobmask); + void (*preHookFunc) (uint64 **bclass, uint64 *jobmask); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_jobmask2mapid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_jobmask2mapid_pre[hIndex].func; - preHookFunc(bclass, &jobmask); + preHookFunc(&bclass, &jobmask); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35154,10 +35272,10 @@ void HP_itemdb_jobmask2mapid(uint64 *bclass, uint64 jobmask) { HPMHooks.source.itemdb.jobmask2mapid(bclass, jobmask); } if( HPMHooks.count.HP_itemdb_jobmask2mapid_post ) { - void (*postHookFunc) (uint64 *bclass, uint64 *jobmask); + void (*postHookFunc) (uint64 *bclass, uint64 jobmask); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_jobmask2mapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_jobmask2mapid_post[hIndex].func; - postHookFunc(bclass, &jobmask); + postHookFunc(bclass, jobmask); } } return; @@ -35165,11 +35283,11 @@ void HP_itemdb_jobmask2mapid(uint64 *bclass, uint64 jobmask) { void HP_itemdb_jobid2mapid(uint64 *bclass, int job_id, bool enable) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_jobid2mapid_pre ) { - void (*preHookFunc) (uint64 *bclass, int *job_id, bool *enable); + void (*preHookFunc) (uint64 **bclass, int *job_id, bool *enable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_jobid2mapid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_jobid2mapid_pre[hIndex].func; - preHookFunc(bclass, &job_id, &enable); + preHookFunc(&bclass, &job_id, &enable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35180,10 +35298,10 @@ void HP_itemdb_jobid2mapid(uint64 *bclass, int job_id, bool enable) { HPMHooks.source.itemdb.jobid2mapid(bclass, job_id, enable); } if( HPMHooks.count.HP_itemdb_jobid2mapid_post ) { - void (*postHookFunc) (uint64 *bclass, int *job_id, bool *enable); + void (*postHookFunc) (uint64 *bclass, int job_id, bool enable); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_jobid2mapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_jobid2mapid_post[hIndex].func; - postHookFunc(bclass, &job_id, &enable); + postHookFunc(bclass, job_id, enable); } } return; @@ -35233,10 +35351,10 @@ struct item_data* HP_itemdb_create_item_data(int nameid) { retVal___ = HPMHooks.source.itemdb.create_item_data(nameid); } if( HPMHooks.count.HP_itemdb_create_item_data_post ) { - struct item_data* (*postHookFunc) (struct item_data* retVal___, int *nameid); + struct item_data* (*postHookFunc) (struct item_data* retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_create_item_data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_create_item_data_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -35260,10 +35378,10 @@ int HP_itemdb_isequip(int nameid) { retVal___ = HPMHooks.source.itemdb.isequip(nameid); } if( HPMHooks.count.HP_itemdb_isequip_post ) { - int (*postHookFunc) (int retVal___, int *nameid); + int (*postHookFunc) (int retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isequip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_isequip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -35272,11 +35390,11 @@ int HP_itemdb_isequip2(struct item_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_isequip2_pre ) { - int (*preHookFunc) (struct item_data *data); + int (*preHookFunc) (struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isequip2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_isequip2_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35314,10 +35432,10 @@ int HP_itemdb_isstackable(int nameid) { retVal___ = HPMHooks.source.itemdb.isstackable(nameid); } if( HPMHooks.count.HP_itemdb_isstackable_post ) { - int (*postHookFunc) (int retVal___, int *nameid); + int (*postHookFunc) (int retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isstackable_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_isstackable_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -35326,11 +35444,11 @@ int HP_itemdb_isstackable2(struct item_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_isstackable2_pre ) { - int (*preHookFunc) (struct item_data *data); + int (*preHookFunc) (struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isstackable2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_isstackable2_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35353,11 +35471,11 @@ int HP_itemdb_isdropable_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_isdropable_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isdropable_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_isdropable_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35368,10 +35486,10 @@ int HP_itemdb_isdropable_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.isdropable_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_isdropable_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isdropable_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_isdropable_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35380,11 +35498,11 @@ int HP_itemdb_cantrade_sub(struct item_data *item, int gmlv, int gmlv2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_cantrade_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *gmlv2); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *gmlv2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cantrade_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_cantrade_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &gmlv2); + retVal___ = preHookFunc(&item, &gmlv, &gmlv2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35395,10 +35513,10 @@ int HP_itemdb_cantrade_sub(struct item_data *item, int gmlv, int gmlv2) { retVal___ = HPMHooks.source.itemdb.cantrade_sub(item, gmlv, gmlv2); } if( HPMHooks.count.HP_itemdb_cantrade_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *gmlv2); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int gmlv2); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cantrade_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_cantrade_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &gmlv2); + retVal___ = postHookFunc(retVal___, item, gmlv, gmlv2); } } return retVal___; @@ -35407,11 +35525,11 @@ int HP_itemdb_canpartnertrade_sub(struct item_data *item, int gmlv, int gmlv2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_canpartnertrade_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *gmlv2); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *gmlv2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canpartnertrade_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_canpartnertrade_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &gmlv2); + retVal___ = preHookFunc(&item, &gmlv, &gmlv2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35422,10 +35540,10 @@ int HP_itemdb_canpartnertrade_sub(struct item_data *item, int gmlv, int gmlv2) { retVal___ = HPMHooks.source.itemdb.canpartnertrade_sub(item, gmlv, gmlv2); } if( HPMHooks.count.HP_itemdb_canpartnertrade_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *gmlv2); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int gmlv2); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canpartnertrade_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_canpartnertrade_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &gmlv2); + retVal___ = postHookFunc(retVal___, item, gmlv, gmlv2); } } return retVal___; @@ -35434,11 +35552,11 @@ int HP_itemdb_cansell_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_cansell_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cansell_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_cansell_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35449,10 +35567,10 @@ int HP_itemdb_cansell_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.cansell_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_cansell_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cansell_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_cansell_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35461,11 +35579,11 @@ int HP_itemdb_cancartstore_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_cancartstore_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cancartstore_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_cancartstore_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35476,10 +35594,10 @@ int HP_itemdb_cancartstore_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.cancartstore_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_cancartstore_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cancartstore_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_cancartstore_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35488,11 +35606,11 @@ int HP_itemdb_canstore_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_canstore_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canstore_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_canstore_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35503,10 +35621,10 @@ int HP_itemdb_canstore_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.canstore_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_canstore_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canstore_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_canstore_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35515,11 +35633,11 @@ int HP_itemdb_canguildstore_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_canguildstore_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canguildstore_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_canguildstore_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35530,10 +35648,10 @@ int HP_itemdb_canguildstore_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.canguildstore_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_canguildstore_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canguildstore_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_canguildstore_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35542,11 +35660,11 @@ int HP_itemdb_canmail_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_canmail_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canmail_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_canmail_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35557,10 +35675,10 @@ int HP_itemdb_canmail_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.canmail_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_canmail_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canmail_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_canmail_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35569,11 +35687,11 @@ int HP_itemdb_canauction_sub(struct item_data *item, int gmlv, int unused) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_canauction_sub_pre ) { - int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused); + int (*preHookFunc) (struct item_data **item, int *gmlv, int *unused); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canauction_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_canauction_sub_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &unused); + retVal___ = preHookFunc(&item, &gmlv, &unused); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35584,10 +35702,10 @@ int HP_itemdb_canauction_sub(struct item_data *item, int gmlv, int unused) { retVal___ = HPMHooks.source.itemdb.canauction_sub(item, gmlv, unused); } if( HPMHooks.count.HP_itemdb_canauction_sub_post ) { - int (*postHookFunc) (int retVal___, struct item_data *item, int *gmlv, int *unused); + int (*postHookFunc) (int retVal___, struct item_data *item, int gmlv, int unused); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canauction_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_canauction_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &unused); + retVal___ = postHookFunc(retVal___, item, gmlv, unused); } } return retVal___; @@ -35596,11 +35714,11 @@ int HP_itemdb_isrestricted(struct item *item, int gmlv, int gmlv2, int ( *func ) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_isrestricted_pre ) { - int (*preHookFunc) (struct item *item, int *gmlv, int *gmlv2, int ( *func ) (struct item_data *, int, int)); + int (*preHookFunc) (struct item **item, int *gmlv, int *gmlv2, int ( **func ) (struct item_data *, int, int)); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isrestricted_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_isrestricted_pre[hIndex].func; - retVal___ = preHookFunc(item, &gmlv, &gmlv2, func); + retVal___ = preHookFunc(&item, &gmlv, &gmlv2, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35611,10 +35729,10 @@ int HP_itemdb_isrestricted(struct item *item, int gmlv, int gmlv2, int ( *func ) retVal___ = HPMHooks.source.itemdb.isrestricted(item, gmlv, gmlv2, func); } if( HPMHooks.count.HP_itemdb_isrestricted_post ) { - int (*postHookFunc) (int retVal___, struct item *item, int *gmlv, int *gmlv2, int ( *func ) (struct item_data *, int, int)); + int (*postHookFunc) (int retVal___, struct item *item, int gmlv, int gmlv2, int ( *func ) (struct item_data *, int, int)); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isrestricted_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_isrestricted_post[hIndex].func; - retVal___ = postHookFunc(retVal___, item, &gmlv, &gmlv2, func); + retVal___ = postHookFunc(retVal___, item, gmlv, gmlv2, func); } } return retVal___; @@ -35638,10 +35756,10 @@ int HP_itemdb_isidentified(int nameid) { retVal___ = HPMHooks.source.itemdb.isidentified(nameid); } if( HPMHooks.count.HP_itemdb_isidentified_post ) { - int (*postHookFunc) (int retVal___, int *nameid); + int (*postHookFunc) (int retVal___, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isidentified_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_isidentified_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid); + retVal___ = postHookFunc(retVal___, nameid); } } return retVal___; @@ -35650,11 +35768,11 @@ int HP_itemdb_isidentified2(struct item_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_isidentified2_pre ) { - int (*preHookFunc) (struct item_data *data); + int (*preHookFunc) (struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isidentified2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_isidentified2_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35677,11 +35795,11 @@ int HP_itemdb_combo_split_atoi(char *str, int *val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_combo_split_atoi_pre ) { - int (*preHookFunc) (char *str, int *val); + int (*preHookFunc) (char **str, int **val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_combo_split_atoi_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_combo_split_atoi_pre[hIndex].func; - retVal___ = preHookFunc(str, val); + retVal___ = preHookFunc(&str, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35730,11 +35848,11 @@ int HP_itemdb_gendercheck(struct item_data *id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_gendercheck_pre ) { - int (*preHookFunc) (struct item_data *id); + int (*preHookFunc) (struct item_data **id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_gendercheck_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_gendercheck_pre[hIndex].func; - retVal___ = preHookFunc(id); + retVal___ = preHookFunc(&id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35757,11 +35875,11 @@ int HP_itemdb_validate_entry(struct item_data *entry, int n, const char *source) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_validate_entry_pre ) { - int (*preHookFunc) (struct item_data *entry, int *n, const char *source); + int (*preHookFunc) (struct item_data **entry, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_validate_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_validate_entry_pre[hIndex].func; - retVal___ = preHookFunc(entry, &n, source); + retVal___ = preHookFunc(&entry, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35772,10 +35890,10 @@ int HP_itemdb_validate_entry(struct item_data *entry, int n, const char *source) retVal___ = HPMHooks.source.itemdb.validate_entry(entry, n, source); } if( HPMHooks.count.HP_itemdb_validate_entry_post ) { - int (*postHookFunc) (int retVal___, struct item_data *entry, int *n, const char *source); + int (*postHookFunc) (int retVal___, struct item_data *entry, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_validate_entry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_validate_entry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, entry, &n, source); + retVal___ = postHookFunc(retVal___, entry, n, source); } } return retVal___; @@ -35783,11 +35901,11 @@ int HP_itemdb_validate_entry(struct item_data *entry, int n, const char *source) void HP_itemdb_readdb_additional_fields(int itemid, struct config_setting_t *it, int n, const char *source) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_readdb_additional_fields_pre ) { - void (*preHookFunc) (int *itemid, struct config_setting_t *it, int *n, const char *source); + void (*preHookFunc) (int *itemid, struct config_setting_t **it, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_additional_fields_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_readdb_additional_fields_pre[hIndex].func; - preHookFunc(&itemid, it, &n, source); + preHookFunc(&itemid, &it, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35798,10 +35916,10 @@ void HP_itemdb_readdb_additional_fields(int itemid, struct config_setting_t *it, HPMHooks.source.itemdb.readdb_additional_fields(itemid, it, n, source); } if( HPMHooks.count.HP_itemdb_readdb_additional_fields_post ) { - void (*postHookFunc) (int *itemid, struct config_setting_t *it, int *n, const char *source); + void (*postHookFunc) (int itemid, struct config_setting_t *it, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_additional_fields_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_readdb_additional_fields_post[hIndex].func; - postHookFunc(&itemid, it, &n, source); + postHookFunc(itemid, it, n, source); } } return; @@ -35809,11 +35927,11 @@ void HP_itemdb_readdb_additional_fields(int itemid, struct config_setting_t *it, void HP_itemdb_readdb_job_sub(struct item_data *id, struct config_setting_t *t) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_readdb_job_sub_pre ) { - void (*preHookFunc) (struct item_data *id, struct config_setting_t *t); + void (*preHookFunc) (struct item_data **id, struct config_setting_t **t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_job_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_readdb_job_sub_pre[hIndex].func; - preHookFunc(id, t); + preHookFunc(&id, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35836,11 +35954,11 @@ int HP_itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const cha int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_readdb_libconfig_sub_pre ) { - int (*preHookFunc) (struct config_setting_t *it, int *n, const char *source); + int (*preHookFunc) (struct config_setting_t **it, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_libconfig_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_readdb_libconfig_sub_pre[hIndex].func; - retVal___ = preHookFunc(it, &n, source); + retVal___ = preHookFunc(&it, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35851,10 +35969,10 @@ int HP_itemdb_readdb_libconfig_sub(struct config_setting_t *it, int n, const cha retVal___ = HPMHooks.source.itemdb.readdb_libconfig_sub(it, n, source); } if( HPMHooks.count.HP_itemdb_readdb_libconfig_sub_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *it, int *n, const char *source); + int (*postHookFunc) (int retVal___, struct config_setting_t *it, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_libconfig_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_readdb_libconfig_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, it, &n, source); + retVal___ = postHookFunc(retVal___, it, n, source); } } return retVal___; @@ -35863,11 +35981,11 @@ int HP_itemdb_readdb_libconfig(const char *filename) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_readdb_libconfig_pre ) { - int (*preHookFunc) (const char *filename); + int (*preHookFunc) (const char **filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_libconfig_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_readdb_libconfig_pre[hIndex].func; - retVal___ = preHookFunc(filename); + retVal___ = preHookFunc(&filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35890,11 +36008,11 @@ uint64 HP_itemdb_unique_id(struct map_session_data *sd) { int hIndex = 0; uint64 retVal___ = 0; if( HPMHooks.count.HP_itemdb_unique_id_pre ) { - uint64 (*preHookFunc) (struct map_session_data *sd); + uint64 (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_unique_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_unique_id_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35931,10 +36049,10 @@ void HP_itemdb_read(bool minimal) { HPMHooks.source.itemdb.read(minimal); } if( HPMHooks.count.HP_itemdb_read_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_read_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -35942,11 +36060,11 @@ void HP_itemdb_read(bool minimal) { void HP_itemdb_destroy_item_data(struct item_data *self, int free_self) { int hIndex = 0; if( HPMHooks.count.HP_itemdb_destroy_item_data_pre ) { - void (*preHookFunc) (struct item_data *self, int *free_self); + void (*preHookFunc) (struct item_data **self, int *free_self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_destroy_item_data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_destroy_item_data_pre[hIndex].func; - preHookFunc(self, &free_self); + preHookFunc(&self, &free_self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35957,24 +36075,24 @@ void HP_itemdb_destroy_item_data(struct item_data *self, int free_self) { HPMHooks.source.itemdb.destroy_item_data(self, free_self); } if( HPMHooks.count.HP_itemdb_destroy_item_data_post ) { - void (*postHookFunc) (struct item_data *self, int *free_self); + void (*postHookFunc) (struct item_data *self, int free_self); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_destroy_item_data_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_destroy_item_data_post[hIndex].func; - postHookFunc(self, &free_self); + postHookFunc(self, free_self); } } return; } -int HP_itemdb_final_sub(DBKey key, DBData *data, va_list ap) { +int HP_itemdb_final_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_itemdb_final_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_final_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_itemdb_final_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -35988,11 +36106,11 @@ int HP_itemdb_final_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_itemdb_final_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_final_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_itemdb_final_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -36016,10 +36134,10 @@ void HP_itemdb_clear(bool total) { HPMHooks.source.itemdb.clear(total); } if( HPMHooks.count.HP_itemdb_clear_post ) { - void (*postHookFunc) (bool *total); + void (*postHookFunc) (bool total); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_clear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_clear_post[hIndex].func; - postHookFunc(&total); + postHookFunc(total); } } return; @@ -36043,10 +36161,10 @@ struct item_combo* HP_itemdb_id2combo(unsigned short id) { retVal___ = HPMHooks.source.itemdb.id2combo(id); } if( HPMHooks.count.HP_itemdb_id2combo_post ) { - struct item_combo* (*postHookFunc) (struct item_combo* retVal___, unsigned short *id); + struct item_combo* (*postHookFunc) (struct item_combo* retVal___, unsigned short id); for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_id2combo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_itemdb_id2combo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -36055,11 +36173,11 @@ bool HP_itemdb_is_item_usable(struct item_data *item) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_itemdb_is_item_usable_pre ) { - bool (*preHookFunc) (struct item_data *item); + bool (*preHookFunc) (struct item_data **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_is_item_usable_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_is_item_usable_pre[hIndex].func; - retVal___ = preHookFunc(item); + retVal___ = preHookFunc(&item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36082,11 +36200,11 @@ bool HP_itemdb_lookup_const(const struct config_setting_t *it, const char *name, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_itemdb_lookup_const_pre ) { - bool (*preHookFunc) (const struct config_setting_t *it, const char *name, int *value); + bool (*preHookFunc) (const struct config_setting_t **it, const char **name, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_lookup_const_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_itemdb_lookup_const_pre[hIndex].func; - retVal___ = preHookFunc(it, name, value); + retVal___ = preHookFunc(&it, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36105,16 +36223,16 @@ bool HP_itemdb_lookup_const(const struct config_setting_t *it, const char *name, } return retVal___; } -/* libconfig */ +/* libconfig_interface */ int HP_libconfig_read(struct config_t *config, FILE *stream) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_read_pre ) { - int (*preHookFunc) (struct config_t *config, FILE *stream); + int (*preHookFunc) (struct config_t **config, FILE **stream); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_read_pre[hIndex].func; - retVal___ = preHookFunc(config, stream); + retVal___ = preHookFunc(&config, &stream); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36136,11 +36254,11 @@ int HP_libconfig_read(struct config_t *config, FILE *stream) { void HP_libconfig_write(const struct config_t *config, FILE *stream) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_write_pre ) { - void (*preHookFunc) (const struct config_t *config, FILE *stream); + void (*preHookFunc) (const struct config_t **config, FILE **stream); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_write_pre[hIndex].func; - preHookFunc(config, stream); + preHookFunc(&config, &stream); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36162,11 +36280,11 @@ void HP_libconfig_write(const struct config_t *config, FILE *stream) { void HP_libconfig_set_options(struct config_t *config, int options) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_set_options_pre ) { - void (*preHookFunc) (struct config_t *config, int *options); + void (*preHookFunc) (struct config_t **config, int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_set_options_pre[hIndex].func; - preHookFunc(config, &options); + preHookFunc(&config, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36177,10 +36295,10 @@ void HP_libconfig_set_options(struct config_t *config, int options) { HPMHooks.source.libconfig.set_options(config, options); } if( HPMHooks.count.HP_libconfig_set_options_post ) { - void (*postHookFunc) (struct config_t *config, int *options); + void (*postHookFunc) (struct config_t *config, int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_options_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_set_options_post[hIndex].func; - postHookFunc(config, &options); + postHookFunc(config, options); } } return; @@ -36189,11 +36307,11 @@ int HP_libconfig_get_options(const struct config_t *config) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_get_options_pre ) { - int (*preHookFunc) (const struct config_t *config); + int (*preHookFunc) (const struct config_t **config); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_get_options_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_get_options_pre[hIndex].func; - retVal___ = preHookFunc(config); + retVal___ = preHookFunc(&config); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36216,11 +36334,11 @@ int HP_libconfig_read_string(struct config_t *config, const char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_read_string_pre ) { - int (*preHookFunc) (struct config_t *config, const char *str); + int (*preHookFunc) (struct config_t **config, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_read_string_pre[hIndex].func; - retVal___ = preHookFunc(config, str); + retVal___ = preHookFunc(&config, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36243,11 +36361,11 @@ int HP_libconfig_read_file_src(struct config_t *config, const char *filename) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_read_file_src_pre ) { - int (*preHookFunc) (struct config_t *config, const char *filename); + int (*preHookFunc) (struct config_t **config, const char **filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_read_file_src_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_read_file_src_pre[hIndex].func; - retVal___ = preHookFunc(config, filename); + retVal___ = preHookFunc(&config, &filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36270,11 +36388,11 @@ int HP_libconfig_write_file(struct config_t *config, const char *filename) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_write_file_pre ) { - int (*preHookFunc) (struct config_t *config, const char *filename); + int (*preHookFunc) (struct config_t **config, const char **filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_write_file_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_write_file_pre[hIndex].func; - retVal___ = preHookFunc(config, filename); + retVal___ = preHookFunc(&config, &filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36296,11 +36414,11 @@ int HP_libconfig_write_file(struct config_t *config, const char *filename) { void HP_libconfig_set_destructor(struct config_t *config, void ( *destructor ) (void *)) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_set_destructor_pre ) { - void (*preHookFunc) (struct config_t *config, void ( *destructor ) (void *)); + void (*preHookFunc) (struct config_t **config, void ( **destructor ) (void *)); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_destructor_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_set_destructor_pre[hIndex].func; - preHookFunc(config, destructor); + preHookFunc(&config, &destructor); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36322,11 +36440,11 @@ void HP_libconfig_set_destructor(struct config_t *config, void ( *destructor ) ( void HP_libconfig_set_include_dir(struct config_t *config, const char *include_dir) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_set_include_dir_pre ) { - void (*preHookFunc) (struct config_t *config, const char *include_dir); + void (*preHookFunc) (struct config_t **config, const char **include_dir); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_set_include_dir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_set_include_dir_pre[hIndex].func; - preHookFunc(config, include_dir); + preHookFunc(&config, &include_dir); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36348,11 +36466,11 @@ void HP_libconfig_set_include_dir(struct config_t *config, const char *include_d void HP_libconfig_init(struct config_t *config) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_init_pre ) { - void (*preHookFunc) (struct config_t *config); + void (*preHookFunc) (struct config_t **config); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_init_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_init_pre[hIndex].func; - preHookFunc(config); + preHookFunc(&config); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36374,11 +36492,11 @@ void HP_libconfig_init(struct config_t *config) { void HP_libconfig_destroy(struct config_t *config) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_destroy_pre ) { - void (*preHookFunc) (struct config_t *config); + void (*preHookFunc) (struct config_t **config); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_destroy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_destroy_pre[hIndex].func; - preHookFunc(config); + preHookFunc(&config); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36401,11 +36519,11 @@ int HP_libconfig_setting_get_int(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_int_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting); + int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36428,11 +36546,11 @@ long long HP_libconfig_setting_get_int64(const struct config_setting_t *setting) int hIndex = 0; long long retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_int64_pre ) { - long long (*preHookFunc) (const struct config_setting_t *setting); + long long (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36455,11 +36573,11 @@ double HP_libconfig_setting_get_float(const struct config_setting_t *setting) { int hIndex = 0; double retVal___ = 0.; if( HPMHooks.count.HP_libconfig_setting_get_float_pre ) { - double (*preHookFunc) (const struct config_setting_t *setting); + double (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36482,11 +36600,11 @@ int HP_libconfig_setting_get_bool(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_bool_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting); + int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36509,11 +36627,11 @@ const char* HP_libconfig_setting_get_string(const struct config_setting_t *setti int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_get_string_pre ) { - const char* (*preHookFunc) (const struct config_setting_t *setting); + const char* (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36536,11 +36654,11 @@ struct config_setting_t* HP_libconfig_setting_lookup(struct config_setting_t *se int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_lookup_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, const char *name); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_pre[hIndex].func; - retVal___ = preHookFunc(setting, name); + retVal___ = preHookFunc(&setting, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36563,11 +36681,11 @@ int HP_libconfig_setting_lookup_int(const struct config_setting_t *setting, cons int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_int_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, int *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36590,11 +36708,11 @@ int HP_libconfig_setting_lookup_int64(const struct config_setting_t *setting, co int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_int64_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, long long *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, long long **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int64_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int64_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36617,11 +36735,11 @@ int HP_libconfig_setting_lookup_float(const struct config_setting_t *setting, co int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_float_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, double *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, double **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_float_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_float_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36644,11 +36762,11 @@ int HP_libconfig_setting_lookup_bool(const struct config_setting_t *setting, con int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_bool_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, int *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36671,11 +36789,11 @@ int HP_libconfig_setting_lookup_string(const struct config_setting_t *setting, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_string_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, const char **value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, const char ***value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_string_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36698,11 +36816,11 @@ int HP_libconfig_setting_set_int(struct config_setting_t *setting, int value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_int_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, int *value); + int (*preHookFunc) (struct config_setting_t **setting, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_pre[hIndex].func; - retVal___ = preHookFunc(setting, &value); + retVal___ = preHookFunc(&setting, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36713,10 +36831,10 @@ int HP_libconfig_setting_set_int(struct config_setting_t *setting, int value) { retVal___ = HPMHooks.source.libconfig.setting_set_int(setting, value); } if( HPMHooks.count.HP_libconfig_setting_set_int_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int *value); + int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &value); + retVal___ = postHookFunc(retVal___, setting, value); } } return retVal___; @@ -36725,11 +36843,11 @@ int HP_libconfig_setting_set_int64(struct config_setting_t *setting, long long v int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_int64_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, long long *value); + int (*preHookFunc) (struct config_setting_t **setting, long long *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_pre[hIndex].func; - retVal___ = preHookFunc(setting, &value); + retVal___ = preHookFunc(&setting, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36740,10 +36858,10 @@ int HP_libconfig_setting_set_int64(struct config_setting_t *setting, long long v retVal___ = HPMHooks.source.libconfig.setting_set_int64(setting, value); } if( HPMHooks.count.HP_libconfig_setting_set_int64_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *setting, long long *value); + int (*postHookFunc) (int retVal___, struct config_setting_t *setting, long long value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &value); + retVal___ = postHookFunc(retVal___, setting, value); } } return retVal___; @@ -36752,11 +36870,11 @@ int HP_libconfig_setting_set_float(struct config_setting_t *setting, double valu int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_float_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, double *value); + int (*preHookFunc) (struct config_setting_t **setting, double *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_pre[hIndex].func; - retVal___ = preHookFunc(setting, &value); + retVal___ = preHookFunc(&setting, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36767,10 +36885,10 @@ int HP_libconfig_setting_set_float(struct config_setting_t *setting, double valu retVal___ = HPMHooks.source.libconfig.setting_set_float(setting, value); } if( HPMHooks.count.HP_libconfig_setting_set_float_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *setting, double *value); + int (*postHookFunc) (int retVal___, struct config_setting_t *setting, double value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &value); + retVal___ = postHookFunc(retVal___, setting, value); } } return retVal___; @@ -36779,11 +36897,11 @@ int HP_libconfig_setting_set_bool(struct config_setting_t *setting, int value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_bool_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, int *value); + int (*preHookFunc) (struct config_setting_t **setting, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_pre[hIndex].func; - retVal___ = preHookFunc(setting, &value); + retVal___ = preHookFunc(&setting, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36794,10 +36912,10 @@ int HP_libconfig_setting_set_bool(struct config_setting_t *setting, int value) { retVal___ = HPMHooks.source.libconfig.setting_set_bool(setting, value); } if( HPMHooks.count.HP_libconfig_setting_set_bool_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int *value); + int (*postHookFunc) (int retVal___, struct config_setting_t *setting, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &value); + retVal___ = postHookFunc(retVal___, setting, value); } } return retVal___; @@ -36806,11 +36924,11 @@ int HP_libconfig_setting_set_string(struct config_setting_t *setting, const char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_string_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, const char *value); + int (*preHookFunc) (struct config_setting_t **setting, const char **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_pre[hIndex].func; - retVal___ = preHookFunc(setting, value); + retVal___ = preHookFunc(&setting, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36833,11 +36951,11 @@ int HP_libconfig_setting_set_format(struct config_setting_t *setting, short form int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_set_format_pre ) { - int (*preHookFunc) (struct config_setting_t *setting, short *format); + int (*preHookFunc) (struct config_setting_t **setting, short *format); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_format_pre[hIndex].func; - retVal___ = preHookFunc(setting, &format); + retVal___ = preHookFunc(&setting, &format); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36848,10 +36966,10 @@ int HP_libconfig_setting_set_format(struct config_setting_t *setting, short form retVal___ = HPMHooks.source.libconfig.setting_set_format(setting, format); } if( HPMHooks.count.HP_libconfig_setting_set_format_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *setting, short *format); + int (*postHookFunc) (int retVal___, struct config_setting_t *setting, short format); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_format_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_format_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &format); + retVal___ = postHookFunc(retVal___, setting, format); } } return retVal___; @@ -36860,11 +36978,11 @@ short HP_libconfig_setting_get_format(const struct config_setting_t *setting) { int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_format_pre ) { - short (*preHookFunc) (const struct config_setting_t *setting); + short (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_format_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_format_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36887,11 +37005,11 @@ int HP_libconfig_setting_get_int_elem(const struct config_setting_t *setting, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_int_elem_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, int *idx); + int (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36902,10 +37020,10 @@ int HP_libconfig_setting_get_int_elem(const struct config_setting_t *setting, in retVal___ = HPMHooks.source.libconfig.setting_get_int_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_int_elem_post ) { - int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int *idx); + int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -36914,11 +37032,11 @@ long long HP_libconfig_setting_get_int64_elem(const struct config_setting_t *set int hIndex = 0; long long retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre ) { - long long (*preHookFunc) (const struct config_setting_t *setting, int *idx); + long long (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36929,10 +37047,10 @@ long long HP_libconfig_setting_get_int64_elem(const struct config_setting_t *set retVal___ = HPMHooks.source.libconfig.setting_get_int64_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_int64_elem_post ) { - long long (*postHookFunc) (long long retVal___, const struct config_setting_t *setting, int *idx); + long long (*postHookFunc) (long long retVal___, const struct config_setting_t *setting, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int64_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int64_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -36941,11 +37059,11 @@ double HP_libconfig_setting_get_float_elem(const struct config_setting_t *settin int hIndex = 0; double retVal___ = 0.; if( HPMHooks.count.HP_libconfig_setting_get_float_elem_pre ) { - double (*preHookFunc) (const struct config_setting_t *setting, int *idx); + double (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36956,10 +37074,10 @@ double HP_libconfig_setting_get_float_elem(const struct config_setting_t *settin retVal___ = HPMHooks.source.libconfig.setting_get_float_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_float_elem_post ) { - double (*postHookFunc) (double retVal___, const struct config_setting_t *setting, int *idx); + double (*postHookFunc) (double retVal___, const struct config_setting_t *setting, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_float_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_float_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -36968,11 +37086,11 @@ int HP_libconfig_setting_get_bool_elem(const struct config_setting_t *setting, i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, int *idx); + int (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -36983,10 +37101,10 @@ int HP_libconfig_setting_get_bool_elem(const struct config_setting_t *setting, i retVal___ = HPMHooks.source.libconfig.setting_get_bool_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_bool_elem_post ) { - int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int *idx); + int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -36995,11 +37113,11 @@ const char* HP_libconfig_setting_get_string_elem(const struct config_setting_t * int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_get_string_elem_pre ) { - const char* (*preHookFunc) (const struct config_setting_t *setting, int *idx); + const char* (*preHookFunc) (const struct config_setting_t **setting, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37010,10 +37128,10 @@ const char* HP_libconfig_setting_get_string_elem(const struct config_setting_t * retVal___ = HPMHooks.source.libconfig.setting_get_string_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_string_elem_post ) { - const char* (*postHookFunc) (const char* retVal___, const struct config_setting_t *setting, int *idx); + const char* (*postHookFunc) (const char* retVal___, const struct config_setting_t *setting, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_string_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_string_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -37022,11 +37140,11 @@ struct config_setting_t* HP_libconfig_setting_set_int_elem(struct config_setting int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_set_int_elem_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, int *idx, int *value); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx, &value); + retVal___ = preHookFunc(&setting, &idx, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37037,10 +37155,10 @@ struct config_setting_t* HP_libconfig_setting_set_int_elem(struct config_setting retVal___ = HPMHooks.source.libconfig.setting_set_int_elem(setting, idx, value); } if( HPMHooks.count.HP_libconfig_setting_set_int_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int *idx, int *value); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx, &value); + retVal___ = postHookFunc(retVal___, setting, idx, value); } } return retVal___; @@ -37049,11 +37167,11 @@ struct config_setting_t* HP_libconfig_setting_set_int64_elem(struct config_setti int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, int *idx, long long *value); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, long long *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx, &value); + retVal___ = preHookFunc(&setting, &idx, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37064,10 +37182,10 @@ struct config_setting_t* HP_libconfig_setting_set_int64_elem(struct config_setti retVal___ = HPMHooks.source.libconfig.setting_set_int64_elem(setting, idx, value); } if( HPMHooks.count.HP_libconfig_setting_set_int64_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int *idx, long long *value); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, long long value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_int64_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_int64_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx, &value); + retVal___ = postHookFunc(retVal___, setting, idx, value); } } return retVal___; @@ -37076,11 +37194,11 @@ struct config_setting_t* HP_libconfig_setting_set_float_elem(struct config_setti int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_set_float_elem_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, int *idx, double *value); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, double *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx, &value); + retVal___ = preHookFunc(&setting, &idx, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37091,10 +37209,10 @@ struct config_setting_t* HP_libconfig_setting_set_float_elem(struct config_setti retVal___ = HPMHooks.source.libconfig.setting_set_float_elem(setting, idx, value); } if( HPMHooks.count.HP_libconfig_setting_set_float_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int *idx, double *value); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, double value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_float_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_float_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx, &value); + retVal___ = postHookFunc(retVal___, setting, idx, value); } } return retVal___; @@ -37103,11 +37221,11 @@ struct config_setting_t* HP_libconfig_setting_set_bool_elem(struct config_settin int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, int *idx, int *value); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx, &value); + retVal___ = preHookFunc(&setting, &idx, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37118,10 +37236,10 @@ struct config_setting_t* HP_libconfig_setting_set_bool_elem(struct config_settin retVal___ = HPMHooks.source.libconfig.setting_set_bool_elem(setting, idx, value); } if( HPMHooks.count.HP_libconfig_setting_set_bool_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int *idx, int *value); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_bool_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_bool_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx, &value); + retVal___ = postHookFunc(retVal___, setting, idx, value); } } return retVal___; @@ -37130,11 +37248,11 @@ struct config_setting_t* HP_libconfig_setting_set_string_elem(struct config_sett int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_set_string_elem_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *setting, int *idx, const char *value); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **setting, int *idx, const char **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx, value); + retVal___ = preHookFunc(&setting, &idx, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37145,10 +37263,10 @@ struct config_setting_t* HP_libconfig_setting_set_string_elem(struct config_sett retVal___ = HPMHooks.source.libconfig.setting_set_string_elem(setting, idx, value); } if( HPMHooks.count.HP_libconfig_setting_set_string_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int *idx, const char *value); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *setting, int idx, const char *value); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_string_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_set_string_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx, value); + retVal___ = postHookFunc(retVal___, setting, idx, value); } } return retVal___; @@ -37157,11 +37275,11 @@ int HP_libconfig_setting_index(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_index_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting); + int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_index_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_index_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37184,11 +37302,11 @@ int HP_libconfig_setting_length(const struct config_setting_t *setting) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_length_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting); + int (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_length_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_length_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37211,11 +37329,11 @@ struct config_setting_t* HP_libconfig_setting_get_elem(const struct config_setti int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_get_elem_pre ) { - struct config_setting_t* (*preHookFunc) (const struct config_setting_t *setting, unsigned int *idx); + struct config_setting_t* (*preHookFunc) (const struct config_setting_t **setting, unsigned int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_elem_pre[hIndex].func; - retVal___ = preHookFunc(setting, &idx); + retVal___ = preHookFunc(&setting, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37226,10 +37344,10 @@ struct config_setting_t* HP_libconfig_setting_get_elem(const struct config_setti retVal___ = HPMHooks.source.libconfig.setting_get_elem(setting, idx); } if( HPMHooks.count.HP_libconfig_setting_get_elem_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, const struct config_setting_t *setting, unsigned int *idx); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, const struct config_setting_t *setting, unsigned int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_get_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, &idx); + retVal___ = postHookFunc(retVal___, setting, idx); } } return retVal___; @@ -37238,11 +37356,11 @@ struct config_setting_t* HP_libconfig_setting_get_member(const struct config_set int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_get_member_pre ) { - struct config_setting_t* (*preHookFunc) (const struct config_setting_t *setting, const char *name); + struct config_setting_t* (*preHookFunc) (const struct config_setting_t **setting, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_member_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_member_pre[hIndex].func; - retVal___ = preHookFunc(setting, name); + retVal___ = preHookFunc(&setting, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37265,11 +37383,11 @@ struct config_setting_t* HP_libconfig_setting_add(struct config_setting_t *paren int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_setting_add_pre ) { - struct config_setting_t* (*preHookFunc) (struct config_setting_t *parent, const char *name, int *type); + struct config_setting_t* (*preHookFunc) (struct config_setting_t **parent, const char **name, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_add_pre[hIndex].func; - retVal___ = preHookFunc(parent, name, &type); + retVal___ = preHookFunc(&parent, &name, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37280,10 +37398,10 @@ struct config_setting_t* HP_libconfig_setting_add(struct config_setting_t *paren retVal___ = HPMHooks.source.libconfig.setting_add(parent, name, type); } if( HPMHooks.count.HP_libconfig_setting_add_post ) { - struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *parent, const char *name, int *type); + struct config_setting_t* (*postHookFunc) (struct config_setting_t* retVal___, struct config_setting_t *parent, const char *name, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, parent, name, &type); + retVal___ = postHookFunc(retVal___, parent, name, type); } } return retVal___; @@ -37292,11 +37410,11 @@ int HP_libconfig_setting_remove(struct config_setting_t *parent, const char *nam int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_remove_pre ) { - int (*preHookFunc) (struct config_setting_t *parent, const char *name); + int (*preHookFunc) (struct config_setting_t **parent, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_remove_pre[hIndex].func; - retVal___ = preHookFunc(parent, name); + retVal___ = preHookFunc(&parent, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37319,11 +37437,11 @@ int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_remove_elem_pre ) { - int (*preHookFunc) (struct config_setting_t *parent, unsigned int *idx); + int (*preHookFunc) (struct config_setting_t **parent, unsigned int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_remove_elem_pre[hIndex].func; - retVal___ = preHookFunc(parent, &idx); + retVal___ = preHookFunc(&parent, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37334,10 +37452,10 @@ int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned i retVal___ = HPMHooks.source.libconfig.setting_remove_elem(parent, idx); } if( HPMHooks.count.HP_libconfig_setting_remove_elem_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *parent, unsigned int *idx); + int (*postHookFunc) (int retVal___, struct config_setting_t *parent, unsigned int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_remove_elem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_remove_elem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, parent, &idx); + retVal___ = postHookFunc(retVal___, parent, idx); } } return retVal___; @@ -37345,11 +37463,11 @@ int HP_libconfig_setting_remove_elem(struct config_setting_t *parent, unsigned i void HP_libconfig_setting_set_hook(struct config_setting_t *setting, void *hook) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_setting_set_hook_pre ) { - void (*preHookFunc) (struct config_setting_t *setting, void *hook); + void (*preHookFunc) (struct config_setting_t **setting, void **hook); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_set_hook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_set_hook_pre[hIndex].func; - preHookFunc(setting, hook); + preHookFunc(&setting, &hook); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37372,11 +37490,11 @@ struct config_setting_t* HP_libconfig_lookup(const struct config_t *config, cons int hIndex = 0; struct config_setting_t* retVal___ = NULL; if( HPMHooks.count.HP_libconfig_lookup_pre ) { - struct config_setting_t* (*preHookFunc) (const struct config_t *config, const char *filepath); + struct config_setting_t* (*preHookFunc) (const struct config_t **config, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath); + retVal___ = preHookFunc(&config, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37399,11 +37517,11 @@ int HP_libconfig_lookup_int(const struct config_t *config, const char *filepath, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_int_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *filepath, int *value); + int (*preHookFunc) (const struct config_t **config, const char **filepath, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_int_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath, value); + retVal___ = preHookFunc(&config, &filepath, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37426,11 +37544,11 @@ int HP_libconfig_lookup_int64(const struct config_t *config, const char *filepat int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_int64_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *filepath, long long *value); + int (*preHookFunc) (const struct config_t **config, const char **filepath, long long **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_int64_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_int64_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath, value); + retVal___ = preHookFunc(&config, &filepath, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37453,11 +37571,11 @@ int HP_libconfig_lookup_float(const struct config_t *config, const char *filepat int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_float_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *filepath, double *value); + int (*preHookFunc) (const struct config_t **config, const char **filepath, double **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_float_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_float_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath, value); + retVal___ = preHookFunc(&config, &filepath, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37480,11 +37598,11 @@ int HP_libconfig_lookup_bool(const struct config_t *config, const char *filepath int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_bool_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *filepath, int *value); + int (*preHookFunc) (const struct config_t **config, const char **filepath, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_bool_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_bool_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath, value); + retVal___ = preHookFunc(&config, &filepath, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37507,11 +37625,11 @@ int HP_libconfig_lookup_string(const struct config_t *config, const char *filepa int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_string_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *filepath, const char **value); + int (*preHookFunc) (const struct config_t **config, const char **filepath, const char ***value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_string_pre[hIndex].func; - retVal___ = preHookFunc(config, filepath, value); + retVal___ = preHookFunc(&config, &filepath, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37534,11 +37652,11 @@ int HP_libconfig_load_file(struct config_t *config, const char *config_filename) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_load_file_pre ) { - int (*preHookFunc) (struct config_t *config, const char *config_filename); + int (*preHookFunc) (struct config_t **config, const char **config_filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_load_file_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_load_file_pre[hIndex].func; - retVal___ = preHookFunc(config, config_filename); + retVal___ = preHookFunc(&config, &config_filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37560,11 +37678,11 @@ int HP_libconfig_load_file(struct config_t *config, const char *config_filename) void HP_libconfig_setting_copy_simple(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_setting_copy_simple_pre ) { - void (*preHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); + void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_simple_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_simple_pre[hIndex].func; - preHookFunc(parent, src); + preHookFunc(&parent, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37586,11 +37704,11 @@ void HP_libconfig_setting_copy_simple(struct config_setting_t *parent, const str void HP_libconfig_setting_copy_elem(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_setting_copy_elem_pre ) { - void (*preHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); + void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_elem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_elem_pre[hIndex].func; - preHookFunc(parent, src); + preHookFunc(&parent, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37612,11 +37730,11 @@ void HP_libconfig_setting_copy_elem(struct config_setting_t *parent, const struc void HP_libconfig_setting_copy_aggregate(struct config_setting_t *parent, const struct config_setting_t *src) { int hIndex = 0; if( HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre ) { - void (*preHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); + void (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_aggregate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_aggregate_pre[hIndex].func; - preHookFunc(parent, src); + preHookFunc(&parent, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37639,11 +37757,11 @@ int HP_libconfig_setting_copy(struct config_setting_t *parent, const struct conf int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_copy_pre ) { - int (*preHookFunc) (struct config_setting_t *parent, const struct config_setting_t *src); + int (*preHookFunc) (struct config_setting_t **parent, const struct config_setting_t **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_copy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_copy_pre[hIndex].func; - retVal___ = preHookFunc(parent, src); + retVal___ = preHookFunc(&parent, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37666,11 +37784,11 @@ bool HP_libconfig_setting_get_bool_real(const struct config_setting_t *setting) int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_libconfig_setting_get_bool_real_pre ) { - bool (*preHookFunc) (const struct config_setting_t *setting); + bool (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37693,11 +37811,11 @@ uint32 HP_libconfig_setting_get_uint32(const struct config_setting_t *setting) { int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_uint32_pre ) { - uint32 (*preHookFunc) (const struct config_setting_t *setting); + uint32 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37720,11 +37838,11 @@ uint16 HP_libconfig_setting_get_uint16(const struct config_setting_t *setting) { int hIndex = 0; uint16 retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_uint16_pre ) { - uint16 (*preHookFunc) (const struct config_setting_t *setting); + uint16 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37747,11 +37865,11 @@ int16 HP_libconfig_setting_get_int16(const struct config_setting_t *setting) { int hIndex = 0; int16 retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_get_int16_pre ) { - int16 (*preHookFunc) (const struct config_setting_t *setting); + int16 (*preHookFunc) (const struct config_setting_t **setting); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_pre[hIndex].func; - retVal___ = preHookFunc(setting); + retVal___ = preHookFunc(&setting); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37774,11 +37892,11 @@ int HP_libconfig_setting_lookup_bool_real(const struct config_setting_t *setting int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, bool *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, bool **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37801,11 +37919,11 @@ int HP_libconfig_setting_lookup_uint32(const struct config_setting_t *setting, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, uint32 *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, uint32 **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37828,11 +37946,11 @@ int HP_libconfig_setting_lookup_uint16(const struct config_setting_t *setting, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, uint16 *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, uint16 **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37855,11 +37973,11 @@ int HP_libconfig_setting_lookup_int16(const struct config_setting_t *setting, co int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_int16_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, int16 *value); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, int16 **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, value); + retVal___ = preHookFunc(&setting, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37882,11 +38000,11 @@ int HP_libconfig_setting_lookup_mutable_string(const struct config_setting_t *se int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre ) { - int (*preHookFunc) (const struct config_setting_t *setting, const char *name, char *out, size_t *out_size); + int (*preHookFunc) (const struct config_setting_t **setting, const char **name, char **out, size_t *out_size); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_pre[hIndex].func; - retVal___ = preHookFunc(setting, name, out, &out_size); + retVal___ = preHookFunc(&setting, &name, &out, &out_size); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37897,10 +38015,10 @@ int HP_libconfig_setting_lookup_mutable_string(const struct config_setting_t *se retVal___ = HPMHooks.source.libconfig.setting_lookup_mutable_string(setting, name, out, out_size); } if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post ) { - int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, char *out, size_t *out_size); + int (*postHookFunc) (int retVal___, const struct config_setting_t *setting, const char *name, char *out, size_t out_size); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_post[hIndex].func; - retVal___ = postHookFunc(retVal___, setting, name, out, &out_size); + retVal___ = postHookFunc(retVal___, setting, name, out, out_size); } } return retVal___; @@ -37909,11 +38027,11 @@ int HP_libconfig_lookup_mutable_string(const struct config_t *config, const char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libconfig_lookup_mutable_string_pre ) { - int (*preHookFunc) (const struct config_t *config, const char *name, char *out, size_t *out_size); + int (*preHookFunc) (const struct config_t **config, const char **name, char **out, size_t *out_size); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_pre[hIndex].func; - retVal___ = preHookFunc(config, name, out, &out_size); + retVal___ = preHookFunc(&config, &name, &out, &out_size); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37924,23 +38042,23 @@ int HP_libconfig_lookup_mutable_string(const struct config_t *config, const char retVal___ = HPMHooks.source.libconfig.lookup_mutable_string(config, name, out, out_size); } if( HPMHooks.count.HP_libconfig_lookup_mutable_string_post ) { - int (*postHookFunc) (int retVal___, const struct config_t *config, const char *name, char *out, size_t *out_size); + int (*postHookFunc) (int retVal___, const struct config_t *config, const char *name, char *out, size_t out_size); for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_post[hIndex].func; - retVal___ = postHookFunc(retVal___, config, name, out, &out_size); + retVal___ = postHookFunc(retVal___, config, name, out, out_size); } } return retVal___; } -/* logs */ +/* log_interface */ void HP_logs_pick_pc(struct map_session_data *sd, e_log_pick_type type, int amount, struct item *itm, struct item_data *data) { int hIndex = 0; if( HPMHooks.count.HP_logs_pick_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*preHookFunc) (struct map_session_data **sd, e_log_pick_type *type, int *amount, struct item **itm, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_pick_pc_pre[hIndex].func; - preHookFunc(sd, &type, &amount, itm, data); + preHookFunc(&sd, &type, &amount, &itm, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37951,10 +38069,10 @@ void HP_logs_pick_pc(struct map_session_data *sd, e_log_pick_type type, int amou HPMHooks.source.logs.pick_pc(sd, type, amount, itm, data); } if( HPMHooks.count.HP_logs_pick_pc_post ) { - void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type type, int amount, struct item *itm, struct item_data *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_pc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_pick_pc_post[hIndex].func; - postHookFunc(sd, &type, &amount, itm, data); + postHookFunc(sd, type, amount, itm, data); } } return; @@ -37962,11 +38080,11 @@ void HP_logs_pick_pc(struct map_session_data *sd, e_log_pick_type type, int amou void HP_logs_pick_mob(struct mob_data *md, e_log_pick_type type, int amount, struct item *itm, struct item_data *data) { int hIndex = 0; if( HPMHooks.count.HP_logs_pick_mob_pre ) { - void (*preHookFunc) (struct mob_data *md, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*preHookFunc) (struct mob_data **md, e_log_pick_type *type, int *amount, struct item **itm, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_mob_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_pick_mob_pre[hIndex].func; - preHookFunc(md, &type, &amount, itm, data); + preHookFunc(&md, &type, &amount, &itm, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -37977,10 +38095,10 @@ void HP_logs_pick_mob(struct mob_data *md, e_log_pick_type type, int amount, str HPMHooks.source.logs.pick_mob(md, type, amount, itm, data); } if( HPMHooks.count.HP_logs_pick_mob_post ) { - void (*postHookFunc) (struct mob_data *md, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*postHookFunc) (struct mob_data *md, e_log_pick_type type, int amount, struct item *itm, struct item_data *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_mob_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_pick_mob_post[hIndex].func; - postHookFunc(md, &type, &amount, itm, data); + postHookFunc(md, type, amount, itm, data); } } return; @@ -37988,11 +38106,11 @@ void HP_logs_pick_mob(struct mob_data *md, e_log_pick_type type, int amount, str void HP_logs_zeny(struct map_session_data *sd, e_log_pick_type type, struct map_session_data *src_sd, int amount) { int hIndex = 0; if( HPMHooks.count.HP_logs_zeny_pre ) { - void (*preHookFunc) (struct map_session_data *sd, e_log_pick_type *type, struct map_session_data *src_sd, int *amount); + void (*preHookFunc) (struct map_session_data **sd, e_log_pick_type *type, struct map_session_data **src_sd, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_zeny_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_zeny_pre[hIndex].func; - preHookFunc(sd, &type, src_sd, &amount); + preHookFunc(&sd, &type, &src_sd, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38003,10 +38121,10 @@ void HP_logs_zeny(struct map_session_data *sd, e_log_pick_type type, struct map_ HPMHooks.source.logs.zeny(sd, type, src_sd, amount); } if( HPMHooks.count.HP_logs_zeny_post ) { - void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type *type, struct map_session_data *src_sd, int *amount); + void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type type, struct map_session_data *src_sd, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_zeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_zeny_post[hIndex].func; - postHookFunc(sd, &type, src_sd, &amount); + postHookFunc(sd, type, src_sd, amount); } } return; @@ -38014,11 +38132,11 @@ void HP_logs_zeny(struct map_session_data *sd, e_log_pick_type type, struct map_ void HP_logs_npc(struct map_session_data *sd, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_npc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *message); + void (*preHookFunc) (struct map_session_data **sd, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_npc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_npc_pre[hIndex].func; - preHookFunc(sd, message); + preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38040,11 +38158,11 @@ void HP_logs_npc(struct map_session_data *sd, const char *message) { void HP_logs_chat(e_log_chat_type type, int type_id, int src_charid, int src_accid, const char *mapname, int x, int y, const char *dst_charname, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_chat_pre ) { - void (*preHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char *mapname, int *x, int *y, const char *dst_charname, const char *message); + void (*preHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char **mapname, int *x, int *y, const char **dst_charname, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_chat_pre[hIndex].func; - preHookFunc(&type, &type_id, &src_charid, &src_accid, mapname, &x, &y, dst_charname, message); + preHookFunc(&type, &type_id, &src_charid, &src_accid, &mapname, &x, &y, &dst_charname, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38055,10 +38173,10 @@ void HP_logs_chat(e_log_chat_type type, int type_id, int src_charid, int src_acc HPMHooks.source.logs.chat(type, type_id, src_charid, src_accid, mapname, x, y, dst_charname, message); } if( HPMHooks.count.HP_logs_chat_post ) { - void (*postHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char *mapname, int *x, int *y, const char *dst_charname, const char *message); + void (*postHookFunc) (e_log_chat_type type, int type_id, int src_charid, int src_accid, const char *mapname, int x, int y, const char *dst_charname, const char *message); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_chat_post[hIndex].func; - postHookFunc(&type, &type_id, &src_charid, &src_accid, mapname, &x, &y, dst_charname, message); + postHookFunc(type, type_id, src_charid, src_accid, mapname, x, y, dst_charname, message); } } return; @@ -38066,11 +38184,11 @@ void HP_logs_chat(e_log_chat_type type, int type_id, int src_charid, int src_acc void HP_logs_atcommand(struct map_session_data *sd, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_atcommand_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *message); + void (*preHookFunc) (struct map_session_data **sd, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_atcommand_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_atcommand_pre[hIndex].func; - preHookFunc(sd, message); + preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38092,11 +38210,11 @@ void HP_logs_atcommand(struct map_session_data *sd, const char *message) { void HP_logs_branch(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_logs_branch_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_branch_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_branch_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38118,11 +38236,11 @@ void HP_logs_branch(struct map_session_data *sd) { void HP_logs_mvpdrop(struct map_session_data *sd, int monster_id, int *log_mvp) { int hIndex = 0; if( HPMHooks.count.HP_logs_mvpdrop_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *monster_id, int *log_mvp); + void (*preHookFunc) (struct map_session_data **sd, int *monster_id, int **log_mvp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_mvpdrop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_mvpdrop_pre[hIndex].func; - preHookFunc(sd, &monster_id, log_mvp); + preHookFunc(&sd, &monster_id, &log_mvp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38133,10 +38251,10 @@ void HP_logs_mvpdrop(struct map_session_data *sd, int monster_id, int *log_mvp) HPMHooks.source.logs.mvpdrop(sd, monster_id, log_mvp); } if( HPMHooks.count.HP_logs_mvpdrop_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *monster_id, int *log_mvp); + void (*postHookFunc) (struct map_session_data *sd, int monster_id, int *log_mvp); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_mvpdrop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_mvpdrop_post[hIndex].func; - postHookFunc(sd, &monster_id, log_mvp); + postHookFunc(sd, monster_id, log_mvp); } } return; @@ -38144,11 +38262,11 @@ void HP_logs_mvpdrop(struct map_session_data *sd, int monster_id, int *log_mvp) void HP_logs_pick_sub(int id, int16 m, e_log_pick_type type, int amount, struct item *itm, struct item_data *data) { int hIndex = 0; if( HPMHooks.count.HP_logs_pick_sub_pre ) { - void (*preHookFunc) (int *id, int16 *m, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*preHookFunc) (int *id, int16 *m, e_log_pick_type *type, int *amount, struct item **itm, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_pick_sub_pre[hIndex].func; - preHookFunc(&id, &m, &type, &amount, itm, data); + preHookFunc(&id, &m, &type, &amount, &itm, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38159,10 +38277,10 @@ void HP_logs_pick_sub(int id, int16 m, e_log_pick_type type, int amount, struct HPMHooks.source.logs.pick_sub(id, m, type, amount, itm, data); } if( HPMHooks.count.HP_logs_pick_sub_post ) { - void (*postHookFunc) (int *id, int16 *m, e_log_pick_type *type, int *amount, struct item *itm, struct item_data *data); + void (*postHookFunc) (int id, int16 m, e_log_pick_type type, int amount, struct item *itm, struct item_data *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_pick_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_pick_sub_post[hIndex].func; - postHookFunc(&id, &m, &type, &amount, itm, data); + postHookFunc(id, m, type, amount, itm, data); } } return; @@ -38170,11 +38288,11 @@ void HP_logs_pick_sub(int id, int16 m, e_log_pick_type type, int amount, struct void HP_logs_zeny_sub(struct map_session_data *sd, e_log_pick_type type, struct map_session_data *src_sd, int amount) { int hIndex = 0; if( HPMHooks.count.HP_logs_zeny_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, e_log_pick_type *type, struct map_session_data *src_sd, int *amount); + void (*preHookFunc) (struct map_session_data **sd, e_log_pick_type *type, struct map_session_data **src_sd, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_zeny_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_zeny_sub_pre[hIndex].func; - preHookFunc(sd, &type, src_sd, &amount); + preHookFunc(&sd, &type, &src_sd, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38185,10 +38303,10 @@ void HP_logs_zeny_sub(struct map_session_data *sd, e_log_pick_type type, struct HPMHooks.source.logs.zeny_sub(sd, type, src_sd, amount); } if( HPMHooks.count.HP_logs_zeny_sub_post ) { - void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type *type, struct map_session_data *src_sd, int *amount); + void (*postHookFunc) (struct map_session_data *sd, e_log_pick_type type, struct map_session_data *src_sd, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_zeny_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_zeny_sub_post[hIndex].func; - postHookFunc(sd, &type, src_sd, &amount); + postHookFunc(sd, type, src_sd, amount); } } return; @@ -38196,11 +38314,11 @@ void HP_logs_zeny_sub(struct map_session_data *sd, e_log_pick_type type, struct void HP_logs_npc_sub(struct map_session_data *sd, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_npc_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *message); + void (*preHookFunc) (struct map_session_data **sd, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_npc_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_npc_sub_pre[hIndex].func; - preHookFunc(sd, message); + preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38222,11 +38340,11 @@ void HP_logs_npc_sub(struct map_session_data *sd, const char *message) { void HP_logs_chat_sub(e_log_chat_type type, int type_id, int src_charid, int src_accid, const char *mapname, int x, int y, const char *dst_charname, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_chat_sub_pre ) { - void (*preHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char *mapname, int *x, int *y, const char *dst_charname, const char *message); + void (*preHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char **mapname, int *x, int *y, const char **dst_charname, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chat_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_chat_sub_pre[hIndex].func; - preHookFunc(&type, &type_id, &src_charid, &src_accid, mapname, &x, &y, dst_charname, message); + preHookFunc(&type, &type_id, &src_charid, &src_accid, &mapname, &x, &y, &dst_charname, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38237,10 +38355,10 @@ void HP_logs_chat_sub(e_log_chat_type type, int type_id, int src_charid, int src HPMHooks.source.logs.chat_sub(type, type_id, src_charid, src_accid, mapname, x, y, dst_charname, message); } if( HPMHooks.count.HP_logs_chat_sub_post ) { - void (*postHookFunc) (e_log_chat_type *type, int *type_id, int *src_charid, int *src_accid, const char *mapname, int *x, int *y, const char *dst_charname, const char *message); + void (*postHookFunc) (e_log_chat_type type, int type_id, int src_charid, int src_accid, const char *mapname, int x, int y, const char *dst_charname, const char *message); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chat_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_chat_sub_post[hIndex].func; - postHookFunc(&type, &type_id, &src_charid, &src_accid, mapname, &x, &y, dst_charname, message); + postHookFunc(type, type_id, src_charid, src_accid, mapname, x, y, dst_charname, message); } } return; @@ -38248,11 +38366,11 @@ void HP_logs_chat_sub(e_log_chat_type type, int type_id, int src_charid, int src void HP_logs_atcommand_sub(struct map_session_data *sd, const char *message) { int hIndex = 0; if( HPMHooks.count.HP_logs_atcommand_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *message); + void (*preHookFunc) (struct map_session_data **sd, const char **message); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_atcommand_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_atcommand_sub_pre[hIndex].func; - preHookFunc(sd, message); + preHookFunc(&sd, &message); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38274,11 +38392,11 @@ void HP_logs_atcommand_sub(struct map_session_data *sd, const char *message) { void HP_logs_branch_sub(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_logs_branch_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_branch_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_branch_sub_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38300,11 +38418,11 @@ void HP_logs_branch_sub(struct map_session_data *sd) { void HP_logs_mvpdrop_sub(struct map_session_data *sd, int monster_id, int *log_mvp) { int hIndex = 0; if( HPMHooks.count.HP_logs_mvpdrop_sub_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *monster_id, int *log_mvp); + void (*preHookFunc) (struct map_session_data **sd, int *monster_id, int **log_mvp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_mvpdrop_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_mvpdrop_sub_pre[hIndex].func; - preHookFunc(sd, &monster_id, log_mvp); + preHookFunc(&sd, &monster_id, &log_mvp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38315,10 +38433,10 @@ void HP_logs_mvpdrop_sub(struct map_session_data *sd, int monster_id, int *log_m HPMHooks.source.logs.mvpdrop_sub(sd, monster_id, log_mvp); } if( HPMHooks.count.HP_logs_mvpdrop_sub_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *monster_id, int *log_mvp); + void (*postHookFunc) (struct map_session_data *sd, int monster_id, int *log_mvp); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_mvpdrop_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_mvpdrop_sub_post[hIndex].func; - postHookFunc(sd, &monster_id, log_mvp); + postHookFunc(sd, monster_id, log_mvp); } } return; @@ -38327,11 +38445,11 @@ int HP_logs_config_read(const char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_logs_config_read_pre ) { - int (*preHookFunc) (const char *cfgName); + int (*preHookFunc) (const char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_config_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38447,10 +38565,10 @@ char HP_logs_picktype2char(e_log_pick_type type) { retVal___ = HPMHooks.source.logs.picktype2char(type); } if( HPMHooks.count.HP_logs_picktype2char_post ) { - char (*postHookFunc) (char retVal___, e_log_pick_type *type); + char (*postHookFunc) (char retVal___, e_log_pick_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_picktype2char_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_picktype2char_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; @@ -38474,10 +38592,10 @@ char HP_logs_chattype2char(e_log_chat_type type) { retVal___ = HPMHooks.source.logs.chattype2char(type); } if( HPMHooks.count.HP_logs_chattype2char_post ) { - char (*postHookFunc) (char retVal___, e_log_chat_type *type); + char (*postHookFunc) (char retVal___, e_log_chat_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chattype2char_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_chattype2char_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; @@ -38486,11 +38604,11 @@ bool HP_logs_should_log_item(int nameid, int amount, int refine, struct item_dat int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_logs_should_log_item_pre ) { - bool (*preHookFunc) (int *nameid, int *amount, int *refine, struct item_data *id); + bool (*preHookFunc) (int *nameid, int *amount, int *refine, struct item_data **id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_should_log_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_logs_should_log_item_pre[hIndex].func; - retVal___ = preHookFunc(&nameid, &amount, &refine, id); + retVal___ = preHookFunc(&nameid, &amount, &refine, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38501,23 +38619,23 @@ bool HP_logs_should_log_item(int nameid, int amount, int refine, struct item_dat retVal___ = HPMHooks.source.logs.should_log_item(nameid, amount, refine, id); } if( HPMHooks.count.HP_logs_should_log_item_post ) { - bool (*postHookFunc) (bool retVal___, int *nameid, int *amount, int *refine, struct item_data *id); + bool (*postHookFunc) (bool retVal___, int nameid, int amount, int refine, struct item_data *id); for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_should_log_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_logs_should_log_item_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid, &amount, &refine, id); + retVal___ = postHookFunc(retVal___, nameid, amount, refine, id); } } return retVal___; } -/* mail */ +/* mail_interface */ void HP_mail_clear(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_mail_clear_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_clear_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38540,11 +38658,11 @@ int HP_mail_removeitem(struct map_session_data *sd, short flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mail_removeitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, short *flag); + int (*preHookFunc) (struct map_session_data **sd, short *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_removeitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38555,10 +38673,10 @@ int HP_mail_removeitem(struct map_session_data *sd, short flag) { retVal___ = HPMHooks.source.mail.removeitem(sd, flag); } if( HPMHooks.count.HP_mail_removeitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, short *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, short flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removeitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mail_removeitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -38567,11 +38685,11 @@ int HP_mail_removezeny(struct map_session_data *sd, short flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mail_removezeny_pre ) { - int (*preHookFunc) (struct map_session_data *sd, short *flag); + int (*preHookFunc) (struct map_session_data **sd, short *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removezeny_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_removezeny_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38582,10 +38700,10 @@ int HP_mail_removezeny(struct map_session_data *sd, short flag) { retVal___ = HPMHooks.source.mail.removezeny(sd, flag); } if( HPMHooks.count.HP_mail_removezeny_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, short *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, short flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removezeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mail_removezeny_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -38594,11 +38712,11 @@ unsigned char HP_mail_setitem(struct map_session_data *sd, int idx, int amount) int hIndex = 0; unsigned char retVal___ = 0; if( HPMHooks.count.HP_mail_setitem_pre ) { - unsigned char (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount); + unsigned char (*preHookFunc) (struct map_session_data **sd, int *idx, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_setitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_setitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx, &amount); + retVal___ = preHookFunc(&sd, &idx, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38609,10 +38727,10 @@ unsigned char HP_mail_setitem(struct map_session_data *sd, int idx, int amount) retVal___ = HPMHooks.source.mail.setitem(sd, idx, amount); } if( HPMHooks.count.HP_mail_setitem_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, struct map_session_data *sd, int *idx, int *amount); + unsigned char (*postHookFunc) (unsigned char retVal___, struct map_session_data *sd, int idx, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_setitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mail_setitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx, &amount); + retVal___ = postHookFunc(retVal___, sd, idx, amount); } } return retVal___; @@ -38621,11 +38739,11 @@ bool HP_mail_setattachment(struct map_session_data *sd, struct mail_message *msg int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mail_setattachment_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct mail_message *msg); + bool (*preHookFunc) (struct map_session_data **sd, struct mail_message **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_setattachment_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_setattachment_pre[hIndex].func; - retVal___ = preHookFunc(sd, msg); + retVal___ = preHookFunc(&sd, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38647,11 +38765,11 @@ bool HP_mail_setattachment(struct map_session_data *sd, struct mail_message *msg void HP_mail_getattachment(struct map_session_data *sd, int zeny, struct item *item) { int hIndex = 0; if( HPMHooks.count.HP_mail_getattachment_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *zeny, struct item *item); + void (*preHookFunc) (struct map_session_data **sd, int *zeny, struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_getattachment_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_getattachment_pre[hIndex].func; - preHookFunc(sd, &zeny, item); + preHookFunc(&sd, &zeny, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38662,10 +38780,10 @@ void HP_mail_getattachment(struct map_session_data *sd, int zeny, struct item *i HPMHooks.source.mail.getattachment(sd, zeny, item); } if( HPMHooks.count.HP_mail_getattachment_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *zeny, struct item *item); + void (*postHookFunc) (struct map_session_data *sd, int zeny, struct item *item); for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_getattachment_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mail_getattachment_post[hIndex].func; - postHookFunc(sd, &zeny, item); + postHookFunc(sd, zeny, item); } } return; @@ -38674,11 +38792,11 @@ int HP_mail_openmail(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mail_openmail_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_openmail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_openmail_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38700,11 +38818,11 @@ int HP_mail_openmail(struct map_session_data *sd) { void HP_mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg) { int hIndex = 0; if( HPMHooks.count.HP_mail_deliveryfail_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct mail_message *msg); + void (*preHookFunc) (struct map_session_data **sd, struct mail_message **msg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_deliveryfail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_deliveryfail_pre[hIndex].func; - preHookFunc(sd, msg); + preHookFunc(&sd, &msg); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38727,11 +38845,11 @@ bool HP_mail_invalid_operation(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mail_invalid_operation_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_invalid_operation_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mail_invalid_operation_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38750,7 +38868,7 @@ bool HP_mail_invalid_operation(struct map_session_data *sd) { } return retVal___; } -/* iMalloc */ +/* malloc_interface */ void HP_iMalloc_init(void) { int hIndex = 0; if( HPMHooks.count.HP_iMalloc_init_pre ) { @@ -38807,11 +38925,11 @@ void* HP_iMalloc_malloc(size_t size, const char *file, int line, const char *fun int hIndex = 0; void* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_malloc_pre ) { - void* (*preHookFunc) (size_t *size, const char *file, int *line, const char *func); + void* (*preHookFunc) (size_t *size, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_malloc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_malloc_pre[hIndex].func; - retVal___ = preHookFunc(&size, file, &line, func); + retVal___ = preHookFunc(&size, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38822,10 +38940,10 @@ void* HP_iMalloc_malloc(size_t size, const char *file, int line, const char *fun retVal___ = HPMHooks.source.iMalloc.malloc(size, file, line, func); } if( HPMHooks.count.HP_iMalloc_malloc_post ) { - void* (*postHookFunc) (void* retVal___, size_t *size, const char *file, int *line, const char *func); + void* (*postHookFunc) (void* retVal___, size_t size, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_malloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_malloc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &size, file, &line, func); + retVal___ = postHookFunc(retVal___, size, file, line, func); } } return retVal___; @@ -38834,11 +38952,11 @@ void* HP_iMalloc_calloc(size_t num, size_t size, const char *file, int line, con int hIndex = 0; void* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_calloc_pre ) { - void* (*preHookFunc) (size_t *num, size_t *size, const char *file, int *line, const char *func); + void* (*preHookFunc) (size_t *num, size_t *size, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_calloc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_calloc_pre[hIndex].func; - retVal___ = preHookFunc(&num, &size, file, &line, func); + retVal___ = preHookFunc(&num, &size, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38849,10 +38967,10 @@ void* HP_iMalloc_calloc(size_t num, size_t size, const char *file, int line, con retVal___ = HPMHooks.source.iMalloc.calloc(num, size, file, line, func); } if( HPMHooks.count.HP_iMalloc_calloc_post ) { - void* (*postHookFunc) (void* retVal___, size_t *num, size_t *size, const char *file, int *line, const char *func); + void* (*postHookFunc) (void* retVal___, size_t num, size_t size, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_calloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_calloc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &num, &size, file, &line, func); + retVal___ = postHookFunc(retVal___, num, size, file, line, func); } } return retVal___; @@ -38861,11 +38979,11 @@ void* HP_iMalloc_realloc(void *p, size_t size, const char *file, int line, const int hIndex = 0; void* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_realloc_pre ) { - void* (*preHookFunc) (void *p, size_t *size, const char *file, int *line, const char *func); + void* (*preHookFunc) (void **p, size_t *size, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_realloc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_realloc_pre[hIndex].func; - retVal___ = preHookFunc(p, &size, file, &line, func); + retVal___ = preHookFunc(&p, &size, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38876,10 +38994,10 @@ void* HP_iMalloc_realloc(void *p, size_t size, const char *file, int line, const retVal___ = HPMHooks.source.iMalloc.realloc(p, size, file, line, func); } if( HPMHooks.count.HP_iMalloc_realloc_post ) { - void* (*postHookFunc) (void* retVal___, void *p, size_t *size, const char *file, int *line, const char *func); + void* (*postHookFunc) (void* retVal___, void *p, size_t size, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_realloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_realloc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, &size, file, &line, func); + retVal___ = postHookFunc(retVal___, p, size, file, line, func); } } return retVal___; @@ -38888,11 +39006,11 @@ void* HP_iMalloc_reallocz(void *p, size_t size, const char *file, int line, cons int hIndex = 0; void* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_reallocz_pre ) { - void* (*preHookFunc) (void *p, size_t *size, const char *file, int *line, const char *func); + void* (*preHookFunc) (void **p, size_t *size, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_reallocz_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_reallocz_pre[hIndex].func; - retVal___ = preHookFunc(p, &size, file, &line, func); + retVal___ = preHookFunc(&p, &size, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38903,10 +39021,10 @@ void* HP_iMalloc_reallocz(void *p, size_t size, const char *file, int line, cons retVal___ = HPMHooks.source.iMalloc.reallocz(p, size, file, line, func); } if( HPMHooks.count.HP_iMalloc_reallocz_post ) { - void* (*postHookFunc) (void* retVal___, void *p, size_t *size, const char *file, int *line, const char *func); + void* (*postHookFunc) (void* retVal___, void *p, size_t size, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_reallocz_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_reallocz_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, &size, file, &line, func); + retVal___ = postHookFunc(retVal___, p, size, file, line, func); } } return retVal___; @@ -38915,11 +39033,11 @@ char* HP_iMalloc_astrdup(const char *p, const char *file, int line, const char * int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_astrdup_pre ) { - char* (*preHookFunc) (const char *p, const char *file, int *line, const char *func); + char* (*preHookFunc) (const char **p, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_astrdup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_astrdup_pre[hIndex].func; - retVal___ = preHookFunc(p, file, &line, func); + retVal___ = preHookFunc(&p, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38930,10 +39048,10 @@ char* HP_iMalloc_astrdup(const char *p, const char *file, int line, const char * retVal___ = HPMHooks.source.iMalloc.astrdup(p, file, line, func); } if( HPMHooks.count.HP_iMalloc_astrdup_post ) { - char* (*postHookFunc) (char* retVal___, const char *p, const char *file, int *line, const char *func); + char* (*postHookFunc) (char* retVal___, const char *p, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_astrdup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_astrdup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, file, &line, func); + retVal___ = postHookFunc(retVal___, p, file, line, func); } } return retVal___; @@ -38942,11 +39060,11 @@ char* HP_iMalloc_astrndup(const char *p, size_t size, const char *file, int line int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_iMalloc_astrndup_pre ) { - char* (*preHookFunc) (const char *p, size_t *size, const char *file, int *line, const char *func); + char* (*preHookFunc) (const char **p, size_t *size, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_astrndup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_astrndup_pre[hIndex].func; - retVal___ = preHookFunc(p, &size, file, &line, func); + retVal___ = preHookFunc(&p, &size, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38957,10 +39075,10 @@ char* HP_iMalloc_astrndup(const char *p, size_t size, const char *file, int line retVal___ = HPMHooks.source.iMalloc.astrndup(p, size, file, line, func); } if( HPMHooks.count.HP_iMalloc_astrndup_post ) { - char* (*postHookFunc) (char* retVal___, const char *p, size_t *size, const char *file, int *line, const char *func); + char* (*postHookFunc) (char* retVal___, const char *p, size_t size, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_astrndup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_astrndup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, &size, file, &line, func); + retVal___ = postHookFunc(retVal___, p, size, file, line, func); } } return retVal___; @@ -38968,11 +39086,11 @@ char* HP_iMalloc_astrndup(const char *p, size_t size, const char *file, int line void HP_iMalloc_free(void *p, const char *file, int line, const char *func) { int hIndex = 0; if( HPMHooks.count.HP_iMalloc_free_pre ) { - void (*preHookFunc) (void *p, const char *file, int *line, const char *func); + void (*preHookFunc) (void **p, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_free_pre[hIndex].func; - preHookFunc(p, file, &line, func); + preHookFunc(&p, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -38983,10 +39101,10 @@ void HP_iMalloc_free(void *p, const char *file, int line, const char *func) { HPMHooks.source.iMalloc.free(p, file, line, func); } if( HPMHooks.count.HP_iMalloc_free_post ) { - void (*postHookFunc) (void *p, const char *file, int *line, const char *func); + void (*postHookFunc) (void *p, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_free_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_iMalloc_free_post[hIndex].func; - postHookFunc(p, file, &line, func); + postHookFunc(p, file, line, func); } } return; @@ -39021,11 +39139,11 @@ bool HP_iMalloc_verify_ptr(void *ptr) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_iMalloc_verify_ptr_pre ) { - bool (*preHookFunc) (void *ptr); + bool (*preHookFunc) (void **ptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_iMalloc_verify_ptr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_iMalloc_verify_ptr_pre[hIndex].func; - retVal___ = preHookFunc(ptr); + retVal___ = preHookFunc(&ptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39123,7 +39241,7 @@ void HP_iMalloc_init_messages(void) { } return; } -/* map */ +/* map_interface */ void HP_map_zone_init(void) { int hIndex = 0; if( HPMHooks.count.HP_map_zone_init_pre ) { @@ -39168,10 +39286,10 @@ void HP_map_zone_remove(int m) { HPMHooks.source.map.zone_remove(m); } if( HPMHooks.count.HP_map_zone_remove_post ) { - void (*postHookFunc) (int *m); + void (*postHookFunc) (int m); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_remove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_zone_remove_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -39179,11 +39297,11 @@ void HP_map_zone_remove(int m) { void HP_map_zone_apply(int m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath) { int hIndex = 0; if( HPMHooks.count.HP_map_zone_apply_pre ) { - void (*preHookFunc) (int *m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); + void (*preHookFunc) (int *m, struct map_zone_data **zone, const char **start, const char **buffer, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_apply_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_apply_pre[hIndex].func; - preHookFunc(&m, zone, start, buffer, filepath); + preHookFunc(&m, &zone, &start, &buffer, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39194,10 +39312,10 @@ void HP_map_zone_apply(int m, struct map_zone_data *zone, const char *start, con HPMHooks.source.map.zone_apply(m, zone, start, buffer, filepath); } if( HPMHooks.count.HP_map_zone_apply_post ) { - void (*postHookFunc) (int *m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); + void (*postHookFunc) (int m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_apply_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_zone_apply_post[hIndex].func; - postHookFunc(&m, zone, start, buffer, filepath); + postHookFunc(m, zone, start, buffer, filepath); } } return; @@ -39205,11 +39323,11 @@ void HP_map_zone_apply(int m, struct map_zone_data *zone, const char *start, con void HP_map_zone_change(int m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath) { int hIndex = 0; if( HPMHooks.count.HP_map_zone_change_pre ) { - void (*preHookFunc) (int *m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); + void (*preHookFunc) (int *m, struct map_zone_data **zone, const char **start, const char **buffer, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_change_pre[hIndex].func; - preHookFunc(&m, zone, start, buffer, filepath); + preHookFunc(&m, &zone, &start, &buffer, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39220,10 +39338,10 @@ void HP_map_zone_change(int m, struct map_zone_data *zone, const char *start, co HPMHooks.source.map.zone_change(m, zone, start, buffer, filepath); } if( HPMHooks.count.HP_map_zone_change_post ) { - void (*postHookFunc) (int *m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); + void (*postHookFunc) (int m, struct map_zone_data *zone, const char *start, const char *buffer, const char *filepath); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_zone_change_post[hIndex].func; - postHookFunc(&m, zone, start, buffer, filepath); + postHookFunc(m, zone, start, buffer, filepath); } } return; @@ -39231,11 +39349,11 @@ void HP_map_zone_change(int m, struct map_zone_data *zone, const char *start, co void HP_map_zone_change2(int m, struct map_zone_data *zone) { int hIndex = 0; if( HPMHooks.count.HP_map_zone_change2_pre ) { - void (*preHookFunc) (int *m, struct map_zone_data *zone); + void (*preHookFunc) (int *m, struct map_zone_data **zone); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_change2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_change2_pre[hIndex].func; - preHookFunc(&m, zone); + preHookFunc(&m, &zone); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39246,10 +39364,10 @@ void HP_map_zone_change2(int m, struct map_zone_data *zone) { HPMHooks.source.map.zone_change2(m, zone); } if( HPMHooks.count.HP_map_zone_change2_post ) { - void (*postHookFunc) (int *m, struct map_zone_data *zone); + void (*postHookFunc) (int m, struct map_zone_data *zone); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_change2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_zone_change2_post[hIndex].func; - postHookFunc(&m, zone); + postHookFunc(m, zone); } } return; @@ -39258,11 +39376,11 @@ int HP_map_getcell(int16 m, const struct block_list *bl, int16 x, int16 y, cell_ int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_getcell_pre ) { - int (*preHookFunc) (int16 *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*preHookFunc) (int16 *m, const struct block_list **bl, int16 *x, int16 *y, cell_chk *cellchk); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_getcell_pre[hIndex].func; - retVal___ = preHookFunc(&m, bl, &x, &y, &cellchk); + retVal___ = preHookFunc(&m, &bl, &x, &y, &cellchk); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39273,10 +39391,10 @@ int HP_map_getcell(int16 m, const struct block_list *bl, int16 x, int16 y, cell_ retVal___ = HPMHooks.source.map.getcell(m, bl, x, y, cellchk); } if( HPMHooks.count.HP_map_getcell_post ) { - int (*postHookFunc) (int retVal___, int16 *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*postHookFunc) (int retVal___, int16 m, const struct block_list *bl, int16 x, int16 y, cell_chk cellchk); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_getcell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, bl, &x, &y, &cellchk); + retVal___ = postHookFunc(retVal___, m, bl, x, y, cellchk); } } return retVal___; @@ -39299,10 +39417,10 @@ void HP_map_setgatcell(int16 m, int16 x, int16 y, int gat) { HPMHooks.source.map.setgatcell(m, x, y, gat); } if( HPMHooks.count.HP_map_setgatcell_post ) { - void (*postHookFunc) (int16 *m, int16 *x, int16 *y, int *gat); + void (*postHookFunc) (int16 m, int16 x, int16 y, int gat); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_setgatcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_setgatcell_post[hIndex].func; - postHookFunc(&m, &x, &y, &gat); + postHookFunc(m, x, y, gat); } } return; @@ -39310,11 +39428,11 @@ void HP_map_setgatcell(int16 m, int16 x, int16 y, int gat) { void HP_map_cellfromcache(struct map_data *m) { int hIndex = 0; if( HPMHooks.count.HP_map_cellfromcache_pre ) { - void (*preHookFunc) (struct map_data *m); + void (*preHookFunc) (struct map_data **m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cellfromcache_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_cellfromcache_pre[hIndex].func; - preHookFunc(m); + preHookFunc(&m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39351,10 +39469,10 @@ void HP_map_setusers(int p1) { HPMHooks.source.map.setusers(p1); } if( HPMHooks.count.HP_map_setusers_post ) { - void (*postHookFunc) (int *p1); + void (*postHookFunc) (int p1); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_setusers_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_setusers_post[hIndex].func; - postHookFunc(&p1); + postHookFunc(p1); } } return; @@ -39417,11 +39535,11 @@ int HP_map_freeblock(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_freeblock_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_freeblock_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39498,11 +39616,11 @@ int HP_map_addblock(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_addblock_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addblock_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39525,11 +39643,11 @@ int HP_map_delblock(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_delblock_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_delblock_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39552,11 +39670,11 @@ int HP_map_moveblock(struct block_list *bl, int x1, int y1, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_moveblock_pre ) { - int (*preHookFunc) (struct block_list *bl, int *x1, int *y1, int64 *tick); + int (*preHookFunc) (struct block_list **bl, int *x1, int *y1, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_moveblock_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_moveblock_pre[hIndex].func; - retVal___ = preHookFunc(bl, &x1, &y1, &tick); + retVal___ = preHookFunc(&bl, &x1, &y1, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39567,10 +39685,10 @@ int HP_map_moveblock(struct block_list *bl, int x1, int y1, int64 tick) { retVal___ = HPMHooks.source.map.moveblock(bl, x1, y1, tick); } if( HPMHooks.count.HP_map_moveblock_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *x1, int *y1, int64 *tick); + int (*postHookFunc) (int retVal___, struct block_list *bl, int x1, int y1, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_moveblock_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_moveblock_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &x1, &y1, &tick); + retVal___ = postHookFunc(retVal___, bl, x1, y1, tick); } } return retVal___; @@ -39594,10 +39712,10 @@ int HP_map_count_oncell(int16 m, int16 x, int16 y, int type, int flag) { retVal___ = HPMHooks.source.map.count_oncell(m, x, y, type, flag); } if( HPMHooks.count.HP_map_count_oncell_post ) { - int (*postHookFunc) (int retVal___, int16 *m, int16 *x, int16 *y, int *type, int *flag); + int (*postHookFunc) (int retVal___, int16 m, int16 x, int16 y, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_count_oncell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_count_oncell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, &x, &y, &type, &flag); + retVal___ = postHookFunc(retVal___, m, x, y, type, flag); } } return retVal___; @@ -39606,11 +39724,11 @@ struct skill_unit* HP_map_find_skill_unit_oncell(struct block_list *target, int1 int hIndex = 0; struct skill_unit* retVal___ = NULL; if( HPMHooks.count.HP_map_find_skill_unit_oncell_pre ) { - struct skill_unit* (*preHookFunc) (struct block_list *target, int16 *x, int16 *y, uint16 *skill_id, struct skill_unit *out_unit, int *flag); + struct skill_unit* (*preHookFunc) (struct block_list **target, int16 *x, int16 *y, uint16 *skill_id, struct skill_unit **out_unit, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_find_skill_unit_oncell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_find_skill_unit_oncell_pre[hIndex].func; - retVal___ = preHookFunc(target, &x, &y, &skill_id, out_unit, &flag); + retVal___ = preHookFunc(&target, &x, &y, &skill_id, &out_unit, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39621,10 +39739,10 @@ struct skill_unit* HP_map_find_skill_unit_oncell(struct block_list *target, int1 retVal___ = HPMHooks.source.map.find_skill_unit_oncell(target, x, y, skill_id, out_unit, flag); } if( HPMHooks.count.HP_map_find_skill_unit_oncell_post ) { - struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, struct block_list *target, int16 *x, int16 *y, uint16 *skill_id, struct skill_unit *out_unit, int *flag); + struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, struct block_list *target, int16 x, int16 y, uint16 skill_id, struct skill_unit *out_unit, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_find_skill_unit_oncell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_find_skill_unit_oncell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, target, &x, &y, &skill_id, out_unit, &flag); + retVal___ = postHookFunc(retVal___, target, x, y, skill_id, out_unit, flag); } } return retVal___; @@ -39660,11 +39778,11 @@ int HP_map_search_freecell(struct block_list *src, int16 m, int16 *x, int16 *y, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_search_freecell_pre ) { - int (*preHookFunc) (struct block_list *src, int16 *m, int16 *x, int16 *y, int16 *rx, int16 *ry, int *flag); + int (*preHookFunc) (struct block_list **src, int16 *m, int16 **x, int16 **y, int16 *rx, int16 *ry, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_search_freecell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_search_freecell_pre[hIndex].func; - retVal___ = preHookFunc(src, &m, x, y, &rx, &ry, &flag); + retVal___ = preHookFunc(&src, &m, &x, &y, &rx, &ry, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39675,10 +39793,10 @@ int HP_map_search_freecell(struct block_list *src, int16 m, int16 *x, int16 *y, retVal___ = HPMHooks.source.map.search_freecell(src, m, x, y, rx, ry, flag); } if( HPMHooks.count.HP_map_search_freecell_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int16 *m, int16 *x, int16 *y, int16 *rx, int16 *ry, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, int16 m, int16 *x, int16 *y, int16 rx, int16 ry, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_search_freecell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_search_freecell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &m, x, y, &rx, &ry, &flag); + retVal___ = postHookFunc(retVal___, src, m, x, y, rx, ry, flag); } } return retVal___; @@ -39687,11 +39805,11 @@ bool HP_map_closest_freecell(int16 m, const struct block_list *bl, int16 *x, int int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_map_closest_freecell_pre ) { - bool (*preHookFunc) (int16 *m, const struct block_list *bl, int16 *x, int16 *y, int *type, int *flag); + bool (*preHookFunc) (int16 *m, const struct block_list **bl, int16 **x, int16 **y, int *type, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_closest_freecell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_closest_freecell_pre[hIndex].func; - retVal___ = preHookFunc(&m, bl, x, y, &type, &flag); + retVal___ = preHookFunc(&m, &bl, &x, &y, &type, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39702,10 +39820,10 @@ bool HP_map_closest_freecell(int16 m, const struct block_list *bl, int16 *x, int retVal___ = HPMHooks.source.map.closest_freecell(m, bl, x, y, type, flag); } if( HPMHooks.count.HP_map_closest_freecell_post ) { - bool (*postHookFunc) (bool retVal___, int16 *m, const struct block_list *bl, int16 *x, int16 *y, int *type, int *flag); + bool (*postHookFunc) (bool retVal___, int16 m, const struct block_list *bl, int16 *x, int16 *y, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_closest_freecell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_closest_freecell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, bl, x, y, &type, &flag); + retVal___ = postHookFunc(retVal___, m, bl, x, y, type, flag); } } return retVal___; @@ -39714,11 +39832,11 @@ int HP_map_quit(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_quit_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_quit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_quit_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39741,11 +39859,11 @@ bool HP_map_addnpc(int16 m, struct npc_data *nd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_map_addnpc_pre ) { - bool (*preHookFunc) (int16 *m, struct npc_data *nd); + bool (*preHookFunc) (int16 *m, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addnpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addnpc_pre[hIndex].func; - retVal___ = preHookFunc(&m, nd); + retVal___ = preHookFunc(&m, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39756,10 +39874,10 @@ bool HP_map_addnpc(int16 m, struct npc_data *nd) { retVal___ = HPMHooks.source.map.addnpc(m, nd); } if( HPMHooks.count.HP_map_addnpc_post ) { - bool (*postHookFunc) (bool retVal___, int16 *m, struct npc_data *nd); + bool (*postHookFunc) (bool retVal___, int16 m, struct npc_data *nd); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addnpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_addnpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, nd); + retVal___ = postHookFunc(retVal___, m, nd); } } return retVal___; @@ -39783,10 +39901,10 @@ int HP_map_clearflooritem_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.map.clearflooritem_timer(tid, tick, id, data); } if( HPMHooks.count.HP_map_clearflooritem_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_clearflooritem_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_clearflooritem_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -39810,10 +39928,10 @@ int HP_map_removemobs_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.map.removemobs_timer(tid, tick, id, data); } if( HPMHooks.count.HP_map_removemobs_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemobs_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_removemobs_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -39821,11 +39939,11 @@ int HP_map_removemobs_timer(int tid, int64 tick, int id, intptr_t data) { void HP_map_clearflooritem(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_map_clearflooritem_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_clearflooritem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_clearflooritem_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39848,11 +39966,11 @@ int HP_map_addflooritem(const struct block_list *bl, struct item *item_data, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_addflooritem_pre ) { - int (*preHookFunc) (const struct block_list *bl, struct item *item_data, int *amount, int16 *m, int16 *x, int16 *y, int *first_charid, int *second_charid, int *third_charid, int *flags); + int (*preHookFunc) (const struct block_list **bl, struct item **item_data, int *amount, int16 *m, int16 *x, int16 *y, int *first_charid, int *second_charid, int *third_charid, int *flags); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addflooritem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addflooritem_pre[hIndex].func; - retVal___ = preHookFunc(bl, item_data, &amount, &m, &x, &y, &first_charid, &second_charid, &third_charid, &flags); + retVal___ = preHookFunc(&bl, &item_data, &amount, &m, &x, &y, &first_charid, &second_charid, &third_charid, &flags); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39863,10 +39981,10 @@ int HP_map_addflooritem(const struct block_list *bl, struct item *item_data, int retVal___ = HPMHooks.source.map.addflooritem(bl, item_data, amount, m, x, y, first_charid, second_charid, third_charid, flags); } if( HPMHooks.count.HP_map_addflooritem_post ) { - int (*postHookFunc) (int retVal___, const struct block_list *bl, struct item *item_data, int *amount, int16 *m, int16 *x, int16 *y, int *first_charid, int *second_charid, int *third_charid, int *flags); + int (*postHookFunc) (int retVal___, const struct block_list *bl, struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addflooritem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_addflooritem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, item_data, &amount, &m, &x, &y, &first_charid, &second_charid, &third_charid, &flags); + retVal___ = postHookFunc(retVal___, bl, item_data, amount, m, x, y, first_charid, second_charid, third_charid, flags); } } return retVal___; @@ -39874,11 +39992,11 @@ int HP_map_addflooritem(const struct block_list *bl, struct item *item_data, int void HP_map_addnickdb(int charid, const char *nick) { int hIndex = 0; if( HPMHooks.count.HP_map_addnickdb_pre ) { - void (*preHookFunc) (int *charid, const char *nick); + void (*preHookFunc) (int *charid, const char **nick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addnickdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addnickdb_pre[hIndex].func; - preHookFunc(&charid, nick); + preHookFunc(&charid, &nick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39889,10 +40007,10 @@ void HP_map_addnickdb(int charid, const char *nick) { HPMHooks.source.map.addnickdb(charid, nick); } if( HPMHooks.count.HP_map_addnickdb_post ) { - void (*postHookFunc) (int *charid, const char *nick); + void (*postHookFunc) (int charid, const char *nick); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addnickdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_addnickdb_post[hIndex].func; - postHookFunc(&charid, nick); + postHookFunc(charid, nick); } } return; @@ -39900,11 +40018,11 @@ void HP_map_addnickdb(int charid, const char *nick) { void HP_map_delnickdb(int charid, const char *nick) { int hIndex = 0; if( HPMHooks.count.HP_map_delnickdb_pre ) { - void (*preHookFunc) (int *charid, const char *nick); + void (*preHookFunc) (int *charid, const char **nick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delnickdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_delnickdb_pre[hIndex].func; - preHookFunc(&charid, nick); + preHookFunc(&charid, &nick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39915,10 +40033,10 @@ void HP_map_delnickdb(int charid, const char *nick) { HPMHooks.source.map.delnickdb(charid, nick); } if( HPMHooks.count.HP_map_delnickdb_post ) { - void (*postHookFunc) (int *charid, const char *nick); + void (*postHookFunc) (int charid, const char *nick); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delnickdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_delnickdb_post[hIndex].func; - postHookFunc(&charid, nick); + postHookFunc(charid, nick); } } return; @@ -39926,11 +40044,11 @@ void HP_map_delnickdb(int charid, const char *nick) { void HP_map_reqnickdb(struct map_session_data *sd, int charid) { int hIndex = 0; if( HPMHooks.count.HP_map_reqnickdb_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *charid); + void (*preHookFunc) (struct map_session_data **sd, int *charid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reqnickdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_reqnickdb_pre[hIndex].func; - preHookFunc(sd, &charid); + preHookFunc(&sd, &charid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -39941,10 +40059,10 @@ void HP_map_reqnickdb(struct map_session_data *sd, int charid) { HPMHooks.source.map.reqnickdb(sd, charid); } if( HPMHooks.count.HP_map_reqnickdb_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *charid); + void (*postHookFunc) (struct map_session_data *sd, int charid); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reqnickdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_reqnickdb_post[hIndex].func; - postHookFunc(sd, &charid); + postHookFunc(sd, charid); } } return; @@ -39968,10 +40086,10 @@ const char* HP_map_charid2nick(int charid) { retVal___ = HPMHooks.source.map.charid2nick(charid); } if( HPMHooks.count.HP_map_charid2nick_post ) { - const char* (*postHookFunc) (const char* retVal___, int *charid); + const char* (*postHookFunc) (const char* retVal___, int charid); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_charid2nick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_charid2nick_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &charid); + retVal___ = postHookFunc(retVal___, charid); } } return retVal___; @@ -39995,10 +40113,10 @@ struct map_session_data* HP_map_charid2sd(int charid) { retVal___ = HPMHooks.source.map.charid2sd(charid); } if( HPMHooks.count.HP_map_charid2sd_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int *charid); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int charid); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_charid2sd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_charid2sd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &charid); + retVal___ = postHookFunc(retVal___, charid); } } return retVal___; @@ -40006,12 +40124,12 @@ struct map_session_data* HP_map_charid2sd(int charid) { void HP_map_vforeachpc(int ( *func ) (struct map_session_data *sd, va_list args), va_list args) { int hIndex = 0; if( HPMHooks.count.HP_map_vforeachpc_pre ) { - void (*preHookFunc) (int ( *func ) (struct map_session_data *sd, va_list args), va_list args); + void (*preHookFunc) (int ( **func ) (struct map_session_data *sd, va_list args), va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachpc_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachpc_pre[hIndex].func; - preHookFunc(func, args___copy); + preHookFunc(&func, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40038,12 +40156,12 @@ void HP_map_vforeachpc(int ( *func ) (struct map_session_data *sd, va_list args) void HP_map_vforeachmob(int ( *func ) (struct mob_data *md, va_list args), va_list args) { int hIndex = 0; if( HPMHooks.count.HP_map_vforeachmob_pre ) { - void (*preHookFunc) (int ( *func ) (struct mob_data *md, va_list args), va_list args); + void (*preHookFunc) (int ( **func ) (struct mob_data *md, va_list args), va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachmob_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachmob_pre[hIndex].func; - preHookFunc(func, args___copy); + preHookFunc(&func, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40070,12 +40188,12 @@ void HP_map_vforeachmob(int ( *func ) (struct mob_data *md, va_list args), va_li void HP_map_vforeachnpc(int ( *func ) (struct npc_data *nd, va_list args), va_list args) { int hIndex = 0; if( HPMHooks.count.HP_map_vforeachnpc_pre ) { - void (*preHookFunc) (int ( *func ) (struct npc_data *nd, va_list args), va_list args); + void (*preHookFunc) (int ( **func ) (struct npc_data *nd, va_list args), va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachnpc_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachnpc_pre[hIndex].func; - preHookFunc(func, args___copy); + preHookFunc(&func, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40102,12 +40220,12 @@ void HP_map_vforeachnpc(int ( *func ) (struct npc_data *nd, va_list args), va_li void HP_map_vforeachregen(int ( *func ) (struct block_list *bl, va_list args), va_list args) { int hIndex = 0; if( HPMHooks.count.HP_map_vforeachregen_pre ) { - void (*preHookFunc) (int ( *func ) (struct block_list *bl, va_list args), va_list args); + void (*preHookFunc) (int ( **func ) (struct block_list *bl, va_list args), va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachregen_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachregen_pre[hIndex].func; - preHookFunc(func, args___copy); + preHookFunc(&func, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40134,12 +40252,12 @@ void HP_map_vforeachregen(int ( *func ) (struct block_list *bl, va_list args), v void HP_map_vforeachiddb(int ( *func ) (struct block_list *bl, va_list args), va_list args) { int hIndex = 0; if( HPMHooks.count.HP_map_vforeachiddb_pre ) { - void (*preHookFunc) (int ( *func ) (struct block_list *bl, va_list args), va_list args); + void (*preHookFunc) (int ( **func ) (struct block_list *bl, va_list args), va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachiddb_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachiddb_pre[hIndex].func; - preHookFunc(func, args___copy); + preHookFunc(&func, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40167,12 +40285,12 @@ int HP_map_vforeachinrange(int ( *func ) (struct block_list *, va_list), struct int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinrange_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), struct block_list **center, int16 *range, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinrange_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachinrange_pre[hIndex].func; - retVal___ = preHookFunc(func, center, &range, &type, ap___copy); + retVal___ = preHookFunc(&func, ¢er, &range, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40186,11 +40304,11 @@ int HP_map_vforeachinrange(int ( *func ) (struct block_list *, va_list), struct va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachinrange_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinrange_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachinrange_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, center, &range, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, center, range, type, ap___copy); va_end(ap___copy); } } @@ -40200,12 +40318,12 @@ int HP_map_vforeachinshootrange(int ( *func ) (struct block_list *, va_list), st int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinshootrange_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), struct block_list **center, int16 *range, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinshootrange_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachinshootrange_pre[hIndex].func; - retVal___ = preHookFunc(func, center, &range, &type, ap___copy); + retVal___ = preHookFunc(&func, ¢er, &range, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40219,11 +40337,11 @@ int HP_map_vforeachinshootrange(int ( *func ) (struct block_list *, va_list), st va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachinshootrange_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinshootrange_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachinshootrange_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, center, &range, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, center, range, type, ap___copy); va_end(ap___copy); } } @@ -40233,12 +40351,12 @@ int HP_map_vforeachinarea(int ( *func ) (struct block_list *, va_list), int16 m, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinarea_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinarea_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachinarea_pre[hIndex].func; - retVal___ = preHookFunc(func, &m, &x0, &y0, &x1, &y1, &type, ap___copy); + retVal___ = preHookFunc(&func, &m, &x0, &y0, &x1, &y1, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40252,11 +40370,11 @@ int HP_map_vforeachinarea(int ( *func ) (struct block_list *, va_list), int16 m, va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachinarea_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinarea_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachinarea_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &m, &x0, &y0, &x1, &y1, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, m, x0, y0, x1, y1, type, ap___copy); va_end(ap___copy); } } @@ -40266,12 +40384,12 @@ int HP_map_vforcountinrange(int ( *func ) (struct block_list *, va_list), struct int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforcountinrange_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *count, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), struct block_list **center, int16 *range, int *count, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinrange_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforcountinrange_pre[hIndex].func; - retVal___ = preHookFunc(func, center, &range, &count, &type, ap___copy); + retVal___ = preHookFunc(&func, ¢er, &range, &count, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40285,11 +40403,11 @@ int HP_map_vforcountinrange(int ( *func ) (struct block_list *, va_list), struct va_end(ap___copy); } if( HPMHooks.count.HP_map_vforcountinrange_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *count, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int count, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinrange_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforcountinrange_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, center, &range, &count, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, center, range, count, type, ap___copy); va_end(ap___copy); } } @@ -40299,12 +40417,12 @@ int HP_map_vforcountinarea(int ( *func ) (struct block_list *, va_list), int16 m int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforcountinarea_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *count, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *count, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinarea_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforcountinarea_pre[hIndex].func; - retVal___ = preHookFunc(func, &m, &x0, &y0, &x1, &y1, &count, &type, ap___copy); + retVal___ = preHookFunc(&func, &m, &x0, &y0, &x1, &y1, &count, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40318,11 +40436,11 @@ int HP_map_vforcountinarea(int ( *func ) (struct block_list *, va_list), int16 m va_end(ap___copy); } if( HPMHooks.count.HP_map_vforcountinarea_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *count, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int count, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinarea_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforcountinarea_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &m, &x0, &y0, &x1, &y1, &count, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, m, x0, y0, x1, y1, count, type, ap___copy); va_end(ap___copy); } } @@ -40332,12 +40450,12 @@ int HP_map_vforeachinmovearea(int ( *func ) (struct block_list *, va_list), stru int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinmovearea_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int16 *dx, int16 *dy, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), struct block_list **center, int16 *range, int16 *dx, int16 *dy, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmovearea_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachinmovearea_pre[hIndex].func; - retVal___ = preHookFunc(func, center, &range, &dx, &dy, &type, ap___copy); + retVal___ = preHookFunc(&func, ¢er, &range, &dx, &dy, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40351,11 +40469,11 @@ int HP_map_vforeachinmovearea(int ( *func ) (struct block_list *, va_list), stru va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachinmovearea_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int16 *dx, int16 *dy, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int16 dx, int16 dy, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmovearea_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachinmovearea_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, center, &range, &dx, &dy, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, center, range, dx, dy, type, ap___copy); va_end(ap___copy); } } @@ -40365,12 +40483,12 @@ int HP_map_vforeachincell(int ( *func ) (struct block_list *, va_list), int16 m, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachincell_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x, int16 *y, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *m, int16 *x, int16 *y, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachincell_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachincell_pre[hIndex].func; - retVal___ = preHookFunc(func, &m, &x, &y, &type, ap___copy); + retVal___ = preHookFunc(&func, &m, &x, &y, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40384,11 +40502,11 @@ int HP_map_vforeachincell(int ( *func ) (struct block_list *, va_list), int16 m, va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachincell_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x, int16 *y, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 m, int16 x, int16 y, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachincell_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachincell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &m, &x, &y, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, m, x, y, type, ap___copy); va_end(ap___copy); } } @@ -40398,12 +40516,12 @@ int HP_map_vforeachinpath(int ( *func ) (struct block_list *, va_list), int16 m, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinpath_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int16 *range, int *length, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int16 *range, int *length, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinpath_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachinpath_pre[hIndex].func; - retVal___ = preHookFunc(func, &m, &x0, &y0, &x1, &y1, &range, &length, &type, ap___copy); + retVal___ = preHookFunc(&func, &m, &x0, &y0, &x1, &y1, &range, &length, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40417,11 +40535,11 @@ int HP_map_vforeachinpath(int ( *func ) (struct block_list *, va_list), int16 m, va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachinpath_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int16 *range, int *length, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinpath_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachinpath_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &m, &x0, &y0, &x1, &y1, &range, &length, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, m, x0, y0, x1, y1, range, length, type, ap___copy); va_end(ap___copy); } } @@ -40431,12 +40549,12 @@ int HP_map_vforeachinmap(int ( *func ) (struct block_list *, va_list), int16 m, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachinmap_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int *type, va_list args); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *m, int *type, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmap_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_vforeachinmap_pre[hIndex].func; - retVal___ = preHookFunc(func, &m, &type, args___copy); + retVal___ = preHookFunc(&func, &m, &type, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -40450,11 +40568,11 @@ int HP_map_vforeachinmap(int ( *func ) (struct block_list *, va_list), int16 m, va_end(args___copy); } if( HPMHooks.count.HP_map_vforeachinmap_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *m, int *type, va_list args); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 m, int type, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmap_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_map_vforeachinmap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &m, &type, args___copy); + retVal___ = postHookFunc(retVal___, func, m, type, args___copy); va_end(args___copy); } } @@ -40464,12 +40582,12 @@ int HP_map_vforeachininstance(int ( *func ) (struct block_list *, va_list), int1 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_vforeachininstance_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *instance_id, int *type, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), int16 *instance_id, int *type, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachininstance_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_vforeachininstance_pre[hIndex].func; - retVal___ = preHookFunc(func, &instance_id, &type, ap___copy); + retVal___ = preHookFunc(&func, &instance_id, &type, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -40483,11 +40601,11 @@ int HP_map_vforeachininstance(int ( *func ) (struct block_list *, va_list), int1 va_end(ap___copy); } if( HPMHooks.count.HP_map_vforeachininstance_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 *instance_id, int *type, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), int16 instance_id, int type, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachininstance_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_vforeachininstance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, &instance_id, &type, ap___copy); + retVal___ = postHookFunc(retVal___, func, instance_id, type, ap___copy); va_end(ap___copy); } } @@ -40512,10 +40630,10 @@ struct map_session_data* HP_map_id2sd(int id) { retVal___ = HPMHooks.source.map.id2sd(id); } if( HPMHooks.count.HP_map_id2sd_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int *id); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2sd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2sd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40539,10 +40657,10 @@ struct npc_data* HP_map_id2nd(int id) { retVal___ = HPMHooks.source.map.id2nd(id); } if( HPMHooks.count.HP_map_id2nd_post ) { - struct npc_data* (*postHookFunc) (struct npc_data* retVal___, int *id); + struct npc_data* (*postHookFunc) (struct npc_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2nd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2nd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40566,10 +40684,10 @@ struct mob_data* HP_map_id2md(int id) { retVal___ = HPMHooks.source.map.id2md(id); } if( HPMHooks.count.HP_map_id2md_post ) { - struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int *id); + struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2md_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2md_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40593,10 +40711,10 @@ struct flooritem_data* HP_map_id2fi(int id) { retVal___ = HPMHooks.source.map.id2fi(id); } if( HPMHooks.count.HP_map_id2fi_post ) { - struct flooritem_data* (*postHookFunc) (struct flooritem_data* retVal___, int *id); + struct flooritem_data* (*postHookFunc) (struct flooritem_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2fi_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2fi_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40620,10 +40738,10 @@ struct chat_data* HP_map_id2cd(int id) { retVal___ = HPMHooks.source.map.id2cd(id); } if( HPMHooks.count.HP_map_id2cd_post ) { - struct chat_data* (*postHookFunc) (struct chat_data* retVal___, int *id); + struct chat_data* (*postHookFunc) (struct chat_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2cd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2cd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40647,10 +40765,10 @@ struct skill_unit* HP_map_id2su(int id) { retVal___ = HPMHooks.source.map.id2su(id); } if( HPMHooks.count.HP_map_id2su_post ) { - struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, int *id); + struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2su_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2su_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40674,10 +40792,10 @@ struct pet_data* HP_map_id2pd(int id) { retVal___ = HPMHooks.source.map.id2pd(id); } if( HPMHooks.count.HP_map_id2pd_post ) { - struct pet_data* (*postHookFunc) (struct pet_data* retVal___, int *id); + struct pet_data* (*postHookFunc) (struct pet_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2pd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2pd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40701,10 +40819,10 @@ struct homun_data* HP_map_id2hd(int id) { retVal___ = HPMHooks.source.map.id2hd(id); } if( HPMHooks.count.HP_map_id2hd_post ) { - struct homun_data* (*postHookFunc) (struct homun_data* retVal___, int *id); + struct homun_data* (*postHookFunc) (struct homun_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2hd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2hd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40728,10 +40846,10 @@ struct mercenary_data* HP_map_id2mc(int id) { retVal___ = HPMHooks.source.map.id2mc(id); } if( HPMHooks.count.HP_map_id2mc_post ) { - struct mercenary_data* (*postHookFunc) (struct mercenary_data* retVal___, int *id); + struct mercenary_data* (*postHookFunc) (struct mercenary_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2mc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2mc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40755,10 +40873,10 @@ struct elemental_data* HP_map_id2ed(int id) { retVal___ = HPMHooks.source.map.id2ed(id); } if( HPMHooks.count.HP_map_id2ed_post ) { - struct elemental_data* (*postHookFunc) (struct elemental_data* retVal___, int *id); + struct elemental_data* (*postHookFunc) (struct elemental_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2ed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2ed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40782,10 +40900,10 @@ struct block_list* HP_map_id2bl(int id) { retVal___ = HPMHooks.source.map.id2bl(id); } if( HPMHooks.count.HP_map_id2bl_post ) { - struct block_list* (*postHookFunc) (struct block_list* retVal___, int *id); + struct block_list* (*postHookFunc) (struct block_list* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2bl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2bl_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40809,10 +40927,10 @@ bool HP_map_blid_exists(int id) { retVal___ = HPMHooks.source.map.blid_exists(id); } if( HPMHooks.count.HP_map_blid_exists_post ) { - bool (*postHookFunc) (bool retVal___, int *id); + bool (*postHookFunc) (bool retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_blid_exists_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_blid_exists_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -40836,10 +40954,10 @@ int16 HP_map_mapindex2mapid(unsigned short map_index) { retVal___ = HPMHooks.source.map.mapindex2mapid(map_index); } if( HPMHooks.count.HP_map_mapindex2mapid_post ) { - int16 (*postHookFunc) (int16 retVal___, unsigned short *map_index); + int16 (*postHookFunc) (int16 retVal___, unsigned short map_index); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapindex2mapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_mapindex2mapid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &map_index); + retVal___ = postHookFunc(retVal___, map_index); } } return retVal___; @@ -40848,11 +40966,11 @@ int16 HP_map_mapname2mapid(const char *name) { int hIndex = 0; int16 retVal___ = 0; if( HPMHooks.count.HP_map_mapname2mapid_pre ) { - int16 (*preHookFunc) (const char *name); + int16 (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapname2mapid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_mapname2mapid_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -40875,11 +40993,11 @@ int HP_map_mapname2ipport(unsigned short name, uint32 *ip, uint16 *port) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_mapname2ipport_pre ) { - int (*preHookFunc) (unsigned short *name, uint32 *ip, uint16 *port); + int (*preHookFunc) (unsigned short *name, uint32 **ip, uint16 **port); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapname2ipport_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_mapname2ipport_pre[hIndex].func; - retVal___ = preHookFunc(&name, ip, port); + retVal___ = preHookFunc(&name, &ip, &port); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -40890,10 +41008,10 @@ int HP_map_mapname2ipport(unsigned short name, uint32 *ip, uint16 *port) { retVal___ = HPMHooks.source.map.mapname2ipport(name, ip, port); } if( HPMHooks.count.HP_map_mapname2ipport_post ) { - int (*postHookFunc) (int retVal___, unsigned short *name, uint32 *ip, uint16 *port); + int (*postHookFunc) (int retVal___, unsigned short name, uint32 *ip, uint16 *port); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapname2ipport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_mapname2ipport_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &name, ip, port); + retVal___ = postHookFunc(retVal___, name, ip, port); } } return retVal___; @@ -40917,10 +41035,10 @@ int HP_map_setipport(unsigned short map_index, uint32 ip, uint16 port) { retVal___ = HPMHooks.source.map.setipport(map_index, ip, port); } if( HPMHooks.count.HP_map_setipport_post ) { - int (*postHookFunc) (int retVal___, unsigned short *map_index, uint32 *ip, uint16 *port); + int (*postHookFunc) (int retVal___, unsigned short map_index, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_setipport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_setipport_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &map_index, &ip, &port); + retVal___ = postHookFunc(retVal___, map_index, ip, port); } } return retVal___; @@ -40944,10 +41062,10 @@ int HP_map_eraseipport(unsigned short map_index, uint32 ip, uint16 port) { retVal___ = HPMHooks.source.map.eraseipport(map_index, ip, port); } if( HPMHooks.count.HP_map_eraseipport_post ) { - int (*postHookFunc) (int retVal___, unsigned short *map_index, uint32 *ip, uint16 *port); + int (*postHookFunc) (int retVal___, unsigned short map_index, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseipport_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_eraseipport_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &map_index, &ip, &port); + retVal___ = postHookFunc(retVal___, map_index, ip, port); } } return retVal___; @@ -40982,11 +41100,11 @@ int HP_map_eraseallipport(void) { void HP_map_addiddb(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_map_addiddb_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addiddb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addiddb_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41008,11 +41126,11 @@ void HP_map_addiddb(struct block_list *bl) { void HP_map_deliddb(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_map_deliddb_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_deliddb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_deliddb_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41035,11 +41153,11 @@ struct map_session_data* HP_map_nick2sd(const char *nick) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_map_nick2sd_pre ) { - struct map_session_data* (*preHookFunc) (const char *nick); + struct map_session_data* (*preHookFunc) (const char **nick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_nick2sd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_nick2sd_pre[hIndex].func; - retVal___ = preHookFunc(nick); + retVal___ = preHookFunc(&nick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41077,10 +41195,10 @@ struct mob_data* HP_map_getmob_boss(int16 m) { retVal___ = HPMHooks.source.map.getmob_boss(m); } if( HPMHooks.count.HP_map_getmob_boss_post ) { - struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int16 *m); + struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getmob_boss_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_getmob_boss_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m); + retVal___ = postHookFunc(retVal___, m); } } return retVal___; @@ -41104,10 +41222,10 @@ struct mob_data* HP_map_id2boss(int id) { retVal___ = HPMHooks.source.map.id2boss(id); } if( HPMHooks.count.HP_map_id2boss_post ) { - struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int *id); + struct mob_data* (*postHookFunc) (struct mob_data* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_id2boss_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_id2boss_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -41131,10 +41249,10 @@ uint32 HP_map_race_id2mask(int race) { retVal___ = HPMHooks.source.map.race_id2mask(race); } if( HPMHooks.count.HP_map_race_id2mask_post ) { - uint32 (*postHookFunc) (uint32 retVal___, int *race); + uint32 (*postHookFunc) (uint32 retVal___, int race); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_race_id2mask_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_race_id2mask_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &race); + retVal___ = postHookFunc(retVal___, race); } } return retVal___; @@ -41157,10 +41275,10 @@ void HP_map_reloadnpc(bool clear) { HPMHooks.source.map.reloadnpc(clear); } if( HPMHooks.count.HP_map_reloadnpc_post ) { - void (*postHookFunc) (bool *clear); + void (*postHookFunc) (bool clear); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reloadnpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_reloadnpc_post[hIndex].func; - postHookFunc(&clear); + postHookFunc(clear); } } return; @@ -41184,10 +41302,10 @@ int HP_map_check_dir(int s_dir, int t_dir) { retVal___ = HPMHooks.source.map.check_dir(s_dir, t_dir); } if( HPMHooks.count.HP_map_check_dir_post ) { - int (*postHookFunc) (int retVal___, int *s_dir, int *t_dir); + int (*postHookFunc) (int retVal___, int s_dir, int t_dir); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_check_dir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_check_dir_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &s_dir, &t_dir); + retVal___ = postHookFunc(retVal___, s_dir, t_dir); } } return retVal___; @@ -41196,11 +41314,11 @@ uint8 HP_map_calc_dir(struct block_list *src, int16 x, int16 y) { int hIndex = 0; uint8 retVal___ = 0; if( HPMHooks.count.HP_map_calc_dir_pre ) { - uint8 (*preHookFunc) (struct block_list *src, int16 *x, int16 *y); + uint8 (*preHookFunc) (struct block_list **src, int16 *x, int16 *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_calc_dir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_calc_dir_pre[hIndex].func; - retVal___ = preHookFunc(src, &x, &y); + retVal___ = preHookFunc(&src, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41211,10 +41329,10 @@ uint8 HP_map_calc_dir(struct block_list *src, int16 x, int16 y) { retVal___ = HPMHooks.source.map.calc_dir(src, x, y); } if( HPMHooks.count.HP_map_calc_dir_post ) { - uint8 (*postHookFunc) (uint8 retVal___, struct block_list *src, int16 *x, int16 *y); + uint8 (*postHookFunc) (uint8 retVal___, struct block_list *src, int16 x, int16 y); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_calc_dir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_calc_dir_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &x, &y); + retVal___ = postHookFunc(retVal___, src, x, y); } } return retVal___; @@ -41223,11 +41341,11 @@ int HP_map_random_dir(struct block_list *bl, short *x, short *y) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_random_dir_pre ) { - int (*preHookFunc) (struct block_list *bl, short *x, short *y); + int (*preHookFunc) (struct block_list **bl, short **x, short **y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_random_dir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_random_dir_pre[hIndex].func; - retVal___ = preHookFunc(bl, x, y); + retVal___ = preHookFunc(&bl, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41250,12 +41368,12 @@ int HP_map_cleanup_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_cleanup_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cleanup_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_cleanup_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -41283,11 +41401,11 @@ int HP_map_delmap(char *mapname) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_delmap_pre ) { - int (*preHookFunc) (char *mapname); + int (*preHookFunc) (char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delmap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_delmap_pre[hIndex].func; - retVal___ = preHookFunc(mapname); + retVal___ = preHookFunc(&mapname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41336,11 +41454,11 @@ bool HP_map_iwall_set(int16 m, int16 x, int16 y, int size, int8 dir, bool shoota int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_map_iwall_set_pre ) { - bool (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *size, int8 *dir, bool *shootable, const char *wall_name); + bool (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *size, int8 *dir, bool *shootable, const char **wall_name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_set_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_iwall_set_pre[hIndex].func; - retVal___ = preHookFunc(&m, &x, &y, &size, &dir, &shootable, wall_name); + retVal___ = preHookFunc(&m, &x, &y, &size, &dir, &shootable, &wall_name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41351,10 +41469,10 @@ bool HP_map_iwall_set(int16 m, int16 x, int16 y, int size, int8 dir, bool shoota retVal___ = HPMHooks.source.map.iwall_set(m, x, y, size, dir, shootable, wall_name); } if( HPMHooks.count.HP_map_iwall_set_post ) { - bool (*postHookFunc) (bool retVal___, int16 *m, int16 *x, int16 *y, int *size, int8 *dir, bool *shootable, const char *wall_name); + bool (*postHookFunc) (bool retVal___, int16 m, int16 x, int16 y, int size, int8 dir, bool shootable, const char *wall_name); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_set_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_iwall_set_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, &x, &y, &size, &dir, &shootable, wall_name); + retVal___ = postHookFunc(retVal___, m, x, y, size, dir, shootable, wall_name); } } return retVal___; @@ -41362,11 +41480,11 @@ bool HP_map_iwall_set(int16 m, int16 x, int16 y, int size, int8 dir, bool shoota void HP_map_iwall_get(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_map_iwall_get_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_get_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_iwall_get_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41388,11 +41506,11 @@ void HP_map_iwall_get(struct map_session_data *sd) { void HP_map_iwall_remove(const char *wall_name) { int hIndex = 0; if( HPMHooks.count.HP_map_iwall_remove_pre ) { - void (*preHookFunc) (const char *wall_name); + void (*preHookFunc) (const char **wall_name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_iwall_remove_pre[hIndex].func; - preHookFunc(wall_name); + preHookFunc(&wall_name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41415,11 +41533,11 @@ int HP_map_addmobtolist(unsigned short m, struct spawn_data *spawn) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_addmobtolist_pre ) { - int (*preHookFunc) (unsigned short *m, struct spawn_data *spawn); + int (*preHookFunc) (unsigned short *m, struct spawn_data **spawn); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmobtolist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addmobtolist_pre[hIndex].func; - retVal___ = preHookFunc(&m, spawn); + retVal___ = preHookFunc(&m, &spawn); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41430,10 +41548,10 @@ int HP_map_addmobtolist(unsigned short m, struct spawn_data *spawn) { retVal___ = HPMHooks.source.map.addmobtolist(m, spawn); } if( HPMHooks.count.HP_map_addmobtolist_post ) { - int (*postHookFunc) (int retVal___, unsigned short *m, struct spawn_data *spawn); + int (*postHookFunc) (int retVal___, unsigned short m, struct spawn_data *spawn); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmobtolist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_addmobtolist_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, spawn); + retVal___ = postHookFunc(retVal___, m, spawn); } } return retVal___; @@ -41456,10 +41574,10 @@ void HP_map_spawnmobs(int16 m) { HPMHooks.source.map.spawnmobs(m); } if( HPMHooks.count.HP_map_spawnmobs_post ) { - void (*postHookFunc) (int16 *m); + void (*postHookFunc) (int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_spawnmobs_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_spawnmobs_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -41482,10 +41600,10 @@ void HP_map_removemobs(int16 m) { HPMHooks.source.map.removemobs(m); } if( HPMHooks.count.HP_map_removemobs_post ) { - void (*postHookFunc) (int16 *m); + void (*postHookFunc) (int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemobs_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_removemobs_post[hIndex].func; - postHookFunc(&m); + postHookFunc(m); } } return; @@ -41493,11 +41611,11 @@ void HP_map_removemobs(int16 m) { void HP_map_addmap2db(struct map_data *m) { int hIndex = 0; if( HPMHooks.count.HP_map_addmap2db_pre ) { - void (*preHookFunc) (struct map_data *m); + void (*preHookFunc) (struct map_data **m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmap2db_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addmap2db_pre[hIndex].func; - preHookFunc(m); + preHookFunc(&m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41519,11 +41637,11 @@ void HP_map_addmap2db(struct map_data *m) { void HP_map_removemapdb(struct map_data *m) { int hIndex = 0; if( HPMHooks.count.HP_map_removemapdb_pre ) { - void (*preHookFunc) (struct map_data *m); + void (*preHookFunc) (struct map_data **m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemapdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_removemapdb_pre[hIndex].func; - preHookFunc(m); + preHookFunc(&m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41560,10 +41678,10 @@ void HP_map_clean(int i) { HPMHooks.source.map.clean(i); } if( HPMHooks.count.HP_map_clean_post ) { - void (*postHookFunc) (int *i); + void (*postHookFunc) (int i); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_clean_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_clean_post[hIndex].func; - postHookFunc(&i); + postHookFunc(i); } } return; @@ -41613,10 +41731,10 @@ int HP_map_freeblock_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.map.freeblock_timer(tid, tick, id, data); } if( HPMHooks.count.HP_map_freeblock_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_freeblock_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -41625,11 +41743,11 @@ int HP_map_searchrandfreecell(int16 m, const struct block_list *bl, int16 *x, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_searchrandfreecell_pre ) { - int (*preHookFunc) (int16 *m, const struct block_list *bl, int16 *x, int16 *y, int *stack); + int (*preHookFunc) (int16 *m, const struct block_list **bl, int16 **x, int16 **y, int *stack); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_searchrandfreecell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_searchrandfreecell_pre[hIndex].func; - retVal___ = preHookFunc(&m, bl, x, y, &stack); + retVal___ = preHookFunc(&m, &bl, &x, &y, &stack); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41640,10 +41758,10 @@ int HP_map_searchrandfreecell(int16 m, const struct block_list *bl, int16 *x, in retVal___ = HPMHooks.source.map.searchrandfreecell(m, bl, x, y, stack); } if( HPMHooks.count.HP_map_searchrandfreecell_post ) { - int (*postHookFunc) (int retVal___, int16 *m, const struct block_list *bl, int16 *x, int16 *y, int *stack); + int (*postHookFunc) (int retVal___, int16 m, const struct block_list *bl, int16 *x, int16 *y, int stack); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_searchrandfreecell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_searchrandfreecell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, bl, x, y, &stack); + retVal___ = postHookFunc(retVal___, m, bl, x, y, stack); } } return retVal___; @@ -41652,12 +41770,12 @@ int HP_map_count_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_count_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_count_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_count_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -41681,12 +41799,11 @@ int HP_map_count_sub(struct block_list *bl, va_list ap) { } return retVal___; } -DBData HP_map_create_charid2nick(DBKey key, va_list args) { +struct DBData HP_map_create_charid2nick(union DBKey key, va_list args) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_map_create_charid2nick_pre ) { - DBData (*preHookFunc) (DBKey *key, va_list args); + struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_create_charid2nick_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); @@ -41705,11 +41822,11 @@ DBData HP_map_create_charid2nick(DBKey key, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_map_create_charid2nick_post ) { - DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_create_charid2nick_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_map_create_charid2nick_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, args___copy); + retVal___ = postHookFunc(retVal___, key, args___copy); va_end(args___copy); } } @@ -41719,12 +41836,12 @@ int HP_map_removemobs_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_removemobs_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemobs_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_removemobs_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -41750,8 +41867,7 @@ int HP_map_removemobs_sub(struct block_list *bl, va_list ap) { } struct mapcell HP_map_gat2cell(int gat) { int hIndex = 0; - struct mapcell retVal___; - memset(&retVal___, '\0', sizeof(struct mapcell)); + struct mapcell retVal___ = { 0 }; if( HPMHooks.count.HP_map_gat2cell_pre ) { struct mapcell (*preHookFunc) (int *gat); *HPMforce_return = false; @@ -41768,10 +41884,10 @@ struct mapcell HP_map_gat2cell(int gat) { retVal___ = HPMHooks.source.map.gat2cell(gat); } if( HPMHooks.count.HP_map_gat2cell_post ) { - struct mapcell (*postHookFunc) (struct mapcell retVal___, int *gat); + struct mapcell (*postHookFunc) (struct mapcell retVal___, int gat); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_gat2cell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_gat2cell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &gat); + retVal___ = postHookFunc(retVal___, gat); } } return retVal___; @@ -41795,10 +41911,10 @@ int HP_map_cell2gat(struct mapcell cell) { retVal___ = HPMHooks.source.map.cell2gat(cell); } if( HPMHooks.count.HP_map_cell2gat_post ) { - int (*postHookFunc) (int retVal___, struct mapcell *cell); + int (*postHookFunc) (int retVal___, struct mapcell cell); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cell2gat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_cell2gat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &cell); + retVal___ = postHookFunc(retVal___, cell); } } return retVal___; @@ -41807,11 +41923,11 @@ int HP_map_getcellp(struct map_data *m, const struct block_list *bl, int16 x, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_getcellp_pre ) { - int (*preHookFunc) (struct map_data *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*preHookFunc) (struct map_data **m, const struct block_list **bl, int16 *x, int16 *y, cell_chk *cellchk); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcellp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_getcellp_pre[hIndex].func; - retVal___ = preHookFunc(m, bl, &x, &y, &cellchk); + retVal___ = preHookFunc(&m, &bl, &x, &y, &cellchk); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41822,10 +41938,10 @@ int HP_map_getcellp(struct map_data *m, const struct block_list *bl, int16 x, in retVal___ = HPMHooks.source.map.getcellp(m, bl, x, y, cellchk); } if( HPMHooks.count.HP_map_getcellp_post ) { - int (*postHookFunc) (int retVal___, struct map_data *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*postHookFunc) (int retVal___, struct map_data *m, const struct block_list *bl, int16 x, int16 y, cell_chk cellchk); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcellp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_getcellp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, m, bl, &x, &y, &cellchk); + retVal___ = postHookFunc(retVal___, m, bl, x, y, cellchk); } } return retVal___; @@ -41848,10 +41964,10 @@ void HP_map_setcell(int16 m, int16 x, int16 y, cell_t cell, bool flag) { HPMHooks.source.map.setcell(m, x, y, cell, flag); } if( HPMHooks.count.HP_map_setcell_post ) { - void (*postHookFunc) (int16 *m, int16 *x, int16 *y, cell_t *cell, bool *flag); + void (*postHookFunc) (int16 m, int16 x, int16 y, cell_t cell, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_setcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_setcell_post[hIndex].func; - postHookFunc(&m, &x, &y, &cell, &flag); + postHookFunc(m, x, y, cell, flag); } } return; @@ -41860,11 +41976,11 @@ int HP_map_sub_getcellp(struct map_data *m, const struct block_list *bl, int16 x int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_sub_getcellp_pre ) { - int (*preHookFunc) (struct map_data *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*preHookFunc) (struct map_data **m, const struct block_list **bl, int16 *x, int16 *y, cell_chk *cellchk); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sub_getcellp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_sub_getcellp_pre[hIndex].func; - retVal___ = preHookFunc(m, bl, &x, &y, &cellchk); + retVal___ = preHookFunc(&m, &bl, &x, &y, &cellchk); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41875,10 +41991,10 @@ int HP_map_sub_getcellp(struct map_data *m, const struct block_list *bl, int16 x retVal___ = HPMHooks.source.map.sub_getcellp(m, bl, x, y, cellchk); } if( HPMHooks.count.HP_map_sub_getcellp_post ) { - int (*postHookFunc) (int retVal___, struct map_data *m, const struct block_list *bl, int16 *x, int16 *y, cell_chk *cellchk); + int (*postHookFunc) (int retVal___, struct map_data *m, const struct block_list *bl, int16 x, int16 y, cell_chk cellchk); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sub_getcellp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_sub_getcellp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, m, bl, &x, &y, &cellchk); + retVal___ = postHookFunc(retVal___, m, bl, x, y, cellchk); } } return retVal___; @@ -41901,10 +42017,10 @@ void HP_map_sub_setcell(int16 m, int16 x, int16 y, cell_t cell, bool flag) { HPMHooks.source.map.sub_setcell(m, x, y, cell, flag); } if( HPMHooks.count.HP_map_sub_setcell_post ) { - void (*postHookFunc) (int16 *m, int16 *x, int16 *y, cell_t *cell, bool *flag); + void (*postHookFunc) (int16 m, int16 x, int16 y, cell_t cell, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sub_setcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_sub_setcell_post[hIndex].func; - postHookFunc(&m, &x, &y, &cell, &flag); + postHookFunc(m, x, y, cell, flag); } } return; @@ -41912,11 +42028,11 @@ void HP_map_sub_setcell(int16 m, int16 x, int16 y, cell_t cell, bool flag) { void HP_map_iwall_nextxy(int16 x, int16 y, int8 dir, int pos, int16 *x1, int16 *y1) { int hIndex = 0; if( HPMHooks.count.HP_map_iwall_nextxy_pre ) { - void (*preHookFunc) (int16 *x, int16 *y, int8 *dir, int *pos, int16 *x1, int16 *y1); + void (*preHookFunc) (int16 *x, int16 *y, int8 *dir, int *pos, int16 **x1, int16 **y1); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_nextxy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_iwall_nextxy_pre[hIndex].func; - preHookFunc(&x, &y, &dir, &pos, x1, y1); + preHookFunc(&x, &y, &dir, &pos, &x1, &y1); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -41927,20 +42043,19 @@ void HP_map_iwall_nextxy(int16 x, int16 y, int8 dir, int pos, int16 *x1, int16 * HPMHooks.source.map.iwall_nextxy(x, y, dir, pos, x1, y1); } if( HPMHooks.count.HP_map_iwall_nextxy_post ) { - void (*postHookFunc) (int16 *x, int16 *y, int8 *dir, int *pos, int16 *x1, int16 *y1); + void (*postHookFunc) (int16 x, int16 y, int8 dir, int pos, int16 *x1, int16 *y1); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_nextxy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_iwall_nextxy_post[hIndex].func; - postHookFunc(&x, &y, &dir, &pos, x1, y1); + postHookFunc(x, y, dir, pos, x1, y1); } } return; } -DBData HP_map_create_map_data_other_server(DBKey key, va_list args) { +struct DBData HP_map_create_map_data_other_server(union DBKey key, va_list args) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_map_create_map_data_other_server_pre ) { - DBData (*preHookFunc) (DBKey *key, va_list args); + struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_create_map_data_other_server_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); @@ -41959,26 +42074,26 @@ DBData HP_map_create_map_data_other_server(DBKey key, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_map_create_map_data_other_server_post ) { - DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_create_map_data_other_server_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_map_create_map_data_other_server_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, args___copy); + retVal___ = postHookFunc(retVal___, key, args___copy); va_end(args___copy); } } return retVal___; } -int HP_map_eraseallipport_sub(DBKey key, DBData *data, va_list va) { +int HP_map_eraseallipport_sub(union DBKey key, struct DBData *data, va_list va) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_eraseallipport_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list va); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list va); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseallipport_sub_pre; hIndex++ ) { va_list va___copy; va_copy(va___copy, va); preHookFunc = HPMHooks.list.HP_map_eraseallipport_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, va___copy); + retVal___ = preHookFunc(&key, &data, va___copy); va_end(va___copy); } if( *HPMforce_return ) { @@ -41992,11 +42107,11 @@ int HP_map_eraseallipport_sub(DBKey key, DBData *data, va_list va) { va_end(va___copy); } if( HPMHooks.count.HP_map_eraseallipport_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list va); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list va); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseallipport_sub_post; hIndex++ ) { va_list va___copy; va_copy(va___copy, va); postHookFunc = HPMHooks.list.HP_map_eraseallipport_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, va___copy); + retVal___ = postHookFunc(retVal___, key, data, va___copy); va_end(va___copy); } } @@ -42006,11 +42121,11 @@ char* HP_map_init_mapcache(FILE *fp) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_map_init_mapcache_pre ) { - char* (*preHookFunc) (FILE *fp); + char* (*preHookFunc) (FILE **fp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_init_mapcache_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_init_mapcache_pre[hIndex].func; - retVal___ = preHookFunc(fp); + retVal___ = preHookFunc(&fp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42033,11 +42148,11 @@ int HP_map_readfromcache(struct map_data *m, char *buffer) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_readfromcache_pre ) { - int (*preHookFunc) (struct map_data *m, char *buffer); + int (*preHookFunc) (struct map_data **m, char **buffer); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_readfromcache_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_readfromcache_pre[hIndex].func; - retVal___ = preHookFunc(m, buffer); + retVal___ = preHookFunc(&m, &buffer); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42060,11 +42175,11 @@ int HP_map_addmap(const char *mapname) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_addmap_pre ) { - int (*preHookFunc) (const char *mapname); + int (*preHookFunc) (const char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_addmap_pre[hIndex].func; - retVal___ = preHookFunc(mapname); + retVal___ = preHookFunc(&mapname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42101,10 +42216,10 @@ void HP_map_delmapid(int id) { HPMHooks.source.map.delmapid(id); } if( HPMHooks.count.HP_map_delmapid_post ) { - void (*postHookFunc) (int *id); + void (*postHookFunc) (int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delmapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_delmapid_post[hIndex].func; - postHookFunc(&id); + postHookFunc(id); } } return; @@ -42165,11 +42280,11 @@ int HP_map_waterheight(char *mapname) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_waterheight_pre ) { - int (*preHookFunc) (char *mapname); + int (*preHookFunc) (char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_waterheight_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_waterheight_pre[hIndex].func; - retVal___ = preHookFunc(mapname); + retVal___ = preHookFunc(&mapname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42192,11 +42307,11 @@ int HP_map_readgat(struct map_data *m) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_readgat_pre ) { - int (*preHookFunc) (struct map_data *m); + int (*preHookFunc) (struct map_data **m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_readgat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_readgat_pre[hIndex].func; - retVal___ = preHookFunc(m); + retVal___ = preHookFunc(&m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42246,11 +42361,11 @@ int HP_map_config_read(char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_config_read_pre ) { - int (*preHookFunc) (char *cfgName); + int (*preHookFunc) (char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_config_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42273,11 +42388,11 @@ int HP_map_config_read_sub(char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_config_read_sub_pre ) { - int (*preHookFunc) (char *cfgName); + int (*preHookFunc) (char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_config_read_sub_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42299,11 +42414,11 @@ int HP_map_config_read_sub(char *cfgName) { void HP_map_reloadnpc_sub(char *cfgName) { int hIndex = 0; if( HPMHooks.count.HP_map_reloadnpc_sub_pre ) { - void (*preHookFunc) (char *cfgName); + void (*preHookFunc) (char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reloadnpc_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_reloadnpc_sub_pre[hIndex].func; - preHookFunc(cfgName); + preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42326,11 +42441,11 @@ int HP_map_inter_config_read(char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_inter_config_read_pre ) { - int (*preHookFunc) (char *cfgName); + int (*preHookFunc) (char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_inter_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_inter_config_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42407,11 +42522,11 @@ bool HP_map_zone_mf_cache(int m, char *flag, char *params) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_map_zone_mf_cache_pre ) { - bool (*preHookFunc) (int *m, char *flag, char *params); + bool (*preHookFunc) (int *m, char **flag, char **params); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_mf_cache_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_mf_cache_pre[hIndex].func; - retVal___ = preHookFunc(&m, flag, params); + retVal___ = preHookFunc(&m, &flag, ¶ms); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42422,10 +42537,10 @@ bool HP_map_zone_mf_cache(int m, char *flag, char *params) { retVal___ = HPMHooks.source.map.zone_mf_cache(m, flag, params); } if( HPMHooks.count.HP_map_zone_mf_cache_post ) { - bool (*postHookFunc) (bool retVal___, int *m, char *flag, char *params); + bool (*postHookFunc) (bool retVal___, int m, char *flag, char *params); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_mf_cache_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_zone_mf_cache_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, flag, params); + retVal___ = postHookFunc(retVal___, m, flag, params); } } return retVal___; @@ -42434,11 +42549,11 @@ unsigned short HP_map_zone_str2itemid(const char *name) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_map_zone_str2itemid_pre ) { - unsigned short (*preHookFunc) (const char *name); + unsigned short (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_str2itemid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_str2itemid_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42461,11 +42576,11 @@ unsigned short HP_map_zone_str2skillid(const char *name) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_map_zone_str2skillid_pre ) { - unsigned short (*preHookFunc) (const char *name); + unsigned short (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_str2skillid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_str2skillid_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42488,11 +42603,11 @@ enum bl_type HP_map_zone_bl_type(const char *entry, enum map_zone_skill_subtype int hIndex = 0; enum bl_type retVal___ = BL_NUL; if( HPMHooks.count.HP_map_zone_bl_type_pre ) { - enum bl_type (*preHookFunc) (const char *entry, enum map_zone_skill_subtype *subtype); + enum bl_type (*preHookFunc) (const char **entry, enum map_zone_skill_subtype **subtype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_bl_type_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_bl_type_pre[hIndex].func; - retVal___ = preHookFunc(entry, subtype); + retVal___ = preHookFunc(&entry, &subtype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42537,16 +42652,16 @@ void HP_map_read_zone_db(void) { } return; } -int HP_map_db_final(DBKey key, DBData *data, va_list ap) { +int HP_map_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -42560,26 +42675,26 @@ int HP_map_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_map_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_map_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_map_nick_db_final(DBKey key, DBData *data, va_list args) { +int HP_map_nick_db_final(union DBKey key, struct DBData *data, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_nick_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list args); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_nick_db_final_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_map_nick_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, args___copy); + retVal___ = preHookFunc(&key, &data, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -42593,26 +42708,26 @@ int HP_map_nick_db_final(DBKey key, DBData *data, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_map_nick_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list args); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_nick_db_final_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_map_nick_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, args___copy); + retVal___ = postHookFunc(retVal___, key, data, args___copy); va_end(args___copy); } } return retVal___; } -int HP_map_cleanup_db_sub(DBKey key, DBData *data, va_list va) { +int HP_map_cleanup_db_sub(union DBKey key, struct DBData *data, va_list va) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_cleanup_db_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list va); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list va); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cleanup_db_sub_pre; hIndex++ ) { va_list va___copy; va_copy(va___copy, va); preHookFunc = HPMHooks.list.HP_map_cleanup_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, va___copy); + retVal___ = preHookFunc(&key, &data, va___copy); va_end(va___copy); } if( *HPMforce_return ) { @@ -42626,11 +42741,11 @@ int HP_map_cleanup_db_sub(DBKey key, DBData *data, va_list va) { va_end(va___copy); } if( HPMHooks.count.HP_map_cleanup_db_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list va); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list va); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cleanup_db_sub_post; hIndex++ ) { va_list va___copy; va_copy(va___copy, va); postHookFunc = HPMHooks.list.HP_map_cleanup_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, va___copy); + retVal___ = postHookFunc(retVal___, key, data, va___copy); va_end(va___copy); } } @@ -42640,12 +42755,12 @@ int HP_map_abort_sub(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_abort_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_abort_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_map_abort_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -42672,11 +42787,11 @@ int HP_map_abort_sub(struct map_session_data *sd, va_list ap) { void HP_map_update_cell_bl(struct block_list *bl, bool increase) { int hIndex = 0; if( HPMHooks.count.HP_map_update_cell_bl_pre ) { - void (*preHookFunc) (struct block_list *bl, bool *increase); + void (*preHookFunc) (struct block_list **bl, bool *increase); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_update_cell_bl_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_update_cell_bl_pre[hIndex].func; - preHookFunc(bl, &increase); + preHookFunc(&bl, &increase); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42687,10 +42802,10 @@ void HP_map_update_cell_bl(struct block_list *bl, bool increase) { HPMHooks.source.map.update_cell_bl(bl, increase); } if( HPMHooks.count.HP_map_update_cell_bl_post ) { - void (*postHookFunc) (struct block_list *bl, bool *increase); + void (*postHookFunc) (struct block_list *bl, bool increase); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_update_cell_bl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_update_cell_bl_post[hIndex].func; - postHookFunc(bl, &increase); + postHookFunc(bl, increase); } } return; @@ -42725,11 +42840,11 @@ int HP_map_get_new_bonus_id(void) { void HP_map_add_questinfo(int m, struct questinfo *qi) { int hIndex = 0; if( HPMHooks.count.HP_map_add_questinfo_pre ) { - void (*preHookFunc) (int *m, struct questinfo *qi); + void (*preHookFunc) (int *m, struct questinfo **qi); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_add_questinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_add_questinfo_pre[hIndex].func; - preHookFunc(&m, qi); + preHookFunc(&m, &qi); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42740,10 +42855,10 @@ void HP_map_add_questinfo(int m, struct questinfo *qi) { HPMHooks.source.map.add_questinfo(m, qi); } if( HPMHooks.count.HP_map_add_questinfo_post ) { - void (*postHookFunc) (int *m, struct questinfo *qi); + void (*postHookFunc) (int m, struct questinfo *qi); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_add_questinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_add_questinfo_post[hIndex].func; - postHookFunc(&m, qi); + postHookFunc(m, qi); } } return; @@ -42752,11 +42867,11 @@ bool HP_map_remove_questinfo(int m, struct npc_data *nd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_map_remove_questinfo_pre ) { - bool (*preHookFunc) (int *m, struct npc_data *nd); + bool (*preHookFunc) (int *m, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_remove_questinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_remove_questinfo_pre[hIndex].func; - retVal___ = preHookFunc(&m, nd); + retVal___ = preHookFunc(&m, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42767,10 +42882,10 @@ bool HP_map_remove_questinfo(int m, struct npc_data *nd) { retVal___ = HPMHooks.source.map.remove_questinfo(m, nd); } if( HPMHooks.count.HP_map_remove_questinfo_post ) { - bool (*postHookFunc) (bool retVal___, int *m, struct npc_data *nd); + bool (*postHookFunc) (bool retVal___, int m, struct npc_data *nd); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_remove_questinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_remove_questinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &m, nd); + retVal___ = postHookFunc(retVal___, m, nd); } } return retVal___; @@ -42779,11 +42894,11 @@ struct map_zone_data* HP_map_merge_zone(struct map_zone_data *main, struct map_z int hIndex = 0; struct map_zone_data* retVal___ = NULL; if( HPMHooks.count.HP_map_merge_zone_pre ) { - struct map_zone_data* (*preHookFunc) (struct map_zone_data *main, struct map_zone_data *other); + struct map_zone_data* (*preHookFunc) (struct map_zone_data **main, struct map_zone_data **other); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_merge_zone_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_merge_zone_pre[hIndex].func; - retVal___ = preHookFunc(main, other); + retVal___ = preHookFunc(&main, &other); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42805,11 +42920,11 @@ struct map_zone_data* HP_map_merge_zone(struct map_zone_data *main, struct map_z void HP_map_zone_clear_single(struct map_zone_data *zone) { int hIndex = 0; if( HPMHooks.count.HP_map_zone_clear_single_pre ) { - void (*preHookFunc) (struct map_zone_data *zone); + void (*preHookFunc) (struct map_zone_data **zone); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_clear_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_zone_clear_single_pre[hIndex].func; - preHookFunc(zone); + preHookFunc(&zone); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42828,7 +42943,7 @@ void HP_map_zone_clear_single(struct map_zone_data *zone) { } return; } -/* mapindex */ +/* mapindex_interface */ int HP_mapindex_init(void) { int hIndex = 0; int retVal___ = 0; @@ -42886,11 +43001,11 @@ int HP_mapindex_addmap(int index, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mapindex_addmap_pre ) { - int (*preHookFunc) (int *index, const char *name); + int (*preHookFunc) (int *index, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_addmap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapindex_addmap_pre[hIndex].func; - retVal___ = preHookFunc(&index, name); + retVal___ = preHookFunc(&index, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42901,10 +43016,10 @@ int HP_mapindex_addmap(int index, const char *name) { retVal___ = HPMHooks.source.mapindex.addmap(index, name); } if( HPMHooks.count.HP_mapindex_addmap_post ) { - int (*postHookFunc) (int retVal___, int *index, const char *name); + int (*postHookFunc) (int retVal___, int index, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_addmap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapindex_addmap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &index, name); + retVal___ = postHookFunc(retVal___, index, name); } } return retVal___; @@ -42927,10 +43042,10 @@ void HP_mapindex_removemap(int index) { HPMHooks.source.mapindex.removemap(index); } if( HPMHooks.count.HP_mapindex_removemap_post ) { - void (*postHookFunc) (int *index); + void (*postHookFunc) (int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_removemap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapindex_removemap_post[hIndex].func; - postHookFunc(&index); + postHookFunc(index); } } return; @@ -42939,11 +43054,11 @@ const char* HP_mapindex_getmapname(const char *string, char *output) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_mapindex_getmapname_pre ) { - const char* (*preHookFunc) (const char *string, char *output); + const char* (*preHookFunc) (const char **string, char **output); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_getmapname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapindex_getmapname_pre[hIndex].func; - retVal___ = preHookFunc(string, output); + retVal___ = preHookFunc(&string, &output); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42966,11 +43081,11 @@ const char* HP_mapindex_getmapname_ext(const char *string, char *output) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_mapindex_getmapname_ext_pre ) { - const char* (*preHookFunc) (const char *string, char *output); + const char* (*preHookFunc) (const char **string, char **output); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_getmapname_ext_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapindex_getmapname_ext_pre[hIndex].func; - retVal___ = preHookFunc(string, output); + retVal___ = preHookFunc(&string, &output); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -42993,11 +43108,11 @@ unsigned short HP_mapindex_name2id(const char *p1) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_mapindex_name2id_pre ) { - unsigned short (*preHookFunc) (const char *p1); + unsigned short (*preHookFunc) (const char **p1); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_name2id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapindex_name2id_pre[hIndex].func; - retVal___ = preHookFunc(p1); + retVal___ = preHookFunc(&p1); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43020,11 +43135,11 @@ const char* HP_mapindex_id2name(uint16 id, const char *file, int line, const cha int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_mapindex_id2name_pre ) { - const char* (*preHookFunc) (uint16 *id, const char *file, int *line, const char *func); + const char* (*preHookFunc) (uint16 *id, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_id2name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapindex_id2name_pre[hIndex].func; - retVal___ = preHookFunc(&id, file, &line, func); + retVal___ = preHookFunc(&id, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43035,10 +43150,10 @@ const char* HP_mapindex_id2name(uint16 id, const char *file, int line, const cha retVal___ = HPMHooks.source.mapindex.id2name(id, file, line, func); } if( HPMHooks.count.HP_mapindex_id2name_post ) { - const char* (*postHookFunc) (const char* retVal___, uint16 *id, const char *file, int *line, const char *func); + const char* (*postHookFunc) (const char* retVal___, uint16 id, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapindex_id2name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapindex_id2name_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id, file, &line, func); + retVal___ = postHookFunc(retVal___, id, file, line, func); } } return retVal___; @@ -43070,7 +43185,7 @@ bool HP_mapindex_check_default(void) { } return retVal___; } -/* mapit */ +/* mapit_interface */ struct s_mapiterator* HP_mapit_alloc(enum e_mapitflags flags, enum bl_type types) { int hIndex = 0; struct s_mapiterator* retVal___ = NULL; @@ -43090,10 +43205,10 @@ struct s_mapiterator* HP_mapit_alloc(enum e_mapitflags flags, enum bl_type types retVal___ = HPMHooks.source.mapit.alloc(flags, types); } if( HPMHooks.count.HP_mapit_alloc_post ) { - struct s_mapiterator* (*postHookFunc) (struct s_mapiterator* retVal___, enum e_mapitflags *flags, enum bl_type *types); + struct s_mapiterator* (*postHookFunc) (struct s_mapiterator* retVal___, enum e_mapitflags flags, enum bl_type types); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_alloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapit_alloc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &flags, &types); + retVal___ = postHookFunc(retVal___, flags, types); } } return retVal___; @@ -43101,11 +43216,11 @@ struct s_mapiterator* HP_mapit_alloc(enum e_mapitflags flags, enum bl_type types void HP_mapit_free(struct s_mapiterator *iter) { int hIndex = 0; if( HPMHooks.count.HP_mapit_free_pre ) { - void (*preHookFunc) (struct s_mapiterator *iter); + void (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_free_pre[hIndex].func; - preHookFunc(iter); + preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43128,11 +43243,11 @@ struct block_list* HP_mapit_first(struct s_mapiterator *iter) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mapit_first_pre ) { - struct block_list* (*preHookFunc) (struct s_mapiterator *iter); + struct block_list* (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_first_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_first_pre[hIndex].func; - retVal___ = preHookFunc(iter); + retVal___ = preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43155,11 +43270,11 @@ struct block_list* HP_mapit_last(struct s_mapiterator *iter) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mapit_last_pre ) { - struct block_list* (*preHookFunc) (struct s_mapiterator *iter); + struct block_list* (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_last_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_last_pre[hIndex].func; - retVal___ = preHookFunc(iter); + retVal___ = preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43182,11 +43297,11 @@ struct block_list* HP_mapit_next(struct s_mapiterator *iter) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mapit_next_pre ) { - struct block_list* (*preHookFunc) (struct s_mapiterator *iter); + struct block_list* (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_next_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_next_pre[hIndex].func; - retVal___ = preHookFunc(iter); + retVal___ = preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43209,11 +43324,11 @@ struct block_list* HP_mapit_prev(struct s_mapiterator *iter) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mapit_prev_pre ) { - struct block_list* (*preHookFunc) (struct s_mapiterator *iter); + struct block_list* (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_prev_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_prev_pre[hIndex].func; - retVal___ = preHookFunc(iter); + retVal___ = preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43236,11 +43351,11 @@ bool HP_mapit_exists(struct s_mapiterator *iter) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mapit_exists_pre ) { - bool (*preHookFunc) (struct s_mapiterator *iter); + bool (*preHookFunc) (struct s_mapiterator **iter); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_exists_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapit_exists_pre[hIndex].func; - retVal___ = preHookFunc(iter); + retVal___ = preHookFunc(&iter); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43259,7 +43374,7 @@ bool HP_mapit_exists(struct s_mapiterator *iter) { } return retVal___; } -/* mapreg */ +/* mapreg_interface */ void HP_mapreg_init(void) { int hIndex = 0; if( HPMHooks.count.HP_mapreg_init_pre ) { @@ -43331,10 +43446,10 @@ int HP_mapreg_readreg(int64 uid) { retVal___ = HPMHooks.source.mapreg.readreg(uid); } if( HPMHooks.count.HP_mapreg_readreg_post ) { - int (*postHookFunc) (int retVal___, int64 *uid); + int (*postHookFunc) (int retVal___, int64 uid); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_readreg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapreg_readreg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &uid); + retVal___ = postHookFunc(retVal___, uid); } } return retVal___; @@ -43358,10 +43473,10 @@ char* HP_mapreg_readregstr(int64 uid) { retVal___ = HPMHooks.source.mapreg.readregstr(uid); } if( HPMHooks.count.HP_mapreg_readregstr_post ) { - char* (*postHookFunc) (char* retVal___, int64 *uid); + char* (*postHookFunc) (char* retVal___, int64 uid); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_readregstr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapreg_readregstr_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &uid); + retVal___ = postHookFunc(retVal___, uid); } } return retVal___; @@ -43385,10 +43500,10 @@ bool HP_mapreg_setreg(int64 uid, int val) { retVal___ = HPMHooks.source.mapreg.setreg(uid, val); } if( HPMHooks.count.HP_mapreg_setreg_post ) { - bool (*postHookFunc) (bool retVal___, int64 *uid, int *val); + bool (*postHookFunc) (bool retVal___, int64 uid, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_setreg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapreg_setreg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &uid, &val); + retVal___ = postHookFunc(retVal___, uid, val); } } return retVal___; @@ -43397,11 +43512,11 @@ bool HP_mapreg_setregstr(int64 uid, const char *str) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mapreg_setregstr_pre ) { - bool (*preHookFunc) (int64 *uid, const char *str); + bool (*preHookFunc) (int64 *uid, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_setregstr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapreg_setregstr_pre[hIndex].func; - retVal___ = preHookFunc(&uid, str); + retVal___ = preHookFunc(&uid, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43412,10 +43527,10 @@ bool HP_mapreg_setregstr(int64 uid, const char *str) { retVal___ = HPMHooks.source.mapreg.setregstr(uid, str); } if( HPMHooks.count.HP_mapreg_setregstr_post ) { - bool (*postHookFunc) (bool retVal___, int64 *uid, const char *str); + bool (*postHookFunc) (bool retVal___, int64 uid, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_setregstr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapreg_setregstr_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &uid, str); + retVal___ = postHookFunc(retVal___, uid, str); } } return retVal___; @@ -43491,24 +43606,24 @@ int HP_mapreg_save_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mapreg.save_timer(tid, tick, id, data); } if( HPMHooks.count.HP_mapreg_save_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_save_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapreg_save_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -int HP_mapreg_destroyreg(DBKey key, DBData *data, va_list ap) { +int HP_mapreg_destroyreg(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mapreg_destroyreg_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_destroyreg_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mapreg_destroyreg_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -43522,11 +43637,11 @@ int HP_mapreg_destroyreg(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_mapreg_destroyreg_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_destroyreg_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_mapreg_destroyreg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -43562,11 +43677,11 @@ bool HP_mapreg_config_read(const char *w1, const char *w2) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mapreg_config_read_pre ) { - bool (*preHookFunc) (const char *w1, const char *w2); + bool (*preHookFunc) (const char **w1, const char **w2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapreg_config_read_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2); + retVal___ = preHookFunc(&w1, &w2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43585,7 +43700,7 @@ bool HP_mapreg_config_read(const char *w1, const char *w2) { } return retVal___; } -/* mercenary */ +/* mercenary_interface */ void HP_mercenary_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_mercenary_init_pre ) { @@ -43604,10 +43719,10 @@ void HP_mercenary_init(bool minimal) { HPMHooks.source.mercenary.init(minimal); } if( HPMHooks.count.HP_mercenary_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -43631,10 +43746,10 @@ bool HP_mercenary_class(int class_) { retVal___ = HPMHooks.source.mercenary.class(class_); } if( HPMHooks.count.HP_mercenary_class_post ) { - bool (*postHookFunc) (bool retVal___, int *class_); + bool (*postHookFunc) (bool retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_class_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_class_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -43658,10 +43773,10 @@ struct view_data* HP_mercenary_get_viewdata(int class_) { retVal___ = HPMHooks.source.mercenary.get_viewdata(class_); } if( HPMHooks.count.HP_mercenary_get_viewdata_post ) { - struct view_data* (*postHookFunc) (struct view_data* retVal___, int *class_); + struct view_data* (*postHookFunc) (struct view_data* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_get_viewdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -43670,11 +43785,11 @@ int HP_mercenary_create(struct map_session_data *sd, int class_, unsigned int li int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *class_, unsigned int *lifetime); + int (*preHookFunc) (struct map_session_data **sd, int *class_, unsigned int *lifetime); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, &class_, &lifetime); + retVal___ = preHookFunc(&sd, &class_, &lifetime); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43685,10 +43800,10 @@ int HP_mercenary_create(struct map_session_data *sd, int class_, unsigned int li retVal___ = HPMHooks.source.mercenary.create(sd, class_, lifetime); } if( HPMHooks.count.HP_mercenary_create_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *class_, unsigned int *lifetime); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int class_, unsigned int lifetime); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &class_, &lifetime); + retVal___ = postHookFunc(retVal___, sd, class_, lifetime); } } return retVal___; @@ -43697,11 +43812,11 @@ int HP_mercenary_data_received(const struct s_mercenary *merc, bool flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_data_received_pre ) { - int (*preHookFunc) (const struct s_mercenary *merc, bool *flag); + int (*preHookFunc) (const struct s_mercenary **merc, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_data_received_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_data_received_pre[hIndex].func; - retVal___ = preHookFunc(merc, &flag); + retVal___ = preHookFunc(&merc, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43712,10 +43827,10 @@ int HP_mercenary_data_received(const struct s_mercenary *merc, bool flag) { retVal___ = HPMHooks.source.mercenary.data_received(merc, flag); } if( HPMHooks.count.HP_mercenary_data_received_post ) { - int (*postHookFunc) (int retVal___, const struct s_mercenary *merc, bool *flag); + int (*postHookFunc) (int retVal___, const struct s_mercenary *merc, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_data_received_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_data_received_post[hIndex].func; - retVal___ = postHookFunc(retVal___, merc, &flag); + retVal___ = postHookFunc(retVal___, merc, flag); } } return retVal___; @@ -43724,11 +43839,11 @@ int HP_mercenary_save(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_save_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_save_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43750,11 +43865,11 @@ int HP_mercenary_save(struct mercenary_data *md) { void HP_mercenary_heal(struct mercenary_data *md, int hp, int sp) { int hIndex = 0; if( HPMHooks.count.HP_mercenary_heal_pre ) { - void (*preHookFunc) (struct mercenary_data *md, int *hp, int *sp); + void (*preHookFunc) (struct mercenary_data **md, int *hp, int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_heal_pre[hIndex].func; - preHookFunc(md, &hp, &sp); + preHookFunc(&md, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43765,10 +43880,10 @@ void HP_mercenary_heal(struct mercenary_data *md, int hp, int sp) { HPMHooks.source.mercenary.heal(md, hp, sp); } if( HPMHooks.count.HP_mercenary_heal_post ) { - void (*postHookFunc) (struct mercenary_data *md, int *hp, int *sp); + void (*postHookFunc) (struct mercenary_data *md, int hp, int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_heal_post[hIndex].func; - postHookFunc(md, &hp, &sp); + postHookFunc(md, hp, sp); } } return; @@ -43777,11 +43892,11 @@ int HP_mercenary_dead(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_dead_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_dead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_dead_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43804,11 +43919,11 @@ int HP_mercenary_delete(struct mercenary_data *md, int reply) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_delete_pre ) { - int (*preHookFunc) (struct mercenary_data *md, int *reply); + int (*preHookFunc) (struct mercenary_data **md, int *reply); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_delete_pre[hIndex].func; - retVal___ = preHookFunc(md, &reply); + retVal___ = preHookFunc(&md, &reply); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43819,10 +43934,10 @@ int HP_mercenary_delete(struct mercenary_data *md, int reply) { retVal___ = HPMHooks.source.mercenary.delete(md, reply); } if( HPMHooks.count.HP_mercenary_delete_post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, int *reply); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, int reply); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &reply); + retVal___ = postHookFunc(retVal___, md, reply); } } return retVal___; @@ -43830,11 +43945,11 @@ int HP_mercenary_delete(struct mercenary_data *md, int reply) { void HP_mercenary_contract_stop(struct mercenary_data *md) { int hIndex = 0; if( HPMHooks.count.HP_mercenary_contract_stop_pre ) { - void (*preHookFunc) (struct mercenary_data *md); + void (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_contract_stop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_contract_stop_pre[hIndex].func; - preHookFunc(md); + preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43857,11 +43972,11 @@ int HP_mercenary_get_lifetime(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_get_lifetime_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_lifetime_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_get_lifetime_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43884,11 +43999,11 @@ int HP_mercenary_get_guild(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_get_guild_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_guild_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_get_guild_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43911,11 +44026,11 @@ int HP_mercenary_get_faith(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_get_faith_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_faith_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_get_faith_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43938,11 +44053,11 @@ int HP_mercenary_set_faith(struct mercenary_data *md, int value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_set_faith_pre ) { - int (*preHookFunc) (struct mercenary_data *md, int *value); + int (*preHookFunc) (struct mercenary_data **md, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_faith_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_set_faith_pre[hIndex].func; - retVal___ = preHookFunc(md, &value); + retVal___ = preHookFunc(&md, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43953,10 +44068,10 @@ int HP_mercenary_set_faith(struct mercenary_data *md, int value) { retVal___ = HPMHooks.source.mercenary.set_faith(md, value); } if( HPMHooks.count.HP_mercenary_set_faith_post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, int *value); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_faith_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_set_faith_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &value); + retVal___ = postHookFunc(retVal___, md, value); } } return retVal___; @@ -43965,11 +44080,11 @@ int HP_mercenary_get_calls(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_get_calls_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_calls_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_get_calls_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -43992,11 +44107,11 @@ int HP_mercenary_set_calls(struct mercenary_data *md, int value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_set_calls_pre ) { - int (*preHookFunc) (struct mercenary_data *md, int *value); + int (*preHookFunc) (struct mercenary_data **md, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_calls_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_set_calls_pre[hIndex].func; - retVal___ = preHookFunc(md, &value); + retVal___ = preHookFunc(&md, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44007,10 +44122,10 @@ int HP_mercenary_set_calls(struct mercenary_data *md, int value) { retVal___ = HPMHooks.source.mercenary.set_calls(md, value); } if( HPMHooks.count.HP_mercenary_set_calls_post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, int *value); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_calls_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_set_calls_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &value); + retVal___ = postHookFunc(retVal___, md, value); } } return retVal___; @@ -44019,11 +44134,11 @@ int HP_mercenary_kills(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_kills_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_kills_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_kills_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44046,11 +44161,11 @@ int HP_mercenary_checkskill(struct mercenary_data *md, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_checkskill_pre ) { - int (*preHookFunc) (struct mercenary_data *md, uint16 *skill_id); + int (*preHookFunc) (struct mercenary_data **md, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_checkskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_checkskill_pre[hIndex].func; - retVal___ = preHookFunc(md, &skill_id); + retVal___ = preHookFunc(&md, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44061,10 +44176,10 @@ int HP_mercenary_checkskill(struct mercenary_data *md, uint16 skill_id) { retVal___ = HPMHooks.source.mercenary.checkskill(md, skill_id); } if( HPMHooks.count.HP_mercenary_checkskill_post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_checkskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_checkskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &skill_id); + retVal___ = postHookFunc(retVal___, md, skill_id); } } return retVal___; @@ -44127,11 +44242,11 @@ int HP_mercenary_killbonus(struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mercenary_killbonus_pre ) { - int (*preHookFunc) (struct mercenary_data *md); + int (*preHookFunc) (struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_killbonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_killbonus_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44169,10 +44284,10 @@ int HP_mercenary_search_index(int class_) { retVal___ = HPMHooks.source.mercenary.search_index(class_); } if( HPMHooks.count.HP_mercenary_search_index_post ) { - int (*postHookFunc) (int retVal___, int *class_); + int (*postHookFunc) (int retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_search_index_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_search_index_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -44196,10 +44311,10 @@ int HP_mercenary_contract_end_timer(int tid, int64 tick, int id, intptr_t data) retVal___ = HPMHooks.source.mercenary.contract_end_timer(tid, tick, id, data); } if( HPMHooks.count.HP_mercenary_contract_end_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_contract_end_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_contract_end_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -44208,11 +44323,11 @@ bool HP_mercenary_read_db_sub(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mercenary_read_db_sub_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_read_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44223,10 +44338,10 @@ bool HP_mercenary_read_db_sub(char *str[], int columns, int current) { retVal___ = HPMHooks.source.mercenary.read_db_sub(str, columns, current); } if( HPMHooks.count.HP_mercenary_read_db_sub_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_read_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; @@ -44235,11 +44350,11 @@ bool HP_mercenary_read_skill_db_sub(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mercenary_read_skill_db_sub_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_skill_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mercenary_read_skill_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44250,15 +44365,15 @@ bool HP_mercenary_read_skill_db_sub(char *str[], int columns, int current) { retVal___ = HPMHooks.source.mercenary.read_skill_db_sub(str, columns, current); } if( HPMHooks.count.HP_mercenary_read_skill_db_sub_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_skill_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mercenary_read_skill_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; } -/* mob */ +/* mob_interface */ int HP_mob_init(bool mimimal) { int hIndex = 0; int retVal___ = 0; @@ -44278,10 +44393,10 @@ int HP_mob_init(bool mimimal) { retVal___ = HPMHooks.source.mob.init(mimimal); } if( HPMHooks.count.HP_mob_init_post ) { - int (*postHookFunc) (int retVal___, bool *mimimal); + int (*postHookFunc) (int retVal___, bool mimimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &mimimal); + retVal___ = postHookFunc(retVal___, mimimal); } } return retVal___; @@ -44358,10 +44473,10 @@ struct mob_db* HP_mob_db(int index) { retVal___ = HPMHooks.source.mob.db(index); } if( HPMHooks.count.HP_mob_db_post ) { - struct mob_db* (*postHookFunc) (struct mob_db* retVal___, int *index); + struct mob_db* (*postHookFunc) (struct mob_db* retVal___, int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_db_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &index); + retVal___ = postHookFunc(retVal___, index); } } return retVal___; @@ -44385,10 +44500,10 @@ struct mob_chat* HP_mob_chat(short id) { retVal___ = HPMHooks.source.mob.chat(id); } if( HPMHooks.count.HP_mob_chat_post ) { - struct mob_chat* (*postHookFunc) (struct mob_chat* retVal___, short *id); + struct mob_chat* (*postHookFunc) (struct mob_chat* retVal___, short id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_chat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_chat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -44412,10 +44527,10 @@ int HP_mob_makedummymobdb(int p1) { retVal___ = HPMHooks.source.mob.makedummymobdb(p1); } if( HPMHooks.count.HP_mob_makedummymobdb_post ) { - int (*postHookFunc) (int retVal___, int *p1); + int (*postHookFunc) (int retVal___, int p1); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_makedummymobdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_makedummymobdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &p1); + retVal___ = postHookFunc(retVal___, p1); } } return retVal___; @@ -44439,10 +44554,10 @@ int HP_mob_spawn_guardian_sub(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.spawn_guardian_sub(tid, tick, id, data); } if( HPMHooks.count.HP_mob_spawn_guardian_sub_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_guardian_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_spawn_guardian_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -44466,10 +44581,10 @@ int HP_mob_skill_id2skill_idx(int class_, uint16 skill_id) { retVal___ = HPMHooks.source.mob.skill_id2skill_idx(class_, skill_id); } if( HPMHooks.count.HP_mob_skill_id2skill_idx_post ) { - int (*postHookFunc) (int retVal___, int *class_, uint16 *skill_id); + int (*postHookFunc) (int retVal___, int class_, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_id2skill_idx_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_skill_id2skill_idx_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_, &skill_id); + retVal___ = postHookFunc(retVal___, class_, skill_id); } } return retVal___; @@ -44478,11 +44593,11 @@ int HP_mob_db_searchname(const char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_db_searchname_pre ) { - int (*preHookFunc) (const char *str); + int (*preHookFunc) (const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_db_searchname_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44505,11 +44620,11 @@ int HP_mob_db_searchname_array_sub(struct mob_db *monster, const char *str, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_db_searchname_array_sub_pre ) { - int (*preHookFunc) (struct mob_db *monster, const char *str, int *flag); + int (*preHookFunc) (struct mob_db **monster, const char **str, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_db_searchname_array_sub_pre[hIndex].func; - retVal___ = preHookFunc(monster, str, &flag); + retVal___ = preHookFunc(&monster, &str, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44520,10 +44635,10 @@ int HP_mob_db_searchname_array_sub(struct mob_db *monster, const char *str, int retVal___ = HPMHooks.source.mob.db_searchname_array_sub(monster, str, flag); } if( HPMHooks.count.HP_mob_db_searchname_array_sub_post ) { - int (*postHookFunc) (int retVal___, struct mob_db *monster, const char *str, int *flag); + int (*postHookFunc) (int retVal___, struct mob_db *monster, const char *str, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_db_searchname_array_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, monster, str, &flag); + retVal___ = postHookFunc(retVal___, monster, str, flag); } } return retVal___; @@ -44531,11 +44646,11 @@ int HP_mob_db_searchname_array_sub(struct mob_db *monster, const char *str, int void HP_mob_mvptomb_create(struct mob_data *md, char *killer, time_t time) { int hIndex = 0; if( HPMHooks.count.HP_mob_mvptomb_create_pre ) { - void (*preHookFunc) (struct mob_data *md, char *killer, time_t *time); + void (*preHookFunc) (struct mob_data **md, char **killer, time_t *time); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_mvptomb_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_mvptomb_create_pre[hIndex].func; - preHookFunc(md, killer, &time); + preHookFunc(&md, &killer, &time); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44546,10 +44661,10 @@ void HP_mob_mvptomb_create(struct mob_data *md, char *killer, time_t time) { HPMHooks.source.mob.mvptomb_create(md, killer, time); } if( HPMHooks.count.HP_mob_mvptomb_create_post ) { - void (*postHookFunc) (struct mob_data *md, char *killer, time_t *time); + void (*postHookFunc) (struct mob_data *md, char *killer, time_t time); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_mvptomb_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_mvptomb_create_post[hIndex].func; - postHookFunc(md, killer, &time); + postHookFunc(md, killer, time); } } return; @@ -44557,11 +44672,11 @@ void HP_mob_mvptomb_create(struct mob_data *md, char *killer, time_t time) { void HP_mob_mvptomb_destroy(struct mob_data *md) { int hIndex = 0; if( HPMHooks.count.HP_mob_mvptomb_destroy_pre ) { - void (*preHookFunc) (struct mob_data *md); + void (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_mvptomb_destroy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_mvptomb_destroy_pre[hIndex].func; - preHookFunc(md); + preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44584,11 +44699,11 @@ int HP_mob_db_searchname_array(struct mob_db **data, int size, const char *str, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_db_searchname_array_pre ) { - int (*preHookFunc) (struct mob_db **data, int *size, const char *str, int *flag); + int (*preHookFunc) (struct mob_db ***data, int *size, const char **str, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_db_searchname_array_pre[hIndex].func; - retVal___ = preHookFunc(data, &size, str, &flag); + retVal___ = preHookFunc(&data, &size, &str, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44599,10 +44714,10 @@ int HP_mob_db_searchname_array(struct mob_db **data, int size, const char *str, retVal___ = HPMHooks.source.mob.db_searchname_array(data, size, str, flag); } if( HPMHooks.count.HP_mob_db_searchname_array_post ) { - int (*postHookFunc) (int retVal___, struct mob_db **data, int *size, const char *str, int *flag); + int (*postHookFunc) (int retVal___, struct mob_db **data, int size, const char *str, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_db_searchname_array_post[hIndex].func; - retVal___ = postHookFunc(retVal___, data, &size, str, &flag); + retVal___ = postHookFunc(retVal___, data, size, str, flag); } } return retVal___; @@ -44626,10 +44741,10 @@ int HP_mob_db_checkid(const int id) { retVal___ = HPMHooks.source.mob.db_checkid(id); } if( HPMHooks.count.HP_mob_db_checkid_post ) { - int (*postHookFunc) (int retVal___, const int *id); + int (*postHookFunc) (int retVal___, const int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_checkid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_db_checkid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -44653,10 +44768,10 @@ struct view_data* HP_mob_get_viewdata(int class_) { retVal___ = HPMHooks.source.mob.get_viewdata(class_); } if( HPMHooks.count.HP_mob_get_viewdata_post ) { - struct view_data* (*postHookFunc) (struct view_data* retVal___, int *class_); + struct view_data* (*postHookFunc) (struct view_data* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_get_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_get_viewdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -44665,11 +44780,11 @@ int HP_mob_parse_dataset(struct spawn_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_parse_dataset_pre ) { - int (*preHookFunc) (struct spawn_data *data); + int (*preHookFunc) (struct spawn_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_dataset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_parse_dataset_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44692,11 +44807,11 @@ struct mob_data* HP_mob_spawn_dataset(struct spawn_data *data) { int hIndex = 0; struct mob_data* retVal___ = NULL; if( HPMHooks.count.HP_mob_spawn_dataset_pre ) { - struct mob_data* (*preHookFunc) (struct spawn_data *data); + struct mob_data* (*preHookFunc) (struct spawn_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_dataset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_spawn_dataset_pre[hIndex].func; - retVal___ = preHookFunc(data); + retVal___ = preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44734,10 +44849,10 @@ int HP_mob_get_random_id(int type, int flag, int lv) { retVal___ = HPMHooks.source.mob.get_random_id(type, flag, lv); } if( HPMHooks.count.HP_mob_get_random_id_post ) { - int (*postHookFunc) (int retVal___, int *type, int *flag, int *lv); + int (*postHookFunc) (int retVal___, int type, int flag, int lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_get_random_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_get_random_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type, &flag, &lv); + retVal___ = postHookFunc(retVal___, type, flag, lv); } } return retVal___; @@ -44746,11 +44861,11 @@ bool HP_mob_ksprotected(struct block_list *src, struct block_list *target) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_ksprotected_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *target); + bool (*preHookFunc) (struct block_list **src, struct block_list **target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ksprotected_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_ksprotected_pre[hIndex].func; - retVal___ = preHookFunc(src, target); + retVal___ = preHookFunc(&src, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44773,11 +44888,11 @@ struct mob_data* HP_mob_once_spawn_sub(struct block_list *bl, int16 m, int16 x, int hIndex = 0; struct mob_data* retVal___ = NULL; if( HPMHooks.count.HP_mob_once_spawn_sub_pre ) { - struct mob_data* (*preHookFunc) (struct block_list *bl, int16 *m, int16 *x, int16 *y, const char *mobname, int *class_, const char *event, unsigned int *size, unsigned int *ai); + struct mob_data* (*preHookFunc) (struct block_list **bl, int16 *m, int16 *x, int16 *y, const char **mobname, int *class_, const char **event, unsigned int *size, unsigned int *ai); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_once_spawn_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, &m, &x, &y, mobname, &class_, event, &size, &ai); + retVal___ = preHookFunc(&bl, &m, &x, &y, &mobname, &class_, &event, &size, &ai); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44788,10 +44903,10 @@ struct mob_data* HP_mob_once_spawn_sub(struct block_list *bl, int16 m, int16 x, retVal___ = HPMHooks.source.mob.once_spawn_sub(bl, m, x, y, mobname, class_, event, size, ai); } if( HPMHooks.count.HP_mob_once_spawn_sub_post ) { - struct mob_data* (*postHookFunc) (struct mob_data* retVal___, struct block_list *bl, int16 *m, int16 *x, int16 *y, const char *mobname, int *class_, const char *event, unsigned int *size, unsigned int *ai); + struct mob_data* (*postHookFunc) (struct mob_data* retVal___, struct block_list *bl, int16 m, int16 x, int16 y, const char *mobname, int class_, const char *event, unsigned int size, unsigned int ai); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_once_spawn_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &m, &x, &y, mobname, &class_, event, &size, &ai); + retVal___ = postHookFunc(retVal___, bl, m, x, y, mobname, class_, event, size, ai); } } return retVal___; @@ -44800,11 +44915,11 @@ int HP_mob_once_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, co int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_once_spawn_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai); + int (*preHookFunc) (struct map_session_data **sd, int16 *m, int16 *x, int16 *y, const char **mobname, int *class_, int *amount, const char **event, unsigned int *size, unsigned int *ai); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_once_spawn_pre[hIndex].func; - retVal___ = preHookFunc(sd, &m, &x, &y, mobname, &class_, &amount, event, &size, &ai); + retVal___ = preHookFunc(&sd, &m, &x, &y, &mobname, &class_, &amount, &event, &size, &ai); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44815,10 +44930,10 @@ int HP_mob_once_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, co retVal___ = HPMHooks.source.mob.once_spawn(sd, m, x, y, mobname, class_, amount, event, size, ai); } if( HPMHooks.count.HP_mob_once_spawn_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 m, int16 x, int16 y, const char *mobname, int class_, int amount, const char *event, unsigned int size, unsigned int ai); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_once_spawn_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &m, &x, &y, mobname, &class_, &amount, event, &size, &ai); + retVal___ = postHookFunc(retVal___, sd, m, x, y, mobname, class_, amount, event, size, ai); } } return retVal___; @@ -44827,11 +44942,11 @@ int HP_mob_once_spawn_area(struct map_session_data *sd, int16 m, int16 x0, int16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_once_spawn_area_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai); + int (*preHookFunc) (struct map_session_data **sd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, const char **mobname, int *class_, int *amount, const char **event, unsigned int *size, unsigned int *ai); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_area_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_once_spawn_area_pre[hIndex].func; - retVal___ = preHookFunc(sd, &m, &x0, &y0, &x1, &y1, mobname, &class_, &amount, event, &size, &ai); + retVal___ = preHookFunc(&sd, &m, &x0, &y0, &x1, &y1, &mobname, &class_, &amount, &event, &size, &ai); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44842,10 +44957,10 @@ int HP_mob_once_spawn_area(struct map_session_data *sd, int16 m, int16 x0, int16 retVal___ = HPMHooks.source.mob.once_spawn_area(sd, m, x0, y0, x1, y1, mobname, class_, amount, event, size, ai); } if( HPMHooks.count.HP_mob_once_spawn_area_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, const char *mobname, int class_, int amount, const char *event, unsigned int size, unsigned int ai); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_area_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_once_spawn_area_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &m, &x0, &y0, &x1, &y1, mobname, &class_, &amount, event, &size, &ai); + retVal___ = postHookFunc(retVal___, sd, m, x0, y0, x1, y1, mobname, class_, amount, event, size, ai); } } return retVal___; @@ -44854,11 +44969,11 @@ int HP_mob_spawn_guardian(const char *mapname, short x, short y, const char *mob int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_spawn_guardian_pre ) { - int (*preHookFunc) (const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, int *guardian, bool *has_index); + int (*preHookFunc) (const char **mapname, short *x, short *y, const char **mobname, int *class_, const char **event, int *guardian, bool *has_index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_guardian_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_spawn_guardian_pre[hIndex].func; - retVal___ = preHookFunc(mapname, &x, &y, mobname, &class_, event, &guardian, &has_index); + retVal___ = preHookFunc(&mapname, &x, &y, &mobname, &class_, &event, &guardian, &has_index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44869,10 +44984,10 @@ int HP_mob_spawn_guardian(const char *mapname, short x, short y, const char *mob retVal___ = HPMHooks.source.mob.spawn_guardian(mapname, x, y, mobname, class_, event, guardian, has_index); } if( HPMHooks.count.HP_mob_spawn_guardian_post ) { - int (*postHookFunc) (int retVal___, const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, int *guardian, bool *has_index); + int (*postHookFunc) (int retVal___, const char *mapname, short x, short y, const char *mobname, int class_, const char *event, int guardian, bool has_index); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_guardian_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_spawn_guardian_post[hIndex].func; - retVal___ = postHookFunc(retVal___, mapname, &x, &y, mobname, &class_, event, &guardian, &has_index); + retVal___ = postHookFunc(retVal___, mapname, x, y, mobname, class_, event, guardian, has_index); } } return retVal___; @@ -44881,11 +44996,11 @@ int HP_mob_spawn_bg(const char *mapname, short x, short y, const char *mobname, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_spawn_bg_pre ) { - int (*preHookFunc) (const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, unsigned int *bg_id); + int (*preHookFunc) (const char **mapname, short *x, short *y, const char **mobname, int *class_, const char **event, unsigned int *bg_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_bg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_spawn_bg_pre[hIndex].func; - retVal___ = preHookFunc(mapname, &x, &y, mobname, &class_, event, &bg_id); + retVal___ = preHookFunc(&mapname, &x, &y, &mobname, &class_, &event, &bg_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44896,10 +45011,10 @@ int HP_mob_spawn_bg(const char *mapname, short x, short y, const char *mobname, retVal___ = HPMHooks.source.mob.spawn_bg(mapname, x, y, mobname, class_, event, bg_id); } if( HPMHooks.count.HP_mob_spawn_bg_post ) { - int (*postHookFunc) (int retVal___, const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, unsigned int *bg_id); + int (*postHookFunc) (int retVal___, const char *mapname, short x, short y, const char *mobname, int class_, const char *event, unsigned int bg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_bg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_spawn_bg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, mapname, &x, &y, mobname, &class_, event, &bg_id); + retVal___ = postHookFunc(retVal___, mapname, x, y, mobname, class_, event, bg_id); } } return retVal___; @@ -44908,11 +45023,11 @@ int HP_mob_can_reach(struct mob_data *md, struct block_list *bl, int range, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_can_reach_pre ) { - int (*preHookFunc) (struct mob_data *md, struct block_list *bl, int *range, int *state); + int (*preHookFunc) (struct mob_data **md, struct block_list **bl, int *range, int *state); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_reach_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_can_reach_pre[hIndex].func; - retVal___ = preHookFunc(md, bl, &range, &state); + retVal___ = preHookFunc(&md, &bl, &range, &state); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -44923,10 +45038,10 @@ int HP_mob_can_reach(struct mob_data *md, struct block_list *bl, int range, int retVal___ = HPMHooks.source.mob.can_reach(md, bl, range, state); } if( HPMHooks.count.HP_mob_can_reach_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *bl, int *range, int *state); + int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *bl, int range, int state); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_reach_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_can_reach_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, bl, &range, &state); + retVal___ = postHookFunc(retVal___, md, bl, range, state); } } return retVal___; @@ -44935,12 +45050,12 @@ int HP_mob_linksearch(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_linksearch_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_linksearch_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_linksearch_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -44983,10 +45098,10 @@ int HP_mob_delayspawn(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.delayspawn(tid, tick, id, data); } if( HPMHooks.count.HP_mob_delayspawn_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_delayspawn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_delayspawn_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -44995,11 +45110,11 @@ int HP_mob_setdelayspawn(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_setdelayspawn_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_setdelayspawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_setdelayspawn_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45022,12 +45137,12 @@ int HP_mob_count_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_count_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_count_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_count_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45055,11 +45170,11 @@ int HP_mob_spawn(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_spawn_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_spawn_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45082,11 +45197,11 @@ int HP_mob_can_changetarget(const struct mob_data *md, const struct block_list * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_can_changetarget_pre ) { - int (*preHookFunc) (const struct mob_data *md, const struct block_list *target, uint32 *mode); + int (*preHookFunc) (const struct mob_data **md, const struct block_list **target, uint32 *mode); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_changetarget_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_can_changetarget_pre[hIndex].func; - retVal___ = preHookFunc(md, target, &mode); + retVal___ = preHookFunc(&md, &target, &mode); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45097,10 +45212,10 @@ int HP_mob_can_changetarget(const struct mob_data *md, const struct block_list * retVal___ = HPMHooks.source.mob.can_changetarget(md, target, mode); } if( HPMHooks.count.HP_mob_can_changetarget_post ) { - int (*postHookFunc) (int retVal___, const struct mob_data *md, const struct block_list *target, uint32 *mode); + int (*postHookFunc) (int retVal___, const struct mob_data *md, const struct block_list *target, uint32 mode); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_changetarget_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_can_changetarget_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, target, &mode); + retVal___ = postHookFunc(retVal___, md, target, mode); } } return retVal___; @@ -45109,11 +45224,11 @@ int HP_mob_target(struct mob_data *md, struct block_list *bl, int dist) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_target_pre ) { - int (*preHookFunc) (struct mob_data *md, struct block_list *bl, int *dist); + int (*preHookFunc) (struct mob_data **md, struct block_list **bl, int *dist); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_target_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_target_pre[hIndex].func; - retVal___ = preHookFunc(md, bl, &dist); + retVal___ = preHookFunc(&md, &bl, &dist); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45124,10 +45239,10 @@ int HP_mob_target(struct mob_data *md, struct block_list *bl, int dist) { retVal___ = HPMHooks.source.mob.target(md, bl, dist); } if( HPMHooks.count.HP_mob_target_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *bl, int *dist); + int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *bl, int dist); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_target_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_target_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, bl, &dist); + retVal___ = postHookFunc(retVal___, md, bl, dist); } } return retVal___; @@ -45136,12 +45251,12 @@ int HP_mob_ai_sub_hard_activesearch(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_activesearch_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_activesearch_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_activesearch_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45169,12 +45284,12 @@ int HP_mob_ai_sub_hard_changechase(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_changechase_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_changechase_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_changechase_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45202,12 +45317,12 @@ int HP_mob_ai_sub_hard_bg_ally(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_bg_ally_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_bg_ally_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_bg_ally_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45235,12 +45350,12 @@ int HP_mob_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_lootsearch_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_lootsearch_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_lootsearch_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45268,12 +45383,12 @@ int HP_mob_warpchase_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_warpchase_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpchase_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_warpchase_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45301,11 +45416,11 @@ int HP_mob_ai_sub_hard_slavemob(struct mob_data *md, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_slavemob_pre ) { - int (*preHookFunc) (struct mob_data *md, int64 *tick); + int (*preHookFunc) (struct mob_data **md, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_slavemob_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_slavemob_pre[hIndex].func; - retVal___ = preHookFunc(md, &tick); + retVal___ = preHookFunc(&md, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45316,10 +45431,10 @@ int HP_mob_ai_sub_hard_slavemob(struct mob_data *md, int64 tick) { retVal___ = HPMHooks.source.mob.ai_sub_hard_slavemob(md, tick); } if( HPMHooks.count.HP_mob_ai_sub_hard_slavemob_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, int64 *tick); + int (*postHookFunc) (int retVal___, struct mob_data *md, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_slavemob_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_slavemob_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &tick); + retVal___ = postHookFunc(retVal___, md, tick); } } return retVal___; @@ -45328,11 +45443,11 @@ int HP_mob_unlocktarget(struct mob_data *md, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_unlocktarget_pre ) { - int (*preHookFunc) (struct mob_data *md, int64 *tick); + int (*preHookFunc) (struct mob_data **md, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_unlocktarget_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_unlocktarget_pre[hIndex].func; - retVal___ = preHookFunc(md, &tick); + retVal___ = preHookFunc(&md, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45343,10 +45458,10 @@ int HP_mob_unlocktarget(struct mob_data *md, int64 tick) { retVal___ = HPMHooks.source.mob.unlocktarget(md, tick); } if( HPMHooks.count.HP_mob_unlocktarget_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, int64 *tick); + int (*postHookFunc) (int retVal___, struct mob_data *md, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_unlocktarget_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_unlocktarget_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &tick); + retVal___ = postHookFunc(retVal___, md, tick); } } return retVal___; @@ -45355,11 +45470,11 @@ int HP_mob_randomwalk(struct mob_data *md, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_randomwalk_pre ) { - int (*preHookFunc) (struct mob_data *md, int64 *tick); + int (*preHookFunc) (struct mob_data **md, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_randomwalk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_randomwalk_pre[hIndex].func; - retVal___ = preHookFunc(md, &tick); + retVal___ = preHookFunc(&md, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45370,10 +45485,10 @@ int HP_mob_randomwalk(struct mob_data *md, int64 tick) { retVal___ = HPMHooks.source.mob.randomwalk(md, tick); } if( HPMHooks.count.HP_mob_randomwalk_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, int64 *tick); + int (*postHookFunc) (int retVal___, struct mob_data *md, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_randomwalk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_randomwalk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &tick); + retVal___ = postHookFunc(retVal___, md, tick); } } return retVal___; @@ -45382,11 +45497,11 @@ int HP_mob_warpchase(struct mob_data *md, struct block_list *target) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_warpchase_pre ) { - int (*preHookFunc) (struct mob_data *md, struct block_list *target); + int (*preHookFunc) (struct mob_data **md, struct block_list **target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpchase_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_warpchase_pre[hIndex].func; - retVal___ = preHookFunc(md, target); + retVal___ = preHookFunc(&md, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45409,11 +45524,11 @@ bool HP_mob_ai_sub_hard(struct mob_data *md, int64 tick) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_ai_sub_hard_pre ) { - bool (*preHookFunc) (struct mob_data *md, int64 *tick); + bool (*preHookFunc) (struct mob_data **md, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_pre[hIndex].func; - retVal___ = preHookFunc(md, &tick); + retVal___ = preHookFunc(&md, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45424,10 +45539,10 @@ bool HP_mob_ai_sub_hard(struct mob_data *md, int64 tick) { retVal___ = HPMHooks.source.mob.ai_sub_hard(md, tick); } if( HPMHooks.count.HP_mob_ai_sub_hard_post ) { - bool (*postHookFunc) (bool retVal___, struct mob_data *md, int64 *tick); + bool (*postHookFunc) (bool retVal___, struct mob_data *md, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &tick); + retVal___ = postHookFunc(retVal___, md, tick); } } return retVal___; @@ -45436,12 +45551,12 @@ int HP_mob_ai_sub_hard_timer(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_hard_timer_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_timer_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_hard_timer_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45469,12 +45584,12 @@ int HP_mob_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_foreachclient_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_foreachclient_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_ai_sub_foreachclient_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45502,12 +45617,12 @@ int HP_mob_ai_sub_lazy(struct mob_data *md, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_ai_sub_lazy_pre ) { - int (*preHookFunc) (struct mob_data *md, va_list args); + int (*preHookFunc) (struct mob_data **md, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_lazy_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_mob_ai_sub_lazy_pre[hIndex].func; - retVal___ = preHookFunc(md, args___copy); + retVal___ = preHookFunc(&md, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -45550,10 +45665,10 @@ int HP_mob_ai_lazy(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.ai_lazy(tid, tick, id, data); } if( HPMHooks.count.HP_mob_ai_lazy_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_lazy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_ai_lazy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -45577,10 +45692,10 @@ int HP_mob_ai_hard(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.ai_hard(tid, tick, id, data); } if( HPMHooks.count.HP_mob_ai_hard_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_hard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_ai_hard_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -45589,11 +45704,11 @@ struct item_drop* HP_mob_setdropitem(int nameid, int qty, struct item_data *data int hIndex = 0; struct item_drop* retVal___ = NULL; if( HPMHooks.count.HP_mob_setdropitem_pre ) { - struct item_drop* (*preHookFunc) (int *nameid, int *qty, struct item_data *data); + struct item_drop* (*preHookFunc) (int *nameid, int *qty, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_setdropitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_setdropitem_pre[hIndex].func; - retVal___ = preHookFunc(&nameid, &qty, data); + retVal___ = preHookFunc(&nameid, &qty, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45604,10 +45719,10 @@ struct item_drop* HP_mob_setdropitem(int nameid, int qty, struct item_data *data retVal___ = HPMHooks.source.mob.setdropitem(nameid, qty, data); } if( HPMHooks.count.HP_mob_setdropitem_post ) { - struct item_drop* (*postHookFunc) (struct item_drop* retVal___, int *nameid, int *qty, struct item_data *data); + struct item_drop* (*postHookFunc) (struct item_drop* retVal___, int nameid, int qty, struct item_data *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_setdropitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_setdropitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &nameid, &qty, data); + retVal___ = postHookFunc(retVal___, nameid, qty, data); } } return retVal___; @@ -45616,11 +45731,11 @@ struct item_drop* HP_mob_setlootitem(struct item *item) { int hIndex = 0; struct item_drop* retVal___ = NULL; if( HPMHooks.count.HP_mob_setlootitem_pre ) { - struct item_drop* (*preHookFunc) (struct item *item); + struct item_drop* (*preHookFunc) (struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_setlootitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_setlootitem_pre[hIndex].func; - retVal___ = preHookFunc(item); + retVal___ = preHookFunc(&item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45658,10 +45773,10 @@ int HP_mob_delay_item_drop(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.delay_item_drop(tid, tick, id, data); } if( HPMHooks.count.HP_mob_delay_item_drop_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_delay_item_drop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_delay_item_drop_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -45669,11 +45784,11 @@ int HP_mob_delay_item_drop(int tid, int64 tick, int id, intptr_t data) { void HP_mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, struct item_drop *ditem, int loot, int drop_rate, unsigned short flag) { int hIndex = 0; if( HPMHooks.count.HP_mob_item_drop_pre ) { - void (*preHookFunc) (struct mob_data *md, struct item_drop_list *dlist, struct item_drop *ditem, int *loot, int *drop_rate, unsigned short *flag); + void (*preHookFunc) (struct mob_data **md, struct item_drop_list **dlist, struct item_drop **ditem, int *loot, int *drop_rate, unsigned short *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_item_drop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_item_drop_pre[hIndex].func; - preHookFunc(md, dlist, ditem, &loot, &drop_rate, &flag); + preHookFunc(&md, &dlist, &ditem, &loot, &drop_rate, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45684,10 +45799,10 @@ void HP_mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, struct HPMHooks.source.mob.item_drop(md, dlist, ditem, loot, drop_rate, flag); } if( HPMHooks.count.HP_mob_item_drop_post ) { - void (*postHookFunc) (struct mob_data *md, struct item_drop_list *dlist, struct item_drop *ditem, int *loot, int *drop_rate, unsigned short *flag); + void (*postHookFunc) (struct mob_data *md, struct item_drop_list *dlist, struct item_drop *ditem, int loot, int drop_rate, unsigned short flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_item_drop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_item_drop_post[hIndex].func; - postHookFunc(md, dlist, ditem, &loot, &drop_rate, &flag); + postHookFunc(md, dlist, ditem, loot, drop_rate, flag); } } return; @@ -45711,10 +45826,10 @@ int HP_mob_timer_delete(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.timer_delete(tid, tick, id, data); } if( HPMHooks.count.HP_mob_timer_delete_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_timer_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_timer_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -45723,12 +45838,12 @@ int HP_mob_deleteslave_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_deleteslave_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_deleteslave_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_deleteslave_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -45756,11 +45871,11 @@ int HP_mob_deleteslave(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_deleteslave_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_deleteslave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_deleteslave_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45798,10 +45913,10 @@ int HP_mob_respawn(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.mob.respawn(tid, tick, id, data); } if( HPMHooks.count.HP_mob_respawn_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_respawn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_respawn_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -45809,11 +45924,11 @@ int HP_mob_respawn(int tid, int64 tick, int id, intptr_t data) { void HP_mob_log_damage(struct mob_data *md, struct block_list *src, int damage) { int hIndex = 0; if( HPMHooks.count.HP_mob_log_damage_pre ) { - void (*preHookFunc) (struct mob_data *md, struct block_list *src, int *damage); + void (*preHookFunc) (struct mob_data **md, struct block_list **src, int *damage); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_log_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_log_damage_pre[hIndex].func; - preHookFunc(md, src, &damage); + preHookFunc(&md, &src, &damage); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45824,10 +45939,10 @@ void HP_mob_log_damage(struct mob_data *md, struct block_list *src, int damage) HPMHooks.source.mob.log_damage(md, src, damage); } if( HPMHooks.count.HP_mob_log_damage_post ) { - void (*postHookFunc) (struct mob_data *md, struct block_list *src, int *damage); + void (*postHookFunc) (struct mob_data *md, struct block_list *src, int damage); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_log_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_log_damage_post[hIndex].func; - postHookFunc(md, src, &damage); + postHookFunc(md, src, damage); } } return; @@ -45835,11 +45950,11 @@ void HP_mob_log_damage(struct mob_data *md, struct block_list *src, int damage) void HP_mob_damage(struct mob_data *md, struct block_list *src, int damage) { int hIndex = 0; if( HPMHooks.count.HP_mob_damage_pre ) { - void (*preHookFunc) (struct mob_data *md, struct block_list *src, int *damage); + void (*preHookFunc) (struct mob_data **md, struct block_list **src, int *damage); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_damage_pre[hIndex].func; - preHookFunc(md, src, &damage); + preHookFunc(&md, &src, &damage); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45850,10 +45965,10 @@ void HP_mob_damage(struct mob_data *md, struct block_list *src, int damage) { HPMHooks.source.mob.damage(md, src, damage); } if( HPMHooks.count.HP_mob_damage_post ) { - void (*postHookFunc) (struct mob_data *md, struct block_list *src, int *damage); + void (*postHookFunc) (struct mob_data *md, struct block_list *src, int damage); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_damage_post[hIndex].func; - postHookFunc(md, src, &damage); + postHookFunc(md, src, damage); } } return; @@ -45862,11 +45977,11 @@ int HP_mob_dead(struct mob_data *md, struct block_list *src, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_dead_pre ) { - int (*preHookFunc) (struct mob_data *md, struct block_list *src, int *type); + int (*preHookFunc) (struct mob_data **md, struct block_list **src, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_dead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_dead_pre[hIndex].func; - retVal___ = preHookFunc(md, src, &type); + retVal___ = preHookFunc(&md, &src, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45877,10 +45992,10 @@ int HP_mob_dead(struct mob_data *md, struct block_list *src, int type) { retVal___ = HPMHooks.source.mob.dead(md, src, type); } if( HPMHooks.count.HP_mob_dead_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *src, int *type); + int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *src, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_dead_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_dead_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, src, &type); + retVal___ = postHookFunc(retVal___, md, src, type); } } return retVal___; @@ -45888,11 +46003,11 @@ int HP_mob_dead(struct mob_data *md, struct block_list *src, int type) { void HP_mob_revive(struct mob_data *md, unsigned int hp) { int hIndex = 0; if( HPMHooks.count.HP_mob_revive_pre ) { - void (*preHookFunc) (struct mob_data *md, unsigned int *hp); + void (*preHookFunc) (struct mob_data **md, unsigned int *hp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_revive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_revive_pre[hIndex].func; - preHookFunc(md, &hp); + preHookFunc(&md, &hp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45903,10 +46018,10 @@ void HP_mob_revive(struct mob_data *md, unsigned int hp) { HPMHooks.source.mob.revive(md, hp); } if( HPMHooks.count.HP_mob_revive_post ) { - void (*postHookFunc) (struct mob_data *md, unsigned int *hp); + void (*postHookFunc) (struct mob_data *md, unsigned int hp); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_revive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_revive_post[hIndex].func; - postHookFunc(md, &hp); + postHookFunc(md, hp); } } return; @@ -45915,11 +46030,11 @@ int HP_mob_guardian_guildchange(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_guardian_guildchange_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_guardian_guildchange_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_guardian_guildchange_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45942,11 +46057,11 @@ int HP_mob_random_class(int *value, size_t count) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_random_class_pre ) { - int (*preHookFunc) (int *value, size_t *count); + int (*preHookFunc) (int **value, size_t *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_random_class_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_random_class_pre[hIndex].func; - retVal___ = preHookFunc(value, &count); + retVal___ = preHookFunc(&value, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45957,10 +46072,10 @@ int HP_mob_random_class(int *value, size_t count) { retVal___ = HPMHooks.source.mob.random_class(value, count); } if( HPMHooks.count.HP_mob_random_class_post ) { - int (*postHookFunc) (int retVal___, int *value, size_t *count); + int (*postHookFunc) (int retVal___, int *value, size_t count); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_random_class_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_random_class_post[hIndex].func; - retVal___ = postHookFunc(retVal___, value, &count); + retVal___ = postHookFunc(retVal___, value, count); } } return retVal___; @@ -45969,11 +46084,11 @@ int HP_mob_class_change(struct mob_data *md, int class_) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_class_change_pre ) { - int (*preHookFunc) (struct mob_data *md, int *class_); + int (*preHookFunc) (struct mob_data **md, int *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_class_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_class_change_pre[hIndex].func; - retVal___ = preHookFunc(md, &class_); + retVal___ = preHookFunc(&md, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -45984,10 +46099,10 @@ int HP_mob_class_change(struct mob_data *md, int class_) { retVal___ = HPMHooks.source.mob.class_change(md, class_); } if( HPMHooks.count.HP_mob_class_change_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, int *class_); + int (*postHookFunc) (int retVal___, struct mob_data *md, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_class_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_class_change_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &class_); + retVal___ = postHookFunc(retVal___, md, class_); } } return retVal___; @@ -45995,11 +46110,11 @@ int HP_mob_class_change(struct mob_data *md, int class_) { void HP_mob_heal(struct mob_data *md, unsigned int heal) { int hIndex = 0; if( HPMHooks.count.HP_mob_heal_pre ) { - void (*preHookFunc) (struct mob_data *md, unsigned int *heal); + void (*preHookFunc) (struct mob_data **md, unsigned int *heal); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_heal_pre[hIndex].func; - preHookFunc(md, &heal); + preHookFunc(&md, &heal); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46010,10 +46125,10 @@ void HP_mob_heal(struct mob_data *md, unsigned int heal) { HPMHooks.source.mob.heal(md, heal); } if( HPMHooks.count.HP_mob_heal_post ) { - void (*postHookFunc) (struct mob_data *md, unsigned int *heal); + void (*postHookFunc) (struct mob_data *md, unsigned int heal); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_heal_post[hIndex].func; - postHookFunc(md, &heal); + postHookFunc(md, heal); } } return; @@ -46022,12 +46137,12 @@ int HP_mob_warpslave_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_warpslave_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpslave_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_warpslave_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -46055,11 +46170,11 @@ int HP_mob_warpslave(struct block_list *bl, int range) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_warpslave_pre ) { - int (*preHookFunc) (struct block_list *bl, int *range); + int (*preHookFunc) (struct block_list **bl, int *range); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpslave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_warpslave_pre[hIndex].func; - retVal___ = preHookFunc(bl, &range); + retVal___ = preHookFunc(&bl, &range); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46070,10 +46185,10 @@ int HP_mob_warpslave(struct block_list *bl, int range) { retVal___ = HPMHooks.source.mob.warpslave(bl, range); } if( HPMHooks.count.HP_mob_warpslave_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *range); + int (*postHookFunc) (int retVal___, struct block_list *bl, int range); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpslave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_warpslave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &range); + retVal___ = postHookFunc(retVal___, bl, range); } } return retVal___; @@ -46082,12 +46197,12 @@ int HP_mob_countslave_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_countslave_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_countslave_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_countslave_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -46115,11 +46230,11 @@ int HP_mob_countslave(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_countslave_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_countslave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_countslave_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46142,11 +46257,11 @@ int HP_mob_summonslave(struct mob_data *md2, int *value, int amount, uint16 skil int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_summonslave_pre ) { - int (*preHookFunc) (struct mob_data *md2, int *value, int *amount, uint16 *skill_id); + int (*preHookFunc) (struct mob_data **md2, int **value, int *amount, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_summonslave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_summonslave_pre[hIndex].func; - retVal___ = preHookFunc(md2, value, &amount, &skill_id); + retVal___ = preHookFunc(&md2, &value, &amount, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46157,10 +46272,10 @@ int HP_mob_summonslave(struct mob_data *md2, int *value, int amount, uint16 skil retVal___ = HPMHooks.source.mob.summonslave(md2, value, amount, skill_id); } if( HPMHooks.count.HP_mob_summonslave_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md2, int *value, int *amount, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct mob_data *md2, int *value, int amount, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_summonslave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_summonslave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md2, value, &amount, &skill_id); + retVal___ = postHookFunc(retVal___, md2, value, amount, skill_id); } } return retVal___; @@ -46169,12 +46284,12 @@ int HP_mob_getfriendhprate_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_getfriendhprate_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendhprate_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_getfriendhprate_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -46202,11 +46317,11 @@ struct block_list* HP_mob_getfriendhprate(struct mob_data *md, int min_rate, int int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mob_getfriendhprate_pre ) { - struct block_list* (*preHookFunc) (struct mob_data *md, int *min_rate, int *max_rate); + struct block_list* (*preHookFunc) (struct mob_data **md, int *min_rate, int *max_rate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendhprate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_getfriendhprate_pre[hIndex].func; - retVal___ = preHookFunc(md, &min_rate, &max_rate); + retVal___ = preHookFunc(&md, &min_rate, &max_rate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46217,10 +46332,10 @@ struct block_list* HP_mob_getfriendhprate(struct mob_data *md, int min_rate, int retVal___ = HPMHooks.source.mob.getfriendhprate(md, min_rate, max_rate); } if( HPMHooks.count.HP_mob_getfriendhprate_post ) { - struct block_list* (*postHookFunc) (struct block_list* retVal___, struct mob_data *md, int *min_rate, int *max_rate); + struct block_list* (*postHookFunc) (struct block_list* retVal___, struct mob_data *md, int min_rate, int max_rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendhprate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_getfriendhprate_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &min_rate, &max_rate); + retVal___ = postHookFunc(retVal___, md, min_rate, max_rate); } } return retVal___; @@ -46229,11 +46344,11 @@ struct block_list* HP_mob_getmasterhpltmaxrate(struct mob_data *md, int rate) { int hIndex = 0; struct block_list* retVal___ = NULL; if( HPMHooks.count.HP_mob_getmasterhpltmaxrate_pre ) { - struct block_list* (*preHookFunc) (struct mob_data *md, int *rate); + struct block_list* (*preHookFunc) (struct mob_data **md, int *rate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getmasterhpltmaxrate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_getmasterhpltmaxrate_pre[hIndex].func; - retVal___ = preHookFunc(md, &rate); + retVal___ = preHookFunc(&md, &rate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46244,10 +46359,10 @@ struct block_list* HP_mob_getmasterhpltmaxrate(struct mob_data *md, int rate) { retVal___ = HPMHooks.source.mob.getmasterhpltmaxrate(md, rate); } if( HPMHooks.count.HP_mob_getmasterhpltmaxrate_post ) { - struct block_list* (*postHookFunc) (struct block_list* retVal___, struct mob_data *md, int *rate); + struct block_list* (*postHookFunc) (struct block_list* retVal___, struct mob_data *md, int rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getmasterhpltmaxrate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_getmasterhpltmaxrate_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &rate); + retVal___ = postHookFunc(retVal___, md, rate); } } return retVal___; @@ -46256,12 +46371,12 @@ int HP_mob_getfriendstatus_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_getfriendstatus_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendstatus_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_mob_getfriendstatus_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -46289,11 +46404,11 @@ struct mob_data* HP_mob_getfriendstatus(struct mob_data *md, int cond1, int cond int hIndex = 0; struct mob_data* retVal___ = NULL; if( HPMHooks.count.HP_mob_getfriendstatus_pre ) { - struct mob_data* (*preHookFunc) (struct mob_data *md, int *cond1, int *cond2); + struct mob_data* (*preHookFunc) (struct mob_data **md, int *cond1, int *cond2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendstatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_getfriendstatus_pre[hIndex].func; - retVal___ = preHookFunc(md, &cond1, &cond2); + retVal___ = preHookFunc(&md, &cond1, &cond2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46304,10 +46419,10 @@ struct mob_data* HP_mob_getfriendstatus(struct mob_data *md, int cond1, int cond retVal___ = HPMHooks.source.mob.getfriendstatus(md, cond1, cond2); } if( HPMHooks.count.HP_mob_getfriendstatus_post ) { - struct mob_data* (*postHookFunc) (struct mob_data* retVal___, struct mob_data *md, int *cond1, int *cond2); + struct mob_data* (*postHookFunc) (struct mob_data* retVal___, struct mob_data *md, int cond1, int cond2); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendstatus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_getfriendstatus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &cond1, &cond2); + retVal___ = postHookFunc(retVal___, md, cond1, cond2); } } return retVal___; @@ -46316,11 +46431,11 @@ int HP_mob_skill_use(struct mob_data *md, int64 tick, int event) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_skill_use_pre ) { - int (*preHookFunc) (struct mob_data *md, int64 *tick, int *event); + int (*preHookFunc) (struct mob_data **md, int64 *tick, int *event); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_use_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_skill_use_pre[hIndex].func; - retVal___ = preHookFunc(md, &tick, &event); + retVal___ = preHookFunc(&md, &tick, &event); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46331,10 +46446,10 @@ int HP_mob_skill_use(struct mob_data *md, int64 tick, int event) { retVal___ = HPMHooks.source.mob.skill_use(md, tick, event); } if( HPMHooks.count.HP_mob_skill_use_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, int64 *tick, int *event); + int (*postHookFunc) (int retVal___, struct mob_data *md, int64 tick, int event); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_use_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_skill_use_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &tick, &event); + retVal___ = postHookFunc(retVal___, md, tick, event); } } return retVal___; @@ -46343,11 +46458,11 @@ int HP_mob_skill_event(struct mob_data *md, struct block_list *src, int64 tick, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_skill_event_pre ) { - int (*preHookFunc) (struct mob_data *md, struct block_list *src, int64 *tick, int *flag); + int (*preHookFunc) (struct mob_data **md, struct block_list **src, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_skill_event_pre[hIndex].func; - retVal___ = preHookFunc(md, src, &tick, &flag); + retVal___ = preHookFunc(&md, &src, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46358,10 +46473,10 @@ int HP_mob_skill_event(struct mob_data *md, struct block_list *src, int64 tick, retVal___ = HPMHooks.source.mob.skill_event(md, src, tick, flag); } if( HPMHooks.count.HP_mob_skill_event_post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *src, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct mob_data *md, struct block_list *src, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_event_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_skill_event_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, src, &tick, &flag); + retVal___ = postHookFunc(retVal___, md, src, tick, flag); } } return retVal___; @@ -46385,10 +46500,10 @@ int HP_mob_is_clone(int class_) { retVal___ = HPMHooks.source.mob.is_clone(class_); } if( HPMHooks.count.HP_mob_is_clone_post ) { - int (*postHookFunc) (int retVal___, int *class_); + int (*postHookFunc) (int retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_is_clone_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_is_clone_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -46397,11 +46512,11 @@ int HP_mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_clone_spawn_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *event, int *master_id, uint32 *mode, int *flag, unsigned int *duration); + int (*preHookFunc) (struct map_session_data **sd, int16 *m, int16 *x, int16 *y, const char **event, int *master_id, uint32 *mode, int *flag, unsigned int *duration); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_clone_spawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_clone_spawn_pre[hIndex].func; - retVal___ = preHookFunc(sd, &m, &x, &y, event, &master_id, &mode, &flag, &duration); + retVal___ = preHookFunc(&sd, &m, &x, &y, &event, &master_id, &mode, &flag, &duration); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46412,10 +46527,10 @@ int HP_mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, c retVal___ = HPMHooks.source.mob.clone_spawn(sd, m, x, y, event, master_id, mode, flag, duration); } if( HPMHooks.count.HP_mob_clone_spawn_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *event, int *master_id, uint32 *mode, int *flag, unsigned int *duration); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 m, int16 x, int16 y, const char *event, int master_id, uint32 mode, int flag, unsigned int duration); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_clone_spawn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_clone_spawn_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &m, &x, &y, event, &master_id, &mode, &flag, &duration); + retVal___ = postHookFunc(retVal___, sd, m, x, y, event, master_id, mode, flag, duration); } } return retVal___; @@ -46424,11 +46539,11 @@ int HP_mob_clone_delete(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_clone_delete_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_clone_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_clone_delete_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46466,10 +46581,10 @@ unsigned int HP_mob_drop_adjust(int baserate, int rate_adjust, unsigned short ra retVal___ = HPMHooks.source.mob.drop_adjust(baserate, rate_adjust, rate_min, rate_max); } if( HPMHooks.count.HP_mob_drop_adjust_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, int *baserate, int *rate_adjust, unsigned short *rate_min, unsigned short *rate_max); + unsigned int (*postHookFunc) (unsigned int retVal___, int baserate, int rate_adjust, unsigned short rate_min, unsigned short rate_max); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_drop_adjust_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_drop_adjust_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &baserate, &rate_adjust, &rate_min, &rate_max); + retVal___ = postHookFunc(retVal___, baserate, rate_adjust, rate_min, rate_max); } } return retVal___; @@ -46477,11 +46592,11 @@ unsigned int HP_mob_drop_adjust(int baserate, int rate_adjust, unsigned short ra void HP_mob_item_dropratio_adjust(int nameid, int mob_id, int *rate_adjust) { int hIndex = 0; if( HPMHooks.count.HP_mob_item_dropratio_adjust_pre ) { - void (*preHookFunc) (int *nameid, int *mob_id, int *rate_adjust); + void (*preHookFunc) (int *nameid, int *mob_id, int **rate_adjust); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_item_dropratio_adjust_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_item_dropratio_adjust_pre[hIndex].func; - preHookFunc(&nameid, &mob_id, rate_adjust); + preHookFunc(&nameid, &mob_id, &rate_adjust); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46492,10 +46607,10 @@ void HP_mob_item_dropratio_adjust(int nameid, int mob_id, int *rate_adjust) { HPMHooks.source.mob.item_dropratio_adjust(nameid, mob_id, rate_adjust); } if( HPMHooks.count.HP_mob_item_dropratio_adjust_post ) { - void (*postHookFunc) (int *nameid, int *mob_id, int *rate_adjust); + void (*postHookFunc) (int nameid, int mob_id, int *rate_adjust); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_item_dropratio_adjust_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_item_dropratio_adjust_post[hIndex].func; - postHookFunc(&nameid, &mob_id, rate_adjust); + postHookFunc(nameid, mob_id, rate_adjust); } } return; @@ -46530,11 +46645,11 @@ bool HP_mob_lookup_const(const struct config_setting_t *it, const char *name, in int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_lookup_const_pre ) { - bool (*preHookFunc) (const struct config_setting_t *it, const char *name, int *value); + bool (*preHookFunc) (const struct config_setting_t **it, const char **name, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_lookup_const_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_lookup_const_pre[hIndex].func; - retVal___ = preHookFunc(it, name, value); + retVal___ = preHookFunc(&it, &name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46557,11 +46672,11 @@ bool HP_mob_get_const(const struct config_setting_t *it, int *value) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_get_const_pre ) { - bool (*preHookFunc) (const struct config_setting_t *it, int *value); + bool (*preHookFunc) (const struct config_setting_t **it, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_get_const_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_get_const_pre[hIndex].func; - retVal___ = preHookFunc(it, value); + retVal___ = preHookFunc(&it, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46584,11 +46699,11 @@ int HP_mob_db_validate_entry(struct mob_db *entry, int n, const char *source) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_db_validate_entry_pre ) { - int (*preHookFunc) (struct mob_db *entry, int *n, const char *source); + int (*preHookFunc) (struct mob_db **entry, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_validate_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_db_validate_entry_pre[hIndex].func; - retVal___ = preHookFunc(entry, &n, source); + retVal___ = preHookFunc(&entry, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46599,10 +46714,10 @@ int HP_mob_db_validate_entry(struct mob_db *entry, int n, const char *source) { retVal___ = HPMHooks.source.mob.db_validate_entry(entry, n, source); } if( HPMHooks.count.HP_mob_db_validate_entry_post ) { - int (*postHookFunc) (int retVal___, struct mob_db *entry, int *n, const char *source); + int (*postHookFunc) (int retVal___, struct mob_db *entry, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_validate_entry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_db_validate_entry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, entry, &n, source); + retVal___ = postHookFunc(retVal___, entry, n, source); } } return retVal___; @@ -46611,11 +46726,11 @@ int HP_mob_read_libconfig(const char *filename, bool ignore_missing) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_read_libconfig_pre ) { - int (*preHookFunc) (const char *filename, bool *ignore_missing); + int (*preHookFunc) (const char **filename, bool *ignore_missing); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_libconfig_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_libconfig_pre[hIndex].func; - retVal___ = preHookFunc(filename, &ignore_missing); + retVal___ = preHookFunc(&filename, &ignore_missing); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46626,10 +46741,10 @@ int HP_mob_read_libconfig(const char *filename, bool ignore_missing) { retVal___ = HPMHooks.source.mob.read_libconfig(filename, ignore_missing); } if( HPMHooks.count.HP_mob_read_libconfig_post ) { - int (*postHookFunc) (int retVal___, const char *filename, bool *ignore_missing); + int (*postHookFunc) (int retVal___, const char *filename, bool ignore_missing); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_libconfig_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_read_libconfig_post[hIndex].func; - retVal___ = postHookFunc(retVal___, filename, &ignore_missing); + retVal___ = postHookFunc(retVal___, filename, ignore_missing); } } return retVal___; @@ -46637,11 +46752,11 @@ int HP_mob_read_libconfig(const char *filename, bool ignore_missing) { void HP_mob_read_db_additional_fields(struct mob_db *entry, struct config_setting_t *it, int n, const char *source) { int hIndex = 0; if( HPMHooks.count.HP_mob_read_db_additional_fields_pre ) { - void (*preHookFunc) (struct mob_db *entry, struct config_setting_t *it, int *n, const char *source); + void (*preHookFunc) (struct mob_db **entry, struct config_setting_t **it, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_additional_fields_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_additional_fields_pre[hIndex].func; - preHookFunc(entry, it, &n, source); + preHookFunc(&entry, &it, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46652,10 +46767,10 @@ void HP_mob_read_db_additional_fields(struct mob_db *entry, struct config_settin HPMHooks.source.mob.read_db_additional_fields(entry, it, n, source); } if( HPMHooks.count.HP_mob_read_db_additional_fields_post ) { - void (*postHookFunc) (struct mob_db *entry, struct config_setting_t *it, int *n, const char *source); + void (*postHookFunc) (struct mob_db *entry, struct config_setting_t *it, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_additional_fields_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_read_db_additional_fields_post[hIndex].func; - postHookFunc(entry, it, &n, source); + postHookFunc(entry, it, n, source); } } return; @@ -46664,11 +46779,11 @@ int HP_mob_read_db_sub(struct config_setting_t *mobt, int id, const char *source int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_mob_read_db_sub_pre ) { - int (*preHookFunc) (struct config_setting_t *mobt, int *id, const char *source); + int (*preHookFunc) (struct config_setting_t **mobt, int *id, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(mobt, &id, source); + retVal___ = preHookFunc(&mobt, &id, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46679,10 +46794,10 @@ int HP_mob_read_db_sub(struct config_setting_t *mobt, int id, const char *source retVal___ = HPMHooks.source.mob.read_db_sub(mobt, id, source); } if( HPMHooks.count.HP_mob_read_db_sub_post ) { - int (*postHookFunc) (int retVal___, struct config_setting_t *mobt, int *id, const char *source); + int (*postHookFunc) (int retVal___, struct config_setting_t *mobt, int id, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_read_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, mobt, &id, source); + retVal___ = postHookFunc(retVal___, mobt, id, source); } } return retVal___; @@ -46690,11 +46805,11 @@ int HP_mob_read_db_sub(struct config_setting_t *mobt, int id, const char *source void HP_mob_read_db_drops_sub(struct mob_db *entry, struct config_setting_t *t) { int hIndex = 0; if( HPMHooks.count.HP_mob_read_db_drops_sub_pre ) { - void (*preHookFunc) (struct mob_db *entry, struct config_setting_t *t); + void (*preHookFunc) (struct mob_db **entry, struct config_setting_t **t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_drops_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_drops_sub_pre[hIndex].func; - preHookFunc(entry, t); + preHookFunc(&entry, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46716,11 +46831,11 @@ void HP_mob_read_db_drops_sub(struct mob_db *entry, struct config_setting_t *t) void HP_mob_read_db_mvpdrops_sub(struct mob_db *entry, struct config_setting_t *t) { int hIndex = 0; if( HPMHooks.count.HP_mob_read_db_mvpdrops_sub_pre ) { - void (*preHookFunc) (struct mob_db *entry, struct config_setting_t *t); + void (*preHookFunc) (struct mob_db **entry, struct config_setting_t **t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_mvpdrops_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_mvpdrops_sub_pre[hIndex].func; - preHookFunc(entry, t); + preHookFunc(&entry, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46743,11 +46858,11 @@ uint32 HP_mob_read_db_mode_sub(struct mob_db *entry, struct config_setting_t *t) int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_mob_read_db_mode_sub_pre ) { - uint32 (*preHookFunc) (struct mob_db *entry, struct config_setting_t *t); + uint32 (*preHookFunc) (struct mob_db **entry, struct config_setting_t **t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_mode_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_mode_sub_pre[hIndex].func; - retVal___ = preHookFunc(entry, t); + retVal___ = preHookFunc(&entry, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46769,11 +46884,11 @@ uint32 HP_mob_read_db_mode_sub(struct mob_db *entry, struct config_setting_t *t) void HP_mob_read_db_stats_sub(struct mob_db *entry, struct config_setting_t *t) { int hIndex = 0; if( HPMHooks.count.HP_mob_read_db_stats_sub_pre ) { - void (*preHookFunc) (struct mob_db *entry, struct config_setting_t *t); + void (*preHookFunc) (struct mob_db **entry, struct config_setting_t **t); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_db_stats_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_read_db_stats_sub_pre[hIndex].func; - preHookFunc(entry, t); + preHookFunc(&entry, &t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46822,11 +46937,11 @@ bool HP_mob_readdb_mobavail(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_readdb_mobavail_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_mobavail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_readdb_mobavail_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46837,10 +46952,10 @@ bool HP_mob_readdb_mobavail(char *str[], int columns, int current) { retVal___ = HPMHooks.source.mob.readdb_mobavail(str, columns, current); } if( HPMHooks.count.HP_mob_readdb_mobavail_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_mobavail_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_readdb_mobavail_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; @@ -46876,11 +46991,11 @@ bool HP_mob_parse_row_chatdb(char **str, const char *source, int line, int *last int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_parse_row_chatdb_pre ) { - bool (*preHookFunc) (char **str, const char *source, int *line, int *last_msg_id); + bool (*preHookFunc) (char ***str, const char **source, int *line, int **last_msg_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_chatdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_parse_row_chatdb_pre[hIndex].func; - retVal___ = preHookFunc(str, source, &line, last_msg_id); + retVal___ = preHookFunc(&str, &source, &line, &last_msg_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46891,10 +47006,10 @@ bool HP_mob_parse_row_chatdb(char **str, const char *source, int line, int *last retVal___ = HPMHooks.source.mob.parse_row_chatdb(str, source, line, last_msg_id); } if( HPMHooks.count.HP_mob_parse_row_chatdb_post ) { - bool (*postHookFunc) (bool retVal___, char **str, const char *source, int *line, int *last_msg_id); + bool (*postHookFunc) (bool retVal___, char **str, const char *source, int line, int *last_msg_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_chatdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_parse_row_chatdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, source, &line, last_msg_id); + retVal___ = postHookFunc(retVal___, str, source, line, last_msg_id); } } return retVal___; @@ -46929,11 +47044,11 @@ bool HP_mob_parse_row_mobskilldb(char **str, int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_parse_row_mobskilldb_pre ) { - bool (*preHookFunc) (char **str, int *columns, int *current); + bool (*preHookFunc) (char ***str, int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_mobskilldb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_parse_row_mobskilldb_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46944,10 +47059,10 @@ bool HP_mob_parse_row_mobskilldb(char **str, int columns, int current) { retVal___ = HPMHooks.source.mob.parse_row_mobskilldb(str, columns, current); } if( HPMHooks.count.HP_mob_parse_row_mobskilldb_post ) { - bool (*postHookFunc) (bool retVal___, char **str, int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char **str, int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_mobskilldb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_parse_row_mobskilldb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; @@ -46982,11 +47097,11 @@ bool HP_mob_readdb_race2(char *fields[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_readdb_race2_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); + bool (*preHookFunc) (char **fields[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_race2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_readdb_race2_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); + retVal___ = preHookFunc(&fields, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -46997,10 +47112,10 @@ bool HP_mob_readdb_race2(char *fields[], int columns, int current) { retVal___ = HPMHooks.source.mob.readdb_race2(fields, columns, current); } if( HPMHooks.count.HP_mob_readdb_race2_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_race2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_readdb_race2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); + retVal___ = postHookFunc(retVal___, fields, columns, current); } } return retVal___; @@ -47009,11 +47124,11 @@ bool HP_mob_readdb_itemratio(char *str[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_mob_readdb_itemratio_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); + bool (*preHookFunc) (char **str[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_itemratio_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mob_readdb_itemratio_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); + retVal___ = preHookFunc(&str, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47024,10 +47139,10 @@ bool HP_mob_readdb_itemratio(char *str[], int columns, int current) { retVal___ = HPMHooks.source.mob.readdb_itemratio(str, columns, current); } if( HPMHooks.count.HP_mob_readdb_itemratio_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *str[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_itemratio_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_readdb_itemratio_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); + retVal___ = postHookFunc(retVal___, str, columns, current); } } return retVal___; @@ -47050,10 +47165,10 @@ void HP_mob_load(bool minimal) { HPMHooks.source.mob.load(minimal); } if( HPMHooks.count.HP_mob_load_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_load_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_load_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -47102,25 +47217,25 @@ void HP_mob_destroy_mob_db(int index) { HPMHooks.source.mob.destroy_mob_db(index); } if( HPMHooks.count.HP_mob_destroy_mob_db_post ) { - void (*postHookFunc) (int *index); + void (*postHookFunc) (int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_destroy_mob_db_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mob_destroy_mob_db_post[hIndex].func; - postHookFunc(&index); + postHookFunc(index); } } return; } -/* npc_chat */ +/* npc_chat_interface */ int HP_npc_chat_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_chat_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_chat_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -47147,11 +47262,11 @@ int HP_npc_chat_sub(struct block_list *bl, va_list ap) { void HP_npc_chat_finalize(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_finalize_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_finalize_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_finalize_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47173,11 +47288,11 @@ void HP_npc_chat_finalize(struct npc_data *nd) { void HP_npc_chat_def_pattern(struct npc_data *nd, int setid, const char *pattern, const char *label) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_def_pattern_pre ) { - void (*preHookFunc) (struct npc_data *nd, int *setid, const char *pattern, const char *label); + void (*preHookFunc) (struct npc_data **nd, int *setid, const char **pattern, const char **label); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_def_pattern_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_def_pattern_pre[hIndex].func; - preHookFunc(nd, &setid, pattern, label); + preHookFunc(&nd, &setid, &pattern, &label); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47188,10 +47303,10 @@ void HP_npc_chat_def_pattern(struct npc_data *nd, int setid, const char *pattern HPMHooks.source.npc_chat.def_pattern(nd, setid, pattern, label); } if( HPMHooks.count.HP_npc_chat_def_pattern_post ) { - void (*postHookFunc) (struct npc_data *nd, int *setid, const char *pattern, const char *label); + void (*postHookFunc) (struct npc_data *nd, int setid, const char *pattern, const char *label); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_def_pattern_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_chat_def_pattern_post[hIndex].func; - postHookFunc(nd, &setid, pattern, label); + postHookFunc(nd, setid, pattern, label); } } return; @@ -47200,11 +47315,11 @@ struct pcrematch_entry* HP_npc_chat_create_pcrematch_entry(struct pcrematch_set int hIndex = 0; struct pcrematch_entry* retVal___ = NULL; if( HPMHooks.count.HP_npc_chat_create_pcrematch_entry_pre ) { - struct pcrematch_entry* (*preHookFunc) (struct pcrematch_set *set); + struct pcrematch_entry* (*preHookFunc) (struct pcrematch_set **set); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_create_pcrematch_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_create_pcrematch_entry_pre[hIndex].func; - retVal___ = preHookFunc(set); + retVal___ = preHookFunc(&set); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47226,11 +47341,11 @@ struct pcrematch_entry* HP_npc_chat_create_pcrematch_entry(struct pcrematch_set void HP_npc_chat_delete_pcreset(struct npc_data *nd, int setid) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_delete_pcreset_pre ) { - void (*preHookFunc) (struct npc_data *nd, int *setid); + void (*preHookFunc) (struct npc_data **nd, int *setid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_delete_pcreset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_delete_pcreset_pre[hIndex].func; - preHookFunc(nd, &setid); + preHookFunc(&nd, &setid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47241,10 +47356,10 @@ void HP_npc_chat_delete_pcreset(struct npc_data *nd, int setid) { HPMHooks.source.npc_chat.delete_pcreset(nd, setid); } if( HPMHooks.count.HP_npc_chat_delete_pcreset_post ) { - void (*postHookFunc) (struct npc_data *nd, int *setid); + void (*postHookFunc) (struct npc_data *nd, int setid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_delete_pcreset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_chat_delete_pcreset_post[hIndex].func; - postHookFunc(nd, &setid); + postHookFunc(nd, setid); } } return; @@ -47252,11 +47367,11 @@ void HP_npc_chat_delete_pcreset(struct npc_data *nd, int setid) { void HP_npc_chat_deactivate_pcreset(struct npc_data *nd, int setid) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_deactivate_pcreset_pre ) { - void (*preHookFunc) (struct npc_data *nd, int *setid); + void (*preHookFunc) (struct npc_data **nd, int *setid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_deactivate_pcreset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_deactivate_pcreset_pre[hIndex].func; - preHookFunc(nd, &setid); + preHookFunc(&nd, &setid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47267,10 +47382,10 @@ void HP_npc_chat_deactivate_pcreset(struct npc_data *nd, int setid) { HPMHooks.source.npc_chat.deactivate_pcreset(nd, setid); } if( HPMHooks.count.HP_npc_chat_deactivate_pcreset_post ) { - void (*postHookFunc) (struct npc_data *nd, int *setid); + void (*postHookFunc) (struct npc_data *nd, int setid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_deactivate_pcreset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_chat_deactivate_pcreset_post[hIndex].func; - postHookFunc(nd, &setid); + postHookFunc(nd, setid); } } return; @@ -47278,11 +47393,11 @@ void HP_npc_chat_deactivate_pcreset(struct npc_data *nd, int setid) { void HP_npc_chat_activate_pcreset(struct npc_data *nd, int setid) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_activate_pcreset_pre ) { - void (*preHookFunc) (struct npc_data *nd, int *setid); + void (*preHookFunc) (struct npc_data **nd, int *setid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_activate_pcreset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_activate_pcreset_pre[hIndex].func; - preHookFunc(nd, &setid); + preHookFunc(&nd, &setid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47293,10 +47408,10 @@ void HP_npc_chat_activate_pcreset(struct npc_data *nd, int setid) { HPMHooks.source.npc_chat.activate_pcreset(nd, setid); } if( HPMHooks.count.HP_npc_chat_activate_pcreset_post ) { - void (*postHookFunc) (struct npc_data *nd, int *setid); + void (*postHookFunc) (struct npc_data *nd, int setid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_activate_pcreset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_chat_activate_pcreset_post[hIndex].func; - postHookFunc(nd, &setid); + postHookFunc(nd, setid); } } return; @@ -47305,11 +47420,11 @@ struct pcrematch_set* HP_npc_chat_lookup_pcreset(struct npc_data *nd, int setid) int hIndex = 0; struct pcrematch_set* retVal___ = NULL; if( HPMHooks.count.HP_npc_chat_lookup_pcreset_pre ) { - struct pcrematch_set* (*preHookFunc) (struct npc_data *nd, int *setid); + struct pcrematch_set* (*preHookFunc) (struct npc_data **nd, int *setid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_lookup_pcreset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_lookup_pcreset_pre[hIndex].func; - retVal___ = preHookFunc(nd, &setid); + retVal___ = preHookFunc(&nd, &setid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47320,10 +47435,10 @@ struct pcrematch_set* HP_npc_chat_lookup_pcreset(struct npc_data *nd, int setid) retVal___ = HPMHooks.source.npc_chat.lookup_pcreset(nd, setid); } if( HPMHooks.count.HP_npc_chat_lookup_pcreset_post ) { - struct pcrematch_set* (*postHookFunc) (struct pcrematch_set* retVal___, struct npc_data *nd, int *setid); + struct pcrematch_set* (*postHookFunc) (struct pcrematch_set* retVal___, struct npc_data *nd, int setid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_lookup_pcreset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_chat_lookup_pcreset_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &setid); + retVal___ = postHookFunc(retVal___, nd, setid); } } return retVal___; @@ -47331,11 +47446,11 @@ struct pcrematch_set* HP_npc_chat_lookup_pcreset(struct npc_data *nd, int setid) void HP_npc_chat_finalize_pcrematch_entry(struct pcrematch_entry *e) { int hIndex = 0; if( HPMHooks.count.HP_npc_chat_finalize_pcrematch_entry_pre ) { - void (*preHookFunc) (struct pcrematch_entry *e); + void (*preHookFunc) (struct pcrematch_entry **e); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_chat_finalize_pcrematch_entry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_chat_finalize_pcrematch_entry_pre[hIndex].func; - preHookFunc(e); + preHookFunc(&e); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47354,7 +47469,7 @@ void HP_npc_chat_finalize_pcrematch_entry(struct pcrematch_entry *e) { } return; } -/* npc */ +/* npc_interface */ int HP_npc_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -47374,10 +47489,10 @@ int HP_npc_init(bool minimal) { retVal___ = HPMHooks.source.npc.init(minimal); } if( HPMHooks.count.HP_npc_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -47455,10 +47570,10 @@ struct view_data* HP_npc_get_viewdata(int class_) { retVal___ = HPMHooks.source.npc.get_viewdata(class_); } if( HPMHooks.count.HP_npc_get_viewdata_post ) { - struct view_data* (*postHookFunc) (struct view_data* retVal___, int *class_); + struct view_data* (*postHookFunc) (struct view_data* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_get_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_get_viewdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -47467,12 +47582,12 @@ int HP_npc_isnear_sub(struct block_list *bl, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_isnear_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list args); + int (*preHookFunc) (struct block_list **bl, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_isnear_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_npc_isnear_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, args___copy); + retVal___ = preHookFunc(&bl, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -47500,11 +47615,11 @@ bool HP_npc_isnear(struct block_list *bl) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_isnear_pre ) { - bool (*preHookFunc) (struct block_list *bl); + bool (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_isnear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_isnear_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47527,11 +47642,11 @@ int HP_npc_ontouch_event(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_ontouch_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ontouch_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_ontouch_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, nd); + retVal___ = preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47554,11 +47669,11 @@ int HP_npc_ontouch2_event(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_ontouch2_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ontouch2_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_ontouch2_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, nd); + retVal___ = preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47581,11 +47696,11 @@ int HP_npc_onuntouch_event(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_onuntouch_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_onuntouch_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_onuntouch_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, nd); + retVal___ = preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47608,12 +47723,12 @@ int HP_npc_enable_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_enable_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_enable_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_enable_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -47641,11 +47756,11 @@ int HP_npc_enable(const char *name, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_enable_pre ) { - int (*preHookFunc) (const char *name, int *flag); + int (*preHookFunc) (const char **name, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_enable_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_enable_pre[hIndex].func; - retVal___ = preHookFunc(name, &flag); + retVal___ = preHookFunc(&name, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47656,10 +47771,10 @@ int HP_npc_enable(const char *name, int flag) { retVal___ = HPMHooks.source.npc.enable(name, flag); } if( HPMHooks.count.HP_npc_enable_post ) { - int (*postHookFunc) (int retVal___, const char *name, int *flag); + int (*postHookFunc) (int retVal___, const char *name, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_enable_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_enable_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &flag); + retVal___ = postHookFunc(retVal___, name, flag); } } return retVal___; @@ -47668,11 +47783,11 @@ struct npc_data* HP_npc_name2id(const char *name) { int hIndex = 0; struct npc_data* retVal___ = NULL; if( HPMHooks.count.HP_npc_name2id_pre ) { - struct npc_data* (*preHookFunc) (const char *name); + struct npc_data* (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_name2id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_name2id_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47695,11 +47810,11 @@ int HP_npc_event_dequeue(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_dequeue_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_dequeue_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_dequeue_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47718,12 +47833,11 @@ int HP_npc_event_dequeue(struct map_session_data *sd) { } return retVal___; } -DBData HP_npc_event_export_create(DBKey key, va_list args) { +struct DBData HP_npc_event_export_create(union DBKey key, va_list args) { int hIndex = 0; - DBData retVal___; - memset(&retVal___, '\0', sizeof(DBData)); + struct DBData retVal___ = { 0 }; if( HPMHooks.count.HP_npc_event_export_create_pre ) { - DBData (*preHookFunc) (DBKey *key, va_list args); + struct DBData (*preHookFunc) (union DBKey *key, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_export_create_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); @@ -47742,11 +47856,11 @@ DBData HP_npc_event_export_create(DBKey key, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_npc_event_export_create_post ) { - DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + struct DBData (*postHookFunc) (struct DBData retVal___, union DBKey key, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_export_create_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_npc_event_export_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, args___copy); + retVal___ = postHookFunc(retVal___, key, args___copy); va_end(args___copy); } } @@ -47756,11 +47870,11 @@ int HP_npc_event_export(struct npc_data *nd, int i) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_export_pre ) { - int (*preHookFunc) (struct npc_data *nd, int *i); + int (*preHookFunc) (struct npc_data **nd, int *i); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_export_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_export_pre[hIndex].func; - retVal___ = preHookFunc(nd, &i); + retVal___ = preHookFunc(&nd, &i); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47771,10 +47885,10 @@ int HP_npc_event_export(struct npc_data *nd, int i) { retVal___ = HPMHooks.source.npc.event_export(nd, i); } if( HPMHooks.count.HP_npc_event_export_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, int *i); + int (*postHookFunc) (int retVal___, struct npc_data *nd, int i); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_export_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_event_export_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &i); + retVal___ = postHookFunc(retVal___, nd, i); } } return retVal___; @@ -47783,11 +47897,11 @@ int HP_npc_event_sub(struct map_session_data *sd, struct event_data *ev, const c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct event_data *ev, const char *eventname); + int (*preHookFunc) (struct map_session_data **sd, struct event_data **ev, const char **eventname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, ev, eventname); + retVal___ = preHookFunc(&sd, &ev, &eventname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47809,12 +47923,12 @@ int HP_npc_event_sub(struct map_session_data *sd, struct event_data *ev, const c void HP_npc_event_doall_sub(void *key, void *data, va_list ap) { int hIndex = 0; if( HPMHooks.count.HP_npc_event_doall_sub_pre ) { - void (*preHookFunc) (void *key, void *data, va_list ap); + void (*preHookFunc) (void **key, void **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_event_doall_sub_pre[hIndex].func; - preHookFunc(key, data, ap___copy); + preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -47842,11 +47956,11 @@ int HP_npc_event_do(const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_do_pre ) { - int (*preHookFunc) (const char *name); + int (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_do_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_do_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47869,11 +47983,11 @@ int HP_npc_event_doall_id(const char *name, int rid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_doall_id_pre ) { - int (*preHookFunc) (const char *name, int *rid); + int (*preHookFunc) (const char **name, int *rid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_doall_id_pre[hIndex].func; - retVal___ = preHookFunc(name, &rid); + retVal___ = preHookFunc(&name, &rid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47884,10 +47998,10 @@ int HP_npc_event_doall_id(const char *name, int rid) { retVal___ = HPMHooks.source.npc.event_doall_id(name, rid); } if( HPMHooks.count.HP_npc_event_doall_id_post ) { - int (*postHookFunc) (int retVal___, const char *name, int *rid); + int (*postHookFunc) (int retVal___, const char *name, int rid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_event_doall_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &rid); + retVal___ = postHookFunc(retVal___, name, rid); } } return retVal___; @@ -47896,11 +48010,11 @@ int HP_npc_event_doall(const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_doall_pre ) { - int (*preHookFunc) (const char *name); + int (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_doall_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47938,10 +48052,10 @@ int HP_npc_event_do_clock(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.npc.event_do_clock(tid, tick, id, data); } if( HPMHooks.count.HP_npc_event_do_clock_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_do_clock_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_event_do_clock_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -47964,10 +48078,10 @@ void HP_npc_event_do_oninit(bool reload) { HPMHooks.source.npc.event_do_oninit(reload); } if( HPMHooks.count.HP_npc_event_do_oninit_post ) { - void (*postHookFunc) (bool *reload); + void (*postHookFunc) (bool reload); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_do_oninit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_event_do_oninit_post[hIndex].func; - postHookFunc(&reload); + postHookFunc(reload); } } return; @@ -47976,11 +48090,11 @@ int HP_npc_timerevent_export(struct npc_data *nd, int i) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_timerevent_export_pre ) { - int (*preHookFunc) (struct npc_data *nd, int *i); + int (*preHookFunc) (struct npc_data **nd, int *i); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_export_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_timerevent_export_pre[hIndex].func; - retVal___ = preHookFunc(nd, &i); + retVal___ = preHookFunc(&nd, &i); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -47991,10 +48105,10 @@ int HP_npc_timerevent_export(struct npc_data *nd, int i) { retVal___ = HPMHooks.source.npc.timerevent_export(nd, i); } if( HPMHooks.count.HP_npc_timerevent_export_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, int *i); + int (*postHookFunc) (int retVal___, struct npc_data *nd, int i); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_export_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_timerevent_export_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &i); + retVal___ = postHookFunc(retVal___, nd, i); } } return retVal___; @@ -48018,10 +48132,10 @@ int HP_npc_timerevent(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.npc.timerevent(tid, tick, id, data); } if( HPMHooks.count.HP_npc_timerevent_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_timerevent_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -48030,11 +48144,11 @@ int HP_npc_timerevent_start(struct npc_data *nd, int rid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_timerevent_start_pre ) { - int (*preHookFunc) (struct npc_data *nd, int *rid); + int (*preHookFunc) (struct npc_data **nd, int *rid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_timerevent_start_pre[hIndex].func; - retVal___ = preHookFunc(nd, &rid); + retVal___ = preHookFunc(&nd, &rid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48045,10 +48159,10 @@ int HP_npc_timerevent_start(struct npc_data *nd, int rid) { retVal___ = HPMHooks.source.npc.timerevent_start(nd, rid); } if( HPMHooks.count.HP_npc_timerevent_start_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, int *rid); + int (*postHookFunc) (int retVal___, struct npc_data *nd, int rid); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_timerevent_start_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &rid); + retVal___ = postHookFunc(retVal___, nd, rid); } } return retVal___; @@ -48057,11 +48171,11 @@ int HP_npc_timerevent_stop(struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_timerevent_stop_pre ) { - int (*preHookFunc) (struct npc_data *nd); + int (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_stop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_timerevent_stop_pre[hIndex].func; - retVal___ = preHookFunc(nd); + retVal___ = preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48083,11 +48197,11 @@ int HP_npc_timerevent_stop(struct npc_data *nd) { void HP_npc_timerevent_quit(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_npc_timerevent_quit_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_quit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_timerevent_quit_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48110,11 +48224,11 @@ int64 HP_npc_gettimerevent_tick(struct npc_data *nd) { int hIndex = 0; int64 retVal___ = 0; if( HPMHooks.count.HP_npc_gettimerevent_tick_pre ) { - int64 (*preHookFunc) (struct npc_data *nd); + int64 (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_gettimerevent_tick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_gettimerevent_tick_pre[hIndex].func; - retVal___ = preHookFunc(nd); + retVal___ = preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48137,11 +48251,11 @@ int HP_npc_settimerevent_tick(struct npc_data *nd, int newtimer) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_settimerevent_tick_pre ) { - int (*preHookFunc) (struct npc_data *nd, int *newtimer); + int (*preHookFunc) (struct npc_data **nd, int *newtimer); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_settimerevent_tick_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_settimerevent_tick_pre[hIndex].func; - retVal___ = preHookFunc(nd, &newtimer); + retVal___ = preHookFunc(&nd, &newtimer); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48152,10 +48266,10 @@ int HP_npc_settimerevent_tick(struct npc_data *nd, int newtimer) { retVal___ = HPMHooks.source.npc.settimerevent_tick(nd, newtimer); } if( HPMHooks.count.HP_npc_settimerevent_tick_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, int *newtimer); + int (*postHookFunc) (int retVal___, struct npc_data *nd, int newtimer); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_settimerevent_tick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_settimerevent_tick_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &newtimer); + retVal___ = postHookFunc(retVal___, nd, newtimer); } } return retVal___; @@ -48164,11 +48278,11 @@ int HP_npc_event(struct map_session_data *sd, const char *eventname, int ontouch int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *eventname, int *ontouch); + int (*preHookFunc) (struct map_session_data **sd, const char **eventname, int *ontouch); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, eventname, &ontouch); + retVal___ = preHookFunc(&sd, &eventname, &ontouch); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48179,10 +48293,10 @@ int HP_npc_event(struct map_session_data *sd, const char *eventname, int ontouch retVal___ = HPMHooks.source.npc.event(sd, eventname, ontouch); } if( HPMHooks.count.HP_npc_event_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *eventname, int *ontouch); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *eventname, int ontouch); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_event_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, eventname, &ontouch); + retVal___ = postHookFunc(retVal___, sd, eventname, ontouch); } } return retVal___; @@ -48191,12 +48305,12 @@ int HP_npc_touch_areanpc_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_touch_areanpc_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_touch_areanpc_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -48224,11 +48338,11 @@ int HP_npc_touchnext_areanpc(struct map_session_data *sd, bool leavemap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_touchnext_areanpc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, bool *leavemap); + int (*preHookFunc) (struct map_session_data **sd, bool *leavemap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touchnext_areanpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_touchnext_areanpc_pre[hIndex].func; - retVal___ = preHookFunc(sd, &leavemap); + retVal___ = preHookFunc(&sd, &leavemap); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48239,10 +48353,10 @@ int HP_npc_touchnext_areanpc(struct map_session_data *sd, bool leavemap) { retVal___ = HPMHooks.source.npc.touchnext_areanpc(sd, leavemap); } if( HPMHooks.count.HP_npc_touchnext_areanpc_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, bool *leavemap); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, bool leavemap); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touchnext_areanpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_touchnext_areanpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &leavemap); + retVal___ = postHookFunc(retVal___, sd, leavemap); } } return retVal___; @@ -48251,11 +48365,11 @@ int HP_npc_touch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_touch_areanpc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y); + int (*preHookFunc) (struct map_session_data **sd, int16 *m, int16 *x, int16 *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_touch_areanpc_pre[hIndex].func; - retVal___ = preHookFunc(sd, &m, &x, &y); + retVal___ = preHookFunc(&sd, &m, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48266,10 +48380,10 @@ int HP_npc_touch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y) retVal___ = HPMHooks.source.npc.touch_areanpc(sd, m, x, y); } if( HPMHooks.count.HP_npc_touch_areanpc_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 *m, int16 *x, int16 *y); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 m, int16 x, int16 y); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_touch_areanpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &m, &x, &y); + retVal___ = postHookFunc(retVal___, sd, m, x, y); } } return retVal___; @@ -48278,11 +48392,11 @@ int HP_npc_untouch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_untouch_areanpc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y); + int (*preHookFunc) (struct map_session_data **sd, int16 *m, int16 *x, int16 *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_untouch_areanpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_untouch_areanpc_pre[hIndex].func; - retVal___ = preHookFunc(sd, &m, &x, &y); + retVal___ = preHookFunc(&sd, &m, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48293,10 +48407,10 @@ int HP_npc_untouch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 retVal___ = HPMHooks.source.npc.untouch_areanpc(sd, m, x, y); } if( HPMHooks.count.HP_npc_untouch_areanpc_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 *m, int16 *x, int16 *y); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int16 m, int16 x, int16 y); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_untouch_areanpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_untouch_areanpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &m, &x, &y); + retVal___ = postHookFunc(retVal___, sd, m, x, y); } } return retVal___; @@ -48305,11 +48419,11 @@ int HP_npc_touch_areanpc2(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_touch_areanpc2_pre ) { - int (*preHookFunc) (struct mob_data *md); + int (*preHookFunc) (struct mob_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_touch_areanpc2_pre[hIndex].func; - retVal___ = preHookFunc(md); + retVal___ = preHookFunc(&md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48347,10 +48461,10 @@ int HP_npc_check_areanpc(int flag, int16 m, int16 x, int16 y, int16 range) { retVal___ = HPMHooks.source.npc.check_areanpc(flag, m, x, y, range); } if( HPMHooks.count.HP_npc_check_areanpc_post ) { - int (*postHookFunc) (int retVal___, int *flag, int16 *m, int16 *x, int16 *y, int16 *range); + int (*postHookFunc) (int retVal___, int flag, int16 m, int16 x, int16 y, int16 range); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_check_areanpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_check_areanpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &flag, &m, &x, &y, &range); + retVal___ = postHookFunc(retVal___, flag, m, x, y, range); } } return retVal___; @@ -48359,11 +48473,11 @@ struct npc_data* HP_npc_checknear(struct map_session_data *sd, struct block_list int hIndex = 0; struct npc_data* retVal___ = NULL; if( HPMHooks.count.HP_npc_checknear_pre ) { - struct npc_data* (*preHookFunc) (struct map_session_data *sd, struct block_list *bl); + struct npc_data* (*preHookFunc) (struct map_session_data **sd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_checknear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_checknear_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl); + retVal___ = preHookFunc(&sd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48386,11 +48500,11 @@ int HP_npc_globalmessage(const char *name, const char *mes) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_globalmessage_pre ) { - int (*preHookFunc) (const char *name, const char *mes); + int (*preHookFunc) (const char **name, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_globalmessage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_globalmessage_pre[hIndex].func; - retVal___ = preHookFunc(name, mes); + retVal___ = preHookFunc(&name, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48412,11 +48526,11 @@ int HP_npc_globalmessage(const char *name, const char *mes) { void HP_npc_run_tomb(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_run_tomb_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + void (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_run_tomb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_run_tomb_pre[hIndex].func; - preHookFunc(sd, nd); + preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48439,11 +48553,11 @@ int HP_npc_click(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_click_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_click_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_click_pre[hIndex].func; - retVal___ = preHookFunc(sd, nd); + retVal___ = preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48466,11 +48580,11 @@ int HP_npc_scriptcont(struct map_session_data *sd, int id, bool closing) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_scriptcont_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *id, bool *closing); + int (*preHookFunc) (struct map_session_data **sd, int *id, bool *closing); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_scriptcont_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_scriptcont_pre[hIndex].func; - retVal___ = preHookFunc(sd, &id, &closing); + retVal___ = preHookFunc(&sd, &id, &closing); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48481,10 +48595,10 @@ int HP_npc_scriptcont(struct map_session_data *sd, int id, bool closing) { retVal___ = HPMHooks.source.npc.scriptcont(sd, id, closing); } if( HPMHooks.count.HP_npc_scriptcont_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *id, bool *closing); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int id, bool closing); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_scriptcont_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_scriptcont_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &id, &closing); + retVal___ = postHookFunc(retVal___, sd, id, closing); } } return retVal___; @@ -48493,11 +48607,11 @@ int HP_npc_buysellsel(struct map_session_data *sd, int id, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_buysellsel_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *id, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *id, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buysellsel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_buysellsel_pre[hIndex].func; - retVal___ = preHookFunc(sd, &id, &type); + retVal___ = preHookFunc(&sd, &id, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48508,10 +48622,10 @@ int HP_npc_buysellsel(struct map_session_data *sd, int id, int type) { retVal___ = HPMHooks.source.npc.buysellsel(sd, id, type); } if( HPMHooks.count.HP_npc_buysellsel_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *id, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int id, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buysellsel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_buysellsel_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &id, &type); + retVal___ = postHookFunc(retVal___, sd, id, type); } } return retVal___; @@ -48520,11 +48634,11 @@ int HP_npc_cashshop_buylist(struct map_session_data *sd, int points, struct item int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_cashshop_buylist_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *points, struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, int *points, struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buylist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_cashshop_buylist_pre[hIndex].func; - retVal___ = preHookFunc(sd, &points, item_list); + retVal___ = preHookFunc(&sd, &points, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48535,10 +48649,10 @@ int HP_npc_cashshop_buylist(struct map_session_data *sd, int points, struct item retVal___ = HPMHooks.source.npc.cashshop_buylist(sd, points, item_list); } if( HPMHooks.count.HP_npc_cashshop_buylist_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *points, struct itemlist *item_list); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int points, struct itemlist *item_list); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buylist_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_cashshop_buylist_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &points, item_list); + retVal___ = postHookFunc(retVal___, sd, points, item_list); } } return retVal___; @@ -48547,11 +48661,11 @@ int HP_npc_buylist_sub(struct map_session_data *sd, struct itemlist *item_list, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_buylist_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct itemlist *item_list, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct itemlist **item_list, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buylist_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_buylist_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list, nd); + retVal___ = preHookFunc(&sd, &item_list, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48574,11 +48688,11 @@ int HP_npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_cashshop_buy_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *amount, int *points); + int (*preHookFunc) (struct map_session_data **sd, int *nameid, int *amount, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_cashshop_buy_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid, &amount, &points); + retVal___ = preHookFunc(&sd, &nameid, &amount, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48589,10 +48703,10 @@ int HP_npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int retVal___ = HPMHooks.source.npc.cashshop_buy(sd, nameid, amount, points); } if( HPMHooks.count.HP_npc_cashshop_buy_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid, int *amount, int *points); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid, int amount, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_cashshop_buy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid, &amount, &points); + retVal___ = postHookFunc(retVal___, sd, nameid, amount, points); } } return retVal___; @@ -48601,11 +48715,11 @@ int HP_npc_buylist(struct map_session_data *sd, struct itemlist *item_list) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_buylist_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buylist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_buylist_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list); + retVal___ = preHookFunc(&sd, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48628,11 +48742,11 @@ int HP_npc_selllist_sub(struct map_session_data *sd, struct itemlist *item_list, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_selllist_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct itemlist *item_list, struct npc_data *nd); + int (*preHookFunc) (struct map_session_data **sd, struct itemlist **item_list, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_selllist_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_selllist_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list, nd); + retVal___ = preHookFunc(&sd, &item_list, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48655,11 +48769,11 @@ int HP_npc_selllist(struct map_session_data *sd, struct itemlist *item_list) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_selllist_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_selllist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_selllist_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list); + retVal___ = preHookFunc(&sd, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48682,11 +48796,11 @@ int HP_npc_remove_map(struct npc_data *nd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_remove_map_pre ) { - int (*preHookFunc) (struct npc_data *nd); + int (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_remove_map_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_remove_map_pre[hIndex].func; - retVal___ = preHookFunc(nd); + retVal___ = preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48705,16 +48819,16 @@ int HP_npc_remove_map(struct npc_data *nd) { } return retVal___; } -int HP_npc_unload_ev(DBKey key, DBData *data, va_list ap) { +int HP_npc_unload_ev(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_unload_ev_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_unload_ev_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -48728,26 +48842,26 @@ int HP_npc_unload_ev(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_npc_unload_ev_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_npc_unload_ev_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -int HP_npc_unload_ev_label(DBKey key, DBData *data, va_list ap) { +int HP_npc_unload_ev_label(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_unload_ev_label_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_label_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_unload_ev_label_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -48761,11 +48875,11 @@ int HP_npc_unload_ev_label(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_npc_unload_ev_label_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_label_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_npc_unload_ev_label_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -48775,12 +48889,12 @@ int HP_npc_unload_dup_sub(struct npc_data *nd, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_unload_dup_sub_pre ) { - int (*preHookFunc) (struct npc_data *nd, va_list args); + int (*preHookFunc) (struct npc_data **nd, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_dup_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_npc_unload_dup_sub_pre[hIndex].func; - retVal___ = preHookFunc(nd, args___copy); + retVal___ = preHookFunc(&nd, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -48807,11 +48921,11 @@ int HP_npc_unload_dup_sub(struct npc_data *nd, va_list args) { void HP_npc_unload_duplicates(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_unload_duplicates_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_duplicates_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_unload_duplicates_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48834,11 +48948,11 @@ int HP_npc_unload(struct npc_data *nd, bool single) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_unload_pre ) { - int (*preHookFunc) (struct npc_data *nd, bool *single); + int (*preHookFunc) (struct npc_data **nd, bool *single); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_unload_pre[hIndex].func; - retVal___ = preHookFunc(nd, &single); + retVal___ = preHookFunc(&nd, &single); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48849,10 +48963,10 @@ int HP_npc_unload(struct npc_data *nd, bool single) { retVal___ = HPMHooks.source.npc.unload(nd, single); } if( HPMHooks.count.HP_npc_unload_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, bool *single); + int (*postHookFunc) (int retVal___, struct npc_data *nd, bool single); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_unload_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &single); + retVal___ = postHookFunc(retVal___, nd, single); } } return retVal___; @@ -48886,11 +49000,11 @@ void HP_npc_clearsrcfile(void) { void HP_npc_addsrcfile(const char *name) { int hIndex = 0; if( HPMHooks.count.HP_npc_addsrcfile_pre ) { - void (*preHookFunc) (const char *name); + void (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_addsrcfile_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_addsrcfile_pre[hIndex].func; - preHookFunc(name); + preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48912,11 +49026,11 @@ void HP_npc_addsrcfile(const char *name) { void HP_npc_delsrcfile(const char *name) { int hIndex = 0; if( HPMHooks.count.HP_npc_delsrcfile_pre ) { - void (*preHookFunc) (const char *name); + void (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_delsrcfile_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_delsrcfile_pre[hIndex].func; - preHookFunc(name); + preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48939,11 +49053,11 @@ const char* HP_npc_retainpathreference(const char *filepath) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_retainpathreference_pre ) { - const char* (*preHookFunc) (const char *filepath); + const char* (*preHookFunc) (const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_retainpathreference_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_retainpathreference_pre[hIndex].func; - retVal___ = preHookFunc(filepath); + retVal___ = preHookFunc(&filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48965,11 +49079,11 @@ const char* HP_npc_retainpathreference(const char *filepath) { void HP_npc_releasepathreference(const char *filepath) { int hIndex = 0; if( HPMHooks.count.HP_npc_releasepathreference_pre ) { - void (*preHookFunc) (const char *filepath); + void (*preHookFunc) (const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_releasepathreference_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_releasepathreference_pre[hIndex].func; - preHookFunc(filepath); + preHookFunc(&filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -48991,11 +49105,11 @@ void HP_npc_releasepathreference(const char *filepath) { void HP_npc_parsename(struct npc_data *nd, const char *name, const char *start, const char *buffer, const char *filepath) { int hIndex = 0; if( HPMHooks.count.HP_npc_parsename_pre ) { - void (*preHookFunc) (struct npc_data *nd, const char *name, const char *start, const char *buffer, const char *filepath); + void (*preHookFunc) (struct npc_data **nd, const char **name, const char **start, const char **buffer, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parsename_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parsename_pre[hIndex].func; - preHookFunc(nd, name, start, buffer, filepath); + preHookFunc(&nd, &name, &start, &buffer, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49018,11 +49132,11 @@ int HP_npc_parseview(const char *w4, const char *start, const char *buffer, cons int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_parseview_pre ) { - int (*preHookFunc) (const char *w4, const char *start, const char *buffer, const char *filepath); + int (*preHookFunc) (const char **w4, const char **start, const char **buffer, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parseview_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parseview_pre[hIndex].func; - retVal___ = preHookFunc(w4, start, buffer, filepath); + retVal___ = preHookFunc(&w4, &start, &buffer, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49045,11 +49159,11 @@ bool HP_npc_viewisid(const char *viewid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_viewisid_pre ) { - bool (*preHookFunc) (const char *viewid); + bool (*preHookFunc) (const char **viewid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_viewisid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_viewisid_pre[hIndex].func; - retVal___ = preHookFunc(viewid); + retVal___ = preHookFunc(&viewid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49087,10 +49201,10 @@ struct npc_data* HP_npc_create_npc(enum npc_subtype subtype, int m, int x, int y retVal___ = HPMHooks.source.npc.create_npc(subtype, m, x, y, dir, class_); } if( HPMHooks.count.HP_npc_create_npc_post ) { - struct npc_data* (*postHookFunc) (struct npc_data* retVal___, enum npc_subtype *subtype, int *m, int *x, int *y, uint8 *dir, int16 *class_); + struct npc_data* (*postHookFunc) (struct npc_data* retVal___, enum npc_subtype subtype, int m, int x, int y, uint8 dir, int16 class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_create_npc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_create_npc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &subtype, &m, &x, &y, &dir, &class_); + retVal___ = postHookFunc(retVal___, subtype, m, x, y, dir, class_); } } return retVal___; @@ -49099,11 +49213,11 @@ struct npc_data* HP_npc_add_warp(char *name, short from_mapid, short from_x, sho int hIndex = 0; struct npc_data* retVal___ = NULL; if( HPMHooks.count.HP_npc_add_warp_pre ) { - struct npc_data* (*preHookFunc) (char *name, short *from_mapid, short *from_x, short *from_y, short *xs, short *ys, unsigned short *to_mapindex, short *to_x, short *to_y); + struct npc_data* (*preHookFunc) (char **name, short *from_mapid, short *from_x, short *from_y, short *xs, short *ys, unsigned short *to_mapindex, short *to_x, short *to_y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_add_warp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_add_warp_pre[hIndex].func; - retVal___ = preHookFunc(name, &from_mapid, &from_x, &from_y, &xs, &ys, &to_mapindex, &to_x, &to_y); + retVal___ = preHookFunc(&name, &from_mapid, &from_x, &from_y, &xs, &ys, &to_mapindex, &to_x, &to_y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49114,10 +49228,10 @@ struct npc_data* HP_npc_add_warp(char *name, short from_mapid, short from_x, sho retVal___ = HPMHooks.source.npc.add_warp(name, from_mapid, from_x, from_y, xs, ys, to_mapindex, to_x, to_y); } if( HPMHooks.count.HP_npc_add_warp_post ) { - struct npc_data* (*postHookFunc) (struct npc_data* retVal___, char *name, short *from_mapid, short *from_x, short *from_y, short *xs, short *ys, unsigned short *to_mapindex, short *to_x, short *to_y); + struct npc_data* (*postHookFunc) (struct npc_data* retVal___, char *name, short from_mapid, short from_x, short from_y, short xs, short ys, unsigned short to_mapindex, short to_x, short to_y); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_add_warp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_add_warp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, &from_mapid, &from_x, &from_y, &xs, &ys, &to_mapindex, &to_x, &to_y); + retVal___ = postHookFunc(retVal___, name, from_mapid, from_x, from_y, xs, ys, to_mapindex, to_x, to_y); } } return retVal___; @@ -49126,11 +49240,11 @@ const char* HP_npc_parse_warp(const char *w1, const char *w2, const char *w3, co int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_warp_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_warp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_warp_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49153,11 +49267,11 @@ const char* HP_npc_parse_shop(const char *w1, const char *w2, const char *w3, co int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_shop_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_shop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_shop_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49180,11 +49294,11 @@ const char* HP_npc_parse_unknown_object(const char *w1, const char *w2, const ch int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_unknown_object_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_unknown_object_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_unknown_object_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49206,11 +49320,11 @@ const char* HP_npc_parse_unknown_object(const char *w1, const char *w2, const ch void HP_npc_convertlabel_db(struct npc_label_list *label_list, const char *filepath) { int hIndex = 0; if( HPMHooks.count.HP_npc_convertlabel_db_pre ) { - void (*preHookFunc) (struct npc_label_list *label_list, const char *filepath); + void (*preHookFunc) (struct npc_label_list **label_list, const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_convertlabel_db_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_convertlabel_db_pre[hIndex].func; - preHookFunc(label_list, filepath); + preHookFunc(&label_list, &filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49233,11 +49347,11 @@ const char* HP_npc_skip_script(const char *start, const char *buffer, const char int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_skip_script_pre ) { - const char* (*preHookFunc) (const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_skip_script_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_skip_script_pre[hIndex].func; - retVal___ = preHookFunc(start, buffer, filepath, retval); + retVal___ = preHookFunc(&start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49260,11 +49374,11 @@ const char* HP_npc_parse_script(const char *w1, const char *w2, const char *w3, int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_script_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *options, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int *options, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_script_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_script_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, &options, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &options, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49275,10 +49389,10 @@ const char* HP_npc_parse_script(const char *w1, const char *w2, const char *w3, retVal___ = HPMHooks.source.npc.parse_script(w1, w2, w3, w4, start, buffer, filepath, options, retval); } if( HPMHooks.count.HP_npc_parse_script_post ) { - const char* (*postHookFunc) (const char* retVal___, const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *options, int *retval); + const char* (*postHookFunc) (const char* retVal___, const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int options, int *retval); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_script_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_parse_script_post[hIndex].func; - retVal___ = postHookFunc(retVal___, w1, w2, w3, w4, start, buffer, filepath, &options, retval); + retVal___ = postHookFunc(retVal___, w1, w2, w3, w4, start, buffer, filepath, options, retval); } } return retVal___; @@ -49286,11 +49400,11 @@ const char* HP_npc_parse_script(const char *w1, const char *w2, const char *w3, void HP_npc_add_to_location(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_add_to_location_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_add_to_location_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_add_to_location_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49313,11 +49427,11 @@ bool HP_npc_duplicate_script_sub(struct npc_data *nd, const struct npc_data *snd int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_duplicate_script_sub_pre ) { - bool (*preHookFunc) (struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*preHookFunc) (struct npc_data **nd, const struct npc_data **snd, int *xs, int *ys, int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_script_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_duplicate_script_sub_pre[hIndex].func; - retVal___ = preHookFunc(nd, snd, &xs, &ys, &options); + retVal___ = preHookFunc(&nd, &snd, &xs, &ys, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49328,10 +49442,10 @@ bool HP_npc_duplicate_script_sub(struct npc_data *nd, const struct npc_data *snd retVal___ = HPMHooks.source.npc.duplicate_script_sub(nd, snd, xs, ys, options); } if( HPMHooks.count.HP_npc_duplicate_script_sub_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_script_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_duplicate_script_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, snd, &xs, &ys, &options); + retVal___ = postHookFunc(retVal___, nd, snd, xs, ys, options); } } return retVal___; @@ -49340,11 +49454,11 @@ bool HP_npc_duplicate_shop_sub(struct npc_data *nd, const struct npc_data *snd, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_duplicate_shop_sub_pre ) { - bool (*preHookFunc) (struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*preHookFunc) (struct npc_data **nd, const struct npc_data **snd, int *xs, int *ys, int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_shop_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_duplicate_shop_sub_pre[hIndex].func; - retVal___ = preHookFunc(nd, snd, &xs, &ys, &options); + retVal___ = preHookFunc(&nd, &snd, &xs, &ys, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49355,10 +49469,10 @@ bool HP_npc_duplicate_shop_sub(struct npc_data *nd, const struct npc_data *snd, retVal___ = HPMHooks.source.npc.duplicate_shop_sub(nd, snd, xs, ys, options); } if( HPMHooks.count.HP_npc_duplicate_shop_sub_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_shop_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_duplicate_shop_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, snd, &xs, &ys, &options); + retVal___ = postHookFunc(retVal___, nd, snd, xs, ys, options); } } return retVal___; @@ -49367,11 +49481,11 @@ bool HP_npc_duplicate_warp_sub(struct npc_data *nd, const struct npc_data *snd, int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_duplicate_warp_sub_pre ) { - bool (*preHookFunc) (struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*preHookFunc) (struct npc_data **nd, const struct npc_data **snd, int *xs, int *ys, int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_warp_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_duplicate_warp_sub_pre[hIndex].func; - retVal___ = preHookFunc(nd, snd, &xs, &ys, &options); + retVal___ = preHookFunc(&nd, &snd, &xs, &ys, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49382,10 +49496,10 @@ bool HP_npc_duplicate_warp_sub(struct npc_data *nd, const struct npc_data *snd, retVal___ = HPMHooks.source.npc.duplicate_warp_sub(nd, snd, xs, ys, options); } if( HPMHooks.count.HP_npc_duplicate_warp_sub_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_warp_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_duplicate_warp_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, snd, &xs, &ys, &options); + retVal___ = postHookFunc(retVal___, nd, snd, xs, ys, options); } } return retVal___; @@ -49394,11 +49508,11 @@ bool HP_npc_duplicate_sub(struct npc_data *nd, const struct npc_data *snd, int x int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_duplicate_sub_pre ) { - bool (*preHookFunc) (struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*preHookFunc) (struct npc_data **nd, const struct npc_data **snd, int *xs, int *ys, int *options); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_duplicate_sub_pre[hIndex].func; - retVal___ = preHookFunc(nd, snd, &xs, &ys, &options); + retVal___ = preHookFunc(&nd, &snd, &xs, &ys, &options); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49409,10 +49523,10 @@ bool HP_npc_duplicate_sub(struct npc_data *nd, const struct npc_data *snd, int x retVal___ = HPMHooks.source.npc.duplicate_sub(nd, snd, xs, ys, options); } if( HPMHooks.count.HP_npc_duplicate_sub_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int *xs, int *ys, int *options); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, const struct npc_data *snd, int xs, int ys, int options); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_duplicate_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, snd, &xs, &ys, &options); + retVal___ = postHookFunc(retVal___, nd, snd, xs, ys, options); } } return retVal___; @@ -49421,11 +49535,11 @@ const char* HP_npc_parse_duplicate(const char *w1, const char *w2, const char *w int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_duplicate_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *options, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int *options, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_duplicate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_duplicate_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, &options, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &options, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49436,10 +49550,10 @@ const char* HP_npc_parse_duplicate(const char *w1, const char *w2, const char *w retVal___ = HPMHooks.source.npc.parse_duplicate(w1, w2, w3, w4, start, buffer, filepath, options, retval); } if( HPMHooks.count.HP_npc_parse_duplicate_post ) { - const char* (*postHookFunc) (const char* retVal___, const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *options, int *retval); + const char* (*postHookFunc) (const char* retVal___, const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int options, int *retval); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_duplicate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_parse_duplicate_post[hIndex].func; - retVal___ = postHookFunc(retVal___, w1, w2, w3, w4, start, buffer, filepath, &options, retval); + retVal___ = postHookFunc(retVal___, w1, w2, w3, w4, start, buffer, filepath, options, retval); } } return retVal___; @@ -49448,11 +49562,11 @@ int HP_npc_duplicate4instance(struct npc_data *snd, int16 m) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_duplicate4instance_pre ) { - int (*preHookFunc) (struct npc_data *snd, int16 *m); + int (*preHookFunc) (struct npc_data **snd, int16 *m); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate4instance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_duplicate4instance_pre[hIndex].func; - retVal___ = preHookFunc(snd, &m); + retVal___ = preHookFunc(&snd, &m); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49463,10 +49577,10 @@ int HP_npc_duplicate4instance(struct npc_data *snd, int16 m) { retVal___ = HPMHooks.source.npc.duplicate4instance(snd, m); } if( HPMHooks.count.HP_npc_duplicate4instance_post ) { - int (*postHookFunc) (int retVal___, struct npc_data *snd, int16 *m); + int (*postHookFunc) (int retVal___, struct npc_data *snd, int16 m); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate4instance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_duplicate4instance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, snd, &m); + retVal___ = postHookFunc(retVal___, snd, m); } } return retVal___; @@ -49474,11 +49588,11 @@ int HP_npc_duplicate4instance(struct npc_data *snd, int16 m) { void HP_npc_setcells(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_setcells_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_setcells_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_setcells_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49501,12 +49615,12 @@ int HP_npc_unsetcells_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_unsetcells_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unsetcells_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_npc_unsetcells_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -49533,11 +49647,11 @@ int HP_npc_unsetcells_sub(struct block_list *bl, va_list ap) { void HP_npc_unsetcells(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_unsetcells_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unsetcells_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_unsetcells_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49559,11 +49673,11 @@ void HP_npc_unsetcells(struct npc_data *nd) { void HP_npc_movenpc(struct npc_data *nd, int16 x, int16 y) { int hIndex = 0; if( HPMHooks.count.HP_npc_movenpc_pre ) { - void (*preHookFunc) (struct npc_data *nd, int16 *x, int16 *y); + void (*preHookFunc) (struct npc_data **nd, int16 *x, int16 *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_movenpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_movenpc_pre[hIndex].func; - preHookFunc(nd, &x, &y); + preHookFunc(&nd, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49574,10 +49688,10 @@ void HP_npc_movenpc(struct npc_data *nd, int16 x, int16 y) { HPMHooks.source.npc.movenpc(nd, x, y); } if( HPMHooks.count.HP_npc_movenpc_post ) { - void (*postHookFunc) (struct npc_data *nd, int16 *x, int16 *y); + void (*postHookFunc) (struct npc_data *nd, int16 x, int16 y); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_movenpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_movenpc_post[hIndex].func; - postHookFunc(nd, &x, &y); + postHookFunc(nd, x, y); } } return; @@ -49585,11 +49699,11 @@ void HP_npc_movenpc(struct npc_data *nd, int16 x, int16 y) { void HP_npc_setdisplayname(struct npc_data *nd, const char *newname) { int hIndex = 0; if( HPMHooks.count.HP_npc_setdisplayname_pre ) { - void (*preHookFunc) (struct npc_data *nd, const char *newname); + void (*preHookFunc) (struct npc_data **nd, const char **newname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_setdisplayname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_setdisplayname_pre[hIndex].func; - preHookFunc(nd, newname); + preHookFunc(&nd, &newname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49611,11 +49725,11 @@ void HP_npc_setdisplayname(struct npc_data *nd, const char *newname) { void HP_npc_setclass(struct npc_data *nd, short class_) { int hIndex = 0; if( HPMHooks.count.HP_npc_setclass_pre ) { - void (*preHookFunc) (struct npc_data *nd, short *class_); + void (*preHookFunc) (struct npc_data **nd, short *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_setclass_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_setclass_pre[hIndex].func; - preHookFunc(nd, &class_); + preHookFunc(&nd, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49626,10 +49740,10 @@ void HP_npc_setclass(struct npc_data *nd, short class_) { HPMHooks.source.npc.setclass(nd, class_); } if( HPMHooks.count.HP_npc_setclass_post ) { - void (*postHookFunc) (struct npc_data *nd, short *class_); + void (*postHookFunc) (struct npc_data *nd, short class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_setclass_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_setclass_post[hIndex].func; - postHookFunc(nd, &class_); + postHookFunc(nd, class_); } } return; @@ -49638,11 +49752,11 @@ int HP_npc_do_atcmd_event(struct map_session_data *sd, const char *command, cons int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_do_atcmd_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *command, const char *message, const char *eventname); + int (*preHookFunc) (struct map_session_data **sd, const char **command, const char **message, const char **eventname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_do_atcmd_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_do_atcmd_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, command, message, eventname); + retVal___ = preHookFunc(&sd, &command, &message, &eventname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49665,11 +49779,11 @@ const char* HP_npc_parse_function(const char *w1, const char *w2, const char *w3 int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_function_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_function_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_function_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49691,11 +49805,11 @@ const char* HP_npc_parse_function(const char *w1, const char *w2, const char *w3 void HP_npc_parse_mob2(struct spawn_data *mobspawn) { int hIndex = 0; if( HPMHooks.count.HP_npc_parse_mob2_pre ) { - void (*preHookFunc) (struct spawn_data *mobspawn); + void (*preHookFunc) (struct spawn_data **mobspawn); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_mob2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_mob2_pre[hIndex].func; - preHookFunc(mobspawn); + preHookFunc(&mobspawn); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49718,11 +49832,11 @@ const char* HP_npc_parse_mob(const char *w1, const char *w2, const char *w3, con int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_mob_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_mob_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_mob_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49745,11 +49859,11 @@ const char* HP_npc_parse_mapflag(const char *w1, const char *w2, const char *w3, int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_npc_parse_mapflag_pre ) { - const char* (*preHookFunc) (const char *w1, const char *w2, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + const char* (*preHookFunc) (const char **w1, const char **w2, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_mapflag_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_mapflag_pre[hIndex].func; - retVal___ = preHookFunc(w1, w2, w3, w4, start, buffer, filepath, retval); + retVal___ = preHookFunc(&w1, &w2, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49771,11 +49885,11 @@ const char* HP_npc_parse_mapflag(const char *w1, const char *w2, const char *w3, void HP_npc_parse_unknown_mapflag(const char *name, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval) { int hIndex = 0; if( HPMHooks.count.HP_npc_parse_unknown_mapflag_pre ) { - void (*preHookFunc) (const char *name, const char *w3, const char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + void (*preHookFunc) (const char **name, const char **w3, const char **w4, const char **start, const char **buffer, const char **filepath, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_unknown_mapflag_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parse_unknown_mapflag_pre[hIndex].func; - preHookFunc(name, w3, w4, start, buffer, filepath, retval); + preHookFunc(&name, &w3, &w4, &start, &buffer, &filepath, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49798,11 +49912,11 @@ int HP_npc_parsesrcfile(const char *filepath, bool runOnInit) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_parsesrcfile_pre ) { - int (*preHookFunc) (const char *filepath, bool *runOnInit); + int (*preHookFunc) (const char **filepath, bool *runOnInit); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parsesrcfile_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_parsesrcfile_pre[hIndex].func; - retVal___ = preHookFunc(filepath, &runOnInit); + retVal___ = preHookFunc(&filepath, &runOnInit); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49813,10 +49927,10 @@ int HP_npc_parsesrcfile(const char *filepath, bool runOnInit) { retVal___ = HPMHooks.source.npc.parsesrcfile(filepath, runOnInit); } if( HPMHooks.count.HP_npc_parsesrcfile_post ) { - int (*postHookFunc) (int retVal___, const char *filepath, bool *runOnInit); + int (*postHookFunc) (int retVal___, const char *filepath, bool runOnInit); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parsesrcfile_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_parsesrcfile_post[hIndex].func; - retVal___ = postHookFunc(retVal___, filepath, &runOnInit); + retVal___ = postHookFunc(retVal___, filepath, runOnInit); } } return retVal___; @@ -49825,11 +49939,11 @@ int HP_npc_script_event(struct map_session_data *sd, enum npce_event type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_script_event_pre ) { - int (*preHookFunc) (struct map_session_data *sd, enum npce_event *type); + int (*preHookFunc) (struct map_session_data **sd, enum npce_event *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_script_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_script_event_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -49840,10 +49954,10 @@ int HP_npc_script_event(struct map_session_data *sd, enum npce_event type) { retVal___ = HPMHooks.source.npc.script_event(sd, type); } if( HPMHooks.count.HP_npc_script_event_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum npce_event *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum npce_event type); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_script_event_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_script_event_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -49874,16 +49988,16 @@ void HP_npc_read_event_script(void) { } return; } -int HP_npc_path_db_clear_sub(DBKey key, DBData *data, va_list args) { +int HP_npc_path_db_clear_sub(union DBKey key, struct DBData *data, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_path_db_clear_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list args); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_path_db_clear_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_npc_path_db_clear_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, args___copy); + retVal___ = preHookFunc(&key, &data, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -49897,26 +50011,26 @@ int HP_npc_path_db_clear_sub(DBKey key, DBData *data, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_npc_path_db_clear_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list args); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_path_db_clear_sub_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_npc_path_db_clear_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, args___copy); + retVal___ = postHookFunc(retVal___, key, data, args___copy); va_end(args___copy); } } return retVal___; } -int HP_npc_ev_label_db_clear_sub(DBKey key, DBData *data, va_list args) { +int HP_npc_ev_label_db_clear_sub(union DBKey key, struct DBData *data, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_ev_label_db_clear_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list args); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ev_label_db_clear_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_npc_ev_label_db_clear_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, args___copy); + retVal___ = preHookFunc(&key, &data, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -49930,11 +50044,11 @@ int HP_npc_ev_label_db_clear_sub(DBKey key, DBData *data, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_npc_ev_label_db_clear_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list args); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ev_label_db_clear_sub_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_npc_ev_label_db_clear_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, args___copy); + retVal___ = postHookFunc(retVal___, key, data, args___copy); va_end(args___copy); } } @@ -49971,11 +50085,11 @@ bool HP_npc_unloadfile(const char *filepath) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_unloadfile_pre ) { - bool (*preHookFunc) (const char *filepath); + bool (*preHookFunc) (const char **filepath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unloadfile_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_unloadfile_pre[hIndex].func; - retVal___ = preHookFunc(filepath); + retVal___ = preHookFunc(&filepath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50023,11 +50137,11 @@ void HP_npc_do_clear_npc(void) { void HP_npc_debug_warps_sub(struct npc_data *nd) { int hIndex = 0; if( HPMHooks.count.HP_npc_debug_warps_sub_pre ) { - void (*preHookFunc) (struct npc_data *nd); + void (*preHookFunc) (struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_debug_warps_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_debug_warps_sub_pre[hIndex].func; - preHookFunc(nd); + preHookFunc(&nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50075,11 +50189,11 @@ void HP_npc_debug_warps(void) { void HP_npc_trader_count_funds(struct npc_data *nd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_npc_trader_count_funds_pre ) { - void (*preHookFunc) (struct npc_data *nd, struct map_session_data *sd); + void (*preHookFunc) (struct npc_data **nd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_trader_count_funds_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_trader_count_funds_pre[hIndex].func; - preHookFunc(nd, sd); + preHookFunc(&nd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50102,11 +50216,11 @@ bool HP_npc_trader_pay(struct npc_data *nd, struct map_session_data *sd, int pri int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_trader_pay_pre ) { - bool (*preHookFunc) (struct npc_data *nd, struct map_session_data *sd, int *price, int *points); + bool (*preHookFunc) (struct npc_data **nd, struct map_session_data **sd, int *price, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_trader_pay_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_trader_pay_pre[hIndex].func; - retVal___ = preHookFunc(nd, sd, &price, &points); + retVal___ = preHookFunc(&nd, &sd, &price, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50117,10 +50231,10 @@ bool HP_npc_trader_pay(struct npc_data *nd, struct map_session_data *sd, int pri retVal___ = HPMHooks.source.npc.trader_pay(nd, sd, price, points); } if( HPMHooks.count.HP_npc_trader_pay_post ) { - bool (*postHookFunc) (bool retVal___, struct npc_data *nd, struct map_session_data *sd, int *price, int *points); + bool (*postHookFunc) (bool retVal___, struct npc_data *nd, struct map_session_data *sd, int price, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_trader_pay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_trader_pay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, sd, &price, &points); + retVal___ = postHookFunc(retVal___, nd, sd, price, points); } } return retVal___; @@ -50143,10 +50257,10 @@ void HP_npc_trader_update(int master) { HPMHooks.source.npc.trader_update(master); } if( HPMHooks.count.HP_npc_trader_update_post ) { - void (*postHookFunc) (int *master); + void (*postHookFunc) (int master); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_trader_update_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_trader_update_post[hIndex].func; - postHookFunc(&master); + postHookFunc(master); } } return; @@ -50155,11 +50269,11 @@ int HP_npc_market_buylist(struct map_session_data *sd, struct itemlist *item_lis int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_npc_market_buylist_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_buylist_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_market_buylist_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list); + retVal___ = preHookFunc(&sd, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50182,11 +50296,11 @@ bool HP_npc_trader_open(struct map_session_data *sd, struct npc_data *nd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_npc_trader_open_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd); + bool (*preHookFunc) (struct map_session_data **sd, struct npc_data **nd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_trader_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_trader_open_pre[hIndex].func; - retVal___ = preHookFunc(sd, nd); + retVal___ = preHookFunc(&sd, &nd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50234,11 +50348,11 @@ void HP_npc_market_fromsql(void) { void HP_npc_market_tosql(struct npc_data *nd, unsigned short index) { int hIndex = 0; if( HPMHooks.count.HP_npc_market_tosql_pre ) { - void (*preHookFunc) (struct npc_data *nd, unsigned short *index); + void (*preHookFunc) (struct npc_data **nd, unsigned short *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_tosql_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_market_tosql_pre[hIndex].func; - preHookFunc(nd, &index); + preHookFunc(&nd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50249,10 +50363,10 @@ void HP_npc_market_tosql(struct npc_data *nd, unsigned short index) { HPMHooks.source.npc.market_tosql(nd, index); } if( HPMHooks.count.HP_npc_market_tosql_post ) { - void (*postHookFunc) (struct npc_data *nd, unsigned short *index); + void (*postHookFunc) (struct npc_data *nd, unsigned short index); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_tosql_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_market_tosql_post[hIndex].func; - postHookFunc(nd, &index); + postHookFunc(nd, index); } } return; @@ -50260,11 +50374,11 @@ void HP_npc_market_tosql(struct npc_data *nd, unsigned short index) { void HP_npc_market_delfromsql(struct npc_data *nd, unsigned short index) { int hIndex = 0; if( HPMHooks.count.HP_npc_market_delfromsql_pre ) { - void (*preHookFunc) (struct npc_data *nd, unsigned short *index); + void (*preHookFunc) (struct npc_data **nd, unsigned short *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_market_delfromsql_pre[hIndex].func; - preHookFunc(nd, &index); + preHookFunc(&nd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50275,10 +50389,10 @@ void HP_npc_market_delfromsql(struct npc_data *nd, unsigned short index) { HPMHooks.source.npc.market_delfromsql(nd, index); } if( HPMHooks.count.HP_npc_market_delfromsql_post ) { - void (*postHookFunc) (struct npc_data *nd, unsigned short *index); + void (*postHookFunc) (struct npc_data *nd, unsigned short index); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_market_delfromsql_post[hIndex].func; - postHookFunc(nd, &index); + postHookFunc(nd, index); } } return; @@ -50286,11 +50400,11 @@ void HP_npc_market_delfromsql(struct npc_data *nd, unsigned short index) { void HP_npc_market_delfromsql_sub(const char *npcname, unsigned short index) { int hIndex = 0; if( HPMHooks.count.HP_npc_market_delfromsql_sub_pre ) { - void (*preHookFunc) (const char *npcname, unsigned short *index); + void (*preHookFunc) (const char **npcname, unsigned short *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_npc_market_delfromsql_sub_pre[hIndex].func; - preHookFunc(npcname, &index); + preHookFunc(&npcname, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50301,10 +50415,10 @@ void HP_npc_market_delfromsql_sub(const char *npcname, unsigned short index) { HPMHooks.source.npc.market_delfromsql_sub(npcname, index); } if( HPMHooks.count.HP_npc_market_delfromsql_sub_post ) { - void (*postHookFunc) (const char *npcname, unsigned short *index); + void (*postHookFunc) (const char *npcname, unsigned short index); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_market_delfromsql_sub_post[hIndex].func; - postHookFunc(npcname, &index); + postHookFunc(npcname, index); } } return; @@ -50328,10 +50442,10 @@ bool HP_npc_db_checkid(const int id) { retVal___ = HPMHooks.source.npc.db_checkid(id); } if( HPMHooks.count.HP_npc_db_checkid_post ) { - bool (*postHookFunc) (bool retVal___, const int *id); + bool (*postHookFunc) (bool retVal___, const int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_db_checkid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_db_checkid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -50355,23 +50469,23 @@ int HP_npc_secure_timeout_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.npc.secure_timeout_timer(tid, tick, id, data); } if( HPMHooks.count.HP_npc_secure_timeout_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_secure_timeout_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_npc_secure_timeout_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -/* nullpo */ +/* nullpo_interface */ void HP_nullpo_assert_report(const char *file, int line, const char *func, const char *targetname, const char *title) { int hIndex = 0; if( HPMHooks.count.HP_nullpo_assert_report_pre ) { - void (*preHookFunc) (const char *file, int *line, const char *func, const char *targetname, const char *title); + void (*preHookFunc) (const char **file, int *line, const char **func, const char **targetname, const char **title); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_nullpo_assert_report_pre[hIndex].func; - preHookFunc(file, &line, func, targetname, title); + preHookFunc(&file, &line, &func, &targetname, &title); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50382,15 +50496,15 @@ void HP_nullpo_assert_report(const char *file, int line, const char *func, const HPMHooks.source.nullpo.assert_report(file, line, func, targetname, title); } if( HPMHooks.count.HP_nullpo_assert_report_post ) { - void (*postHookFunc) (const char *file, int *line, const char *func, const char *targetname, const char *title); + void (*postHookFunc) (const char *file, int line, const char *func, const char *targetname, const char *title); for(hIndex = 0; hIndex < HPMHooks.count.HP_nullpo_assert_report_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_nullpo_assert_report_post[hIndex].func; - postHookFunc(file, &line, func, targetname, title); + postHookFunc(file, line, func, targetname, title); } } return; } -/* party */ +/* party_interface */ void HP_party_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_party_init_pre ) { @@ -50409,10 +50523,10 @@ void HP_party_init(bool minimal) { HPMHooks.source.party.init(minimal); } if( HPMHooks.count.HP_party_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -50462,10 +50576,10 @@ struct party_data* HP_party_search(int party_id) { retVal___ = HPMHooks.source.party.search(party_id); } if( HPMHooks.count.HP_party_search_post ) { - struct party_data* (*postHookFunc) (struct party_data* retVal___, int *party_id); + struct party_data* (*postHookFunc) (struct party_data* retVal___, int party_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id); + retVal___ = postHookFunc(retVal___, party_id); } } return retVal___; @@ -50474,11 +50588,11 @@ struct party_data* HP_party_searchname(const char *str) { int hIndex = 0; struct party_data* retVal___ = NULL; if( HPMHooks.count.HP_party_searchname_pre ) { - struct party_data* (*preHookFunc) (const char *str); + struct party_data* (*preHookFunc) (const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_searchname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_searchname_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50501,11 +50615,11 @@ int HP_party_getmemberid(struct party_data *p, struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_getmemberid_pre ) { - int (*preHookFunc) (struct party_data *p, struct map_session_data *sd); + int (*preHookFunc) (struct party_data **p, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_getmemberid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_getmemberid_pre[hIndex].func; - retVal___ = preHookFunc(p, sd); + retVal___ = preHookFunc(&p, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50528,11 +50642,11 @@ struct map_session_data* HP_party_getavailablesd(struct party_data *p) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_party_getavailablesd_pre ) { - struct map_session_data* (*preHookFunc) (struct party_data *p); + struct map_session_data* (*preHookFunc) (struct party_data **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_getavailablesd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_getavailablesd_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50555,11 +50669,11 @@ int HP_party_create(struct map_session_data *sd, const char *name, int item, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name, int *item, int *item2); + int (*preHookFunc) (struct map_session_data **sd, const char **name, int *item, int *item2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, name, &item, &item2); + retVal___ = preHookFunc(&sd, &name, &item, &item2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50570,10 +50684,10 @@ int HP_party_create(struct map_session_data *sd, const char *name, int item, int retVal___ = HPMHooks.source.party.create(sd, name, item, item2); } if( HPMHooks.count.HP_party_create_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int *item, int *item2); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int item, int item2); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, name, &item, &item2); + retVal___ = postHookFunc(retVal___, sd, name, item, item2); } } return retVal___; @@ -50581,11 +50695,11 @@ int HP_party_create(struct map_session_data *sd, const char *name, int item, int void HP_party_created(int account_id, int char_id, int fail, int party_id, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_party_created_pre ) { - void (*preHookFunc) (int *account_id, int *char_id, int *fail, int *party_id, const char *name); + void (*preHookFunc) (int *account_id, int *char_id, int *fail, int *party_id, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_created_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_created_pre[hIndex].func; - preHookFunc(&account_id, &char_id, &fail, &party_id, name); + preHookFunc(&account_id, &char_id, &fail, &party_id, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50596,10 +50710,10 @@ void HP_party_created(int account_id, int char_id, int fail, int party_id, const HPMHooks.source.party.created(account_id, char_id, fail, party_id, name); } if( HPMHooks.count.HP_party_created_post ) { - void (*postHookFunc) (int *account_id, int *char_id, int *fail, int *party_id, const char *name); + void (*postHookFunc) (int account_id, int char_id, int fail, int party_id, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_created_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_created_post[hIndex].func; - postHookFunc(&account_id, &char_id, &fail, &party_id, name); + postHookFunc(account_id, char_id, fail, party_id, name); } } return; @@ -50623,10 +50737,10 @@ int HP_party_request_info(int party_id, int char_id) { retVal___ = HPMHooks.source.party.request_info(party_id, char_id); } if( HPMHooks.count.HP_party_request_info_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_request_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_request_info_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, char_id); } } return retVal___; @@ -50635,11 +50749,11 @@ int HP_party_invite(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_invite_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_invite_pre[hIndex].func; - retVal___ = preHookFunc(sd, tsd); + retVal___ = preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50661,11 +50775,11 @@ int HP_party_invite(struct map_session_data *sd, struct map_session_data *tsd) { void HP_party_member_joined(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_party_member_joined_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_member_joined_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_member_joined_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50703,10 +50817,10 @@ int HP_party_member_added(int party_id, int account_id, int char_id, int flag) { retVal___ = HPMHooks.source.party.member_added(party_id, account_id, char_id, flag); } if( HPMHooks.count.HP_party_member_added_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id, int *flag); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int char_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_member_added_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_member_added_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id, &flag); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id, flag); } } return retVal___; @@ -50715,11 +50829,11 @@ int HP_party_leave(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_leave_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_leave_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_leave_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50742,11 +50856,11 @@ int HP_party_removemember(struct map_session_data *sd, int account_id, const cha int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_removemember_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *account_id, const char *name); + int (*preHookFunc) (struct map_session_data **sd, int *account_id, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_removemember_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_removemember_pre[hIndex].func; - retVal___ = preHookFunc(sd, &account_id, name); + retVal___ = preHookFunc(&sd, &account_id, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50757,10 +50871,10 @@ int HP_party_removemember(struct map_session_data *sd, int account_id, const cha retVal___ = HPMHooks.source.party.removemember(sd, account_id, name); } if( HPMHooks.count.HP_party_removemember_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *account_id, const char *name); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int account_id, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_removemember_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_removemember_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &account_id, name); + retVal___ = postHookFunc(retVal___, sd, account_id, name); } } return retVal___; @@ -50784,10 +50898,10 @@ int HP_party_member_withdraw(int party_id, int account_id, int char_id) { retVal___ = HPMHooks.source.party.member_withdraw(party_id, account_id, char_id); } if( HPMHooks.count.HP_party_member_withdraw_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_member_withdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_member_withdraw_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id); } } return retVal___; @@ -50795,11 +50909,11 @@ int HP_party_member_withdraw(int party_id, int account_id, int char_id) { void HP_party_reply_invite(struct map_session_data *sd, int party_id, int flag) { int hIndex = 0; if( HPMHooks.count.HP_party_reply_invite_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *party_id, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *party_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_reply_invite_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_reply_invite_pre[hIndex].func; - preHookFunc(sd, &party_id, &flag); + preHookFunc(&sd, &party_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50810,10 +50924,10 @@ void HP_party_reply_invite(struct map_session_data *sd, int party_id, int flag) HPMHooks.source.party.reply_invite(sd, party_id, flag); } if( HPMHooks.count.HP_party_reply_invite_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *party_id, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int party_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_reply_invite_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_reply_invite_post[hIndex].func; - postHookFunc(sd, &party_id, &flag); + postHookFunc(sd, party_id, flag); } } return; @@ -50837,10 +50951,10 @@ int HP_party_recv_noinfo(int party_id, int char_id) { retVal___ = HPMHooks.source.party.recv_noinfo(party_id, char_id); } if( HPMHooks.count.HP_party_recv_noinfo_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *char_id); + int (*postHookFunc) (int retVal___, int party_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_noinfo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recv_noinfo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, char_id); } } return retVal___; @@ -50849,11 +50963,11 @@ int HP_party_recv_info(const struct party *sp, int char_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_recv_info_pre ) { - int (*preHookFunc) (const struct party *sp, int *char_id); + int (*preHookFunc) (const struct party **sp, int *char_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_info_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_recv_info_pre[hIndex].func; - retVal___ = preHookFunc(sp, &char_id); + retVal___ = preHookFunc(&sp, &char_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50864,10 +50978,10 @@ int HP_party_recv_info(const struct party *sp, int char_id) { retVal___ = HPMHooks.source.party.recv_info(sp, char_id); } if( HPMHooks.count.HP_party_recv_info_post ) { - int (*postHookFunc) (int retVal___, const struct party *sp, int *char_id); + int (*postHookFunc) (int retVal___, const struct party *sp, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_info_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recv_info_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sp, &char_id); + retVal___ = postHookFunc(retVal___, sp, char_id); } } return retVal___; @@ -50891,10 +51005,10 @@ int HP_party_recv_movemap(int party_id, int account_id, int char_id, unsigned sh retVal___ = HPMHooks.source.party.recv_movemap(party_id, account_id, char_id, mapid, online, lv); } if( HPMHooks.count.HP_party_recv_movemap_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id, unsigned short *mapid, int *online, int *lv); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int char_id, unsigned short mapid, int online, int lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_movemap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recv_movemap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id, &mapid, &online, &lv); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id, mapid, online, lv); } } return retVal___; @@ -50918,10 +51032,10 @@ int HP_party_broken(int party_id) { retVal___ = HPMHooks.source.party.broken(party_id); } if( HPMHooks.count.HP_party_broken_post ) { - int (*postHookFunc) (int retVal___, int *party_id); + int (*postHookFunc) (int retVal___, int party_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_broken_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_broken_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id); + retVal___ = postHookFunc(retVal___, party_id); } } return retVal___; @@ -50945,10 +51059,10 @@ int HP_party_optionchanged(int party_id, int account_id, int exp, int item, int retVal___ = HPMHooks.source.party.optionchanged(party_id, account_id, exp, item, flag); } if( HPMHooks.count.HP_party_optionchanged_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *exp, int *item, int *flag); + int (*postHookFunc) (int retVal___, int party_id, int account_id, int exp, int item, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_optionchanged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_optionchanged_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &exp, &item, &flag); + retVal___ = postHookFunc(retVal___, party_id, account_id, exp, item, flag); } } return retVal___; @@ -50957,11 +51071,11 @@ int HP_party_changeoption(struct map_session_data *sd, int exp, int item) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_changeoption_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *exp, int *item); + int (*preHookFunc) (struct map_session_data **sd, int *exp, int *item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_changeoption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_changeoption_pre[hIndex].func; - retVal___ = preHookFunc(sd, &exp, &item); + retVal___ = preHookFunc(&sd, &exp, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -50972,10 +51086,10 @@ int HP_party_changeoption(struct map_session_data *sd, int exp, int item) { retVal___ = HPMHooks.source.party.changeoption(sd, exp, item); } if( HPMHooks.count.HP_party_changeoption_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *exp, int *item); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int exp, int item); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_changeoption_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_changeoption_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &exp, &item); + retVal___ = postHookFunc(retVal___, sd, exp, item); } } return retVal___; @@ -50984,11 +51098,11 @@ bool HP_party_changeleader(struct map_session_data *sd, struct map_session_data int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_party_changeleader_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct map_session_data *t_sd); + bool (*preHookFunc) (struct map_session_data **sd, struct map_session_data **t_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_changeleader_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_changeleader_pre[hIndex].func; - retVal___ = preHookFunc(sd, t_sd); + retVal___ = preHookFunc(&sd, &t_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51010,11 +51124,11 @@ bool HP_party_changeleader(struct map_session_data *sd, struct map_session_data void HP_party_send_movemap(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_party_send_movemap_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_movemap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_movemap_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51036,11 +51150,11 @@ void HP_party_send_movemap(struct map_session_data *sd) { void HP_party_send_levelup(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_party_send_levelup_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_levelup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_levelup_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51063,11 +51177,11 @@ int HP_party_send_logout(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_send_logout_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_logout_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_logout_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51086,15 +51200,15 @@ int HP_party_send_logout(struct map_session_data *sd) { } return retVal___; } -int HP_party_send_message(struct map_session_data *sd, const char *mes, int len) { +int HP_party_send_message(struct map_session_data *sd, const char *mes) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_send_message_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len); + int (*preHookFunc) (struct map_session_data **sd, const char **mes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_message_pre[hIndex].func; - retVal___ = preHookFunc(sd, mes, &len); + retVal___ = preHookFunc(&sd, &mes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51102,13 +51216,13 @@ int HP_party_send_message(struct map_session_data *sd, const char *mes, int len) } } { - retVal___ = HPMHooks.source.party.send_message(sd, mes, len); + retVal___ = HPMHooks.source.party.send_message(sd, mes); } if( HPMHooks.count.HP_party_send_message_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *mes, int *len); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *mes); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_send_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, mes, &len); + retVal___ = postHookFunc(retVal___, sd, mes); } } return retVal___; @@ -51117,11 +51231,11 @@ int HP_party_recv_message(int party_id, int account_id, const char *mes, int len int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_recv_message_pre ) { - int (*preHookFunc) (int *party_id, int *account_id, const char *mes, int *len); + int (*preHookFunc) (int *party_id, int *account_id, const char **mes, int *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_recv_message_pre[hIndex].func; - retVal___ = preHookFunc(&party_id, &account_id, mes, &len); + retVal___ = preHookFunc(&party_id, &account_id, &mes, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51132,10 +51246,10 @@ int HP_party_recv_message(int party_id, int account_id, const char *mes, int len retVal___ = HPMHooks.source.party.recv_message(party_id, account_id, mes, len); } if( HPMHooks.count.HP_party_recv_message_post ) { - int (*postHookFunc) (int retVal___, int *party_id, int *account_id, const char *mes, int *len); + int (*postHookFunc) (int retVal___, int party_id, int account_id, const char *mes, int len); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_message_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recv_message_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, mes, &len); + retVal___ = postHookFunc(retVal___, party_id, account_id, mes, len); } } return retVal___; @@ -51144,11 +51258,11 @@ int HP_party_skill_check(struct map_session_data *sd, int party_id, uint16 skill int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_skill_check_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *party_id, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, int *party_id, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_skill_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_skill_check_pre[hIndex].func; - retVal___ = preHookFunc(sd, &party_id, &skill_id, &skill_lv); + retVal___ = preHookFunc(&sd, &party_id, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51159,10 +51273,10 @@ int HP_party_skill_check(struct map_session_data *sd, int party_id, uint16 skill retVal___ = HPMHooks.source.party.skill_check(sd, party_id, skill_id, skill_lv); } if( HPMHooks.count.HP_party_skill_check_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *party_id, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int party_id, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_skill_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_skill_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &party_id, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, party_id, skill_id, skill_lv); } } return retVal___; @@ -51171,11 +51285,11 @@ int HP_party_send_xy_clear(struct party_data *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_send_xy_clear_pre ) { - int (*preHookFunc) (struct party_data *p); + int (*preHookFunc) (struct party_data **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_xy_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_xy_clear_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51198,11 +51312,11 @@ int HP_party_exp_share(struct party_data *p, struct block_list *src, unsigned in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_exp_share_pre ) { - int (*preHookFunc) (struct party_data *p, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, int *zeny); + int (*preHookFunc) (struct party_data **p, struct block_list **src, unsigned int *base_exp, unsigned int *job_exp, int *zeny); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_exp_share_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_exp_share_pre[hIndex].func; - retVal___ = preHookFunc(p, src, &base_exp, &job_exp, &zeny); + retVal___ = preHookFunc(&p, &src, &base_exp, &job_exp, &zeny); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51213,10 +51327,10 @@ int HP_party_exp_share(struct party_data *p, struct block_list *src, unsigned in retVal___ = HPMHooks.source.party.exp_share(p, src, base_exp, job_exp, zeny); } if( HPMHooks.count.HP_party_exp_share_post ) { - int (*postHookFunc) (int retVal___, struct party_data *p, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, int *zeny); + int (*postHookFunc) (int retVal___, struct party_data *p, struct block_list *src, unsigned int base_exp, unsigned int job_exp, int zeny); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_exp_share_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_exp_share_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, src, &base_exp, &job_exp, &zeny); + retVal___ = postHookFunc(retVal___, p, src, base_exp, job_exp, zeny); } } return retVal___; @@ -51225,11 +51339,11 @@ int HP_party_share_loot(struct party_data *p, struct map_session_data *sd, struc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_share_loot_pre ) { - int (*preHookFunc) (struct party_data *p, struct map_session_data *sd, struct item *item_data, int *first_charid); + int (*preHookFunc) (struct party_data **p, struct map_session_data **sd, struct item **item_data, int *first_charid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_share_loot_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_share_loot_pre[hIndex].func; - retVal___ = preHookFunc(p, sd, item_data, &first_charid); + retVal___ = preHookFunc(&p, &sd, &item_data, &first_charid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51240,10 +51354,10 @@ int HP_party_share_loot(struct party_data *p, struct map_session_data *sd, struc retVal___ = HPMHooks.source.party.share_loot(p, sd, item_data, first_charid); } if( HPMHooks.count.HP_party_share_loot_post ) { - int (*postHookFunc) (int retVal___, struct party_data *p, struct map_session_data *sd, struct item *item_data, int *first_charid); + int (*postHookFunc) (int retVal___, struct party_data *p, struct map_session_data *sd, struct item *item_data, int first_charid); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_share_loot_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_share_loot_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, sd, item_data, &first_charid); + retVal___ = postHookFunc(retVal___, p, sd, item_data, first_charid); } } return retVal___; @@ -51252,11 +51366,11 @@ int HP_party_send_dot_remove(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_send_dot_remove_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_dot_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_send_dot_remove_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51279,12 +51393,12 @@ int HP_party_sub_count(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_sub_count_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_sub_count_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_party_sub_count_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -51312,12 +51426,12 @@ int HP_party_sub_count_chorus(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_sub_count_chorus_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_sub_count_chorus_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_party_sub_count_chorus_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -51344,11 +51458,11 @@ int HP_party_sub_count_chorus(struct block_list *bl, va_list ap) { void HP_party_booking_register(struct map_session_data *sd, short level, short mapid, short *job) { int hIndex = 0; if( HPMHooks.count.HP_party_booking_register_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *level, short *mapid, short *job); + void (*preHookFunc) (struct map_session_data **sd, short *level, short *mapid, short **job); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_register_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_booking_register_pre[hIndex].func; - preHookFunc(sd, &level, &mapid, job); + preHookFunc(&sd, &level, &mapid, &job); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51359,10 +51473,10 @@ void HP_party_booking_register(struct map_session_data *sd, short level, short m HPMHooks.source.party.booking_register(sd, level, mapid, job); } if( HPMHooks.count.HP_party_booking_register_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *level, short *mapid, short *job); + void (*postHookFunc) (struct map_session_data *sd, short level, short mapid, short *job); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_register_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_booking_register_post[hIndex].func; - postHookFunc(sd, &level, &mapid, job); + postHookFunc(sd, level, mapid, job); } } return; @@ -51370,11 +51484,11 @@ void HP_party_booking_register(struct map_session_data *sd, short level, short m void HP_party_booking_update(struct map_session_data *sd, short *job) { int hIndex = 0; if( HPMHooks.count.HP_party_booking_update_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *job); + void (*preHookFunc) (struct map_session_data **sd, short **job); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_update_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_booking_update_pre[hIndex].func; - preHookFunc(sd, job); + preHookFunc(&sd, &job); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51396,11 +51510,11 @@ void HP_party_booking_update(struct map_session_data *sd, short *job) { void HP_party_booking_search(struct map_session_data *sd, short level, short mapid, short job, unsigned long lastindex, short resultcount) { int hIndex = 0; if( HPMHooks.count.HP_party_booking_search_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *level, short *mapid, short *job, unsigned long *lastindex, short *resultcount); + void (*preHookFunc) (struct map_session_data **sd, short *level, short *mapid, short *job, unsigned long *lastindex, short *resultcount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_booking_search_pre[hIndex].func; - preHookFunc(sd, &level, &mapid, &job, &lastindex, &resultcount); + preHookFunc(&sd, &level, &mapid, &job, &lastindex, &resultcount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51411,10 +51525,10 @@ void HP_party_booking_search(struct map_session_data *sd, short level, short map HPMHooks.source.party.booking_search(sd, level, mapid, job, lastindex, resultcount); } if( HPMHooks.count.HP_party_booking_search_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *level, short *mapid, short *job, unsigned long *lastindex, short *resultcount); + void (*postHookFunc) (struct map_session_data *sd, short level, short mapid, short job, unsigned long lastindex, short resultcount); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_booking_search_post[hIndex].func; - postHookFunc(sd, &level, &mapid, &job, &lastindex, &resultcount); + postHookFunc(sd, level, mapid, job, lastindex, resultcount); } } return; @@ -51422,11 +51536,11 @@ void HP_party_booking_search(struct map_session_data *sd, short level, short map void HP_party_recruit_register(struct map_session_data *sd, short level, const char *notice) { int hIndex = 0; if( HPMHooks.count.HP_party_recruit_register_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *level, const char *notice); + void (*preHookFunc) (struct map_session_data **sd, short *level, const char **notice); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recruit_register_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_recruit_register_pre[hIndex].func; - preHookFunc(sd, &level, notice); + preHookFunc(&sd, &level, ¬ice); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51437,10 +51551,10 @@ void HP_party_recruit_register(struct map_session_data *sd, short level, const c HPMHooks.source.party.recruit_register(sd, level, notice); } if( HPMHooks.count.HP_party_recruit_register_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *level, const char *notice); + void (*postHookFunc) (struct map_session_data *sd, short level, const char *notice); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recruit_register_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recruit_register_post[hIndex].func; - postHookFunc(sd, &level, notice); + postHookFunc(sd, level, notice); } } return; @@ -51448,11 +51562,11 @@ void HP_party_recruit_register(struct map_session_data *sd, short level, const c void HP_party_recruit_update(struct map_session_data *sd, const char *notice) { int hIndex = 0; if( HPMHooks.count.HP_party_recruit_update_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *notice); + void (*preHookFunc) (struct map_session_data **sd, const char **notice); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recruit_update_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_recruit_update_pre[hIndex].func; - preHookFunc(sd, notice); + preHookFunc(&sd, ¬ice); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51474,11 +51588,11 @@ void HP_party_recruit_update(struct map_session_data *sd, const char *notice) { void HP_party_recruit_search(struct map_session_data *sd, short level, short mapid, unsigned long lastindex, short resultcount) { int hIndex = 0; if( HPMHooks.count.HP_party_recruit_search_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *level, short *mapid, unsigned long *lastindex, short *resultcount); + void (*preHookFunc) (struct map_session_data **sd, short *level, short *mapid, unsigned long *lastindex, short *resultcount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recruit_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_recruit_search_pre[hIndex].func; - preHookFunc(sd, &level, &mapid, &lastindex, &resultcount); + preHookFunc(&sd, &level, &mapid, &lastindex, &resultcount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51489,10 +51603,10 @@ void HP_party_recruit_search(struct map_session_data *sd, short level, short map HPMHooks.source.party.recruit_search(sd, level, mapid, lastindex, resultcount); } if( HPMHooks.count.HP_party_recruit_search_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *level, short *mapid, unsigned long *lastindex, short *resultcount); + void (*postHookFunc) (struct map_session_data *sd, short level, short mapid, unsigned long lastindex, short resultcount); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recruit_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_recruit_search_post[hIndex].func; - postHookFunc(sd, &level, &mapid, &lastindex, &resultcount); + postHookFunc(sd, level, mapid, lastindex, resultcount); } } return; @@ -51501,11 +51615,11 @@ bool HP_party_booking_delete(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_party_booking_delete_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_booking_delete_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51528,12 +51642,12 @@ int HP_party_vforeachsamemap(int ( *func ) (struct block_list *, va_list), struc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_vforeachsamemap_pre ) { - int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct map_session_data *sd, int *range, va_list ap); + int (*preHookFunc) (int ( **func ) (struct block_list *, va_list), struct map_session_data **sd, int *range, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_vforeachsamemap_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_party_vforeachsamemap_pre[hIndex].func; - retVal___ = preHookFunc(func, sd, &range, ap___copy); + retVal___ = preHookFunc(&func, &sd, &range, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -51547,11 +51661,11 @@ int HP_party_vforeachsamemap(int ( *func ) (struct block_list *, va_list), struc va_end(ap___copy); } if( HPMHooks.count.HP_party_vforeachsamemap_post ) { - int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct map_session_data *sd, int *range, va_list ap); + int (*postHookFunc) (int retVal___, int ( *func ) (struct block_list *, va_list), struct map_session_data *sd, int range, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_vforeachsamemap_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_party_vforeachsamemap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, func, sd, &range, ap___copy); + retVal___ = postHookFunc(retVal___, func, sd, range, ap___copy); va_end(ap___copy); } } @@ -51576,10 +51690,10 @@ int HP_party_send_xy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.party.send_xy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_party_send_xy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_xy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_send_xy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -51587,11 +51701,11 @@ int HP_party_send_xy_timer(int tid, int64 tick, int id, intptr_t data) { void HP_party_fill_member(struct party_member *member, struct map_session_data *sd, unsigned int leader) { int hIndex = 0; if( HPMHooks.count.HP_party_fill_member_pre ) { - void (*preHookFunc) (struct party_member *member, struct map_session_data *sd, unsigned int *leader); + void (*preHookFunc) (struct party_member **member, struct map_session_data **sd, unsigned int *leader); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_fill_member_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_fill_member_pre[hIndex].func; - preHookFunc(member, sd, &leader); + preHookFunc(&member, &sd, &leader); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51602,10 +51716,10 @@ void HP_party_fill_member(struct party_member *member, struct map_session_data * HPMHooks.source.party.fill_member(member, sd, leader); } if( HPMHooks.count.HP_party_fill_member_post ) { - void (*postHookFunc) (struct party_member *member, struct map_session_data *sd, unsigned int *leader); + void (*postHookFunc) (struct party_member *member, struct map_session_data *sd, unsigned int leader); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_fill_member_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_fill_member_post[hIndex].func; - postHookFunc(member, sd, &leader); + postHookFunc(member, sd, leader); } } return; @@ -51629,10 +51743,10 @@ struct map_session_data* HP_party_sd_check(int party_id, int account_id, int cha retVal___ = HPMHooks.source.party.sd_check(party_id, account_id, char_id); } if( HPMHooks.count.HP_party_sd_check_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int *party_id, int *account_id, int *char_id); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, int party_id, int account_id, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_sd_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_party_sd_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + retVal___ = postHookFunc(retVal___, party_id, account_id, char_id); } } return retVal___; @@ -51640,11 +51754,11 @@ struct map_session_data* HP_party_sd_check(int party_id, int account_id, int cha void HP_party_check_state(struct party_data *p) { int hIndex = 0; if( HPMHooks.count.HP_party_check_state_pre ) { - void (*preHookFunc) (struct party_data *p); + void (*preHookFunc) (struct party_data **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_check_state_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_party_check_state_pre[hIndex].func; - preHookFunc(p); + preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51690,16 +51804,16 @@ struct party_booking_ad_info* HP_party_create_booking_data(void) { } return retVal___; } -int HP_party_db_final(DBKey key, DBData *data, va_list ap) { +int HP_party_db_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_party_db_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_party_db_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_party_db_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -51713,26 +51827,26 @@ int HP_party_db_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_party_db_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_party_db_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_party_db_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -/* path */ +/* path_interface */ int HP_path_blownpos(struct block_list *bl, int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_path_blownpos_pre ) { - int (*preHookFunc) (struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *dx, int16 *dy, int *count); + int (*preHookFunc) (struct block_list **bl, int16 *m, int16 *x0, int16 *y0, int16 *dx, int16 *dy, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_path_blownpos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_path_blownpos_pre[hIndex].func; - retVal___ = preHookFunc(bl, &m, &x0, &y0, &dx, &dy, &count); + retVal___ = preHookFunc(&bl, &m, &x0, &y0, &dx, &dy, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51743,10 +51857,10 @@ int HP_path_blownpos(struct block_list *bl, int16 m, int16 x0, int16 y0, int16 d retVal___ = HPMHooks.source.path.blownpos(bl, m, x0, y0, dx, dy, count); } if( HPMHooks.count.HP_path_blownpos_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *dx, int16 *dy, int *count); + int (*postHookFunc) (int retVal___, struct block_list *bl, int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_blownpos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_blownpos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &m, &x0, &y0, &dx, &dy, &count); + retVal___ = postHookFunc(retVal___, bl, m, x0, y0, dx, dy, count); } } return retVal___; @@ -51755,11 +51869,11 @@ bool HP_path_search(struct walkpath_data *wpd, struct block_list *bl, int16 m, i int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_path_search_pre ) { - bool (*preHookFunc) (struct walkpath_data *wpd, struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *flag, cell_chk *cell); + bool (*preHookFunc) (struct walkpath_data **wpd, struct block_list **bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *flag, cell_chk *cell); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_path_search_pre[hIndex].func; - retVal___ = preHookFunc(wpd, bl, &m, &x0, &y0, &x1, &y1, &flag, &cell); + retVal___ = preHookFunc(&wpd, &bl, &m, &x0, &y0, &x1, &y1, &flag, &cell); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51770,10 +51884,10 @@ bool HP_path_search(struct walkpath_data *wpd, struct block_list *bl, int16 m, i retVal___ = HPMHooks.source.path.search(wpd, bl, m, x0, y0, x1, y1, flag, cell); } if( HPMHooks.count.HP_path_search_post ) { - bool (*postHookFunc) (bool retVal___, struct walkpath_data *wpd, struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *flag, cell_chk *cell); + bool (*postHookFunc) (bool retVal___, struct walkpath_data *wpd, struct block_list *bl, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int flag, cell_chk cell); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, wpd, bl, &m, &x0, &y0, &x1, &y1, &flag, &cell); + retVal___ = postHookFunc(retVal___, wpd, bl, m, x0, y0, x1, y1, flag, cell); } } return retVal___; @@ -51782,11 +51896,11 @@ bool HP_path_search_long(struct shootpath_data *spd, struct block_list *bl, int1 int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_path_search_long_pre ) { - bool (*preHookFunc) (struct shootpath_data *spd, struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, cell_chk *cell); + bool (*preHookFunc) (struct shootpath_data **spd, struct block_list **bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, cell_chk *cell); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_long_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_path_search_long_pre[hIndex].func; - retVal___ = preHookFunc(spd, bl, &m, &x0, &y0, &x1, &y1, &cell); + retVal___ = preHookFunc(&spd, &bl, &m, &x0, &y0, &x1, &y1, &cell); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -51797,10 +51911,10 @@ bool HP_path_search_long(struct shootpath_data *spd, struct block_list *bl, int1 retVal___ = HPMHooks.source.path.search_long(spd, bl, m, x0, y0, x1, y1, cell); } if( HPMHooks.count.HP_path_search_long_post ) { - bool (*postHookFunc) (bool retVal___, struct shootpath_data *spd, struct block_list *bl, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, cell_chk *cell); + bool (*postHookFunc) (bool retVal___, struct shootpath_data *spd, struct block_list *bl, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, cell_chk cell); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_long_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_search_long_post[hIndex].func; - retVal___ = postHookFunc(retVal___, spd, bl, &m, &x0, &y0, &x1, &y1, &cell); + retVal___ = postHookFunc(retVal___, spd, bl, m, x0, y0, x1, y1, cell); } } return retVal___; @@ -51824,10 +51938,10 @@ bool HP_path_check_distance(int dx, int dy, int distance) { retVal___ = HPMHooks.source.path.check_distance(dx, dy, distance); } if( HPMHooks.count.HP_path_check_distance_post ) { - bool (*postHookFunc) (bool retVal___, int *dx, int *dy, int *distance); + bool (*postHookFunc) (bool retVal___, int dx, int dy, int distance); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_check_distance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_check_distance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &dx, &dy, &distance); + retVal___ = postHookFunc(retVal___, dx, dy, distance); } } return retVal___; @@ -51851,10 +51965,10 @@ unsigned int HP_path_distance(int dx, int dy) { retVal___ = HPMHooks.source.path.distance(dx, dy); } if( HPMHooks.count.HP_path_distance_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, int *dx, int *dy); + unsigned int (*postHookFunc) (unsigned int retVal___, int dx, int dy); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_distance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_distance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &dx, &dy); + retVal___ = postHookFunc(retVal___, dx, dy); } } return retVal___; @@ -51878,10 +51992,10 @@ bool HP_path_check_distance_client(int dx, int dy, int distance) { retVal___ = HPMHooks.source.path.check_distance_client(dx, dy, distance); } if( HPMHooks.count.HP_path_check_distance_client_post ) { - bool (*postHookFunc) (bool retVal___, int *dx, int *dy, int *distance); + bool (*postHookFunc) (bool retVal___, int dx, int dy, int distance); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_check_distance_client_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_check_distance_client_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &dx, &dy, &distance); + retVal___ = postHookFunc(retVal___, dx, dy, distance); } } return retVal___; @@ -51905,15 +52019,15 @@ int HP_path_distance_client(int dx, int dy) { retVal___ = HPMHooks.source.path.distance_client(dx, dy); } if( HPMHooks.count.HP_path_distance_client_post ) { - int (*postHookFunc) (int retVal___, int *dx, int *dy); + int (*postHookFunc) (int retVal___, int dx, int dy); for(hIndex = 0; hIndex < HPMHooks.count.HP_path_distance_client_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_path_distance_client_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &dx, &dy); + retVal___ = postHookFunc(retVal___, dx, dy); } } return retVal___; } -/* pcg */ +/* pc_groups_interface */ void HP_pcg_init(void) { int hIndex = 0; if( HPMHooks.count.HP_pcg_init_pre ) { @@ -52038,10 +52152,10 @@ bool HP_pcg_exists(int group_id) { retVal___ = HPMHooks.source.pcg.exists(group_id); } if( HPMHooks.count.HP_pcg_exists_post ) { - bool (*postHookFunc) (bool retVal___, int *group_id); + bool (*postHookFunc) (bool retVal___, int group_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_exists_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pcg_exists_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &group_id); + retVal___ = postHookFunc(retVal___, group_id); } } return retVal___; @@ -52065,10 +52179,10 @@ GroupSettings* HP_pcg_id2group(int group_id) { retVal___ = HPMHooks.source.pcg.id2group(group_id); } if( HPMHooks.count.HP_pcg_id2group_post ) { - GroupSettings* (*postHookFunc) (GroupSettings* retVal___, int *group_id); + GroupSettings* (*postHookFunc) (GroupSettings* retVal___, int group_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_id2group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pcg_id2group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &group_id); + retVal___ = postHookFunc(retVal___, group_id); } } return retVal___; @@ -52077,11 +52191,11 @@ bool HP_pcg_has_permission(GroupSettings *group, unsigned int permission) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pcg_has_permission_pre ) { - bool (*preHookFunc) (GroupSettings *group, unsigned int *permission); + bool (*preHookFunc) (GroupSettings **group, unsigned int *permission); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_has_permission_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pcg_has_permission_pre[hIndex].func; - retVal___ = preHookFunc(group, &permission); + retVal___ = preHookFunc(&group, &permission); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52092,10 +52206,10 @@ bool HP_pcg_has_permission(GroupSettings *group, unsigned int permission) { retVal___ = HPMHooks.source.pcg.has_permission(group, permission); } if( HPMHooks.count.HP_pcg_has_permission_post ) { - bool (*postHookFunc) (bool retVal___, GroupSettings *group, unsigned int *permission); + bool (*postHookFunc) (bool retVal___, GroupSettings *group, unsigned int permission); for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_has_permission_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pcg_has_permission_post[hIndex].func; - retVal___ = postHookFunc(retVal___, group, &permission); + retVal___ = postHookFunc(retVal___, group, permission); } } return retVal___; @@ -52104,11 +52218,11 @@ bool HP_pcg_should_log_commands(GroupSettings *group) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pcg_should_log_commands_pre ) { - bool (*preHookFunc) (GroupSettings *group); + bool (*preHookFunc) (GroupSettings **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_should_log_commands_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pcg_should_log_commands_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52131,11 +52245,11 @@ const char* HP_pcg_get_name(GroupSettings *group) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_pcg_get_name_pre ) { - const char* (*preHookFunc) (GroupSettings *group); + const char* (*preHookFunc) (GroupSettings **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_get_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pcg_get_name_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52158,11 +52272,11 @@ int HP_pcg_get_level(GroupSettings *group) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pcg_get_level_pre ) { - int (*preHookFunc) (GroupSettings *group); + int (*preHookFunc) (GroupSettings **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_get_level_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pcg_get_level_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52185,11 +52299,11 @@ int HP_pcg_get_idx(GroupSettings *group) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pcg_get_idx_pre ) { - int (*preHookFunc) (GroupSettings *group); + int (*preHookFunc) (GroupSettings **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pcg_get_idx_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pcg_get_idx_pre[hIndex].func; - retVal___ = preHookFunc(group); + retVal___ = preHookFunc(&group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52208,7 +52322,7 @@ int HP_pcg_get_idx(GroupSettings *group) { } return retVal___; } -/* pc */ +/* pc_interface */ void HP_pc_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_pc_init_pre ) { @@ -52227,10 +52341,10 @@ void HP_pc_init(bool minimal) { HPMHooks.source.pc.init(minimal); } if( HPMHooks.count.HP_pc_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -52307,10 +52421,10 @@ int HP_pc_class2idx(int class_) { retVal___ = HPMHooks.source.pc.class2idx(class_); } if( HPMHooks.count.HP_pc_class2idx_post ) { - int (*postHookFunc) (int retVal___, int *class_); + int (*postHookFunc) (int retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_class2idx_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_class2idx_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -52319,11 +52433,11 @@ bool HP_pc_can_talk(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_talk_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_talk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_talk_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52346,11 +52460,11 @@ bool HP_pc_can_attack(struct map_session_data *sd, int target_id) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_attack_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *target_id); + bool (*preHookFunc) (struct map_session_data **sd, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_attack_pre[hIndex].func; - retVal___ = preHookFunc(sd, &target_id); + retVal___ = preHookFunc(&sd, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52361,10 +52475,10 @@ bool HP_pc_can_attack(struct map_session_data *sd, int target_id) { retVal___ = HPMHooks.source.pc.can_attack(sd, target_id); } if( HPMHooks.count.HP_pc_can_attack_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *target_id); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_can_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &target_id); + retVal___ = postHookFunc(retVal___, sd, target_id); } } return retVal___; @@ -52373,11 +52487,11 @@ bool HP_pc_can_use_command(struct map_session_data *sd, const char *command) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_use_command_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const char *command); + bool (*preHookFunc) (struct map_session_data **sd, const char **command); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_use_command_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_use_command_pre[hIndex].func; - retVal___ = preHookFunc(sd, command); + retVal___ = preHookFunc(&sd, &command); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52400,11 +52514,11 @@ int HP_pc_set_group(struct map_session_data *sd, int group_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_set_group_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *group_id); + int (*preHookFunc) (struct map_session_data **sd, int *group_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_group_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_set_group_pre[hIndex].func; - retVal___ = preHookFunc(sd, &group_id); + retVal___ = preHookFunc(&sd, &group_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52415,10 +52529,10 @@ int HP_pc_set_group(struct map_session_data *sd, int group_id) { retVal___ = HPMHooks.source.pc.set_group(sd, group_id); } if( HPMHooks.count.HP_pc_set_group_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *group_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int group_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_set_group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &group_id); + retVal___ = postHookFunc(retVal___, sd, group_id); } } return retVal___; @@ -52427,11 +52541,11 @@ bool HP_pc_should_log_commands(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_should_log_commands_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_should_log_commands_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_should_log_commands_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52454,11 +52568,11 @@ int HP_pc_setrestartvalue(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setrestartvalue_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setrestartvalue_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setrestartvalue_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52469,10 +52583,10 @@ int HP_pc_setrestartvalue(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.setrestartvalue(sd, type); } if( HPMHooks.count.HP_pc_setrestartvalue_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setrestartvalue_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setrestartvalue_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -52481,11 +52595,11 @@ int HP_pc_makesavestatus(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_makesavestatus_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_makesavestatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_makesavestatus_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52507,11 +52621,11 @@ int HP_pc_makesavestatus(struct map_session_data *sd) { void HP_pc_respawn(struct map_session_data *sd, clr_type clrtype) { int hIndex = 0; if( HPMHooks.count.HP_pc_respawn_pre ) { - void (*preHookFunc) (struct map_session_data *sd, clr_type *clrtype); + void (*preHookFunc) (struct map_session_data **sd, clr_type *clrtype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_respawn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_respawn_pre[hIndex].func; - preHookFunc(sd, &clrtype); + preHookFunc(&sd, &clrtype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52522,10 +52636,10 @@ void HP_pc_respawn(struct map_session_data *sd, clr_type clrtype) { HPMHooks.source.pc.respawn(sd, clrtype); } if( HPMHooks.count.HP_pc_respawn_post ) { - void (*postHookFunc) (struct map_session_data *sd, clr_type *clrtype); + void (*postHookFunc) (struct map_session_data *sd, clr_type clrtype); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_respawn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_respawn_post[hIndex].func; - postHookFunc(sd, &clrtype); + postHookFunc(sd, clrtype); } } return; @@ -52534,11 +52648,11 @@ int HP_pc_setnewpc(struct map_session_data *sd, int account_id, int char_id, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setnewpc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, int *login_id1, unsigned int *client_tick, int *sex, int *fd); + int (*preHookFunc) (struct map_session_data **sd, int *account_id, int *char_id, int *login_id1, unsigned int *client_tick, int *sex, int *fd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setnewpc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setnewpc_pre[hIndex].func; - retVal___ = preHookFunc(sd, &account_id, &char_id, &login_id1, &client_tick, &sex, &fd); + retVal___ = preHookFunc(&sd, &account_id, &char_id, &login_id1, &client_tick, &sex, &fd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52549,10 +52663,10 @@ int HP_pc_setnewpc(struct map_session_data *sd, int account_id, int char_id, int retVal___ = HPMHooks.source.pc.setnewpc(sd, account_id, char_id, login_id1, client_tick, sex, fd); } if( HPMHooks.count.HP_pc_setnewpc_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *account_id, int *char_id, int *login_id1, unsigned int *client_tick, int *sex, int *fd); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int account_id, int char_id, int login_id1, unsigned int client_tick, int sex, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setnewpc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setnewpc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &account_id, &char_id, &login_id1, &client_tick, &sex, &fd); + retVal___ = postHookFunc(retVal___, sd, account_id, char_id, login_id1, client_tick, sex, fd); } } return retVal___; @@ -52561,11 +52675,11 @@ bool HP_pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_ int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_authok_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *login_id2, time_t *expiration_time, int *group_id, const struct mmo_charstatus *st, bool *changing_mapservers); + bool (*preHookFunc) (struct map_session_data **sd, int *login_id2, time_t *expiration_time, int *group_id, const struct mmo_charstatus **st, bool *changing_mapservers); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_authok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_authok_pre[hIndex].func; - retVal___ = preHookFunc(sd, &login_id2, &expiration_time, &group_id, st, &changing_mapservers); + retVal___ = preHookFunc(&sd, &login_id2, &expiration_time, &group_id, &st, &changing_mapservers); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52576,10 +52690,10 @@ bool HP_pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_ retVal___ = HPMHooks.source.pc.authok(sd, login_id2, expiration_time, group_id, st, changing_mapservers); } if( HPMHooks.count.HP_pc_authok_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *login_id2, time_t *expiration_time, int *group_id, const struct mmo_charstatus *st, bool *changing_mapservers); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int login_id2, time_t expiration_time, int group_id, const struct mmo_charstatus *st, bool changing_mapservers); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_authok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_authok_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &login_id2, &expiration_time, &group_id, st, &changing_mapservers); + retVal___ = postHookFunc(retVal___, sd, login_id2, expiration_time, group_id, st, changing_mapservers); } } return retVal___; @@ -52587,11 +52701,11 @@ bool HP_pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_ void HP_pc_authfail(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_authfail_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_authfail_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_authfail_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52614,11 +52728,11 @@ int HP_pc_reg_received(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_reg_received_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_reg_received_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_reg_received_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52641,11 +52755,11 @@ int HP_pc_isequip(struct map_session_data *sd, int n) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_isequip_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n); + int (*preHookFunc) (struct map_session_data **sd, int *n); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_isequip_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n); + retVal___ = preHookFunc(&sd, &n); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52656,10 +52770,10 @@ int HP_pc_isequip(struct map_session_data *sd, int n) { retVal___ = HPMHooks.source.pc.isequip(sd, n); } if( HPMHooks.count.HP_pc_isequip_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_isequip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n); + retVal___ = postHookFunc(retVal___, sd, n); } } return retVal___; @@ -52668,11 +52782,11 @@ int HP_pc_equippoint(struct map_session_data *sd, int n) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_equippoint_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n); + int (*preHookFunc) (struct map_session_data **sd, int *n); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equippoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_equippoint_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n); + retVal___ = preHookFunc(&sd, &n); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52683,10 +52797,10 @@ int HP_pc_equippoint(struct map_session_data *sd, int n) { retVal___ = HPMHooks.source.pc.equippoint(sd, n); } if( HPMHooks.count.HP_pc_equippoint_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equippoint_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_equippoint_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n); + retVal___ = postHookFunc(retVal___, sd, n); } } return retVal___; @@ -52695,11 +52809,11 @@ int HP_pc_setinventorydata(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setinventorydata_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setinventorydata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setinventorydata_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52722,11 +52836,11 @@ int HP_pc_checkskill(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkskill_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkskill_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52737,10 +52851,10 @@ int HP_pc_checkskill(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.pc.checkskill(sd, skill_id); } if( HPMHooks.count.HP_pc_checkskill_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_checkskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -52749,11 +52863,11 @@ int HP_pc_checkskill2(struct map_session_data *sd, uint16 index) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkskill2_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *index); + int (*preHookFunc) (struct map_session_data **sd, uint16 *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkskill2_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index); + retVal___ = preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52764,10 +52878,10 @@ int HP_pc_checkskill2(struct map_session_data *sd, uint16 index) { retVal___ = HPMHooks.source.pc.checkskill2(sd, index); } if( HPMHooks.count.HP_pc_checkskill2_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *index); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 index); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_checkskill2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index); + retVal___ = postHookFunc(retVal___, sd, index); } } return retVal___; @@ -52776,11 +52890,11 @@ int HP_pc_checkallowskill(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkallowskill_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkallowskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkallowskill_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52803,11 +52917,11 @@ int HP_pc_checkequip(struct map_session_data *sd, int pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkequip_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *pos); + int (*preHookFunc) (struct map_session_data **sd, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkequip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkequip_pre[hIndex].func; - retVal___ = preHookFunc(sd, &pos); + retVal___ = preHookFunc(&sd, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52818,10 +52932,10 @@ int HP_pc_checkequip(struct map_session_data *sd, int pos) { retVal___ = HPMHooks.source.pc.checkequip(sd, pos); } if( HPMHooks.count.HP_pc_checkequip_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *pos); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkequip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_checkequip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &pos); + retVal___ = postHookFunc(retVal___, sd, pos); } } return retVal___; @@ -52830,11 +52944,11 @@ int HP_pc_calc_skilltree(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_calc_skilltree_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skilltree_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calc_skilltree_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52857,11 +52971,11 @@ int HP_pc_calc_skilltree_normalize_job(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_calc_skilltree_normalize_job_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skilltree_normalize_job_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calc_skilltree_normalize_job_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52884,11 +52998,11 @@ int HP_pc_clean_skilltree(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_clean_skilltree_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_clean_skilltree_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_clean_skilltree_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52911,11 +53025,11 @@ int HP_pc_setpos(struct map_session_data *sd, unsigned short map_index, int x, i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setpos_pre ) { - int (*preHookFunc) (struct map_session_data *sd, unsigned short *map_index, int *x, int *y, clr_type *clrtype); + int (*preHookFunc) (struct map_session_data **sd, unsigned short *map_index, int *x, int *y, clr_type *clrtype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setpos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setpos_pre[hIndex].func; - retVal___ = preHookFunc(sd, &map_index, &x, &y, &clrtype); + retVal___ = preHookFunc(&sd, &map_index, &x, &y, &clrtype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52926,10 +53040,10 @@ int HP_pc_setpos(struct map_session_data *sd, unsigned short map_index, int x, i retVal___ = HPMHooks.source.pc.setpos(sd, map_index, x, y, clrtype); } if( HPMHooks.count.HP_pc_setpos_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, unsigned short *map_index, int *x, int *y, clr_type *clrtype); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, unsigned short map_index, int x, int y, clr_type clrtype); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setpos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setpos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &map_index, &x, &y, &clrtype); + retVal___ = postHookFunc(retVal___, sd, map_index, x, y, clrtype); } } return retVal___; @@ -52938,11 +53052,11 @@ int HP_pc_setsavepoint(struct map_session_data *sd, short map_index, int x, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setsavepoint_pre ) { - int (*preHookFunc) (struct map_session_data *sd, short *map_index, int *x, int *y); + int (*preHookFunc) (struct map_session_data **sd, short *map_index, int *x, int *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setsavepoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setsavepoint_pre[hIndex].func; - retVal___ = preHookFunc(sd, &map_index, &x, &y); + retVal___ = preHookFunc(&sd, &map_index, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52953,10 +53067,10 @@ int HP_pc_setsavepoint(struct map_session_data *sd, short map_index, int x, int retVal___ = HPMHooks.source.pc.setsavepoint(sd, map_index, x, y); } if( HPMHooks.count.HP_pc_setsavepoint_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, short *map_index, int *x, int *y); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, short map_index, int x, int y); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setsavepoint_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setsavepoint_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &map_index, &x, &y); + retVal___ = postHookFunc(retVal___, sd, map_index, x, y); } } return retVal___; @@ -52965,11 +53079,11 @@ int HP_pc_randomwarp(struct map_session_data *sd, clr_type type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_randomwarp_pre ) { - int (*preHookFunc) (struct map_session_data *sd, clr_type *type); + int (*preHookFunc) (struct map_session_data **sd, clr_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_randomwarp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_randomwarp_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -52980,10 +53094,10 @@ int HP_pc_randomwarp(struct map_session_data *sd, clr_type type) { retVal___ = HPMHooks.source.pc.randomwarp(sd, type); } if( HPMHooks.count.HP_pc_randomwarp_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, clr_type *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, clr_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_randomwarp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_randomwarp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -52992,11 +53106,11 @@ int HP_pc_memo(struct map_session_data *sd, int pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_memo_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *pos); + int (*preHookFunc) (struct map_session_data **sd, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_memo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_memo_pre[hIndex].func; - retVal___ = preHookFunc(sd, &pos); + retVal___ = preHookFunc(&sd, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53007,10 +53121,10 @@ int HP_pc_memo(struct map_session_data *sd, int pos) { retVal___ = HPMHooks.source.pc.memo(sd, pos); } if( HPMHooks.count.HP_pc_memo_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *pos); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_memo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_memo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &pos); + retVal___ = postHookFunc(retVal___, sd, pos); } } return retVal___; @@ -53019,11 +53133,11 @@ int HP_pc_checkadditem(struct map_session_data *sd, int nameid, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkadditem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *nameid, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkadditem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkadditem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid, &amount); + retVal___ = preHookFunc(&sd, &nameid, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53034,10 +53148,10 @@ int HP_pc_checkadditem(struct map_session_data *sd, int nameid, int amount) { retVal___ = HPMHooks.source.pc.checkadditem(sd, nameid, amount); } if( HPMHooks.count.HP_pc_checkadditem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkadditem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_checkadditem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid, &amount); + retVal___ = postHookFunc(retVal___, sd, nameid, amount); } } return retVal___; @@ -53046,11 +53160,11 @@ int HP_pc_inventoryblank(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_inventoryblank_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventoryblank_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_inventoryblank_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53073,11 +53187,11 @@ int HP_pc_search_inventory(struct map_session_data *sd, int item_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_search_inventory_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *item_id); + int (*preHookFunc) (struct map_session_data **sd, int *item_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_search_inventory_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_search_inventory_pre[hIndex].func; - retVal___ = preHookFunc(sd, &item_id); + retVal___ = preHookFunc(&sd, &item_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53088,10 +53202,10 @@ int HP_pc_search_inventory(struct map_session_data *sd, int item_id) { retVal___ = HPMHooks.source.pc.search_inventory(sd, item_id); } if( HPMHooks.count.HP_pc_search_inventory_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *item_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int item_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_search_inventory_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_search_inventory_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &item_id); + retVal___ = postHookFunc(retVal___, sd, item_id); } } return retVal___; @@ -53100,11 +53214,11 @@ int HP_pc_payzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_payzeny_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, int *zeny, enum e_log_pick_type *type, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_payzeny_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_payzeny_pre[hIndex].func; - retVal___ = preHookFunc(sd, &zeny, &type, tsd); + retVal___ = preHookFunc(&sd, &zeny, &type, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53115,10 +53229,10 @@ int HP_pc_payzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty retVal___ = HPMHooks.source.pc.payzeny(sd, zeny, type, tsd); } if( HPMHooks.count.HP_pc_payzeny_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int zeny, enum e_log_pick_type type, struct map_session_data *tsd); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_payzeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_payzeny_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &zeny, &type, tsd); + retVal___ = postHookFunc(retVal___, sd, zeny, type, tsd); } } return retVal___; @@ -53127,11 +53241,11 @@ int HP_pc_additem(struct map_session_data *sd, struct item *item_data, int amoun int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_additem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type); + int (*preHookFunc) (struct map_session_data **sd, struct item **item_data, int *amount, e_log_pick_type *log_type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_additem_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_data, &amount, &log_type); + retVal___ = preHookFunc(&sd, &item_data, &amount, &log_type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53142,10 +53256,10 @@ int HP_pc_additem(struct map_session_data *sd, struct item *item_data, int amoun retVal___ = HPMHooks.source.pc.additem(sd, item_data, amount, log_type); } if( HPMHooks.count.HP_pc_additem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int amount, e_log_pick_type log_type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_additem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, item_data, &amount, &log_type); + retVal___ = postHookFunc(retVal___, sd, item_data, amount, log_type); } } return retVal___; @@ -53154,11 +53268,11 @@ int HP_pc_getzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_getzeny_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, int *zeny, enum e_log_pick_type *type, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getzeny_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_getzeny_pre[hIndex].func; - retVal___ = preHookFunc(sd, &zeny, &type, tsd); + retVal___ = preHookFunc(&sd, &zeny, &type, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53169,10 +53283,10 @@ int HP_pc_getzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty retVal___ = HPMHooks.source.pc.getzeny(sd, zeny, type, tsd); } if( HPMHooks.count.HP_pc_getzeny_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int zeny, enum e_log_pick_type type, struct map_session_data *tsd); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getzeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_getzeny_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &zeny, &type, tsd); + retVal___ = postHookFunc(retVal___, sd, zeny, type, tsd); } } return retVal___; @@ -53181,11 +53295,11 @@ int HP_pc_delitem(struct map_session_data *sd, int n, int amount, int type, shor int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_delitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *type, short *reason, e_log_pick_type *log_type); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *amount, int *type, short *reason, e_log_pick_type *log_type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_delitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &amount, &type, &reason, &log_type); + retVal___ = preHookFunc(&sd, &n, &amount, &type, &reason, &log_type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53196,10 +53310,10 @@ int HP_pc_delitem(struct map_session_data *sd, int n, int amount, int type, shor retVal___ = HPMHooks.source.pc.delitem(sd, n, amount, type, reason, log_type); } if( HPMHooks.count.HP_pc_delitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *amount, int *type, short *reason, e_log_pick_type *log_type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int amount, int type, short reason, e_log_pick_type log_type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_delitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &amount, &type, &reason, &log_type); + retVal___ = postHookFunc(retVal___, sd, n, amount, type, reason, log_type); } } return retVal___; @@ -53208,11 +53322,11 @@ int HP_pc_paycash(struct map_session_data *sd, int price, int points) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_paycash_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *price, int *points); + int (*preHookFunc) (struct map_session_data **sd, int *price, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_paycash_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_paycash_pre[hIndex].func; - retVal___ = preHookFunc(sd, &price, &points); + retVal___ = preHookFunc(&sd, &price, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53223,10 +53337,10 @@ int HP_pc_paycash(struct map_session_data *sd, int price, int points) { retVal___ = HPMHooks.source.pc.paycash(sd, price, points); } if( HPMHooks.count.HP_pc_paycash_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *price, int *points); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int price, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_paycash_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_paycash_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &price, &points); + retVal___ = postHookFunc(retVal___, sd, price, points); } } return retVal___; @@ -53235,11 +53349,11 @@ int HP_pc_getcash(struct map_session_data *sd, int cash, int points) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_getcash_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *cash, int *points); + int (*preHookFunc) (struct map_session_data **sd, int *cash, int *points); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getcash_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_getcash_pre[hIndex].func; - retVal___ = preHookFunc(sd, &cash, &points); + retVal___ = preHookFunc(&sd, &cash, &points); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53250,10 +53364,10 @@ int HP_pc_getcash(struct map_session_data *sd, int cash, int points) { retVal___ = HPMHooks.source.pc.getcash(sd, cash, points); } if( HPMHooks.count.HP_pc_getcash_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *cash, int *points); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int cash, int points); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getcash_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_getcash_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &cash, &points); + retVal___ = postHookFunc(retVal___, sd, cash, points); } } return retVal___; @@ -53262,11 +53376,11 @@ int HP_pc_cart_additem(struct map_session_data *sd, struct item *item_data, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_cart_additem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type); + int (*preHookFunc) (struct map_session_data **sd, struct item **item_data, int *amount, e_log_pick_type *log_type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_cart_additem_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_data, &amount, &log_type); + retVal___ = preHookFunc(&sd, &item_data, &amount, &log_type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53277,10 +53391,10 @@ int HP_pc_cart_additem(struct map_session_data *sd, struct item *item_data, int retVal___ = HPMHooks.source.pc.cart_additem(sd, item_data, amount, log_type); } if( HPMHooks.count.HP_pc_cart_additem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int amount, e_log_pick_type log_type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_cart_additem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, item_data, &amount, &log_type); + retVal___ = postHookFunc(retVal___, sd, item_data, amount, log_type); } } return retVal___; @@ -53289,11 +53403,11 @@ int HP_pc_cart_delitem(struct map_session_data *sd, int n, int amount, int type, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_cart_delitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *type, e_log_pick_type *log_type); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *amount, int *type, e_log_pick_type *log_type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_cart_delitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &amount, &type, &log_type); + retVal___ = preHookFunc(&sd, &n, &amount, &type, &log_type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53304,10 +53418,10 @@ int HP_pc_cart_delitem(struct map_session_data *sd, int n, int amount, int type, retVal___ = HPMHooks.source.pc.cart_delitem(sd, n, amount, type, log_type); } if( HPMHooks.count.HP_pc_cart_delitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *amount, int *type, e_log_pick_type *log_type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int amount, int type, e_log_pick_type log_type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_cart_delitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &amount, &type, &log_type); + retVal___ = postHookFunc(retVal___, sd, n, amount, type, log_type); } } return retVal___; @@ -53316,11 +53430,11 @@ int HP_pc_putitemtocart(struct map_session_data *sd, int idx, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_putitemtocart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *idx, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_putitemtocart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_putitemtocart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx, &amount); + retVal___ = preHookFunc(&sd, &idx, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53331,10 +53445,10 @@ int HP_pc_putitemtocart(struct map_session_data *sd, int idx, int amount) { retVal___ = HPMHooks.source.pc.putitemtocart(sd, idx, amount); } if( HPMHooks.count.HP_pc_putitemtocart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *idx, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int idx, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_putitemtocart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_putitemtocart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx, &amount); + retVal___ = postHookFunc(retVal___, sd, idx, amount); } } return retVal___; @@ -53343,11 +53457,11 @@ int HP_pc_getitemfromcart(struct map_session_data *sd, int idx, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_getitemfromcart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *idx, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getitemfromcart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_getitemfromcart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx, &amount); + retVal___ = preHookFunc(&sd, &idx, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53358,10 +53472,10 @@ int HP_pc_getitemfromcart(struct map_session_data *sd, int idx, int amount) { retVal___ = HPMHooks.source.pc.getitemfromcart(sd, idx, amount); } if( HPMHooks.count.HP_pc_getitemfromcart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *idx, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int idx, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getitemfromcart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_getitemfromcart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx, &amount); + retVal___ = postHookFunc(retVal___, sd, idx, amount); } } return retVal___; @@ -53370,11 +53484,11 @@ int HP_pc_cartitem_amount(struct map_session_data *sd, int idx, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_cartitem_amount_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *idx, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cartitem_amount_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_cartitem_amount_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx, &amount); + retVal___ = preHookFunc(&sd, &idx, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53385,10 +53499,10 @@ int HP_pc_cartitem_amount(struct map_session_data *sd, int idx, int amount) { retVal___ = HPMHooks.source.pc.cartitem_amount(sd, idx, amount); } if( HPMHooks.count.HP_pc_cartitem_amount_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *idx, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int idx, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cartitem_amount_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_cartitem_amount_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx, &amount); + retVal___ = postHookFunc(retVal___, sd, idx, amount); } } return retVal___; @@ -53397,11 +53511,11 @@ int HP_pc_takeitem(struct map_session_data *sd, struct flooritem_data *fitem) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_takeitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct flooritem_data *fitem); + int (*preHookFunc) (struct map_session_data **sd, struct flooritem_data **fitem); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_takeitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_takeitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, fitem); + retVal___ = preHookFunc(&sd, &fitem); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53424,11 +53538,11 @@ int HP_pc_dropitem(struct map_session_data *sd, int n, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_dropitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_dropitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_dropitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &amount); + retVal___ = preHookFunc(&sd, &n, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53439,10 +53553,10 @@ int HP_pc_dropitem(struct map_session_data *sd, int n, int amount) { retVal___ = HPMHooks.source.pc.dropitem(sd, n, amount); } if( HPMHooks.count.HP_pc_dropitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_dropitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_dropitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &amount); + retVal___ = postHookFunc(retVal___, sd, n, amount); } } return retVal___; @@ -53451,11 +53565,11 @@ bool HP_pc_isequipped(struct map_session_data *sd, int nameid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_isequipped_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *nameid); + bool (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequipped_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_isequipped_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53466,10 +53580,10 @@ bool HP_pc_isequipped(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.pc.isequipped(sd, nameid); } if( HPMHooks.count.HP_pc_isequipped_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *nameid); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequipped_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_isequipped_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -53478,11 +53592,11 @@ bool HP_pc_can_Adopt(struct map_session_data *p1_sd, struct map_session_data *p2 int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_Adopt_pre ) { - bool (*preHookFunc) (struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd); + bool (*preHookFunc) (struct map_session_data **p1_sd, struct map_session_data **p2_sd, struct map_session_data **b_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_Adopt_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_Adopt_pre[hIndex].func; - retVal___ = preHookFunc(p1_sd, p2_sd, b_sd); + retVal___ = preHookFunc(&p1_sd, &p2_sd, &b_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53505,11 +53619,11 @@ bool HP_pc_adoption(struct map_session_data *p1_sd, struct map_session_data *p2_ int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_adoption_pre ) { - bool (*preHookFunc) (struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd); + bool (*preHookFunc) (struct map_session_data **p1_sd, struct map_session_data **p2_sd, struct map_session_data **b_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_adoption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_adoption_pre[hIndex].func; - retVal___ = preHookFunc(p1_sd, p2_sd, b_sd); + retVal___ = preHookFunc(&p1_sd, &p2_sd, &b_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53532,11 +53646,11 @@ int HP_pc_updateweightstatus(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_updateweightstatus_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_updateweightstatus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_updateweightstatus_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53559,11 +53673,11 @@ int HP_pc_addautobonus(struct s_autobonus *bonus, char max, const char *bonus_sc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_addautobonus_pre ) { - int (*preHookFunc) (struct s_autobonus *bonus, char *max, const char *bonus_script, short *rate, unsigned int *dur, short *atk_type, const char *o_script, unsigned short *pos, bool *onskill); + int (*preHookFunc) (struct s_autobonus **bonus, char *max, const char **bonus_script, short *rate, unsigned int *dur, short *atk_type, const char **o_script, unsigned short *pos, bool *onskill); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addautobonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_addautobonus_pre[hIndex].func; - retVal___ = preHookFunc(bonus, &max, bonus_script, &rate, &dur, &atk_type, o_script, &pos, &onskill); + retVal___ = preHookFunc(&bonus, &max, &bonus_script, &rate, &dur, &atk_type, &o_script, &pos, &onskill); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53574,10 +53688,10 @@ int HP_pc_addautobonus(struct s_autobonus *bonus, char max, const char *bonus_sc retVal___ = HPMHooks.source.pc.addautobonus(bonus, max, bonus_script, rate, dur, atk_type, o_script, pos, onskill); } if( HPMHooks.count.HP_pc_addautobonus_post ) { - int (*postHookFunc) (int retVal___, struct s_autobonus *bonus, char *max, const char *bonus_script, short *rate, unsigned int *dur, short *atk_type, const char *o_script, unsigned short *pos, bool *onskill); + int (*postHookFunc) (int retVal___, struct s_autobonus *bonus, char max, const char *bonus_script, short rate, unsigned int dur, short atk_type, const char *o_script, unsigned short pos, bool onskill); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addautobonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_addautobonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bonus, &max, bonus_script, &rate, &dur, &atk_type, o_script, &pos, &onskill); + retVal___ = postHookFunc(retVal___, bonus, max, bonus_script, rate, dur, atk_type, o_script, pos, onskill); } } return retVal___; @@ -53586,11 +53700,11 @@ int HP_pc_exeautobonus(struct map_session_data *sd, struct s_autobonus *bonus) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_exeautobonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct s_autobonus *bonus); + int (*preHookFunc) (struct map_session_data **sd, struct s_autobonus **bonus); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_exeautobonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_exeautobonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, bonus); + retVal___ = preHookFunc(&sd, &bonus); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53628,10 +53742,10 @@ int HP_pc_endautobonus(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.endautobonus(tid, tick, id, data); } if( HPMHooks.count.HP_pc_endautobonus_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_endautobonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_endautobonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -53640,11 +53754,11 @@ int HP_pc_delautobonus(struct map_session_data *sd, struct s_autobonus *bonus, c int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_delautobonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct s_autobonus *bonus, char *max, bool *restore); + int (*preHookFunc) (struct map_session_data **sd, struct s_autobonus **bonus, char *max, bool *restore); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delautobonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_delautobonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, bonus, &max, &restore); + retVal___ = preHookFunc(&sd, &bonus, &max, &restore); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53655,10 +53769,10 @@ int HP_pc_delautobonus(struct map_session_data *sd, struct s_autobonus *bonus, c retVal___ = HPMHooks.source.pc.delautobonus(sd, bonus, max, restore); } if( HPMHooks.count.HP_pc_delautobonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct s_autobonus *bonus, char *max, bool *restore); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct s_autobonus *bonus, char max, bool restore); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delautobonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_delautobonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, bonus, &max, &restore); + retVal___ = postHookFunc(retVal___, sd, bonus, max, restore); } } return retVal___; @@ -53667,11 +53781,11 @@ int HP_pc_bonus(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53682,10 +53796,10 @@ int HP_pc_bonus(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.bonus(sd, type, val); } if( HPMHooks.count.HP_pc_bonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -53694,11 +53808,11 @@ int HP_pc_bonus2(struct map_session_data *sd, int type, int type2, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus2_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *type2, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus2_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &type2, &val); + retVal___ = preHookFunc(&sd, &type, &type2, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53709,10 +53823,10 @@ int HP_pc_bonus2(struct map_session_data *sd, int type, int type2, int val) { retVal___ = HPMHooks.source.pc.bonus2(sd, type, type2, val); } if( HPMHooks.count.HP_pc_bonus2_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *type2, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int type2, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &type2, &val); + retVal___ = postHookFunc(retVal___, sd, type, type2, val); } } return retVal___; @@ -53721,11 +53835,11 @@ int HP_pc_bonus3(struct map_session_data *sd, int type, int type2, int type3, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus3_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *type2, int *type3, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus3_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus3_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &type2, &type3, &val); + retVal___ = preHookFunc(&sd, &type, &type2, &type3, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53736,10 +53850,10 @@ int HP_pc_bonus3(struct map_session_data *sd, int type, int type2, int type3, in retVal___ = HPMHooks.source.pc.bonus3(sd, type, type2, type3, val); } if( HPMHooks.count.HP_pc_bonus3_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *type2, int *type3, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int type2, int type3, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus3_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus3_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &type2, &type3, &val); + retVal___ = postHookFunc(retVal___, sd, type, type2, type3, val); } } return retVal___; @@ -53748,11 +53862,11 @@ int HP_pc_bonus4(struct map_session_data *sd, int type, int type2, int type3, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus4_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *type2, int *type3, int *type4, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus4_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus4_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &type2, &type3, &type4, &val); + retVal___ = preHookFunc(&sd, &type, &type2, &type3, &type4, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53763,10 +53877,10 @@ int HP_pc_bonus4(struct map_session_data *sd, int type, int type2, int type3, in retVal___ = HPMHooks.source.pc.bonus4(sd, type, type2, type3, type4, val); } if( HPMHooks.count.HP_pc_bonus4_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int type2, int type3, int type4, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus4_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus4_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &type2, &type3, &type4, &val); + retVal___ = postHookFunc(retVal___, sd, type, type2, type3, type4, val); } } return retVal___; @@ -53775,11 +53889,11 @@ int HP_pc_bonus5(struct map_session_data *sd, int type, int type2, int type3, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus5_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *type5, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *type2, int *type3, int *type4, int *type5, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus5_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus5_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &type2, &type3, &type4, &type5, &val); + retVal___ = preHookFunc(&sd, &type, &type2, &type3, &type4, &type5, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53790,10 +53904,10 @@ int HP_pc_bonus5(struct map_session_data *sd, int type, int type2, int type3, in retVal___ = HPMHooks.source.pc.bonus5(sd, type, type2, type3, type4, type5, val); } if( HPMHooks.count.HP_pc_bonus5_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *type5, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int type2, int type3, int type4, int type5, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus5_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus5_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &type2, &type3, &type4, &type5, &val); + retVal___ = postHookFunc(retVal___, sd, type, type2, type3, type4, type5, val); } } return retVal___; @@ -53802,11 +53916,11 @@ int HP_pc_skill(struct map_session_data *sd, int id, int level, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_skill_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *id, int *level, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *id, int *level, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_skill_pre[hIndex].func; - retVal___ = preHookFunc(sd, &id, &level, &flag); + retVal___ = preHookFunc(&sd, &id, &level, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53817,10 +53931,10 @@ int HP_pc_skill(struct map_session_data *sd, int id, int level, int flag) { retVal___ = HPMHooks.source.pc.skill(sd, id, level, flag); } if( HPMHooks.count.HP_pc_skill_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *id, int *level, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int id, int level, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_skill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &id, &level, &flag); + retVal___ = postHookFunc(retVal___, sd, id, level, flag); } } return retVal___; @@ -53829,11 +53943,11 @@ int HP_pc_insert_card(struct map_session_data *sd, int idx_card, int idx_equip) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_insert_card_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *idx_card, int *idx_equip); + int (*preHookFunc) (struct map_session_data **sd, int *idx_card, int *idx_equip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_insert_card_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_insert_card_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx_card, &idx_equip); + retVal___ = preHookFunc(&sd, &idx_card, &idx_equip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53844,10 +53958,10 @@ int HP_pc_insert_card(struct map_session_data *sd, int idx_card, int idx_equip) retVal___ = HPMHooks.source.pc.insert_card(sd, idx_card, idx_equip); } if( HPMHooks.count.HP_pc_insert_card_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *idx_card, int *idx_equip); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int idx_card, int idx_equip); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_insert_card_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_insert_card_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx_card, &idx_equip); + retVal___ = postHookFunc(retVal___, sd, idx_card, idx_equip); } } return retVal___; @@ -53856,11 +53970,11 @@ bool HP_pc_can_insert_card(struct map_session_data *sd, int idx_card) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_insert_card_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *idx_card); + bool (*preHookFunc) (struct map_session_data **sd, int *idx_card); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_insert_card_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_insert_card_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx_card); + retVal___ = preHookFunc(&sd, &idx_card); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53871,10 +53985,10 @@ bool HP_pc_can_insert_card(struct map_session_data *sd, int idx_card) { retVal___ = HPMHooks.source.pc.can_insert_card(sd, idx_card); } if( HPMHooks.count.HP_pc_can_insert_card_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *idx_card); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int idx_card); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_insert_card_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_can_insert_card_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx_card); + retVal___ = postHookFunc(retVal___, sd, idx_card); } } return retVal___; @@ -53883,11 +53997,11 @@ bool HP_pc_can_insert_card_into(struct map_session_data *sd, int idx_card, int i int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_can_insert_card_into_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *idx_card, int *idx_equip); + bool (*preHookFunc) (struct map_session_data **sd, int *idx_card, int *idx_equip); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_insert_card_into_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_can_insert_card_into_pre[hIndex].func; - retVal___ = preHookFunc(sd, &idx_card, &idx_equip); + retVal___ = preHookFunc(&sd, &idx_card, &idx_equip); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53898,10 +54012,10 @@ bool HP_pc_can_insert_card_into(struct map_session_data *sd, int idx_card, int i retVal___ = HPMHooks.source.pc.can_insert_card_into(sd, idx_card, idx_equip); } if( HPMHooks.count.HP_pc_can_insert_card_into_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *idx_card, int *idx_equip); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int idx_card, int idx_equip); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_insert_card_into_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_can_insert_card_into_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &idx_card, &idx_equip); + retVal___ = postHookFunc(retVal___, sd, idx_card, idx_equip); } } return retVal___; @@ -53910,11 +54024,11 @@ int HP_pc_steal_item(struct map_session_data *sd, struct block_list *bl, uint16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_steal_item_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **bl, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_steal_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_steal_item_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl, &skill_lv); + retVal___ = preHookFunc(&sd, &bl, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53925,10 +54039,10 @@ int HP_pc_steal_item(struct map_session_data *sd, struct block_list *bl, uint16 retVal___ = HPMHooks.source.pc.steal_item(sd, bl, skill_lv); } if( HPMHooks.count.HP_pc_steal_item_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_steal_item_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_steal_item_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, bl, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, bl, skill_lv); } } return retVal___; @@ -53937,11 +54051,11 @@ int HP_pc_steal_coin(struct map_session_data *sd, struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_steal_coin_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_steal_coin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_steal_coin_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl); + retVal___ = preHookFunc(&sd, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53964,11 +54078,11 @@ int HP_pc_modifybuyvalue(struct map_session_data *sd, int orig_value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_modifybuyvalue_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *orig_value); + int (*preHookFunc) (struct map_session_data **sd, int *orig_value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifybuyvalue_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_modifybuyvalue_pre[hIndex].func; - retVal___ = preHookFunc(sd, &orig_value); + retVal___ = preHookFunc(&sd, &orig_value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53979,10 +54093,10 @@ int HP_pc_modifybuyvalue(struct map_session_data *sd, int orig_value) { retVal___ = HPMHooks.source.pc.modifybuyvalue(sd, orig_value); } if( HPMHooks.count.HP_pc_modifybuyvalue_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *orig_value); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int orig_value); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifybuyvalue_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_modifybuyvalue_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &orig_value); + retVal___ = postHookFunc(retVal___, sd, orig_value); } } return retVal___; @@ -53991,11 +54105,11 @@ int HP_pc_modifysellvalue(struct map_session_data *sd, int orig_value) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_modifysellvalue_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *orig_value); + int (*preHookFunc) (struct map_session_data **sd, int *orig_value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifysellvalue_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_modifysellvalue_pre[hIndex].func; - retVal___ = preHookFunc(sd, &orig_value); + retVal___ = preHookFunc(&sd, &orig_value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54006,10 +54120,10 @@ int HP_pc_modifysellvalue(struct map_session_data *sd, int orig_value) { retVal___ = HPMHooks.source.pc.modifysellvalue(sd, orig_value); } if( HPMHooks.count.HP_pc_modifysellvalue_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *orig_value); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int orig_value); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifysellvalue_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_modifysellvalue_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &orig_value); + retVal___ = postHookFunc(retVal___, sd, orig_value); } } return retVal___; @@ -54018,11 +54132,11 @@ int HP_pc_follow(struct map_session_data *sd, int target_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_follow_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *target_id); + int (*preHookFunc) (struct map_session_data **sd, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_follow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_follow_pre[hIndex].func; - retVal___ = preHookFunc(sd, &target_id); + retVal___ = preHookFunc(&sd, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54033,10 +54147,10 @@ int HP_pc_follow(struct map_session_data *sd, int target_id) { retVal___ = HPMHooks.source.pc.follow(sd, target_id); } if( HPMHooks.count.HP_pc_follow_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *target_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_follow_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_follow_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &target_id); + retVal___ = postHookFunc(retVal___, sd, target_id); } } return retVal___; @@ -54045,11 +54159,11 @@ int HP_pc_stop_following(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_stop_following_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_stop_following_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_stop_following_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54072,11 +54186,11 @@ unsigned int HP_pc_maxbaselv(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_maxbaselv_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxbaselv_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_maxbaselv_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54099,11 +54213,11 @@ unsigned int HP_pc_maxjoblv(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_maxjoblv_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxjoblv_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_maxjoblv_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54126,11 +54240,11 @@ int HP_pc_checkbaselevelup(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkbaselevelup_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkbaselevelup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkbaselevelup_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54153,11 +54267,11 @@ int HP_pc_checkjoblevelup(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkjoblevelup_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkjoblevelup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkjoblevelup_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54180,11 +54294,11 @@ bool HP_pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_gainexp_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, bool *is_quest); + bool (*preHookFunc) (struct map_session_data **sd, struct block_list **src, unsigned int *base_exp, unsigned int *job_exp, bool *is_quest); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_gainexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_gainexp_pre[hIndex].func; - retVal___ = preHookFunc(sd, src, &base_exp, &job_exp, &is_quest); + retVal___ = preHookFunc(&sd, &src, &base_exp, &job_exp, &is_quest); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54195,10 +54309,10 @@ bool HP_pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned retVal___ = HPMHooks.source.pc.gainexp(sd, src, base_exp, job_exp, is_quest); } if( HPMHooks.count.HP_pc_gainexp_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, bool *is_quest); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, struct block_list *src, unsigned int base_exp, unsigned int job_exp, bool is_quest); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_gainexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_gainexp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, src, &base_exp, &job_exp, &is_quest); + retVal___ = postHookFunc(retVal___, sd, src, base_exp, job_exp, is_quest); } } return retVal___; @@ -54207,11 +54321,11 @@ unsigned int HP_pc_nextbaseexp(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_nextbaseexp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_nextbaseexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_nextbaseexp_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54234,11 +54348,11 @@ unsigned int HP_pc_thisbaseexp(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_thisbaseexp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_thisbaseexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_thisbaseexp_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54261,11 +54375,11 @@ unsigned int HP_pc_nextjobexp(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_nextjobexp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_nextjobexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_nextjobexp_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54288,11 +54402,11 @@ unsigned int HP_pc_thisjobexp(struct map_session_data *sd) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_pc_thisjobexp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd); + unsigned int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_thisjobexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_thisjobexp_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54330,10 +54444,10 @@ int HP_pc_gets_status_point(int level) { retVal___ = HPMHooks.source.pc.gets_status_point(level); } if( HPMHooks.count.HP_pc_gets_status_point_post ) { - int (*postHookFunc) (int retVal___, int *level); + int (*postHookFunc) (int retVal___, int level); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_gets_status_point_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_gets_status_point_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &level); + retVal___ = postHookFunc(retVal___, level); } } return retVal___; @@ -54342,11 +54456,11 @@ int HP_pc_need_status_point(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_need_status_point_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_need_status_point_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_need_status_point_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54357,10 +54471,10 @@ int HP_pc_need_status_point(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.need_status_point(sd, type, val); } if( HPMHooks.count.HP_pc_need_status_point_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_need_status_point_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_need_status_point_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -54369,11 +54483,11 @@ int HP_pc_maxparameterincrease(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_maxparameterincrease_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxparameterincrease_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_maxparameterincrease_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54384,10 +54498,10 @@ int HP_pc_maxparameterincrease(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.maxparameterincrease(sd, type); } if( HPMHooks.count.HP_pc_maxparameterincrease_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxparameterincrease_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_maxparameterincrease_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -54396,11 +54510,11 @@ bool HP_pc_statusup(struct map_session_data *sd, int type, int increase) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_statusup_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *type, int *increase); + bool (*preHookFunc) (struct map_session_data **sd, int *type, int *increase); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_statusup_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &increase); + retVal___ = preHookFunc(&sd, &type, &increase); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54411,10 +54525,10 @@ bool HP_pc_statusup(struct map_session_data *sd, int type, int increase) { retVal___ = HPMHooks.source.pc.statusup(sd, type, increase); } if( HPMHooks.count.HP_pc_statusup_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *type, int *increase); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int type, int increase); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_statusup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &increase); + retVal___ = postHookFunc(retVal___, sd, type, increase); } } return retVal___; @@ -54423,11 +54537,11 @@ int HP_pc_statusup2(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_statusup2_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_statusup2_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54438,10 +54552,10 @@ int HP_pc_statusup2(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.statusup2(sd, type, val); } if( HPMHooks.count.HP_pc_statusup2_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_statusup2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -54450,11 +54564,11 @@ int HP_pc_skillup(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_skillup_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_skillup_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54465,10 +54579,10 @@ int HP_pc_skillup(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.pc.skillup(sd, skill_id); } if( HPMHooks.count.HP_pc_skillup_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_skillup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -54477,11 +54591,11 @@ int HP_pc_allskillup(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_allskillup_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_allskillup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_allskillup_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54504,11 +54618,11 @@ int HP_pc_resetlvl(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_resetlvl_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetlvl_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_resetlvl_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54519,10 +54633,10 @@ int HP_pc_resetlvl(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.resetlvl(sd, type); } if( HPMHooks.count.HP_pc_resetlvl_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetlvl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_resetlvl_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -54531,11 +54645,11 @@ int HP_pc_resetstate(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_resetstate_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetstate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_resetstate_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54558,11 +54672,11 @@ int HP_pc_resetskill(struct map_session_data *sd, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_resetskill_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_resetskill_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + retVal___ = preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54573,10 +54687,10 @@ int HP_pc_resetskill(struct map_session_data *sd, int flag) { retVal___ = HPMHooks.source.pc.resetskill(sd, flag); } if( HPMHooks.count.HP_pc_resetskill_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_resetskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + retVal___ = postHookFunc(retVal___, sd, flag); } } return retVal___; @@ -54585,11 +54699,11 @@ int HP_pc_resetfeel(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_resetfeel_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetfeel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_resetfeel_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54612,11 +54726,11 @@ int HP_pc_resethate(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_resethate_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resethate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_resethate_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54639,11 +54753,11 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_equipitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *req_pos); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *req_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_equipitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &req_pos); + retVal___ = preHookFunc(&sd, &n, &req_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54654,10 +54768,10 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) { retVal___ = HPMHooks.source.pc.equipitem(sd, n, req_pos); } if( HPMHooks.count.HP_pc_equipitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *req_pos); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int req_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_equipitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &req_pos); + retVal___ = postHookFunc(retVal___, sd, n, req_pos); } } return retVal___; @@ -54665,11 +54779,11 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) { void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int n, int pos) { int hIndex = 0; if( HPMHooks.count.HP_pc_equipitem_pos_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item_data *id, int *n, int *pos); + void (*preHookFunc) (struct map_session_data **sd, struct item_data **id, int *n, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_equipitem_pos_pre[hIndex].func; - preHookFunc(sd, id, &n, &pos); + preHookFunc(&sd, &id, &n, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54680,10 +54794,10 @@ void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int HPMHooks.source.pc.equipitem_pos(sd, id, n, pos); } if( HPMHooks.count.HP_pc_equipitem_pos_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item_data *id, int *n, int *pos); + void (*postHookFunc) (struct map_session_data *sd, struct item_data *id, int n, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_equipitem_pos_post[hIndex].func; - postHookFunc(sd, id, &n, &pos); + postHookFunc(sd, id, n, pos); } } return; @@ -54692,11 +54806,11 @@ int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_unequipitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *flag); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_unequipitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_unequipitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &flag); + retVal___ = preHookFunc(&sd, &n, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54707,10 +54821,10 @@ int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) { retVal___ = HPMHooks.source.pc.unequipitem(sd, n, flag); } if( HPMHooks.count.HP_pc_unequipitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_unequipitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_unequipitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &flag); + retVal___ = postHookFunc(retVal___, sd, n, flag); } } return retVal___; @@ -54718,11 +54832,11 @@ int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) { void HP_pc_unequipitem_pos(struct map_session_data *sd, int n, int pos) { int hIndex = 0; if( HPMHooks.count.HP_pc_unequipitem_pos_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos); + void (*preHookFunc) (struct map_session_data **sd, int *n, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_unequipitem_pos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_unequipitem_pos_pre[hIndex].func; - preHookFunc(sd, &n, &pos); + preHookFunc(&sd, &n, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54733,10 +54847,10 @@ void HP_pc_unequipitem_pos(struct map_session_data *sd, int n, int pos) { HPMHooks.source.pc.unequipitem_pos(sd, n, pos); } if( HPMHooks.count.HP_pc_unequipitem_pos_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos); + void (*postHookFunc) (struct map_session_data *sd, int n, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_unequipitem_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_unequipitem_pos_post[hIndex].func; - postHookFunc(sd, &n, &pos); + postHookFunc(sd, n, pos); } } return; @@ -54745,11 +54859,11 @@ int HP_pc_checkitem(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkitem_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54772,11 +54886,11 @@ int HP_pc_useitem(struct map_session_data *sd, int n) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_useitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n); + int (*preHookFunc) (struct map_session_data **sd, int *n); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_useitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_useitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n); + retVal___ = preHookFunc(&sd, &n); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54787,10 +54901,10 @@ int HP_pc_useitem(struct map_session_data *sd, int n) { retVal___ = HPMHooks.source.pc.useitem(sd, n); } if( HPMHooks.count.HP_pc_useitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_useitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_useitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n); + retVal___ = postHookFunc(retVal___, sd, n); } } return retVal___; @@ -54799,11 +54913,11 @@ int HP_pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_skillatk_bonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillatk_bonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_skillatk_bonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54814,10 +54928,10 @@ int HP_pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.pc.skillatk_bonus(sd, skill_id); } if( HPMHooks.count.HP_pc_skillatk_bonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillatk_bonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_skillatk_bonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -54826,11 +54940,11 @@ int HP_pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_skillheal_bonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal_bonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_skillheal_bonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54841,10 +54955,10 @@ int HP_pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.pc.skillheal_bonus(sd, skill_id); } if( HPMHooks.count.HP_pc_skillheal_bonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal_bonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_skillheal_bonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -54853,11 +54967,11 @@ int HP_pc_skillheal2_bonus(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_skillheal2_bonus_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal2_bonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_skillheal2_bonus_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54868,10 +54982,10 @@ int HP_pc_skillheal2_bonus(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.pc.skillheal2_bonus(sd, skill_id); } if( HPMHooks.count.HP_pc_skillheal2_bonus_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal2_bonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_skillheal2_bonus_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -54879,11 +54993,11 @@ int HP_pc_skillheal2_bonus(struct map_session_data *sd, uint16 skill_id) { void HP_pc_damage(struct map_session_data *sd, struct block_list *src, unsigned int hp, unsigned int sp) { int hIndex = 0; if( HPMHooks.count.HP_pc_damage_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct block_list *src, unsigned int *hp, unsigned int *sp); + void (*preHookFunc) (struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_damage_pre[hIndex].func; - preHookFunc(sd, src, &hp, &sp); + preHookFunc(&sd, &src, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54894,10 +55008,10 @@ void HP_pc_damage(struct map_session_data *sd, struct block_list *src, unsigned HPMHooks.source.pc.damage(sd, src, hp, sp); } if( HPMHooks.count.HP_pc_damage_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct block_list *src, unsigned int *hp, unsigned int *sp); + void (*postHookFunc) (struct map_session_data *sd, struct block_list *src, unsigned int hp, unsigned int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_damage_post[hIndex].func; - postHookFunc(sd, src, &hp, &sp); + postHookFunc(sd, src, hp, sp); } } return; @@ -54906,11 +55020,11 @@ int HP_pc_dead(struct map_session_data *sd, struct block_list *src) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_dead_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *src); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_dead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_dead_pre[hIndex].func; - retVal___ = preHookFunc(sd, src); + retVal___ = preHookFunc(&sd, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54932,11 +55046,11 @@ int HP_pc_dead(struct map_session_data *sd, struct block_list *src) { void HP_pc_revive(struct map_session_data *sd, unsigned int hp, unsigned int sp) { int hIndex = 0; if( HPMHooks.count.HP_pc_revive_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *hp, unsigned int *sp); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *hp, unsigned int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_revive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_revive_pre[hIndex].func; - preHookFunc(sd, &hp, &sp); + preHookFunc(&sd, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54947,10 +55061,10 @@ void HP_pc_revive(struct map_session_data *sd, unsigned int hp, unsigned int sp) HPMHooks.source.pc.revive(sd, hp, sp); } if( HPMHooks.count.HP_pc_revive_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *hp, unsigned int *sp); + void (*postHookFunc) (struct map_session_data *sd, unsigned int hp, unsigned int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_revive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_revive_post[hIndex].func; - postHookFunc(sd, &hp, &sp); + postHookFunc(sd, hp, sp); } } return; @@ -54958,11 +55072,11 @@ void HP_pc_revive(struct map_session_data *sd, unsigned int hp, unsigned int sp) void HP_pc_heal(struct map_session_data *sd, unsigned int hp, unsigned int sp, int type) { int hIndex = 0; if( HPMHooks.count.HP_pc_heal_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *hp, unsigned int *sp, int *type); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *hp, unsigned int *sp, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_heal_pre[hIndex].func; - preHookFunc(sd, &hp, &sp, &type); + preHookFunc(&sd, &hp, &sp, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -54973,10 +55087,10 @@ void HP_pc_heal(struct map_session_data *sd, unsigned int hp, unsigned int sp, i HPMHooks.source.pc.heal(sd, hp, sp, type); } if( HPMHooks.count.HP_pc_heal_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *hp, unsigned int *sp, int *type); + void (*postHookFunc) (struct map_session_data *sd, unsigned int hp, unsigned int sp, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_heal_post[hIndex].func; - postHookFunc(sd, &hp, &sp, &type); + postHookFunc(sd, hp, sp, type); } } return; @@ -54985,11 +55099,11 @@ int HP_pc_itemheal(struct map_session_data *sd, int itemid, int hp, int sp) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_itemheal_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *itemid, int *hp, int *sp); + int (*preHookFunc) (struct map_session_data **sd, int *itemid, int *hp, int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_itemheal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_itemheal_pre[hIndex].func; - retVal___ = preHookFunc(sd, &itemid, &hp, &sp); + retVal___ = preHookFunc(&sd, &itemid, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55000,10 +55114,10 @@ int HP_pc_itemheal(struct map_session_data *sd, int itemid, int hp, int sp) { retVal___ = HPMHooks.source.pc.itemheal(sd, itemid, hp, sp); } if( HPMHooks.count.HP_pc_itemheal_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *itemid, int *hp, int *sp); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int itemid, int hp, int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_itemheal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_itemheal_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &itemid, &hp, &sp); + retVal___ = postHookFunc(retVal___, sd, itemid, hp, sp); } } return retVal___; @@ -55012,11 +55126,11 @@ int HP_pc_percentheal(struct map_session_data *sd, int hp, int sp) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_percentheal_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *hp, int *sp); + int (*preHookFunc) (struct map_session_data **sd, int *hp, int *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_percentheal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_percentheal_pre[hIndex].func; - retVal___ = preHookFunc(sd, &hp, &sp); + retVal___ = preHookFunc(&sd, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55027,10 +55141,10 @@ int HP_pc_percentheal(struct map_session_data *sd, int hp, int sp) { retVal___ = HPMHooks.source.pc.percentheal(sd, hp, sp); } if( HPMHooks.count.HP_pc_percentheal_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *hp, int *sp); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int hp, int sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_percentheal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_percentheal_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &hp, &sp); + retVal___ = postHookFunc(retVal___, sd, hp, sp); } } return retVal___; @@ -55039,11 +55153,11 @@ int HP_pc_jobchange(struct map_session_data *sd, int job, int upper) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_jobchange_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *job, int *upper); + int (*preHookFunc) (struct map_session_data **sd, int *job, int *upper); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobchange_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_jobchange_pre[hIndex].func; - retVal___ = preHookFunc(sd, &job, &upper); + retVal___ = preHookFunc(&sd, &job, &upper); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55054,10 +55168,10 @@ int HP_pc_jobchange(struct map_session_data *sd, int job, int upper) { retVal___ = HPMHooks.source.pc.jobchange(sd, job, upper); } if( HPMHooks.count.HP_pc_jobchange_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *job, int *upper); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int job, int upper); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobchange_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_jobchange_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &job, &upper); + retVal___ = postHookFunc(retVal___, sd, job, upper); } } return retVal___; @@ -55066,11 +55180,11 @@ int HP_pc_setoption(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setoption_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setoption_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setoption_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55081,10 +55195,10 @@ int HP_pc_setoption(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.setoption(sd, type); } if( HPMHooks.count.HP_pc_setoption_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setoption_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setoption_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -55093,11 +55207,11 @@ int HP_pc_setcart(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setcart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setcart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setcart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55108,10 +55222,10 @@ int HP_pc_setcart(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.setcart(sd, type); } if( HPMHooks.count.HP_pc_setcart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setcart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setcart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -55119,11 +55233,11 @@ int HP_pc_setcart(struct map_session_data *sd, int type) { void HP_pc_setfalcon(struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_pc_setfalcon_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setfalcon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setfalcon_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55134,10 +55248,10 @@ void HP_pc_setfalcon(struct map_session_data *sd, bool flag) { HPMHooks.source.pc.setfalcon(sd, flag); } if( HPMHooks.count.HP_pc_setfalcon_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setfalcon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setfalcon_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -55145,11 +55259,11 @@ void HP_pc_setfalcon(struct map_session_data *sd, bool flag) { void HP_pc_setridingpeco(struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_pc_setridingpeco_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingpeco_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setridingpeco_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55160,10 +55274,10 @@ void HP_pc_setridingpeco(struct map_session_data *sd, bool flag) { HPMHooks.source.pc.setridingpeco(sd, flag); } if( HPMHooks.count.HP_pc_setridingpeco_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingpeco_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setridingpeco_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -55171,11 +55285,11 @@ void HP_pc_setridingpeco(struct map_session_data *sd, bool flag) { void HP_pc_setmadogear(struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_pc_setmadogear_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setmadogear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setmadogear_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55186,10 +55300,10 @@ void HP_pc_setmadogear(struct map_session_data *sd, bool flag) { HPMHooks.source.pc.setmadogear(sd, flag); } if( HPMHooks.count.HP_pc_setmadogear_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setmadogear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setmadogear_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -55197,11 +55311,11 @@ void HP_pc_setmadogear(struct map_session_data *sd, bool flag) { void HP_pc_setridingdragon(struct map_session_data *sd, unsigned int type) { int hIndex = 0; if( HPMHooks.count.HP_pc_setridingdragon_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *type); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingdragon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setridingdragon_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55212,10 +55326,10 @@ void HP_pc_setridingdragon(struct map_session_data *sd, unsigned int type) { HPMHooks.source.pc.setridingdragon(sd, type); } if( HPMHooks.count.HP_pc_setridingdragon_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *type); + void (*postHookFunc) (struct map_session_data *sd, unsigned int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingdragon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setridingdragon_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -55223,11 +55337,11 @@ void HP_pc_setridingdragon(struct map_session_data *sd, unsigned int type) { void HP_pc_setridingwug(struct map_session_data *sd, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_pc_setridingwug_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *flag); + void (*preHookFunc) (struct map_session_data **sd, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingwug_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setridingwug_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55238,10 +55352,10 @@ void HP_pc_setridingwug(struct map_session_data *sd, bool flag) { HPMHooks.source.pc.setridingwug(sd, flag); } if( HPMHooks.count.HP_pc_setridingwug_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *flag); + void (*postHookFunc) (struct map_session_data *sd, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingwug_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setridingwug_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -55250,11 +55364,11 @@ int HP_pc_changelook(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_changelook_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_changelook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_changelook_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55265,10 +55379,10 @@ int HP_pc_changelook(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.changelook(sd, type, val); } if( HPMHooks.count.HP_pc_changelook_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_changelook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_changelook_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -55277,11 +55391,11 @@ int HP_pc_equiplookall(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_equiplookall_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equiplookall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_equiplookall_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55304,11 +55418,11 @@ int HP_pc_readparam(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_readparam_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readparam_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readparam_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55319,10 +55433,10 @@ int HP_pc_readparam(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.readparam(sd, type); } if( HPMHooks.count.HP_pc_readparam_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readparam_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readparam_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -55331,11 +55445,11 @@ int HP_pc_setparam(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setparam_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setparam_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setparam_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55346,10 +55460,10 @@ int HP_pc_setparam(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.setparam(sd, type, val); } if( HPMHooks.count.HP_pc_setparam_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setparam_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setparam_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -55358,11 +55472,11 @@ int HP_pc_readreg(struct map_session_data *sd, int64 reg) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_readreg_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int64 *reg); + int (*preHookFunc) (struct map_session_data **sd, int64 *reg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readreg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readreg_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®); + retVal___ = preHookFunc(&sd, ®); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55373,10 +55487,10 @@ int HP_pc_readreg(struct map_session_data *sd, int64 reg) { retVal___ = HPMHooks.source.pc.readreg(sd, reg); } if( HPMHooks.count.HP_pc_readreg_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 *reg); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 reg); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readreg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readreg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®); + retVal___ = postHookFunc(retVal___, sd, reg); } } return retVal___; @@ -55384,11 +55498,11 @@ int HP_pc_readreg(struct map_session_data *sd, int64 reg) { void HP_pc_setreg(struct map_session_data *sd, int64 reg, int val) { int hIndex = 0; if( HPMHooks.count.HP_pc_setreg_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int64 *reg, int *val); + void (*preHookFunc) (struct map_session_data **sd, int64 *reg, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setreg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setreg_pre[hIndex].func; - preHookFunc(sd, ®, &val); + preHookFunc(&sd, ®, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55399,10 +55513,10 @@ void HP_pc_setreg(struct map_session_data *sd, int64 reg, int val) { HPMHooks.source.pc.setreg(sd, reg, val); } if( HPMHooks.count.HP_pc_setreg_post ) { - void (*postHookFunc) (struct map_session_data *sd, int64 *reg, int *val); + void (*postHookFunc) (struct map_session_data *sd, int64 reg, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setreg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setreg_post[hIndex].func; - postHookFunc(sd, ®, &val); + postHookFunc(sd, reg, val); } } return; @@ -55411,11 +55525,11 @@ char* HP_pc_readregstr(struct map_session_data *sd, int64 reg) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_pc_readregstr_pre ) { - char* (*preHookFunc) (struct map_session_data *sd, int64 *reg); + char* (*preHookFunc) (struct map_session_data **sd, int64 *reg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregstr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readregstr_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®); + retVal___ = preHookFunc(&sd, ®); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55426,10 +55540,10 @@ char* HP_pc_readregstr(struct map_session_data *sd, int64 reg) { retVal___ = HPMHooks.source.pc.readregstr(sd, reg); } if( HPMHooks.count.HP_pc_readregstr_post ) { - char* (*postHookFunc) (char* retVal___, struct map_session_data *sd, int64 *reg); + char* (*postHookFunc) (char* retVal___, struct map_session_data *sd, int64 reg); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregstr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readregstr_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®); + retVal___ = postHookFunc(retVal___, sd, reg); } } return retVal___; @@ -55437,11 +55551,11 @@ char* HP_pc_readregstr(struct map_session_data *sd, int64 reg) { void HP_pc_setregstr(struct map_session_data *sd, int64 reg, const char *str) { int hIndex = 0; if( HPMHooks.count.HP_pc_setregstr_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int64 *reg, const char *str); + void (*preHookFunc) (struct map_session_data **sd, int64 *reg, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregstr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setregstr_pre[hIndex].func; - preHookFunc(sd, ®, str); + preHookFunc(&sd, ®, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55452,10 +55566,10 @@ void HP_pc_setregstr(struct map_session_data *sd, int64 reg, const char *str) { HPMHooks.source.pc.setregstr(sd, reg, str); } if( HPMHooks.count.HP_pc_setregstr_post ) { - void (*postHookFunc) (struct map_session_data *sd, int64 *reg, const char *str); + void (*postHookFunc) (struct map_session_data *sd, int64 reg, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregstr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setregstr_post[hIndex].func; - postHookFunc(sd, ®, str); + postHookFunc(sd, reg, str); } } return; @@ -55464,11 +55578,11 @@ int HP_pc_readregistry(struct map_session_data *sd, int64 reg) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_readregistry_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int64 *reg); + int (*preHookFunc) (struct map_session_data **sd, int64 *reg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregistry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readregistry_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®); + retVal___ = preHookFunc(&sd, ®); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55479,10 +55593,10 @@ int HP_pc_readregistry(struct map_session_data *sd, int64 reg) { retVal___ = HPMHooks.source.pc.readregistry(sd, reg); } if( HPMHooks.count.HP_pc_readregistry_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 *reg); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 reg); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregistry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readregistry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®); + retVal___ = postHookFunc(retVal___, sd, reg); } } return retVal___; @@ -55491,11 +55605,11 @@ int HP_pc_setregistry(struct map_session_data *sd, int64 reg, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setregistry_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int64 *reg, int *val); + int (*preHookFunc) (struct map_session_data **sd, int64 *reg, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setregistry_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®, &val); + retVal___ = preHookFunc(&sd, ®, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55506,10 +55620,10 @@ int HP_pc_setregistry(struct map_session_data *sd, int64 reg, int val) { retVal___ = HPMHooks.source.pc.setregistry(sd, reg, val); } if( HPMHooks.count.HP_pc_setregistry_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 *reg, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 reg, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setregistry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®, &val); + retVal___ = postHookFunc(retVal___, sd, reg, val); } } return retVal___; @@ -55518,11 +55632,11 @@ char* HP_pc_readregistry_str(struct map_session_data *sd, int64 reg) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_pc_readregistry_str_pre ) { - char* (*preHookFunc) (struct map_session_data *sd, int64 *reg); + char* (*preHookFunc) (struct map_session_data **sd, int64 *reg); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregistry_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readregistry_str_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®); + retVal___ = preHookFunc(&sd, ®); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55533,10 +55647,10 @@ char* HP_pc_readregistry_str(struct map_session_data *sd, int64 reg) { retVal___ = HPMHooks.source.pc.readregistry_str(sd, reg); } if( HPMHooks.count.HP_pc_readregistry_str_post ) { - char* (*postHookFunc) (char* retVal___, struct map_session_data *sd, int64 *reg); + char* (*postHookFunc) (char* retVal___, struct map_session_data *sd, int64 reg); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregistry_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readregistry_str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®); + retVal___ = postHookFunc(retVal___, sd, reg); } } return retVal___; @@ -55545,11 +55659,11 @@ int HP_pc_setregistry_str(struct map_session_data *sd, int64 reg, const char *va int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setregistry_str_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int64 *reg, const char *val); + int (*preHookFunc) (struct map_session_data **sd, int64 *reg, const char **val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setregistry_str_pre[hIndex].func; - retVal___ = preHookFunc(sd, ®, val); + retVal___ = preHookFunc(&sd, ®, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55560,10 +55674,10 @@ int HP_pc_setregistry_str(struct map_session_data *sd, int64 reg, const char *va retVal___ = HPMHooks.source.pc.setregistry_str(sd, reg, val); } if( HPMHooks.count.HP_pc_setregistry_str_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 *reg, const char *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int64 reg, const char *val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setregistry_str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, ®, val); + retVal___ = postHookFunc(retVal___, sd, reg, val); } } return retVal___; @@ -55572,11 +55686,11 @@ int HP_pc_addeventtimer(struct map_session_data *sd, int tick, const char *name) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_addeventtimer_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *tick, const char *name); + int (*preHookFunc) (struct map_session_data **sd, int *tick, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_addeventtimer_pre[hIndex].func; - retVal___ = preHookFunc(sd, &tick, name); + retVal___ = preHookFunc(&sd, &tick, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55587,10 +55701,10 @@ int HP_pc_addeventtimer(struct map_session_data *sd, int tick, const char *name) retVal___ = HPMHooks.source.pc.addeventtimer(sd, tick, name); } if( HPMHooks.count.HP_pc_addeventtimer_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *tick, const char *name); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int tick, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_addeventtimer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &tick, name); + retVal___ = postHookFunc(retVal___, sd, tick, name); } } return retVal___; @@ -55599,11 +55713,11 @@ int HP_pc_deleventtimer(struct map_session_data *sd, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_deleventtimer_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name); + int (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_deleventtimer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_deleventtimer_pre[hIndex].func; - retVal___ = preHookFunc(sd, name); + retVal___ = preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55626,11 +55740,11 @@ int HP_pc_cleareventtimer(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_cleareventtimer_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cleareventtimer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_cleareventtimer_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55653,11 +55767,11 @@ int HP_pc_addeventtimercount(struct map_session_data *sd, const char *name, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_addeventtimercount_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name, int *tick); + int (*preHookFunc) (struct map_session_data **sd, const char **name, int *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimercount_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_addeventtimercount_pre[hIndex].func; - retVal___ = preHookFunc(sd, name, &tick); + retVal___ = preHookFunc(&sd, &name, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55668,10 +55782,10 @@ int HP_pc_addeventtimercount(struct map_session_data *sd, const char *name, int retVal___ = HPMHooks.source.pc.addeventtimercount(sd, name, tick); } if( HPMHooks.count.HP_pc_addeventtimercount_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int *tick); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimercount_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_addeventtimercount_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, name, &tick); + retVal___ = postHookFunc(retVal___, sd, name, tick); } } return retVal___; @@ -55680,11 +55794,11 @@ int HP_pc_calc_pvprank(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_calc_pvprank_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_pvprank_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calc_pvprank_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55722,10 +55836,10 @@ int HP_pc_calc_pvprank_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.calc_pvprank_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_calc_pvprank_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_pvprank_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_calc_pvprank_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -55734,11 +55848,11 @@ int HP_pc_ismarried(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_ismarried_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_ismarried_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_ismarried_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55761,11 +55875,11 @@ int HP_pc_marriage(struct map_session_data *sd, struct map_session_data *dstsd) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_marriage_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **dstsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_marriage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_marriage_pre[hIndex].func; - retVal___ = preHookFunc(sd, dstsd); + retVal___ = preHookFunc(&sd, &dstsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55788,11 +55902,11 @@ int HP_pc_divorce(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_divorce_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_divorce_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_divorce_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55815,11 +55929,11 @@ struct map_session_data* HP_pc_get_partner(struct map_session_data *sd) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_pc_get_partner_pre ) { - struct map_session_data* (*preHookFunc) (struct map_session_data *sd); + struct map_session_data* (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_get_partner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_get_partner_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55842,11 +55956,11 @@ struct map_session_data* HP_pc_get_father(struct map_session_data *sd) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_pc_get_father_pre ) { - struct map_session_data* (*preHookFunc) (struct map_session_data *sd); + struct map_session_data* (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_get_father_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_get_father_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55869,11 +55983,11 @@ struct map_session_data* HP_pc_get_mother(struct map_session_data *sd) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_pc_get_mother_pre ) { - struct map_session_data* (*preHookFunc) (struct map_session_data *sd); + struct map_session_data* (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_get_mother_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_get_mother_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55896,11 +56010,11 @@ struct map_session_data* HP_pc_get_child(struct map_session_data *sd) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_pc_get_child_pre ) { - struct map_session_data* (*preHookFunc) (struct map_session_data *sd); + struct map_session_data* (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_get_child_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_get_child_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55922,11 +56036,11 @@ struct map_session_data* HP_pc_get_child(struct map_session_data *sd) { void HP_pc_bleeding(struct map_session_data *sd, unsigned int diff_tick) { int hIndex = 0; if( HPMHooks.count.HP_pc_bleeding_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *diff_tick); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *diff_tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bleeding_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bleeding_pre[hIndex].func; - preHookFunc(sd, &diff_tick); + preHookFunc(&sd, &diff_tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55937,10 +56051,10 @@ void HP_pc_bleeding(struct map_session_data *sd, unsigned int diff_tick) { HPMHooks.source.pc.bleeding(sd, diff_tick); } if( HPMHooks.count.HP_pc_bleeding_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *diff_tick); + void (*postHookFunc) (struct map_session_data *sd, unsigned int diff_tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bleeding_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bleeding_post[hIndex].func; - postHookFunc(sd, &diff_tick); + postHookFunc(sd, diff_tick); } } return; @@ -55948,11 +56062,11 @@ void HP_pc_bleeding(struct map_session_data *sd, unsigned int diff_tick) { void HP_pc_regen(struct map_session_data *sd, unsigned int diff_tick) { int hIndex = 0; if( HPMHooks.count.HP_pc_regen_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *diff_tick); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *diff_tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_regen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_regen_pre[hIndex].func; - preHookFunc(sd, &diff_tick); + preHookFunc(&sd, &diff_tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -55963,10 +56077,10 @@ void HP_pc_regen(struct map_session_data *sd, unsigned int diff_tick) { HPMHooks.source.pc.regen(sd, diff_tick); } if( HPMHooks.count.HP_pc_regen_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *diff_tick); + void (*postHookFunc) (struct map_session_data *sd, unsigned int diff_tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_regen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_regen_post[hIndex].func; - postHookFunc(sd, &diff_tick); + postHookFunc(sd, diff_tick); } } return; @@ -55974,11 +56088,11 @@ void HP_pc_regen(struct map_session_data *sd, unsigned int diff_tick) { void HP_pc_setstand(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_setstand_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setstand_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setstand_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56001,11 +56115,11 @@ int HP_pc_candrop(struct map_session_data *sd, struct item *item) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_candrop_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item *item); + int (*preHookFunc) (struct map_session_data **sd, struct item **item); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_candrop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_candrop_pre[hIndex].func; - retVal___ = preHookFunc(sd, item); + retVal___ = preHookFunc(&sd, &item); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56043,10 +56157,10 @@ int HP_pc_jobid2mapid(unsigned short b_class) { retVal___ = HPMHooks.source.pc.jobid2mapid(b_class); } if( HPMHooks.count.HP_pc_jobid2mapid_post ) { - int (*postHookFunc) (int retVal___, unsigned short *b_class); + int (*postHookFunc) (int retVal___, unsigned short b_class); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobid2mapid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_jobid2mapid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &b_class); + retVal___ = postHookFunc(retVal___, b_class); } } return retVal___; @@ -56070,10 +56184,10 @@ int HP_pc_mapid2jobid(unsigned short class_, int sex) { retVal___ = HPMHooks.source.pc.mapid2jobid(class_, sex); } if( HPMHooks.count.HP_pc_mapid2jobid_post ) { - int (*postHookFunc) (int retVal___, unsigned short *class_, int *sex); + int (*postHookFunc) (int retVal___, unsigned short class_, int sex); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_mapid2jobid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_mapid2jobid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_, &sex); + retVal___ = postHookFunc(retVal___, class_, sex); } } return retVal___; @@ -56097,10 +56211,10 @@ const char* HP_pc_job_name(int class_) { retVal___ = HPMHooks.source.pc.job_name(class_); } if( HPMHooks.count.HP_pc_job_name_post ) { - const char* (*postHookFunc) (const char* retVal___, int *class_); + const char* (*postHookFunc) (const char* retVal___, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_job_name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_job_name_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -56108,11 +56222,11 @@ const char* HP_pc_job_name(int class_) { void HP_pc_setinvincibletimer(struct map_session_data *sd, int val) { int hIndex = 0; if( HPMHooks.count.HP_pc_setinvincibletimer_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *val); + void (*preHookFunc) (struct map_session_data **sd, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setinvincibletimer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setinvincibletimer_pre[hIndex].func; - preHookFunc(sd, &val); + preHookFunc(&sd, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56123,10 +56237,10 @@ void HP_pc_setinvincibletimer(struct map_session_data *sd, int val) { HPMHooks.source.pc.setinvincibletimer(sd, val); } if( HPMHooks.count.HP_pc_setinvincibletimer_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *val); + void (*postHookFunc) (struct map_session_data *sd, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setinvincibletimer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setinvincibletimer_post[hIndex].func; - postHookFunc(sd, &val); + postHookFunc(sd, val); } } return; @@ -56134,11 +56248,11 @@ void HP_pc_setinvincibletimer(struct map_session_data *sd, int val) { void HP_pc_delinvincibletimer(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_delinvincibletimer_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delinvincibletimer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_delinvincibletimer_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56161,11 +56275,11 @@ int HP_pc_addspiritball(struct map_session_data *sd, int interval, int max) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_addspiritball_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *interval, int *max); + int (*preHookFunc) (struct map_session_data **sd, int *interval, int *max); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addspiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_addspiritball_pre[hIndex].func; - retVal___ = preHookFunc(sd, &interval, &max); + retVal___ = preHookFunc(&sd, &interval, &max); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56176,10 +56290,10 @@ int HP_pc_addspiritball(struct map_session_data *sd, int interval, int max) { retVal___ = HPMHooks.source.pc.addspiritball(sd, interval, max); } if( HPMHooks.count.HP_pc_addspiritball_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *interval, int *max); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int interval, int max); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addspiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_addspiritball_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &interval, &max); + retVal___ = postHookFunc(retVal___, sd, interval, max); } } return retVal___; @@ -56188,11 +56302,11 @@ int HP_pc_delspiritball(struct map_session_data *sd, int count, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_delspiritball_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *count, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *count, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delspiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_delspiritball_pre[hIndex].func; - retVal___ = preHookFunc(sd, &count, &type); + retVal___ = preHookFunc(&sd, &count, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56203,10 +56317,10 @@ int HP_pc_delspiritball(struct map_session_data *sd, int count, int type) { retVal___ = HPMHooks.source.pc.delspiritball(sd, count, type); } if( HPMHooks.count.HP_pc_delspiritball_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *count, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int count, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delspiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_delspiritball_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &count, &type); + retVal___ = postHookFunc(retVal___, sd, count, type); } } return retVal___; @@ -56215,11 +56329,11 @@ int HP_pc_getmaxspiritball(struct map_session_data *sd, int min) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_getmaxspiritball_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *min); + int (*preHookFunc) (struct map_session_data **sd, int *min); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getmaxspiritball_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_getmaxspiritball_pre[hIndex].func; - retVal___ = preHookFunc(sd, &min); + retVal___ = preHookFunc(&sd, &min); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56230,10 +56344,10 @@ int HP_pc_getmaxspiritball(struct map_session_data *sd, int min) { retVal___ = HPMHooks.source.pc.getmaxspiritball(sd, min); } if( HPMHooks.count.HP_pc_getmaxspiritball_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *min); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int min); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getmaxspiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_getmaxspiritball_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &min); + retVal___ = postHookFunc(retVal___, sd, min); } } return retVal___; @@ -56241,11 +56355,11 @@ int HP_pc_getmaxspiritball(struct map_session_data *sd, int min) { void HP_pc_addfame(struct map_session_data *sd, int count) { int hIndex = 0; if( HPMHooks.count.HP_pc_addfame_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *count); + void (*preHookFunc) (struct map_session_data **sd, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addfame_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_addfame_pre[hIndex].func; - preHookFunc(sd, &count); + preHookFunc(&sd, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56256,10 +56370,10 @@ void HP_pc_addfame(struct map_session_data *sd, int count) { HPMHooks.source.pc.addfame(sd, count); } if( HPMHooks.count.HP_pc_addfame_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *count); + void (*postHookFunc) (struct map_session_data *sd, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addfame_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_addfame_post[hIndex].func; - postHookFunc(sd, &count); + postHookFunc(sd, count); } } return; @@ -56283,10 +56397,10 @@ unsigned char HP_pc_famerank(int char_id, int job) { retVal___ = HPMHooks.source.pc.famerank(char_id, job); } if( HPMHooks.count.HP_pc_famerank_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, int *char_id, int *job); + unsigned char (*postHookFunc) (unsigned char retVal___, int char_id, int job); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_famerank_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_famerank_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &char_id, &job); + retVal___ = postHookFunc(retVal___, char_id, job); } } return retVal___; @@ -56295,11 +56409,11 @@ int HP_pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_set_hate_mob_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *pos, struct block_list *bl); + int (*preHookFunc) (struct map_session_data **sd, int *pos, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_hate_mob_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_set_hate_mob_pre[hIndex].func; - retVal___ = preHookFunc(sd, &pos, bl); + retVal___ = preHookFunc(&sd, &pos, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56310,10 +56424,10 @@ int HP_pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list * retVal___ = HPMHooks.source.pc.set_hate_mob(sd, pos, bl); } if( HPMHooks.count.HP_pc_set_hate_mob_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *pos, struct block_list *bl); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int pos, struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_hate_mob_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_set_hate_mob_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &pos, bl); + retVal___ = postHookFunc(retVal___, sd, pos, bl); } } return retVal___; @@ -56364,10 +56478,10 @@ int HP_pc_map_day_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.map_day_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_map_day_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_map_day_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_map_day_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -56391,10 +56505,10 @@ int HP_pc_map_night_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.map_night_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_map_night_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_map_night_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_map_night_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -56402,11 +56516,11 @@ int HP_pc_map_night_timer(int tid, int64 tick, int id, intptr_t data) { void HP_pc_inventory_rentals(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_inventory_rentals_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rentals_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_inventory_rentals_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56429,11 +56543,11 @@ int HP_pc_inventory_rental_clear(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_inventory_rental_clear_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_inventory_rental_clear_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56455,11 +56569,11 @@ int HP_pc_inventory_rental_clear(struct map_session_data *sd) { void HP_pc_inventory_rental_add(struct map_session_data *sd, int seconds) { int hIndex = 0; if( HPMHooks.count.HP_pc_inventory_rental_add_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *seconds); + void (*preHookFunc) (struct map_session_data **sd, int *seconds); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_inventory_rental_add_pre[hIndex].func; - preHookFunc(sd, &seconds); + preHookFunc(&sd, &seconds); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56470,10 +56584,10 @@ void HP_pc_inventory_rental_add(struct map_session_data *sd, int seconds) { HPMHooks.source.pc.inventory_rental_add(sd, seconds); } if( HPMHooks.count.HP_pc_inventory_rental_add_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *seconds); + void (*postHookFunc) (struct map_session_data *sd, int seconds); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_inventory_rental_add_post[hIndex].func; - postHookFunc(sd, &seconds); + postHookFunc(sd, seconds); } } return; @@ -56482,11 +56596,11 @@ int HP_pc_disguise(struct map_session_data *sd, int class_) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_disguise_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *class_); + int (*preHookFunc) (struct map_session_data **sd, int *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_disguise_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_disguise_pre[hIndex].func; - retVal___ = preHookFunc(sd, &class_); + retVal___ = preHookFunc(&sd, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56497,10 +56611,10 @@ int HP_pc_disguise(struct map_session_data *sd, int class_) { retVal___ = HPMHooks.source.pc.disguise(sd, class_); } if( HPMHooks.count.HP_pc_disguise_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *class_); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_disguise_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_disguise_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &class_); + retVal___ = postHookFunc(retVal___, sd, class_); } } return retVal___; @@ -56509,11 +56623,11 @@ bool HP_pc_isautolooting(struct map_session_data *sd, int nameid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_isautolooting_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *nameid); + bool (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isautolooting_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_isautolooting_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56524,10 +56638,10 @@ bool HP_pc_isautolooting(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.pc.isautolooting(sd, nameid); } if( HPMHooks.count.HP_pc_isautolooting_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *nameid); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isautolooting_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_isautolooting_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -56535,11 +56649,11 @@ bool HP_pc_isautolooting(struct map_session_data *sd, int nameid) { void HP_pc_overheat(struct map_session_data *sd, int val) { int hIndex = 0; if( HPMHooks.count.HP_pc_overheat_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *val); + void (*preHookFunc) (struct map_session_data **sd, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_overheat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_overheat_pre[hIndex].func; - preHookFunc(sd, &val); + preHookFunc(&sd, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56550,10 +56664,10 @@ void HP_pc_overheat(struct map_session_data *sd, int val) { HPMHooks.source.pc.overheat(sd, val); } if( HPMHooks.count.HP_pc_overheat_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *val); + void (*postHookFunc) (struct map_session_data *sd, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_overheat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_overheat_post[hIndex].func; - postHookFunc(sd, &val); + postHookFunc(sd, val); } } return; @@ -56562,11 +56676,11 @@ int HP_pc_banding(struct map_session_data *sd, uint16 skill_lv) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_banding_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_banding_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_banding_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56577,10 +56691,10 @@ int HP_pc_banding(struct map_session_data *sd, uint16 skill_lv) { retVal___ = HPMHooks.source.pc.banding(sd, skill_lv); } if( HPMHooks.count.HP_pc_banding_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_banding_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_banding_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_lv); } } return retVal___; @@ -56588,11 +56702,11 @@ int HP_pc_banding(struct map_session_data *sd, uint16 skill_lv) { void HP_pc_itemcd_do(struct map_session_data *sd, bool load) { int hIndex = 0; if( HPMHooks.count.HP_pc_itemcd_do_pre ) { - void (*preHookFunc) (struct map_session_data *sd, bool *load); + void (*preHookFunc) (struct map_session_data **sd, bool *load); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_itemcd_do_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_itemcd_do_pre[hIndex].func; - preHookFunc(sd, &load); + preHookFunc(&sd, &load); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56603,10 +56717,10 @@ void HP_pc_itemcd_do(struct map_session_data *sd, bool load) { HPMHooks.source.pc.itemcd_do(sd, load); } if( HPMHooks.count.HP_pc_itemcd_do_post ) { - void (*postHookFunc) (struct map_session_data *sd, bool *load); + void (*postHookFunc) (struct map_session_data *sd, bool load); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_itemcd_do_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_itemcd_do_post[hIndex].func; - postHookFunc(sd, &load); + postHookFunc(sd, load); } } return; @@ -56615,11 +56729,11 @@ int HP_pc_load_combo(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_load_combo_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_load_combo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_load_combo_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56641,11 +56755,11 @@ int HP_pc_load_combo(struct map_session_data *sd) { void HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int type) { int hIndex = 0; if( HPMHooks.count.HP_pc_add_charm_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *interval, int *max, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_add_charm_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_add_charm_pre[hIndex].func; - preHookFunc(sd, &interval, &max, &type); + preHookFunc(&sd, &interval, &max, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56656,10 +56770,10 @@ void HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int typ HPMHooks.source.pc.add_charm(sd, interval, max, type); } if( HPMHooks.count.HP_pc_add_charm_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type); + void (*postHookFunc) (struct map_session_data *sd, int interval, int max, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_add_charm_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_add_charm_post[hIndex].func; - postHookFunc(sd, &interval, &max, &type); + postHookFunc(sd, interval, max, type); } } return; @@ -56667,11 +56781,11 @@ void HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int typ void HP_pc_del_charm(struct map_session_data *sd, int count, int type) { int hIndex = 0; if( HPMHooks.count.HP_pc_del_charm_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *count, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *count, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_del_charm_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_del_charm_pre[hIndex].func; - preHookFunc(sd, &count, &type); + preHookFunc(&sd, &count, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56682,10 +56796,10 @@ void HP_pc_del_charm(struct map_session_data *sd, int count, int type) { HPMHooks.source.pc.del_charm(sd, count, type); } if( HPMHooks.count.HP_pc_del_charm_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *count, int *type); + void (*postHookFunc) (struct map_session_data *sd, int count, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_del_charm_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_del_charm_post[hIndex].func; - postHookFunc(sd, &count, &type); + postHookFunc(sd, count, type); } } return; @@ -56693,11 +56807,11 @@ void HP_pc_del_charm(struct map_session_data *sd, int count, int type) { void HP_pc_baselevelchanged(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_baselevelchanged_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_baselevelchanged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_baselevelchanged_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56735,10 +56849,10 @@ int HP_pc_level_penalty_mod(int diff, unsigned char race, uint32 mode, int type) retVal___ = HPMHooks.source.pc.level_penalty_mod(diff, race, mode, type); } if( HPMHooks.count.HP_pc_level_penalty_mod_post ) { - int (*postHookFunc) (int retVal___, int *diff, unsigned char *race, uint32 *mode, int *type); + int (*postHookFunc) (int retVal___, int diff, unsigned char race, uint32 mode, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_level_penalty_mod_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_level_penalty_mod_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &diff, &race, &mode, &type); + retVal___ = postHookFunc(retVal___, diff, race, mode, type); } } return retVal___; @@ -56747,11 +56861,11 @@ int HP_pc_calc_skillpoint(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_calc_skillpoint_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skillpoint_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calc_skillpoint_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56789,10 +56903,10 @@ int HP_pc_invincible_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.invincible_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_invincible_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_invincible_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_invincible_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -56816,10 +56930,10 @@ int HP_pc_spiritball_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.spiritball_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_spiritball_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_spiritball_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_spiritball_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -56828,12 +56942,12 @@ int HP_pc_check_banding(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_check_banding_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_banding_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pc_check_banding_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -56876,10 +56990,10 @@ int HP_pc_inventory_rental_end(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.inventory_rental_end(tid, tick, id, data); } if( HPMHooks.count.HP_pc_inventory_rental_end_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_inventory_rental_end_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -56887,11 +57001,11 @@ int HP_pc_inventory_rental_end(int tid, int64 tick, int id, intptr_t data) { void HP_pc_check_skilltree(struct map_session_data *sd, int skill_id) { int hIndex = 0; if( HPMHooks.count.HP_pc_check_skilltree_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *skill_id); + void (*preHookFunc) (struct map_session_data **sd, int *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_skilltree_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_check_skilltree_pre[hIndex].func; - preHookFunc(sd, &skill_id); + preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56902,10 +57016,10 @@ void HP_pc_check_skilltree(struct map_session_data *sd, int skill_id) { HPMHooks.source.pc.check_skilltree(sd, skill_id); } if( HPMHooks.count.HP_pc_check_skilltree_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *skill_id); + void (*postHookFunc) (struct map_session_data *sd, int skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_skilltree_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_check_skilltree_post[hIndex].func; - postHookFunc(sd, &skill_id); + postHookFunc(sd, skill_id); } } return; @@ -56914,11 +57028,11 @@ int HP_pc_bonus_autospell(struct s_autospell *spell, int max, short id, short lv int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_autospell_pre ) { - int (*preHookFunc) (struct s_autospell *spell, int *max, short *id, short *lv, short *rate, short *flag, short *card_id); + int (*preHookFunc) (struct s_autospell **spell, int *max, short *id, short *lv, short *rate, short *flag, short *card_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_autospell_pre[hIndex].func; - retVal___ = preHookFunc(spell, &max, &id, &lv, &rate, &flag, &card_id); + retVal___ = preHookFunc(&spell, &max, &id, &lv, &rate, &flag, &card_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56929,10 +57043,10 @@ int HP_pc_bonus_autospell(struct s_autospell *spell, int max, short id, short lv retVal___ = HPMHooks.source.pc.bonus_autospell(spell, max, id, lv, rate, flag, card_id); } if( HPMHooks.count.HP_pc_bonus_autospell_post ) { - int (*postHookFunc) (int retVal___, struct s_autospell *spell, int *max, short *id, short *lv, short *rate, short *flag, short *card_id); + int (*postHookFunc) (int retVal___, struct s_autospell *spell, int max, short id, short lv, short rate, short flag, short card_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_autospell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, spell, &max, &id, &lv, &rate, &flag, &card_id); + retVal___ = postHookFunc(retVal___, spell, max, id, lv, rate, flag, card_id); } } return retVal___; @@ -56941,11 +57055,11 @@ int HP_pc_bonus_autospell_onskill(struct s_autospell *spell, int max, short src_ int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_autospell_onskill_pre ) { - int (*preHookFunc) (struct s_autospell *spell, int *max, short *src_skill, short *id, short *lv, short *rate, short *card_id); + int (*preHookFunc) (struct s_autospell **spell, int *max, short *src_skill, short *id, short *lv, short *rate, short *card_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_onskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_autospell_onskill_pre[hIndex].func; - retVal___ = preHookFunc(spell, &max, &src_skill, &id, &lv, &rate, &card_id); + retVal___ = preHookFunc(&spell, &max, &src_skill, &id, &lv, &rate, &card_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56956,10 +57070,10 @@ int HP_pc_bonus_autospell_onskill(struct s_autospell *spell, int max, short src_ retVal___ = HPMHooks.source.pc.bonus_autospell_onskill(spell, max, src_skill, id, lv, rate, card_id); } if( HPMHooks.count.HP_pc_bonus_autospell_onskill_post ) { - int (*postHookFunc) (int retVal___, struct s_autospell *spell, int *max, short *src_skill, short *id, short *lv, short *rate, short *card_id); + int (*postHookFunc) (int retVal___, struct s_autospell *spell, int max, short src_skill, short id, short lv, short rate, short card_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_onskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_autospell_onskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, spell, &max, &src_skill, &id, &lv, &rate, &card_id); + retVal___ = postHookFunc(retVal___, spell, max, src_skill, id, lv, rate, card_id); } } return retVal___; @@ -56968,11 +57082,11 @@ int HP_pc_bonus_addeff(struct s_addeffect *effect, int max, enum sc_type id, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_addeff_pre ) { - int (*preHookFunc) (struct s_addeffect *effect, int *max, enum sc_type *id, int16 *rate, int16 *arrow_rate, uint8 *flag, uint16 *duration); + int (*preHookFunc) (struct s_addeffect **effect, int *max, enum sc_type *id, int16 *rate, int16 *arrow_rate, uint8 *flag, uint16 *duration); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_addeff_pre[hIndex].func; - retVal___ = preHookFunc(effect, &max, &id, &rate, &arrow_rate, &flag, &duration); + retVal___ = preHookFunc(&effect, &max, &id, &rate, &arrow_rate, &flag, &duration); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -56983,10 +57097,10 @@ int HP_pc_bonus_addeff(struct s_addeffect *effect, int max, enum sc_type id, int retVal___ = HPMHooks.source.pc.bonus_addeff(effect, max, id, rate, arrow_rate, flag, duration); } if( HPMHooks.count.HP_pc_bonus_addeff_post ) { - int (*postHookFunc) (int retVal___, struct s_addeffect *effect, int *max, enum sc_type *id, int16 *rate, int16 *arrow_rate, uint8 *flag, uint16 *duration); + int (*postHookFunc) (int retVal___, struct s_addeffect *effect, int max, enum sc_type id, int16 rate, int16 arrow_rate, uint8 flag, uint16 duration); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_addeff_post[hIndex].func; - retVal___ = postHookFunc(retVal___, effect, &max, &id, &rate, &arrow_rate, &flag, &duration); + retVal___ = postHookFunc(retVal___, effect, max, id, rate, arrow_rate, flag, duration); } } return retVal___; @@ -56995,11 +57109,11 @@ int HP_pc_bonus_addeff_onskill(struct s_addeffectonskill *effect, int max, enum int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_addeff_onskill_pre ) { - int (*preHookFunc) (struct s_addeffectonskill *effect, int *max, enum sc_type *id, short *rate, short *skill_id, unsigned char *target); + int (*preHookFunc) (struct s_addeffectonskill **effect, int *max, enum sc_type *id, short *rate, short *skill_id, unsigned char *target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_onskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_addeff_onskill_pre[hIndex].func; - retVal___ = preHookFunc(effect, &max, &id, &rate, &skill_id, &target); + retVal___ = preHookFunc(&effect, &max, &id, &rate, &skill_id, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57010,10 +57124,10 @@ int HP_pc_bonus_addeff_onskill(struct s_addeffectonskill *effect, int max, enum retVal___ = HPMHooks.source.pc.bonus_addeff_onskill(effect, max, id, rate, skill_id, target); } if( HPMHooks.count.HP_pc_bonus_addeff_onskill_post ) { - int (*postHookFunc) (int retVal___, struct s_addeffectonskill *effect, int *max, enum sc_type *id, short *rate, short *skill_id, unsigned char *target); + int (*postHookFunc) (int retVal___, struct s_addeffectonskill *effect, int max, enum sc_type id, short rate, short skill_id, unsigned char target); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_onskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_addeff_onskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, effect, &max, &id, &rate, &skill_id, &target); + retVal___ = postHookFunc(retVal___, effect, max, id, rate, skill_id, target); } } return retVal___; @@ -57022,11 +57136,11 @@ int HP_pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id, sh int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_bonus_item_drop_pre ) { - int (*preHookFunc) (struct s_add_drop *drop, const short *max, short *id, short *group, int *race, int *rate); + int (*preHookFunc) (struct s_add_drop **drop, const short *max, short *id, short *group, int *race, int *rate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_item_drop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bonus_item_drop_pre[hIndex].func; - retVal___ = preHookFunc(drop, &max, &id, &group, &race, &rate); + retVal___ = preHookFunc(&drop, &max, &id, &group, &race, &rate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57037,10 +57151,10 @@ int HP_pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id, sh retVal___ = HPMHooks.source.pc.bonus_item_drop(drop, max, id, group, race, rate); } if( HPMHooks.count.HP_pc_bonus_item_drop_post ) { - int (*postHookFunc) (int retVal___, struct s_add_drop *drop, const short *max, short *id, short *group, int *race, int *rate); + int (*postHookFunc) (int retVal___, struct s_add_drop *drop, const short max, short id, short group, int race, int rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_item_drop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bonus_item_drop_post[hIndex].func; - retVal___ = postHookFunc(retVal___, drop, &max, &id, &group, &race, &rate); + retVal___ = postHookFunc(retVal___, drop, max, id, group, race, rate); } } return retVal___; @@ -57048,11 +57162,11 @@ int HP_pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id, sh void HP_pc_calcexp(struct map_session_data *sd, unsigned int *base_exp, unsigned int *job_exp, struct block_list *src) { int hIndex = 0; if( HPMHooks.count.HP_pc_calcexp_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *base_exp, unsigned int *job_exp, struct block_list *src); + void (*preHookFunc) (struct map_session_data **sd, unsigned int **base_exp, unsigned int **job_exp, struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calcexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calcexp_pre[hIndex].func; - preHookFunc(sd, base_exp, job_exp, src); + preHookFunc(&sd, &base_exp, &job_exp, &src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57090,10 +57204,10 @@ int HP_pc_respawn_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.respawn_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_respawn_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_respawn_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_respawn_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57102,12 +57216,12 @@ int HP_pc_jobchange_killclone(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_jobchange_killclone_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobchange_killclone_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pc_jobchange_killclone_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -57135,11 +57249,11 @@ int HP_pc_getstat(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_getstat_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getstat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_getstat_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57150,10 +57264,10 @@ int HP_pc_getstat(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pc.getstat(sd, type); } if( HPMHooks.count.HP_pc_getstat_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getstat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_getstat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -57162,11 +57276,11 @@ int HP_pc_setstat(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_setstat_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type, int *val); + int (*preHookFunc) (struct map_session_data **sd, int *type, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setstat_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_setstat_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type, &val); + retVal___ = preHookFunc(&sd, &type, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57177,10 +57291,10 @@ int HP_pc_setstat(struct map_session_data *sd, int type, int val) { retVal___ = HPMHooks.source.pc.setstat(sd, type, val); } if( HPMHooks.count.HP_pc_setstat_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type, int *val); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setstat_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_setstat_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type, &val); + retVal___ = postHookFunc(retVal___, sd, type, val); } } return retVal___; @@ -57204,10 +57318,10 @@ int HP_pc_eventtimer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.eventtimer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_eventtimer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_eventtimer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_eventtimer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57216,12 +57330,12 @@ int HP_pc_daynight_timer_sub(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_daynight_timer_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_daynight_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pc_daynight_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -57264,10 +57378,10 @@ int HP_pc_charm_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.charm_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_charm_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_charm_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_charm_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57276,11 +57390,11 @@ bool HP_pc_readdb_levelpenalty(char *fields[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_pc_readdb_levelpenalty_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); + bool (*preHookFunc) (char **fields[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readdb_levelpenalty_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_readdb_levelpenalty_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); + retVal___ = preHookFunc(&fields, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57291,10 +57405,10 @@ bool HP_pc_readdb_levelpenalty(char *fields[], int columns, int current) { retVal___ = HPMHooks.source.pc.readdb_levelpenalty(fields, columns, current); } if( HPMHooks.count.HP_pc_readdb_levelpenalty_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readdb_levelpenalty_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_readdb_levelpenalty_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); + retVal___ = postHookFunc(retVal___, fields, columns, current); } } return retVal___; @@ -57318,10 +57432,10 @@ int HP_pc_autosave(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.autosave(tid, tick, id, data); } if( HPMHooks.count.HP_pc_autosave_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autosave_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_autosave_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57345,10 +57459,10 @@ int HP_pc_follow_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.follow_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_follow_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_follow_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_follow_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57409,11 +57523,11 @@ int HP_pc_isUseitem(struct map_session_data *sd, int n) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_isUseitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n); + int (*preHookFunc) (struct map_session_data **sd, int *n); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isUseitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_isUseitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n); + retVal___ = preHookFunc(&sd, &n); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57424,10 +57538,10 @@ int HP_pc_isUseitem(struct map_session_data *sd, int n) { retVal___ = HPMHooks.source.pc.isUseitem(sd, n); } if( HPMHooks.count.HP_pc_isUseitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isUseitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_isUseitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n); + retVal___ = postHookFunc(retVal___, sd, n); } } return retVal___; @@ -57436,12 +57550,12 @@ int HP_pc_show_steal(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_show_steal_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_show_steal_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pc_show_steal_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -57469,11 +57583,11 @@ int HP_pc_checkcombo(struct map_session_data *sd, struct item_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_checkcombo_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item_data *data); + int (*preHookFunc) (struct map_session_data **sd, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkcombo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_checkcombo_pre[hIndex].func; - retVal___ = preHookFunc(sd, data); + retVal___ = preHookFunc(&sd, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57496,11 +57610,11 @@ int HP_pc_calcweapontype(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_calcweapontype_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calcweapontype_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_calcweapontype_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57523,11 +57637,11 @@ int HP_pc_removecombo(struct map_session_data *sd, struct item_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_removecombo_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item_data *data); + int (*preHookFunc) (struct map_session_data **sd, struct item_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_removecombo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_removecombo_pre[hIndex].func; - retVal___ = preHookFunc(sd, data); + retVal___ = preHookFunc(&sd, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57549,11 +57663,11 @@ int HP_pc_removecombo(struct map_session_data *sd, struct item_data *data) { void HP_pc_bank_deposit(struct map_session_data *sd, int money) { int hIndex = 0; if( HPMHooks.count.HP_pc_bank_deposit_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *money); + void (*preHookFunc) (struct map_session_data **sd, int *money); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bank_deposit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bank_deposit_pre[hIndex].func; - preHookFunc(sd, &money); + preHookFunc(&sd, &money); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57564,10 +57678,10 @@ void HP_pc_bank_deposit(struct map_session_data *sd, int money) { HPMHooks.source.pc.bank_deposit(sd, money); } if( HPMHooks.count.HP_pc_bank_deposit_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *money); + void (*postHookFunc) (struct map_session_data *sd, int money); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bank_deposit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bank_deposit_post[hIndex].func; - postHookFunc(sd, &money); + postHookFunc(sd, money); } } return; @@ -57575,11 +57689,11 @@ void HP_pc_bank_deposit(struct map_session_data *sd, int money) { void HP_pc_bank_withdraw(struct map_session_data *sd, int money) { int hIndex = 0; if( HPMHooks.count.HP_pc_bank_withdraw_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *money); + void (*preHookFunc) (struct map_session_data **sd, int *money); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bank_withdraw_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bank_withdraw_pre[hIndex].func; - preHookFunc(sd, &money); + preHookFunc(&sd, &money); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57590,10 +57704,10 @@ void HP_pc_bank_withdraw(struct map_session_data *sd, int money) { HPMHooks.source.pc.bank_withdraw(sd, money); } if( HPMHooks.count.HP_pc_bank_withdraw_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *money); + void (*postHookFunc) (struct map_session_data *sd, int money); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bank_withdraw_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bank_withdraw_post[hIndex].func; - postHookFunc(sd, &money); + postHookFunc(sd, money); } } return; @@ -57601,11 +57715,11 @@ void HP_pc_bank_withdraw(struct map_session_data *sd, int money) { void HP_pc_rental_expire(struct map_session_data *sd, int i) { int hIndex = 0; if( HPMHooks.count.HP_pc_rental_expire_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *i); + void (*preHookFunc) (struct map_session_data **sd, int *i); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_rental_expire_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_rental_expire_pre[hIndex].func; - preHookFunc(sd, &i); + preHookFunc(&sd, &i); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57616,10 +57730,10 @@ void HP_pc_rental_expire(struct map_session_data *sd, int i) { HPMHooks.source.pc.rental_expire(sd, i); } if( HPMHooks.count.HP_pc_rental_expire_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *i); + void (*postHookFunc) (struct map_session_data *sd, int i); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_rental_expire_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_rental_expire_post[hIndex].func; - postHookFunc(sd, &i); + postHookFunc(sd, i); } } return; @@ -57627,11 +57741,11 @@ void HP_pc_rental_expire(struct map_session_data *sd, int i) { void HP_pc_scdata_received(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_scdata_received_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_scdata_received_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_scdata_received_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57653,11 +57767,11 @@ void HP_pc_scdata_received(struct map_session_data *sd) { void HP_pc_bound_clear(struct map_session_data *sd, enum e_item_bound_type type) { int hIndex = 0; if( HPMHooks.count.HP_pc_bound_clear_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_item_bound_type *type); + void (*preHookFunc) (struct map_session_data **sd, enum e_item_bound_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bound_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_bound_clear_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57668,10 +57782,10 @@ void HP_pc_bound_clear(struct map_session_data *sd, enum e_item_bound_type type) HPMHooks.source.pc.bound_clear(sd, type); } if( HPMHooks.count.HP_pc_bound_clear_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_item_bound_type *type); + void (*postHookFunc) (struct map_session_data *sd, enum e_item_bound_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bound_clear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_bound_clear_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -57695,10 +57809,10 @@ int HP_pc_expiration_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.expiration_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_expiration_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_expiration_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_expiration_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57722,10 +57836,10 @@ int HP_pc_global_expiration_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pc.global_expiration_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pc_global_expiration_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_global_expiration_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_global_expiration_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -57733,11 +57847,11 @@ int HP_pc_global_expiration_timer(int tid, int64 tick, int id, intptr_t data) { void HP_pc_expire_check(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_expire_check_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_expire_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_expire_check_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57775,10 +57889,10 @@ bool HP_pc_db_checkid(unsigned int class_) { retVal___ = HPMHooks.source.pc.db_checkid(class_); } if( HPMHooks.count.HP_pc_db_checkid_post ) { - bool (*postHookFunc) (bool retVal___, unsigned int *class_); + bool (*postHookFunc) (bool retVal___, unsigned int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_db_checkid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_db_checkid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &class_); + retVal___ = postHookFunc(retVal___, class_); } } return retVal___; @@ -57838,11 +57952,11 @@ void HP_pc_autotrade_load(void) { void HP_pc_autotrade_update(struct map_session_data *sd, enum e_pc_autotrade_update_action action) { int hIndex = 0; if( HPMHooks.count.HP_pc_autotrade_update_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_pc_autotrade_update_action *action); + void (*preHookFunc) (struct map_session_data **sd, enum e_pc_autotrade_update_action *action); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_update_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_autotrade_update_pre[hIndex].func; - preHookFunc(sd, &action); + preHookFunc(&sd, &action); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57853,10 +57967,10 @@ void HP_pc_autotrade_update(struct map_session_data *sd, enum e_pc_autotrade_upd HPMHooks.source.pc.autotrade_update(sd, action); } if( HPMHooks.count.HP_pc_autotrade_update_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_pc_autotrade_update_action *action); + void (*postHookFunc) (struct map_session_data *sd, enum e_pc_autotrade_update_action action); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_update_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_autotrade_update_post[hIndex].func; - postHookFunc(sd, &action); + postHookFunc(sd, action); } } return; @@ -57864,11 +57978,11 @@ void HP_pc_autotrade_update(struct map_session_data *sd, enum e_pc_autotrade_upd void HP_pc_autotrade_start(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_autotrade_start_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_autotrade_start_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57890,11 +58004,11 @@ void HP_pc_autotrade_start(struct map_session_data *sd) { void HP_pc_autotrade_prepare(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_autotrade_prepare_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_prepare_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_autotrade_prepare_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57916,11 +58030,11 @@ void HP_pc_autotrade_prepare(struct map_session_data *sd) { void HP_pc_autotrade_populate(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_pc_autotrade_populate_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_populate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_autotrade_populate_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -57939,16 +58053,16 @@ void HP_pc_autotrade_populate(struct map_session_data *sd) { } return; } -int HP_pc_autotrade_final(DBKey key, DBData *data, va_list ap) { +int HP_pc_autotrade_final(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_autotrade_final_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_final_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pc_autotrade_final_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -57962,11 +58076,11 @@ int HP_pc_autotrade_final(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_pc_autotrade_final_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autotrade_final_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_pc_autotrade_final_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -57976,11 +58090,11 @@ int HP_pc_check_job_name(const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_check_job_name_pre ) { - int (*preHookFunc) (const char *name); + int (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_job_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_check_job_name_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58002,11 +58116,11 @@ int HP_pc_check_job_name(const char *name) { void HP_pc_update_idle_time(struct map_session_data *sd, enum e_battle_config_idletime type) { int hIndex = 0; if( HPMHooks.count.HP_pc_update_idle_time_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_battle_config_idletime *type); + void (*preHookFunc) (struct map_session_data **sd, enum e_battle_config_idletime *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_update_idle_time_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_update_idle_time_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58017,10 +58131,10 @@ void HP_pc_update_idle_time(struct map_session_data *sd, enum e_battle_config_id HPMHooks.source.pc.update_idle_time(sd, type); } if( HPMHooks.count.HP_pc_update_idle_time_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_battle_config_idletime *type); + void (*postHookFunc) (struct map_session_data *sd, enum e_battle_config_idletime type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_update_idle_time_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pc_update_idle_time_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -58029,11 +58143,11 @@ int HP_pc_have_magnifier(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pc_have_magnifier_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_have_magnifier_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pc_have_magnifier_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58052,16 +58166,69 @@ int HP_pc_have_magnifier(struct map_session_data *sd) { } return retVal___; } -/* libpcre */ +bool HP_pc_process_chat_message(struct map_session_data *sd, const char *message) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_pc_process_chat_message_pre ) { + bool (*preHookFunc) (struct map_session_data **sd, const char **message); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pc_process_chat_message_pre[hIndex].func; + retVal___ = preHookFunc(&sd, &message); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.pc.process_chat_message(sd, message); + } + if( HPMHooks.count.HP_pc_process_chat_message_post ) { + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *message); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pc_process_chat_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, message); + } + } + return retVal___; +} +void HP_pc_check_supernovice_call(struct map_session_data *sd, const char *message) { + int hIndex = 0; + if( HPMHooks.count.HP_pc_check_supernovice_call_pre ) { + void (*preHookFunc) (struct map_session_data **sd, const char **message); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_pre[hIndex].func; + preHookFunc(&sd, &message); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pc.check_supernovice_call(sd, message); + } + if( HPMHooks.count.HP_pc_check_supernovice_call_post ) { + void (*postHookFunc) (struct map_session_data *sd, const char *message); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_post[hIndex].func; + postHookFunc(sd, message); + } + } + return; +} +/* pcre_interface */ pcre* HP_libpcre_compile(const char *pattern, int options, const char **errptr, int *erroffset, const unsigned char *tableptr) { int hIndex = 0; pcre* retVal___ = NULL; if( HPMHooks.count.HP_libpcre_compile_pre ) { - pcre* (*preHookFunc) (const char *pattern, int *options, const char **errptr, int *erroffset, const unsigned char *tableptr); + pcre* (*preHookFunc) (const char **pattern, int *options, const char ***errptr, int **erroffset, const unsigned char **tableptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_compile_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_compile_pre[hIndex].func; - retVal___ = preHookFunc(pattern, &options, errptr, erroffset, tableptr); + retVal___ = preHookFunc(&pattern, &options, &errptr, &erroffset, &tableptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58072,10 +58239,10 @@ pcre* HP_libpcre_compile(const char *pattern, int options, const char **errptr, retVal___ = HPMHooks.source.libpcre.compile(pattern, options, errptr, erroffset, tableptr); } if( HPMHooks.count.HP_libpcre_compile_post ) { - pcre* (*postHookFunc) (pcre* retVal___, const char *pattern, int *options, const char **errptr, int *erroffset, const unsigned char *tableptr); + pcre* (*postHookFunc) (pcre* retVal___, const char *pattern, int options, const char **errptr, int *erroffset, const unsigned char *tableptr); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_compile_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_compile_post[hIndex].func; - retVal___ = postHookFunc(retVal___, pattern, &options, errptr, erroffset, tableptr); + retVal___ = postHookFunc(retVal___, pattern, options, errptr, erroffset, tableptr); } } return retVal___; @@ -58084,11 +58251,11 @@ pcre_extra* HP_libpcre_study(const pcre *code, int options, const char **errptr) int hIndex = 0; pcre_extra* retVal___ = NULL; if( HPMHooks.count.HP_libpcre_study_pre ) { - pcre_extra* (*preHookFunc) (const pcre *code, int *options, const char **errptr); + pcre_extra* (*preHookFunc) (const pcre **code, int *options, const char ***errptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_study_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_study_pre[hIndex].func; - retVal___ = preHookFunc(code, &options, errptr); + retVal___ = preHookFunc(&code, &options, &errptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58099,10 +58266,10 @@ pcre_extra* HP_libpcre_study(const pcre *code, int options, const char **errptr) retVal___ = HPMHooks.source.libpcre.study(code, options, errptr); } if( HPMHooks.count.HP_libpcre_study_post ) { - pcre_extra* (*postHookFunc) (pcre_extra* retVal___, const pcre *code, int *options, const char **errptr); + pcre_extra* (*postHookFunc) (pcre_extra* retVal___, const pcre *code, int options, const char **errptr); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_study_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_study_post[hIndex].func; - retVal___ = postHookFunc(retVal___, code, &options, errptr); + retVal___ = postHookFunc(retVal___, code, options, errptr); } } return retVal___; @@ -58111,11 +58278,11 @@ int HP_libpcre_exec(const pcre *code, const pcre_extra *extra, PCRE_SPTR subject int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libpcre_exec_pre ) { - int (*preHookFunc) (const pcre *code, const pcre_extra *extra, PCRE_SPTR *subject, int *length, int *startoffset, int *options, int *ovector, int *ovecsize); + int (*preHookFunc) (const pcre **code, const pcre_extra **extra, PCRE_SPTR *subject, int *length, int *startoffset, int *options, int **ovector, int *ovecsize); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_exec_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_exec_pre[hIndex].func; - retVal___ = preHookFunc(code, extra, &subject, &length, &startoffset, &options, ovector, &ovecsize); + retVal___ = preHookFunc(&code, &extra, &subject, &length, &startoffset, &options, &ovector, &ovecsize); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58126,10 +58293,10 @@ int HP_libpcre_exec(const pcre *code, const pcre_extra *extra, PCRE_SPTR subject retVal___ = HPMHooks.source.libpcre.exec(code, extra, subject, length, startoffset, options, ovector, ovecsize); } if( HPMHooks.count.HP_libpcre_exec_post ) { - int (*postHookFunc) (int retVal___, const pcre *code, const pcre_extra *extra, PCRE_SPTR *subject, int *length, int *startoffset, int *options, int *ovector, int *ovecsize); + int (*postHookFunc) (int retVal___, const pcre *code, const pcre_extra *extra, PCRE_SPTR subject, int length, int startoffset, int options, int *ovector, int ovecsize); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_exec_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_exec_post[hIndex].func; - retVal___ = postHookFunc(retVal___, code, extra, &subject, &length, &startoffset, &options, ovector, &ovecsize); + retVal___ = postHookFunc(retVal___, code, extra, subject, length, startoffset, options, ovector, ovecsize); } } return retVal___; @@ -58137,11 +58304,11 @@ int HP_libpcre_exec(const pcre *code, const pcre_extra *extra, PCRE_SPTR subject void HP_libpcre_free(void *ptr) { int hIndex = 0; if( HPMHooks.count.HP_libpcre_free_pre ) { - void (*preHookFunc) (void *ptr); + void (*preHookFunc) (void **ptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_free_pre[hIndex].func; - preHookFunc(ptr); + preHookFunc(&ptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58164,11 +58331,11 @@ int HP_libpcre_copy_substring(const char *subject, int *ovector, int stringcount int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libpcre_copy_substring_pre ) { - int (*preHookFunc) (const char *subject, int *ovector, int *stringcount, int *stringnumber, char *buffer, int *buffersize); + int (*preHookFunc) (const char **subject, int **ovector, int *stringcount, int *stringnumber, char **buffer, int *buffersize); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_copy_substring_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_copy_substring_pre[hIndex].func; - retVal___ = preHookFunc(subject, ovector, &stringcount, &stringnumber, buffer, &buffersize); + retVal___ = preHookFunc(&subject, &ovector, &stringcount, &stringnumber, &buffer, &buffersize); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58179,10 +58346,10 @@ int HP_libpcre_copy_substring(const char *subject, int *ovector, int stringcount retVal___ = HPMHooks.source.libpcre.copy_substring(subject, ovector, stringcount, stringnumber, buffer, buffersize); } if( HPMHooks.count.HP_libpcre_copy_substring_post ) { - int (*postHookFunc) (int retVal___, const char *subject, int *ovector, int *stringcount, int *stringnumber, char *buffer, int *buffersize); + int (*postHookFunc) (int retVal___, const char *subject, int *ovector, int stringcount, int stringnumber, char *buffer, int buffersize); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_copy_substring_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_copy_substring_post[hIndex].func; - retVal___ = postHookFunc(retVal___, subject, ovector, &stringcount, &stringnumber, buffer, &buffersize); + retVal___ = postHookFunc(retVal___, subject, ovector, stringcount, stringnumber, buffer, buffersize); } } return retVal___; @@ -58190,11 +58357,11 @@ int HP_libpcre_copy_substring(const char *subject, int *ovector, int stringcount void HP_libpcre_free_substring(const char *stringptr) { int hIndex = 0; if( HPMHooks.count.HP_libpcre_free_substring_pre ) { - void (*preHookFunc) (const char *stringptr); + void (*preHookFunc) (const char **stringptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_free_substring_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_free_substring_pre[hIndex].func; - preHookFunc(stringptr); + preHookFunc(&stringptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58217,11 +58384,11 @@ int HP_libpcre_copy_named_substring(const pcre *code, const char *subject, int * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libpcre_copy_named_substring_pre ) { - int (*preHookFunc) (const pcre *code, const char *subject, int *ovector, int *stringcount, const char *stringname, char *buffer, int *buffersize); + int (*preHookFunc) (const pcre **code, const char **subject, int **ovector, int *stringcount, const char **stringname, char **buffer, int *buffersize); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_copy_named_substring_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_copy_named_substring_pre[hIndex].func; - retVal___ = preHookFunc(code, subject, ovector, &stringcount, stringname, buffer, &buffersize); + retVal___ = preHookFunc(&code, &subject, &ovector, &stringcount, &stringname, &buffer, &buffersize); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58232,10 +58399,10 @@ int HP_libpcre_copy_named_substring(const pcre *code, const char *subject, int * retVal___ = HPMHooks.source.libpcre.copy_named_substring(code, subject, ovector, stringcount, stringname, buffer, buffersize); } if( HPMHooks.count.HP_libpcre_copy_named_substring_post ) { - int (*postHookFunc) (int retVal___, const pcre *code, const char *subject, int *ovector, int *stringcount, const char *stringname, char *buffer, int *buffersize); + int (*postHookFunc) (int retVal___, const pcre *code, const char *subject, int *ovector, int stringcount, const char *stringname, char *buffer, int buffersize); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_copy_named_substring_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_copy_named_substring_post[hIndex].func; - retVal___ = postHookFunc(retVal___, code, subject, ovector, &stringcount, stringname, buffer, &buffersize); + retVal___ = postHookFunc(retVal___, code, subject, ovector, stringcount, stringname, buffer, buffersize); } } return retVal___; @@ -58244,11 +58411,11 @@ int HP_libpcre_get_substring(const char *subject, int *ovector, int stringcount, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_libpcre_get_substring_pre ) { - int (*preHookFunc) (const char *subject, int *ovector, int *stringcount, int *stringnumber, const char **stringptr); + int (*preHookFunc) (const char **subject, int **ovector, int *stringcount, int *stringnumber, const char ***stringptr); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_get_substring_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_libpcre_get_substring_pre[hIndex].func; - retVal___ = preHookFunc(subject, ovector, &stringcount, &stringnumber, stringptr); + retVal___ = preHookFunc(&subject, &ovector, &stringcount, &stringnumber, &stringptr); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58259,15 +58426,15 @@ int HP_libpcre_get_substring(const char *subject, int *ovector, int stringcount, retVal___ = HPMHooks.source.libpcre.get_substring(subject, ovector, stringcount, stringnumber, stringptr); } if( HPMHooks.count.HP_libpcre_get_substring_post ) { - int (*postHookFunc) (int retVal___, const char *subject, int *ovector, int *stringcount, int *stringnumber, const char **stringptr); + int (*postHookFunc) (int retVal___, const char *subject, int *ovector, int stringcount, int stringnumber, const char **stringptr); for(hIndex = 0; hIndex < HPMHooks.count.HP_libpcre_get_substring_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_libpcre_get_substring_post[hIndex].func; - retVal___ = postHookFunc(retVal___, subject, ovector, &stringcount, &stringnumber, stringptr); + retVal___ = postHookFunc(retVal___, subject, ovector, stringcount, stringnumber, stringptr); } } return retVal___; } -/* pet */ +/* pet_interface */ int HP_pet_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -58287,10 +58454,10 @@ int HP_pet_init(bool minimal) { retVal___ = HPMHooks.source.pet.init(minimal); } if( HPMHooks.count.HP_pet_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -58326,11 +58493,11 @@ int HP_pet_hungry_val(struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_hungry_val_pre ) { - int (*preHookFunc) (struct pet_data *pd); + int (*preHookFunc) (struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_val_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_hungry_val_pre[hIndex].func; - retVal___ = preHookFunc(pd); + retVal___ = preHookFunc(&pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58352,11 +58519,11 @@ int HP_pet_hungry_val(struct pet_data *pd) { void HP_pet_set_intimate(struct pet_data *pd, int value) { int hIndex = 0; if( HPMHooks.count.HP_pet_set_intimate_pre ) { - void (*preHookFunc) (struct pet_data *pd, int *value); + void (*preHookFunc) (struct pet_data **pd, int *value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_set_intimate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_set_intimate_pre[hIndex].func; - preHookFunc(pd, &value); + preHookFunc(&pd, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58367,10 +58534,10 @@ void HP_pet_set_intimate(struct pet_data *pd, int value) { HPMHooks.source.pet.set_intimate(pd, value); } if( HPMHooks.count.HP_pet_set_intimate_post ) { - void (*postHookFunc) (struct pet_data *pd, int *value); + void (*postHookFunc) (struct pet_data *pd, int value); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_set_intimate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_set_intimate_post[hIndex].func; - postHookFunc(pd, &value); + postHookFunc(pd, value); } } return; @@ -58379,11 +58546,11 @@ int HP_pet_create_egg(struct map_session_data *sd, int item_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_create_egg_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *item_id); + int (*preHookFunc) (struct map_session_data **sd, int *item_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_create_egg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_create_egg_pre[hIndex].func; - retVal___ = preHookFunc(sd, &item_id); + retVal___ = preHookFunc(&sd, &item_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58394,10 +58561,10 @@ int HP_pet_create_egg(struct map_session_data *sd, int item_id) { retVal___ = HPMHooks.source.pet.create_egg(sd, item_id); } if( HPMHooks.count.HP_pet_create_egg_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *item_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int item_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_create_egg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_create_egg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &item_id); + retVal___ = postHookFunc(retVal___, sd, item_id); } } return retVal___; @@ -58406,11 +58573,11 @@ int HP_pet_unlocktarget(struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_unlocktarget_pre ) { - int (*preHookFunc) (struct pet_data *pd); + int (*preHookFunc) (struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_unlocktarget_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_unlocktarget_pre[hIndex].func; - retVal___ = preHookFunc(pd); + retVal___ = preHookFunc(&pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58433,11 +58600,11 @@ int HP_pet_attackskill(struct pet_data *pd, int target_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_attackskill_pre ) { - int (*preHookFunc) (struct pet_data *pd, int *target_id); + int (*preHookFunc) (struct pet_data **pd, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_attackskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_attackskill_pre[hIndex].func; - retVal___ = preHookFunc(pd, &target_id); + retVal___ = preHookFunc(&pd, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58448,10 +58615,10 @@ int HP_pet_attackskill(struct pet_data *pd, int target_id) { retVal___ = HPMHooks.source.pet.attackskill(pd, target_id); } if( HPMHooks.count.HP_pet_attackskill_post ) { - int (*postHookFunc) (int retVal___, struct pet_data *pd, int *target_id); + int (*postHookFunc) (int retVal___, struct pet_data *pd, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_attackskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_attackskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, pd, &target_id); + retVal___ = postHookFunc(retVal___, pd, target_id); } } return retVal___; @@ -58460,11 +58627,11 @@ int HP_pet_target_check(struct map_session_data *sd, struct block_list *bl, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_target_check_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, int *type); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_target_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_target_check_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl, &type); + retVal___ = preHookFunc(&sd, &bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58475,10 +58642,10 @@ int HP_pet_target_check(struct map_session_data *sd, struct block_list *bl, int retVal___ = HPMHooks.source.pet.target_check(sd, bl, type); } if( HPMHooks.count.HP_pet_target_check_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_target_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_target_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, bl, &type); + retVal___ = postHookFunc(retVal___, sd, bl, type); } } return retVal___; @@ -58487,11 +58654,11 @@ int HP_pet_sc_check(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_sc_check_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_sc_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_sc_check_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58502,10 +58669,10 @@ int HP_pet_sc_check(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.pet.sc_check(sd, type); } if( HPMHooks.count.HP_pet_sc_check_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_sc_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_sc_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -58529,10 +58696,10 @@ int HP_pet_hungry(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.hungry(tid, tick, id, data); } if( HPMHooks.count.HP_pet_hungry_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_hungry_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -58556,10 +58723,10 @@ int HP_pet_search_petDB_index(int key, int type) { retVal___ = HPMHooks.source.pet.search_petDB_index(key, type); } if( HPMHooks.count.HP_pet_search_petDB_index_post ) { - int (*postHookFunc) (int retVal___, int *key, int *type); + int (*postHookFunc) (int retVal___, int key, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_search_petDB_index_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_search_petDB_index_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, &type); + retVal___ = postHookFunc(retVal___, key, type); } } return retVal___; @@ -58568,11 +58735,11 @@ int HP_pet_hungry_timer_delete(struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_hungry_timer_delete_pre ) { - int (*preHookFunc) (struct pet_data *pd); + int (*preHookFunc) (struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_timer_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_hungry_timer_delete_pre[hIndex].func; - retVal___ = preHookFunc(pd); + retVal___ = preHookFunc(&pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58595,11 +58762,11 @@ int HP_pet_performance(struct map_session_data *sd, struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_performance_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd); + int (*preHookFunc) (struct map_session_data **sd, struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_performance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_performance_pre[hIndex].func; - retVal___ = preHookFunc(sd, pd); + retVal___ = preHookFunc(&sd, &pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58622,11 +58789,11 @@ int HP_pet_return_egg(struct map_session_data *sd, struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_return_egg_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd); + int (*preHookFunc) (struct map_session_data **sd, struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_return_egg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_return_egg_pre[hIndex].func; - retVal___ = preHookFunc(sd, pd); + retVal___ = preHookFunc(&sd, &pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58649,11 +58816,11 @@ int HP_pet_data_init(struct map_session_data *sd, struct s_pet *petinfo) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_data_init_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct s_pet *petinfo); + int (*preHookFunc) (struct map_session_data **sd, struct s_pet **petinfo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_data_init_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_data_init_pre[hIndex].func; - retVal___ = preHookFunc(sd, petinfo); + retVal___ = preHookFunc(&sd, &petinfo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58676,11 +58843,11 @@ int HP_pet_birth_process(struct map_session_data *sd, struct s_pet *petinfo) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_birth_process_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct s_pet *petinfo); + int (*preHookFunc) (struct map_session_data **sd, struct s_pet **petinfo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_birth_process_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_birth_process_pre[hIndex].func; - retVal___ = preHookFunc(sd, petinfo); + retVal___ = preHookFunc(&sd, &petinfo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58703,11 +58870,11 @@ int HP_pet_recv_petdata(int account_id, struct s_pet *p, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_recv_petdata_pre ) { - int (*preHookFunc) (int *account_id, struct s_pet *p, int *flag); + int (*preHookFunc) (int *account_id, struct s_pet **p, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_recv_petdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_recv_petdata_pre[hIndex].func; - retVal___ = preHookFunc(&account_id, p, &flag); + retVal___ = preHookFunc(&account_id, &p, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58718,10 +58885,10 @@ int HP_pet_recv_petdata(int account_id, struct s_pet *p, int flag) { retVal___ = HPMHooks.source.pet.recv_petdata(account_id, p, flag); } if( HPMHooks.count.HP_pet_recv_petdata_post ) { - int (*postHookFunc) (int retVal___, int *account_id, struct s_pet *p, int *flag); + int (*postHookFunc) (int retVal___, int account_id, struct s_pet *p, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_recv_petdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_recv_petdata_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, p, &flag); + retVal___ = postHookFunc(retVal___, account_id, p, flag); } } return retVal___; @@ -58730,11 +58897,11 @@ int HP_pet_select_egg(struct map_session_data *sd, short egg_index) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_select_egg_pre ) { - int (*preHookFunc) (struct map_session_data *sd, short *egg_index); + int (*preHookFunc) (struct map_session_data **sd, short *egg_index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_select_egg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_select_egg_pre[hIndex].func; - retVal___ = preHookFunc(sd, &egg_index); + retVal___ = preHookFunc(&sd, &egg_index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58745,10 +58912,10 @@ int HP_pet_select_egg(struct map_session_data *sd, short egg_index) { retVal___ = HPMHooks.source.pet.select_egg(sd, egg_index); } if( HPMHooks.count.HP_pet_select_egg_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, short *egg_index); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, short egg_index); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_select_egg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_select_egg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &egg_index); + retVal___ = postHookFunc(retVal___, sd, egg_index); } } return retVal___; @@ -58757,11 +58924,11 @@ int HP_pet_catch_process1(struct map_session_data *sd, int target_class) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_catch_process1_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *target_class); + int (*preHookFunc) (struct map_session_data **sd, int *target_class); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process1_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_catch_process1_pre[hIndex].func; - retVal___ = preHookFunc(sd, &target_class); + retVal___ = preHookFunc(&sd, &target_class); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58772,10 +58939,10 @@ int HP_pet_catch_process1(struct map_session_data *sd, int target_class) { retVal___ = HPMHooks.source.pet.catch_process1(sd, target_class); } if( HPMHooks.count.HP_pet_catch_process1_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *target_class); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int target_class); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process1_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_catch_process1_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &target_class); + retVal___ = postHookFunc(retVal___, sd, target_class); } } return retVal___; @@ -58784,11 +58951,11 @@ int HP_pet_catch_process2(struct map_session_data *sd, int target_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_catch_process2_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *target_id); + int (*preHookFunc) (struct map_session_data **sd, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_catch_process2_pre[hIndex].func; - retVal___ = preHookFunc(sd, &target_id); + retVal___ = preHookFunc(&sd, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58799,10 +58966,10 @@ int HP_pet_catch_process2(struct map_session_data *sd, int target_id) { retVal___ = HPMHooks.source.pet.catch_process2(sd, target_id); } if( HPMHooks.count.HP_pet_catch_process2_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *target_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_catch_process2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &target_id); + retVal___ = postHookFunc(retVal___, sd, target_id); } } return retVal___; @@ -58826,10 +58993,10 @@ bool HP_pet_get_egg(int account_id, short pet_class, int pet_id) { retVal___ = HPMHooks.source.pet.get_egg(account_id, pet_class, pet_id); } if( HPMHooks.count.HP_pet_get_egg_post ) { - bool (*postHookFunc) (bool retVal___, int *account_id, short *pet_class, int *pet_id); + bool (*postHookFunc) (bool retVal___, int account_id, short pet_class, int pet_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_get_egg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_get_egg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &account_id, &pet_class, &pet_id); + retVal___ = postHookFunc(retVal___, account_id, pet_class, pet_id); } } return retVal___; @@ -58838,11 +59005,11 @@ int HP_pet_unequipitem(struct map_session_data *sd, struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_unequipitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd); + int (*preHookFunc) (struct map_session_data **sd, struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_unequipitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_unequipitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, pd); + retVal___ = preHookFunc(&sd, &pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58865,11 +59032,11 @@ int HP_pet_food(struct map_session_data *sd, struct pet_data *pd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_food_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd); + int (*preHookFunc) (struct map_session_data **sd, struct pet_data **pd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_food_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_food_pre[hIndex].func; - retVal___ = preHookFunc(sd, pd); + retVal___ = preHookFunc(&sd, &pd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58892,12 +59059,12 @@ int HP_pet_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_ai_sub_hard_lootsearch_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_hard_lootsearch_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pet_ai_sub_hard_lootsearch_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -58925,11 +59092,11 @@ int HP_pet_menu(struct map_session_data *sd, int menunum) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_menu_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *menunum); + int (*preHookFunc) (struct map_session_data **sd, int *menunum); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_menu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_menu_pre[hIndex].func; - retVal___ = preHookFunc(sd, &menunum); + retVal___ = preHookFunc(&sd, &menunum); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58940,10 +59107,10 @@ int HP_pet_menu(struct map_session_data *sd, int menunum) { retVal___ = HPMHooks.source.pet.menu(sd, menunum); } if( HPMHooks.count.HP_pet_menu_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *menunum); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int menunum); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_menu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_menu_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &menunum); + retVal___ = postHookFunc(retVal___, sd, menunum); } } return retVal___; @@ -58952,11 +59119,11 @@ int HP_pet_change_name(struct map_session_data *sd, const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_change_name_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name); + int (*preHookFunc) (struct map_session_data **sd, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_change_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_change_name_pre[hIndex].func; - retVal___ = preHookFunc(sd, name); + retVal___ = preHookFunc(&sd, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58979,11 +59146,11 @@ int HP_pet_change_name_ack(struct map_session_data *sd, const char *name, int fl int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_change_name_ack_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const char *name, int *flag); + int (*preHookFunc) (struct map_session_data **sd, const char **name, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_change_name_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_change_name_ack_pre[hIndex].func; - retVal___ = preHookFunc(sd, name, &flag); + retVal___ = preHookFunc(&sd, &name, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -58994,10 +59161,10 @@ int HP_pet_change_name_ack(struct map_session_data *sd, const char *name, int fl retVal___ = HPMHooks.source.pet.change_name_ack(sd, name, flag); } if( HPMHooks.count.HP_pet_change_name_ack_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int *flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, const char *name, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_change_name_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_change_name_ack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, name, &flag); + retVal___ = postHookFunc(retVal___, sd, name, flag); } } return retVal___; @@ -59006,11 +59173,11 @@ int HP_pet_equipitem(struct map_session_data *sd, int index) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_equipitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index); + int (*preHookFunc) (struct map_session_data **sd, int *index); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_equipitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_equipitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index); + retVal___ = preHookFunc(&sd, &index); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59021,10 +59188,10 @@ int HP_pet_equipitem(struct map_session_data *sd, int index) { retVal___ = HPMHooks.source.pet.equipitem(sd, index); } if( HPMHooks.count.HP_pet_equipitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_equipitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_equipitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index); + retVal___ = postHookFunc(retVal___, sd, index); } } return retVal___; @@ -59033,11 +59200,11 @@ int HP_pet_randomwalk(struct pet_data *pd, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_randomwalk_pre ) { - int (*preHookFunc) (struct pet_data *pd, int64 *tick); + int (*preHookFunc) (struct pet_data **pd, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_randomwalk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_randomwalk_pre[hIndex].func; - retVal___ = preHookFunc(pd, &tick); + retVal___ = preHookFunc(&pd, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59048,10 +59215,10 @@ int HP_pet_randomwalk(struct pet_data *pd, int64 tick) { retVal___ = HPMHooks.source.pet.randomwalk(pd, tick); } if( HPMHooks.count.HP_pet_randomwalk_post ) { - int (*postHookFunc) (int retVal___, struct pet_data *pd, int64 *tick); + int (*postHookFunc) (int retVal___, struct pet_data *pd, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_randomwalk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_randomwalk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, pd, &tick); + retVal___ = postHookFunc(retVal___, pd, tick); } } return retVal___; @@ -59060,11 +59227,11 @@ int HP_pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, int64 t int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_ai_sub_hard_pre ) { - int (*preHookFunc) (struct pet_data *pd, struct map_session_data *sd, int64 *tick); + int (*preHookFunc) (struct pet_data **pd, struct map_session_data **sd, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_hard_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_ai_sub_hard_pre[hIndex].func; - retVal___ = preHookFunc(pd, sd, &tick); + retVal___ = preHookFunc(&pd, &sd, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59075,10 +59242,10 @@ int HP_pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, int64 t retVal___ = HPMHooks.source.pet.ai_sub_hard(pd, sd, tick); } if( HPMHooks.count.HP_pet_ai_sub_hard_post ) { - int (*postHookFunc) (int retVal___, struct pet_data *pd, struct map_session_data *sd, int64 *tick); + int (*postHookFunc) (int retVal___, struct pet_data *pd, struct map_session_data *sd, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_hard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_ai_sub_hard_post[hIndex].func; - retVal___ = postHookFunc(retVal___, pd, sd, &tick); + retVal___ = postHookFunc(retVal___, pd, sd, tick); } } return retVal___; @@ -59087,12 +59254,12 @@ int HP_pet_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_ai_sub_foreachclient_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_foreachclient_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_pet_ai_sub_foreachclient_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -59135,10 +59302,10 @@ int HP_pet_ai_hard(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.ai_hard(tid, tick, id, data); } if( HPMHooks.count.HP_pet_ai_hard_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_hard_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_ai_hard_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -59162,10 +59329,10 @@ int HP_pet_delay_item_drop(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.delay_item_drop(tid, tick, id, data); } if( HPMHooks.count.HP_pet_delay_item_drop_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_delay_item_drop_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_delay_item_drop_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -59174,11 +59341,11 @@ int HP_pet_lootitem_drop(struct pet_data *pd, struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_pet_lootitem_drop_pre ) { - int (*preHookFunc) (struct pet_data *pd, struct map_session_data *sd); + int (*preHookFunc) (struct pet_data **pd, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_lootitem_drop_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_pet_lootitem_drop_pre[hIndex].func; - retVal___ = preHookFunc(pd, sd); + retVal___ = preHookFunc(&pd, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59216,10 +59383,10 @@ int HP_pet_skill_bonus_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.skill_bonus_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pet_skill_bonus_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_skill_bonus_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_skill_bonus_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -59243,10 +59410,10 @@ int HP_pet_recovery_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.recovery_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pet_recovery_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_recovery_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_recovery_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -59270,10 +59437,10 @@ int HP_pet_skill_support_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.pet.skill_support_timer(tid, tick, id, data); } if( HPMHooks.count.HP_pet_skill_support_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_skill_support_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_pet_skill_support_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -59305,7 +59472,7 @@ int HP_pet_read_db(void) { } return retVal___; } -/* quest */ +/* quest_interface */ void HP_quest_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_quest_init_pre ) { @@ -59324,10 +59491,10 @@ void HP_quest_init(bool minimal) { HPMHooks.source.quest.init(minimal); } if( HPMHooks.count.HP_quest_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -59403,10 +59570,10 @@ struct quest_db* HP_quest_db(int quest_id) { retVal___ = HPMHooks.source.quest.db(quest_id); } if( HPMHooks.count.HP_quest_db_post ) { - struct quest_db* (*postHookFunc) (struct quest_db* retVal___, int *quest_id); + struct quest_db* (*postHookFunc) (struct quest_db* retVal___, int quest_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_db_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_db_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &quest_id); + retVal___ = postHookFunc(retVal___, quest_id); } } return retVal___; @@ -59415,11 +59582,11 @@ int HP_quest_pc_login(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_pc_login_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_pc_login_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_pc_login_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59442,11 +59609,11 @@ int HP_quest_add(struct map_session_data *sd, int quest_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_add_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *quest_id); + int (*preHookFunc) (struct map_session_data **sd, int *quest_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_add_pre[hIndex].func; - retVal___ = preHookFunc(sd, &quest_id); + retVal___ = preHookFunc(&sd, &quest_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59457,10 +59624,10 @@ int HP_quest_add(struct map_session_data *sd, int quest_id) { retVal___ = HPMHooks.source.quest.add(sd, quest_id); } if( HPMHooks.count.HP_quest_add_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *quest_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &quest_id); + retVal___ = postHookFunc(retVal___, sd, quest_id); } } return retVal___; @@ -59469,11 +59636,11 @@ int HP_quest_change(struct map_session_data *sd, int qid1, int qid2) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_change_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *qid1, int *qid2); + int (*preHookFunc) (struct map_session_data **sd, int *qid1, int *qid2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_change_pre[hIndex].func; - retVal___ = preHookFunc(sd, &qid1, &qid2); + retVal___ = preHookFunc(&sd, &qid1, &qid2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59484,10 +59651,10 @@ int HP_quest_change(struct map_session_data *sd, int qid1, int qid2) { retVal___ = HPMHooks.source.quest.change(sd, qid1, qid2); } if( HPMHooks.count.HP_quest_change_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *qid1, int *qid2); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int qid1, int qid2); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_change_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &qid1, &qid2); + retVal___ = postHookFunc(retVal___, sd, qid1, qid2); } } return retVal___; @@ -59496,11 +59663,11 @@ int HP_quest_delete(struct map_session_data *sd, int quest_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_delete_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *quest_id); + int (*preHookFunc) (struct map_session_data **sd, int *quest_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_delete_pre[hIndex].func; - retVal___ = preHookFunc(sd, &quest_id); + retVal___ = preHookFunc(&sd, &quest_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59511,10 +59678,10 @@ int HP_quest_delete(struct map_session_data *sd, int quest_id) { retVal___ = HPMHooks.source.quest.delete(sd, quest_id); } if( HPMHooks.count.HP_quest_delete_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *quest_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &quest_id); + retVal___ = postHookFunc(retVal___, sd, quest_id); } } return retVal___; @@ -59523,12 +59690,12 @@ int HP_quest_update_objective_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_update_objective_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_objective_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_quest_update_objective_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -59555,11 +59722,11 @@ int HP_quest_update_objective_sub(struct block_list *bl, va_list ap) { void HP_quest_update_objective(struct map_session_data *sd, int mob_id) { int hIndex = 0; if( HPMHooks.count.HP_quest_update_objective_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *mob_id); + void (*preHookFunc) (struct map_session_data **sd, int *mob_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_objective_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_update_objective_pre[hIndex].func; - preHookFunc(sd, &mob_id); + preHookFunc(&sd, &mob_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59570,10 +59737,10 @@ void HP_quest_update_objective(struct map_session_data *sd, int mob_id) { HPMHooks.source.quest.update_objective(sd, mob_id); } if( HPMHooks.count.HP_quest_update_objective_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *mob_id); + void (*postHookFunc) (struct map_session_data *sd, int mob_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_objective_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_update_objective_post[hIndex].func; - postHookFunc(sd, &mob_id); + postHookFunc(sd, mob_id); } } return; @@ -59582,11 +59749,11 @@ int HP_quest_update_status(struct map_session_data *sd, int quest_id, enum quest int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_update_status_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *quest_id, enum quest_state *qs); + int (*preHookFunc) (struct map_session_data **sd, int *quest_id, enum quest_state *qs); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_status_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_update_status_pre[hIndex].func; - retVal___ = preHookFunc(sd, &quest_id, &qs); + retVal___ = preHookFunc(&sd, &quest_id, &qs); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59597,10 +59764,10 @@ int HP_quest_update_status(struct map_session_data *sd, int quest_id, enum quest retVal___ = HPMHooks.source.quest.update_status(sd, quest_id, qs); } if( HPMHooks.count.HP_quest_update_status_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *quest_id, enum quest_state *qs); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id, enum quest_state qs); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_status_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_update_status_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &quest_id, &qs); + retVal___ = postHookFunc(retVal___, sd, quest_id, qs); } } return retVal___; @@ -59609,11 +59776,11 @@ int HP_quest_check(struct map_session_data *sd, int quest_id, enum quest_check_t int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_quest_check_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *quest_id, enum quest_check_type *type); + int (*preHookFunc) (struct map_session_data **sd, int *quest_id, enum quest_check_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_check_pre[hIndex].func; - retVal___ = preHookFunc(sd, &quest_id, &type); + retVal___ = preHookFunc(&sd, &quest_id, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59624,10 +59791,10 @@ int HP_quest_check(struct map_session_data *sd, int quest_id, enum quest_check_t retVal___ = HPMHooks.source.quest.check(sd, quest_id, type); } if( HPMHooks.count.HP_quest_check_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *quest_id, enum quest_check_type *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id, enum quest_check_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &quest_id, &type); + retVal___ = postHookFunc(retVal___, sd, quest_id, type); } } return retVal___; @@ -59689,11 +59856,11 @@ struct quest_db* HP_quest_read_db_sub(struct config_setting_t *cs, int n, const int hIndex = 0; struct quest_db* retVal___ = NULL; if( HPMHooks.count.HP_quest_read_db_sub_pre ) { - struct quest_db* (*preHookFunc) (struct config_setting_t *cs, int *n, const char *source); + struct quest_db* (*preHookFunc) (struct config_setting_t **cs, int *n, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_read_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_quest_read_db_sub_pre[hIndex].func; - retVal___ = preHookFunc(cs, &n, source); + retVal___ = preHookFunc(&cs, &n, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59704,15 +59871,15 @@ struct quest_db* HP_quest_read_db_sub(struct config_setting_t *cs, int n, const retVal___ = HPMHooks.source.quest.read_db_sub(cs, n, source); } if( HPMHooks.count.HP_quest_read_db_sub_post ) { - struct quest_db* (*postHookFunc) (struct quest_db* retVal___, struct config_setting_t *cs, int *n, const char *source); + struct quest_db* (*postHookFunc) (struct quest_db* retVal___, struct config_setting_t *cs, int n, const char *source); for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_read_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_quest_read_db_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, cs, &n, source); + retVal___ = postHookFunc(retVal___, cs, n, source); } } return retVal___; } -/* script */ +/* script_interface */ void HP_script_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_script_init_pre ) { @@ -59731,10 +59898,10 @@ void HP_script_init(bool minimal) { HPMHooks.source.script.init(minimal); } if( HPMHooks.count.HP_script_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -59796,11 +59963,11 @@ struct script_code* HP_script_parse(const char *src, const char *file, int line, int hIndex = 0; struct script_code* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_pre ) { - struct script_code* (*preHookFunc) (const char *src, const char *file, int *line, int *options, int *retval); + struct script_code* (*preHookFunc) (const char **src, const char **file, int *line, int *options, int **retval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_pre[hIndex].func; - retVal___ = preHookFunc(src, file, &line, &options, retval); + retVal___ = preHookFunc(&src, &file, &line, &options, &retval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59811,10 +59978,10 @@ struct script_code* HP_script_parse(const char *src, const char *file, int line, retVal___ = HPMHooks.source.script.parse(src, file, line, options, retval); } if( HPMHooks.count.HP_script_parse_post ) { - struct script_code* (*postHookFunc) (struct script_code* retVal___, const char *src, const char *file, int *line, int *options, int *retval); + struct script_code* (*postHookFunc) (struct script_code* retVal___, const char *src, const char *file, int line, int options, int *retval); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, file, &line, &options, retval); + retVal___ = postHookFunc(retVal___, src, file, line, options, retval); } } return retVal___; @@ -59823,11 +59990,11 @@ bool HP_script_add_builtin(const struct script_function *buildin, bool override) int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_script_add_builtin_pre ) { - bool (*preHookFunc) (const struct script_function *buildin, bool *override); + bool (*preHookFunc) (const struct script_function **buildin, bool *override); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_builtin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_builtin_pre[hIndex].func; - retVal___ = preHookFunc(buildin, &override); + retVal___ = preHookFunc(&buildin, &override); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59838,10 +60005,10 @@ bool HP_script_add_builtin(const struct script_function *buildin, bool override) retVal___ = HPMHooks.source.script.add_builtin(buildin, override); } if( HPMHooks.count.HP_script_add_builtin_post ) { - bool (*postHookFunc) (bool retVal___, const struct script_function *buildin, bool *override); + bool (*postHookFunc) (bool retVal___, const struct script_function *buildin, bool override); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_builtin_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_add_builtin_post[hIndex].func; - retVal___ = postHookFunc(retVal___, buildin, &override); + retVal___ = postHookFunc(retVal___, buildin, override); } } return retVal___; @@ -59876,11 +60043,11 @@ const char* HP_script_parse_subexpr(const char *p, int limit) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_subexpr_pre ) { - const char* (*preHookFunc) (const char *p, int *limit); + const char* (*preHookFunc) (const char **p, int *limit); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_subexpr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_subexpr_pre[hIndex].func; - retVal___ = preHookFunc(p, &limit); + retVal___ = preHookFunc(&p, &limit); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59891,10 +60058,10 @@ const char* HP_script_parse_subexpr(const char *p, int limit) { retVal___ = HPMHooks.source.script.parse_subexpr(p, limit); } if( HPMHooks.count.HP_script_parse_subexpr_post ) { - const char* (*postHookFunc) (const char* retVal___, const char *p, int *limit); + const char* (*postHookFunc) (const char* retVal___, const char *p, int limit); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_subexpr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_parse_subexpr_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, &limit); + retVal___ = postHookFunc(retVal___, p, limit); } } return retVal___; @@ -59903,11 +60070,11 @@ const char* HP_script_skip_space(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_skip_space_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_skip_space_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_skip_space_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59929,11 +60096,11 @@ const char* HP_script_skip_space(const char *p) { void HP_script_error(const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos) { int hIndex = 0; if( HPMHooks.count.HP_script_error_pre ) { - void (*preHookFunc) (const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*preHookFunc) (const char **src, const char **file, int *start_line, const char **error_msg, const char **error_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_error_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_error_pre[hIndex].func; - preHookFunc(src, file, &start_line, error_msg, error_pos); + preHookFunc(&src, &file, &start_line, &error_msg, &error_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59944,10 +60111,10 @@ void HP_script_error(const char *src, const char *file, int start_line, const ch HPMHooks.source.script.error(src, file, start_line, error_msg, error_pos); } if( HPMHooks.count.HP_script_error_post ) { - void (*postHookFunc) (const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*postHookFunc) (const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_error_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_error_post[hIndex].func; - postHookFunc(src, file, &start_line, error_msg, error_pos); + postHookFunc(src, file, start_line, error_msg, error_pos); } } return; @@ -59955,11 +60122,11 @@ void HP_script_error(const char *src, const char *file, int start_line, const ch void HP_script_warning(const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos) { int hIndex = 0; if( HPMHooks.count.HP_script_warning_pre ) { - void (*preHookFunc) (const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*preHookFunc) (const char **src, const char **file, int *start_line, const char **error_msg, const char **error_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_warning_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_warning_pre[hIndex].func; - preHookFunc(src, file, &start_line, error_msg, error_pos); + preHookFunc(&src, &file, &start_line, &error_msg, &error_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59970,10 +60137,10 @@ void HP_script_warning(const char *src, const char *file, int start_line, const HPMHooks.source.script.warning(src, file, start_line, error_msg, error_pos); } if( HPMHooks.count.HP_script_warning_post ) { - void (*postHookFunc) (const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*postHookFunc) (const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_warning_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_warning_post[hIndex].func; - postHookFunc(src, file, &start_line, error_msg, error_pos); + postHookFunc(src, file, start_line, error_msg, error_pos); } } return; @@ -59982,11 +60149,11 @@ bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_s int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_script_addScript_pre ) { - bool (*preHookFunc) (char *name, char *args, bool ( *func ) (struct script_state *st), bool *isDeprecated); + bool (*preHookFunc) (char **name, char **args, bool ( **func ) (struct script_state *st), bool *isDeprecated); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addScript_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_addScript_pre[hIndex].func; - retVal___ = preHookFunc(name, args, func, &isDeprecated); + retVal___ = preHookFunc(&name, &args, &func, &isDeprecated); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -59997,10 +60164,10 @@ bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_s retVal___ = HPMHooks.source.script.addScript(name, args, func, isDeprecated); } if( HPMHooks.count.HP_script_addScript_post ) { - bool (*postHookFunc) (bool retVal___, char *name, char *args, bool ( *func ) (struct script_state *st), bool *isDeprecated); + bool (*postHookFunc) (bool retVal___, char *name, char *args, bool ( *func ) (struct script_state *st), bool isDeprecated); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addScript_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_addScript_post[hIndex].func; - retVal___ = postHookFunc(retVal___, name, args, func, &isDeprecated); + retVal___ = postHookFunc(retVal___, name, args, func, isDeprecated); } } return retVal___; @@ -60009,11 +60176,11 @@ int HP_script_conv_num(struct script_state *st, struct script_data *data) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_conv_num_pre ) { - int (*preHookFunc) (struct script_state *st, struct script_data *data); + int (*preHookFunc) (struct script_state **st, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_conv_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_conv_num_pre[hIndex].func; - retVal___ = preHookFunc(st, data); + retVal___ = preHookFunc(&st, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60036,11 +60203,11 @@ const char* HP_script_conv_str(struct script_state *st, struct script_data *data int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_conv_str_pre ) { - const char* (*preHookFunc) (struct script_state *st, struct script_data *data); + const char* (*preHookFunc) (struct script_state **st, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_conv_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_conv_str_pre[hIndex].func; - retVal___ = preHookFunc(st, data); + retVal___ = preHookFunc(&st, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60063,11 +60230,11 @@ struct map_session_data* HP_script_rid2sd(struct script_state *st) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_script_rid2sd_pre ) { - struct map_session_data* (*preHookFunc) (struct script_state *st); + struct map_session_data* (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_rid2sd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_rid2sd_pre[hIndex].func; - retVal___ = preHookFunc(st); + retVal___ = preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60090,11 +60257,11 @@ struct map_session_data* HP_script_id2sd(struct script_state *st, int account_id int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_script_id2sd_pre ) { - struct map_session_data* (*preHookFunc) (struct script_state *st, int *account_id); + struct map_session_data* (*preHookFunc) (struct script_state **st, int *account_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_id2sd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_id2sd_pre[hIndex].func; - retVal___ = preHookFunc(st, &account_id); + retVal___ = preHookFunc(&st, &account_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60105,10 +60272,10 @@ struct map_session_data* HP_script_id2sd(struct script_state *st, int account_id retVal___ = HPMHooks.source.script.id2sd(st, account_id); } if( HPMHooks.count.HP_script_id2sd_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, struct script_state *st, int *account_id); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, struct script_state *st, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_id2sd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_id2sd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, st, &account_id); + retVal___ = postHookFunc(retVal___, st, account_id); } } return retVal___; @@ -60117,11 +60284,11 @@ struct map_session_data* HP_script_charid2sd(struct script_state *st, int char_i int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_script_charid2sd_pre ) { - struct map_session_data* (*preHookFunc) (struct script_state *st, int *char_id); + struct map_session_data* (*preHookFunc) (struct script_state **st, int *char_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_charid2sd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_charid2sd_pre[hIndex].func; - retVal___ = preHookFunc(st, &char_id); + retVal___ = preHookFunc(&st, &char_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60132,10 +60299,10 @@ struct map_session_data* HP_script_charid2sd(struct script_state *st, int char_i retVal___ = HPMHooks.source.script.charid2sd(st, char_id); } if( HPMHooks.count.HP_script_charid2sd_post ) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, struct script_state *st, int *char_id); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, struct script_state *st, int char_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_charid2sd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_charid2sd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, st, &char_id); + retVal___ = postHookFunc(retVal___, st, char_id); } } return retVal___; @@ -60144,11 +60311,11 @@ struct map_session_data* HP_script_nick2sd(struct script_state *st, const char * int hIndex = 0; struct map_session_data* retVal___ = NULL; if( HPMHooks.count.HP_script_nick2sd_pre ) { - struct map_session_data* (*preHookFunc) (struct script_state *st, const char *name); + struct map_session_data* (*preHookFunc) (struct script_state **st, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_nick2sd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_nick2sd_pre[hIndex].func; - retVal___ = preHookFunc(st, name); + retVal___ = preHookFunc(&st, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60170,11 +60337,11 @@ struct map_session_data* HP_script_nick2sd(struct script_state *st, const char * void HP_script_detach_rid(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_detach_rid_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_detach_rid_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_detach_rid_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60197,11 +60364,11 @@ struct script_data* HP_script_push_val(struct script_stack *stack, enum c_op typ int hIndex = 0; struct script_data* retVal___ = NULL; if( HPMHooks.count.HP_script_push_val_pre ) { - struct script_data* (*preHookFunc) (struct script_stack *stack, enum c_op *type, int64 *val, struct reg_db *ref); + struct script_data* (*preHookFunc) (struct script_stack **stack, enum c_op *type, int64 *val, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_val_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_push_val_pre[hIndex].func; - retVal___ = preHookFunc(stack, &type, &val, ref); + retVal___ = preHookFunc(&stack, &type, &val, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60212,10 +60379,10 @@ struct script_data* HP_script_push_val(struct script_stack *stack, enum c_op typ retVal___ = HPMHooks.source.script.push_val(stack, type, val, ref); } if( HPMHooks.count.HP_script_push_val_post ) { - struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, enum c_op *type, int64 *val, struct reg_db *ref); + struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, enum c_op type, int64 val, struct reg_db *ref); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_val_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_push_val_post[hIndex].func; - retVal___ = postHookFunc(retVal___, stack, &type, &val, ref); + retVal___ = postHookFunc(retVal___, stack, type, val, ref); } } return retVal___; @@ -60224,11 +60391,11 @@ struct script_data* HP_script_get_val(struct script_state *st, struct script_dat int hIndex = 0; struct script_data* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val_pre ) { - struct script_data* (*preHookFunc) (struct script_state *st, struct script_data *data); + struct script_data* (*preHookFunc) (struct script_state **st, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_pre[hIndex].func; - retVal___ = preHookFunc(st, data); + retVal___ = preHookFunc(&st, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60251,11 +60418,11 @@ char* HP_script_get_val_ref_str(struct script_state *st, struct reg_db *n, struc int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val_ref_str_pre ) { - char* (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + char* (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_ref_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_ref_str_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60278,11 +60445,11 @@ char* HP_script_get_val_scope_str(struct script_state *st, struct reg_db *n, str int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val_scope_str_pre ) { - char* (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + char* (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_scope_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_scope_str_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60305,11 +60472,11 @@ char* HP_script_get_val_npc_str(struct script_state *st, struct reg_db *n, struc int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val_npc_str_pre ) { - char* (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + char* (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_npc_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_npc_str_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60332,11 +60499,11 @@ char* HP_script_get_val_instance_str(struct script_state *st, const char *name, int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val_instance_str_pre ) { - char* (*preHookFunc) (struct script_state *st, const char *name, struct script_data *data); + char* (*preHookFunc) (struct script_state **st, const char **name, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_instance_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_instance_str_pre[hIndex].func; - retVal___ = preHookFunc(st, name, data); + retVal___ = preHookFunc(&st, &name, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60359,11 +60526,11 @@ int HP_script_get_val_ref_num(struct script_state *st, struct reg_db *n, struct int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_get_val_ref_num_pre ) { - int (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + int (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_ref_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_ref_num_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60386,11 +60553,11 @@ int HP_script_get_val_scope_num(struct script_state *st, struct reg_db *n, struc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_get_val_scope_num_pre ) { - int (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + int (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_scope_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_scope_num_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60413,11 +60580,11 @@ int HP_script_get_val_npc_num(struct script_state *st, struct reg_db *n, struct int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_get_val_npc_num_pre ) { - int (*preHookFunc) (struct script_state *st, struct reg_db *n, struct script_data *data); + int (*preHookFunc) (struct script_state **st, struct reg_db **n, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_npc_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_npc_num_pre[hIndex].func; - retVal___ = preHookFunc(st, n, data); + retVal___ = preHookFunc(&st, &n, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60440,11 +60607,11 @@ int HP_script_get_val_instance_num(struct script_state *st, const char *name, st int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_get_val_instance_num_pre ) { - int (*preHookFunc) (struct script_state *st, const char *name, struct script_data *data); + int (*preHookFunc) (struct script_state **st, const char **name, struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val_instance_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val_instance_num_pre[hIndex].func; - retVal___ = preHookFunc(st, name, data); + retVal___ = preHookFunc(&st, &name, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60463,15 +60630,15 @@ int HP_script_get_val_instance_num(struct script_state *st, const char *name, st } return retVal___; } -void* HP_script_get_val2(struct script_state *st, int64 uid, struct reg_db *ref) { +const void* HP_script_get_val2(struct script_state *st, int64 uid, struct reg_db *ref) { int hIndex = 0; - void* retVal___ = NULL; + const void* retVal___ = NULL; if( HPMHooks.count.HP_script_get_val2_pre ) { - void* (*preHookFunc) (struct script_state *st, int64 *uid, struct reg_db *ref); + const void* (*preHookFunc) (struct script_state **st, int64 *uid, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_val2_pre[hIndex].func; - retVal___ = preHookFunc(st, &uid, ref); + retVal___ = preHookFunc(&st, &uid, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60482,23 +60649,23 @@ void* HP_script_get_val2(struct script_state *st, int64 uid, struct reg_db *ref) retVal___ = HPMHooks.source.script.get_val2(st, uid, ref); } if( HPMHooks.count.HP_script_get_val2_post ) { - void* (*postHookFunc) (void* retVal___, struct script_state *st, int64 *uid, struct reg_db *ref); + const void* (*postHookFunc) (const void* retVal___, struct script_state *st, int64 uid, struct reg_db *ref); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_val2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_get_val2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, st, &uid, ref); + retVal___ = postHookFunc(retVal___, st, uid, ref); } } return retVal___; } -struct script_data* HP_script_push_str(struct script_stack *stack, enum c_op type, char *str) { +struct script_data* HP_script_push_str(struct script_stack *stack, char *str) { int hIndex = 0; struct script_data* retVal___ = NULL; if( HPMHooks.count.HP_script_push_str_pre ) { - struct script_data* (*preHookFunc) (struct script_stack *stack, enum c_op *type, char *str); + struct script_data* (*preHookFunc) (struct script_stack **stack, char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_push_str_pre[hIndex].func; - retVal___ = preHookFunc(stack, &type, str); + retVal___ = preHookFunc(&stack, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60506,13 +60673,40 @@ struct script_data* HP_script_push_str(struct script_stack *stack, enum c_op typ } } { - retVal___ = HPMHooks.source.script.push_str(stack, type, str); + retVal___ = HPMHooks.source.script.push_str(stack, str); } if( HPMHooks.count.HP_script_push_str_post ) { - struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, enum c_op *type, char *str); + struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_push_str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, stack, &type, str); + retVal___ = postHookFunc(retVal___, stack, str); + } + } + return retVal___; +} +struct script_data* HP_script_push_conststr(struct script_stack *stack, const char *str) { + int hIndex = 0; + struct script_data* retVal___ = NULL; + if( HPMHooks.count.HP_script_push_conststr_pre ) { + struct script_data* (*preHookFunc) (struct script_stack **stack, const char **str); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_conststr_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_script_push_conststr_pre[hIndex].func; + retVal___ = preHookFunc(&stack, &str); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.script.push_conststr(stack, str); + } + if( HPMHooks.count.HP_script_push_conststr_post ) { + struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, const char *str); + for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_conststr_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_script_push_conststr_post[hIndex].func; + retVal___ = postHookFunc(retVal___, stack, str); } } return retVal___; @@ -60521,11 +60715,11 @@ struct script_data* HP_script_push_copy(struct script_stack *stack, int pos) { int hIndex = 0; struct script_data* retVal___ = NULL; if( HPMHooks.count.HP_script_push_copy_pre ) { - struct script_data* (*preHookFunc) (struct script_stack *stack, int *pos); + struct script_data* (*preHookFunc) (struct script_stack **stack, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_copy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_push_copy_pre[hIndex].func; - retVal___ = preHookFunc(stack, &pos); + retVal___ = preHookFunc(&stack, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60536,10 +60730,10 @@ struct script_data* HP_script_push_copy(struct script_stack *stack, int pos) { retVal___ = HPMHooks.source.script.push_copy(stack, pos); } if( HPMHooks.count.HP_script_push_copy_post ) { - struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, int *pos); + struct script_data* (*postHookFunc) (struct script_data* retVal___, struct script_stack *stack, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_copy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_push_copy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, stack, &pos); + retVal___ = postHookFunc(retVal___, stack, pos); } } return retVal___; @@ -60547,11 +60741,11 @@ struct script_data* HP_script_push_copy(struct script_stack *stack, int pos) { void HP_script_pop_stack(struct script_state *st, int start, int end) { int hIndex = 0; if( HPMHooks.count.HP_script_pop_stack_pre ) { - void (*preHookFunc) (struct script_state *st, int *start, int *end); + void (*preHookFunc) (struct script_state **st, int *start, int *end); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_pop_stack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_pop_stack_pre[hIndex].func; - preHookFunc(st, &start, &end); + preHookFunc(&st, &start, &end); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60562,10 +60756,10 @@ void HP_script_pop_stack(struct script_state *st, int start, int end) { HPMHooks.source.script.pop_stack(st, start, end); } if( HPMHooks.count.HP_script_pop_stack_post ) { - void (*postHookFunc) (struct script_state *st, int *start, int *end); + void (*postHookFunc) (struct script_state *st, int start, int end); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_pop_stack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_pop_stack_post[hIndex].func; - postHookFunc(st, &start, &end); + postHookFunc(st, start, end); } } return; @@ -60573,11 +60767,11 @@ void HP_script_pop_stack(struct script_state *st, int start, int end) { void HP_script_set_constant(const char *name, int value, bool is_parameter, bool is_deprecated) { int hIndex = 0; if( HPMHooks.count.HP_script_set_constant_pre ) { - void (*preHookFunc) (const char *name, int *value, bool *is_parameter, bool *is_deprecated); + void (*preHookFunc) (const char **name, int *value, bool *is_parameter, bool *is_deprecated); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_constant_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_constant_pre[hIndex].func; - preHookFunc(name, &value, &is_parameter, &is_deprecated); + preHookFunc(&name, &value, &is_parameter, &is_deprecated); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60588,10 +60782,10 @@ void HP_script_set_constant(const char *name, int value, bool is_parameter, bool HPMHooks.source.script.set_constant(name, value, is_parameter, is_deprecated); } if( HPMHooks.count.HP_script_set_constant_post ) { - void (*postHookFunc) (const char *name, int *value, bool *is_parameter, bool *is_deprecated); + void (*postHookFunc) (const char *name, int value, bool is_parameter, bool is_deprecated); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_constant_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_constant_post[hIndex].func; - postHookFunc(name, &value, &is_parameter, &is_deprecated); + postHookFunc(name, value, is_parameter, is_deprecated); } } return; @@ -60599,11 +60793,11 @@ void HP_script_set_constant(const char *name, int value, bool is_parameter, bool void HP_script_set_constant2(const char *name, int value, bool is_parameter, bool is_deprecated) { int hIndex = 0; if( HPMHooks.count.HP_script_set_constant2_pre ) { - void (*preHookFunc) (const char *name, int *value, bool *is_parameter, bool *is_deprecated); + void (*preHookFunc) (const char **name, int *value, bool *is_parameter, bool *is_deprecated); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_constant2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_constant2_pre[hIndex].func; - preHookFunc(name, &value, &is_parameter, &is_deprecated); + preHookFunc(&name, &value, &is_parameter, &is_deprecated); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60614,10 +60808,10 @@ void HP_script_set_constant2(const char *name, int value, bool is_parameter, boo HPMHooks.source.script.set_constant2(name, value, is_parameter, is_deprecated); } if( HPMHooks.count.HP_script_set_constant2_post ) { - void (*postHookFunc) (const char *name, int *value, bool *is_parameter, bool *is_deprecated); + void (*postHookFunc) (const char *name, int value, bool is_parameter, bool is_deprecated); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_constant2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_constant2_post[hIndex].func; - postHookFunc(name, &value, &is_parameter, &is_deprecated); + postHookFunc(name, value, is_parameter, is_deprecated); } } return; @@ -60626,11 +60820,11 @@ bool HP_script_get_constant(const char *name, int *value) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_script_get_constant_pre ) { - bool (*preHookFunc) (const char *name, int *value); + bool (*preHookFunc) (const char **name, int **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_constant_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_constant_pre[hIndex].func; - retVal___ = preHookFunc(name, value); + retVal___ = preHookFunc(&name, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60667,10 +60861,10 @@ void HP_script_label_add(int key, int pos) { HPMHooks.source.script.label_add(key, pos); } if( HPMHooks.count.HP_script_label_add_post ) { - void (*postHookFunc) (int *key, int *pos); + void (*postHookFunc) (int key, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_label_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_label_add_post[hIndex].func; - postHookFunc(&key, &pos); + postHookFunc(key, pos); } } return; @@ -60678,11 +60872,11 @@ void HP_script_label_add(int key, int pos) { void HP_script_run(struct script_code *rootscript, int pos, int rid, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_pre ) { - void (*preHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*preHookFunc) (struct script_code **rootscript, int *pos, int *rid, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_pre[hIndex].func; - preHookFunc(rootscript, &pos, &rid, &oid); + preHookFunc(&rootscript, &pos, &rid, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60693,10 +60887,10 @@ void HP_script_run(struct script_code *rootscript, int pos, int rid, int oid) { HPMHooks.source.script.run(rootscript, pos, rid, oid); } if( HPMHooks.count.HP_script_run_post ) { - void (*postHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*postHookFunc) (struct script_code *rootscript, int pos, int rid, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_post[hIndex].func; - postHookFunc(rootscript, &pos, &rid, &oid); + postHookFunc(rootscript, pos, rid, oid); } } return; @@ -60704,11 +60898,11 @@ void HP_script_run(struct script_code *rootscript, int pos, int rid, int oid) { void HP_script_run_npc(struct script_code *rootscript, int pos, int rid, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_npc_pre ) { - void (*preHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*preHookFunc) (struct script_code **rootscript, int *pos, int *rid, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_npc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_npc_pre[hIndex].func; - preHookFunc(rootscript, &pos, &rid, &oid); + preHookFunc(&rootscript, &pos, &rid, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60719,10 +60913,10 @@ void HP_script_run_npc(struct script_code *rootscript, int pos, int rid, int oid HPMHooks.source.script.run_npc(rootscript, pos, rid, oid); } if( HPMHooks.count.HP_script_run_npc_post ) { - void (*postHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*postHookFunc) (struct script_code *rootscript, int pos, int rid, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_npc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_npc_post[hIndex].func; - postHookFunc(rootscript, &pos, &rid, &oid); + postHookFunc(rootscript, pos, rid, oid); } } return; @@ -60730,11 +60924,11 @@ void HP_script_run_npc(struct script_code *rootscript, int pos, int rid, int oid void HP_script_run_pet(struct script_code *rootscript, int pos, int rid, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_pet_pre ) { - void (*preHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*preHookFunc) (struct script_code **rootscript, int *pos, int *rid, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_pet_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_pet_pre[hIndex].func; - preHookFunc(rootscript, &pos, &rid, &oid); + preHookFunc(&rootscript, &pos, &rid, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60745,10 +60939,10 @@ void HP_script_run_pet(struct script_code *rootscript, int pos, int rid, int oid HPMHooks.source.script.run_pet(rootscript, pos, rid, oid); } if( HPMHooks.count.HP_script_run_pet_post ) { - void (*postHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + void (*postHookFunc) (struct script_code *rootscript, int pos, int rid, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_pet_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_pet_post[hIndex].func; - postHookFunc(rootscript, &pos, &rid, &oid); + postHookFunc(rootscript, pos, rid, oid); } } return; @@ -60756,11 +60950,11 @@ void HP_script_run_pet(struct script_code *rootscript, int pos, int rid, int oid void HP_script_run_main(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_run_main_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_main_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_main_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60798,10 +60992,10 @@ int HP_script_run_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.script.run_timer(tid, tick, id, data); } if( HPMHooks.count.HP_script_run_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -60810,11 +61004,11 @@ int HP_script_set_var(struct map_session_data *sd, char *name, void *val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_set_var_pre ) { - int (*preHookFunc) (struct map_session_data *sd, char *name, void *val); + int (*preHookFunc) (struct map_session_data **sd, char **name, void **val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_var_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_var_pre[hIndex].func; - retVal___ = preHookFunc(sd, name, val); + retVal___ = preHookFunc(&sd, &name, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60836,11 +61030,11 @@ int HP_script_set_var(struct map_session_data *sd, char *name, void *val) { void HP_script_stop_instances(struct script_code *code) { int hIndex = 0; if( HPMHooks.count.HP_script_stop_instances_pre ) { - void (*preHookFunc) (struct script_code *code); + void (*preHookFunc) (struct script_code **code); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_stop_instances_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_stop_instances_pre[hIndex].func; - preHookFunc(code); + preHookFunc(&code); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60862,11 +61056,11 @@ void HP_script_stop_instances(struct script_code *code) { void HP_script_free_code(struct script_code *code) { int hIndex = 0; if( HPMHooks.count.HP_script_free_code_pre ) { - void (*preHookFunc) (struct script_code *code); + void (*preHookFunc) (struct script_code **code); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_free_code_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_free_code_pre[hIndex].func; - preHookFunc(code); + preHookFunc(&code); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60888,11 +61082,11 @@ void HP_script_free_code(struct script_code *code) { void HP_script_free_vars(struct DBMap *var_storage) { int hIndex = 0; if( HPMHooks.count.HP_script_free_vars_pre ) { - void (*preHookFunc) (struct DBMap *var_storage); + void (*preHookFunc) (struct DBMap **var_storage); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_free_vars_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_free_vars_pre[hIndex].func; - preHookFunc(var_storage); + preHookFunc(&var_storage); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60915,11 +61109,11 @@ struct script_state* HP_script_alloc_state(struct script_code *rootscript, int p int hIndex = 0; struct script_state* retVal___ = NULL; if( HPMHooks.count.HP_script_alloc_state_pre ) { - struct script_state* (*preHookFunc) (struct script_code *rootscript, int *pos, int *rid, int *oid); + struct script_state* (*preHookFunc) (struct script_code **rootscript, int *pos, int *rid, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_alloc_state_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_alloc_state_pre[hIndex].func; - retVal___ = preHookFunc(rootscript, &pos, &rid, &oid); + retVal___ = preHookFunc(&rootscript, &pos, &rid, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60930,10 +61124,10 @@ struct script_state* HP_script_alloc_state(struct script_code *rootscript, int p retVal___ = HPMHooks.source.script.alloc_state(rootscript, pos, rid, oid); } if( HPMHooks.count.HP_script_alloc_state_post ) { - struct script_state* (*postHookFunc) (struct script_state* retVal___, struct script_code *rootscript, int *pos, int *rid, int *oid); + struct script_state* (*postHookFunc) (struct script_state* retVal___, struct script_code *rootscript, int pos, int rid, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_alloc_state_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_alloc_state_post[hIndex].func; - retVal___ = postHookFunc(retVal___, rootscript, &pos, &rid, &oid); + retVal___ = postHookFunc(retVal___, rootscript, pos, rid, oid); } } return retVal___; @@ -60941,11 +61135,11 @@ struct script_state* HP_script_alloc_state(struct script_code *rootscript, int p void HP_script_free_state(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_free_state_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_free_state_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_free_state_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60967,11 +61161,11 @@ void HP_script_free_state(struct script_state *st) { void HP_script_add_pending_ref(struct script_state *st, struct reg_db *ref) { int hIndex = 0; if( HPMHooks.count.HP_script_add_pending_ref_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *ref); + void (*preHookFunc) (struct script_state **st, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_pending_ref_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_pending_ref_pre[hIndex].func; - preHookFunc(st, ref); + preHookFunc(&st, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -60993,11 +61187,11 @@ void HP_script_add_pending_ref(struct script_state *st, struct reg_db *ref) { void HP_script_run_autobonus(const char *autobonus, int id, int pos) { int hIndex = 0; if( HPMHooks.count.HP_script_run_autobonus_pre ) { - void (*preHookFunc) (const char *autobonus, int *id, int *pos); + void (*preHookFunc) (const char **autobonus, int *id, int *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_autobonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_autobonus_pre[hIndex].func; - preHookFunc(autobonus, &id, &pos); + preHookFunc(&autobonus, &id, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61008,10 +61202,10 @@ void HP_script_run_autobonus(const char *autobonus, int id, int pos) { HPMHooks.source.script.run_autobonus(autobonus, id, pos); } if( HPMHooks.count.HP_script_run_autobonus_post ) { - void (*postHookFunc) (const char *autobonus, int *id, int *pos); + void (*postHookFunc) (const char *autobonus, int id, int pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_autobonus_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_autobonus_post[hIndex].func; - postHookFunc(autobonus, &id, &pos); + postHookFunc(autobonus, id, pos); } } return; @@ -61019,11 +61213,11 @@ void HP_script_run_autobonus(const char *autobonus, int id, int pos) { void HP_script_cleararray_pc(struct map_session_data *sd, const char *varname, void *value) { int hIndex = 0; if( HPMHooks.count.HP_script_cleararray_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *varname, void *value); + void (*preHookFunc) (struct map_session_data **sd, const char **varname, void **value); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_cleararray_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_cleararray_pc_pre[hIndex].func; - preHookFunc(sd, varname, value); + preHookFunc(&sd, &varname, &value); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61045,11 +61239,11 @@ void HP_script_cleararray_pc(struct map_session_data *sd, const char *varname, v void HP_script_setarray_pc(struct map_session_data *sd, const char *varname, uint32 idx, void *value, int *refcache) { int hIndex = 0; if( HPMHooks.count.HP_script_setarray_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *varname, uint32 *idx, void *value, int *refcache); + void (*preHookFunc) (struct map_session_data **sd, const char **varname, uint32 *idx, void **value, int **refcache); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_setarray_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_setarray_pc_pre[hIndex].func; - preHookFunc(sd, varname, &idx, value, refcache); + preHookFunc(&sd, &varname, &idx, &value, &refcache); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61060,10 +61254,10 @@ void HP_script_setarray_pc(struct map_session_data *sd, const char *varname, uin HPMHooks.source.script.setarray_pc(sd, varname, idx, value, refcache); } if( HPMHooks.count.HP_script_setarray_pc_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *varname, uint32 *idx, void *value, int *refcache); + void (*postHookFunc) (struct map_session_data *sd, const char *varname, uint32 idx, void *value, int *refcache); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_setarray_pc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_setarray_pc_post[hIndex].func; - postHookFunc(sd, varname, &idx, value, refcache); + postHookFunc(sd, varname, idx, value, refcache); } } return; @@ -61072,11 +61266,11 @@ int HP_script_config_read(char *cfgName) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_config_read_pre ) { - int (*preHookFunc) (char *cfgName); + int (*preHookFunc) (char **cfgName); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_config_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(&cfgName); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61099,11 +61293,11 @@ int HP_script_add_str(const char *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_add_str_pre ) { - int (*preHookFunc) (const char *p); + int (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_str_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61141,10 +61335,10 @@ const char* HP_script_get_str(int id) { retVal___ = HPMHooks.source.script.get_str(id); } if( HPMHooks.count.HP_script_get_str_post ) { - const char* (*postHookFunc) (const char* retVal___, int *id); + const char* (*postHookFunc) (const char* retVal___, int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_get_str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &id); + retVal___ = postHookFunc(retVal___, id); } } return retVal___; @@ -61153,11 +61347,11 @@ int HP_script_search_str(const char *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_search_str_pre ) { - int (*preHookFunc) (const char *p); + int (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_search_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_search_str_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61176,14 +61370,14 @@ int HP_script_search_str(const char *p) { } return retVal___; } -void HP_script_setd_sub(struct script_state *st, struct map_session_data *sd, const char *varname, int elem, void *value, struct reg_db *ref) { +void HP_script_setd_sub(struct script_state *st, struct map_session_data *sd, const char *varname, int elem, const void *value, struct reg_db *ref) { int hIndex = 0; if( HPMHooks.count.HP_script_setd_sub_pre ) { - void (*preHookFunc) (struct script_state *st, struct map_session_data *sd, const char *varname, int *elem, void *value, struct reg_db *ref); + void (*preHookFunc) (struct script_state **st, struct map_session_data **sd, const char **varname, int *elem, const void **value, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_setd_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_setd_sub_pre[hIndex].func; - preHookFunc(st, sd, varname, &elem, value, ref); + preHookFunc(&st, &sd, &varname, &elem, &value, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61194,10 +61388,10 @@ void HP_script_setd_sub(struct script_state *st, struct map_session_data *sd, co HPMHooks.source.script.setd_sub(st, sd, varname, elem, value, ref); } if( HPMHooks.count.HP_script_setd_sub_post ) { - void (*postHookFunc) (struct script_state *st, struct map_session_data *sd, const char *varname, int *elem, void *value, struct reg_db *ref); + void (*postHookFunc) (struct script_state *st, struct map_session_data *sd, const char *varname, int elem, const void *value, struct reg_db *ref); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_setd_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_setd_sub_post[hIndex].func; - postHookFunc(st, sd, varname, &elem, value, ref); + postHookFunc(st, sd, varname, elem, value, ref); } } return; @@ -61205,11 +61399,11 @@ void HP_script_setd_sub(struct script_state *st, struct map_session_data *sd, co void HP_script_attach_state(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_attach_state_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_attach_state_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_attach_state_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61247,10 +61441,10 @@ struct script_queue* HP_script_queue(int idx) { retVal___ = HPMHooks.source.script.queue(idx); } if( HPMHooks.count.HP_script_queue_post ) { - struct script_queue* (*postHookFunc) (struct script_queue* retVal___, int *idx); + struct script_queue* (*postHookFunc) (struct script_queue* retVal___, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx); + retVal___ = postHookFunc(retVal___, idx); } } return retVal___; @@ -61274,10 +61468,10 @@ bool HP_script_queue_add(int idx, int var) { retVal___ = HPMHooks.source.script.queue_add(idx, var); } if( HPMHooks.count.HP_script_queue_add_post ) { - bool (*postHookFunc) (bool retVal___, int *idx, int *var); + bool (*postHookFunc) (bool retVal___, int idx, int var); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx, &var); + retVal___ = postHookFunc(retVal___, idx, var); } } return retVal___; @@ -61301,10 +61495,10 @@ bool HP_script_queue_del(int idx) { retVal___ = HPMHooks.source.script.queue_del(idx); } if( HPMHooks.count.HP_script_queue_del_post ) { - bool (*postHookFunc) (bool retVal___, int *idx); + bool (*postHookFunc) (bool retVal___, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_del_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_del_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx); + retVal___ = postHookFunc(retVal___, idx); } } return retVal___; @@ -61328,10 +61522,10 @@ bool HP_script_queue_remove(int idx, int var) { retVal___ = HPMHooks.source.script.queue_remove(idx, var); } if( HPMHooks.count.HP_script_queue_remove_post ) { - bool (*postHookFunc) (bool retVal___, int *idx, int *var); + bool (*postHookFunc) (bool retVal___, int idx, int var); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_remove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_remove_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx, &var); + retVal___ = postHookFunc(retVal___, idx, var); } } return retVal___; @@ -61382,10 +61576,10 @@ bool HP_script_queue_clear(int idx) { retVal___ = HPMHooks.source.script.queue_clear(idx); } if( HPMHooks.count.HP_script_queue_clear_post ) { - bool (*postHookFunc) (bool retVal___, int *idx); + bool (*postHookFunc) (bool retVal___, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_clear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_clear_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx); + retVal___ = postHookFunc(retVal___, idx); } } return retVal___; @@ -61394,11 +61588,11 @@ const char* HP_script_parse_curly_close(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_curly_close_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_curly_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_curly_close_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61421,11 +61615,11 @@ const char* HP_script_parse_syntax_close(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_syntax_close_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_syntax_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_syntax_close_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61448,11 +61642,11 @@ const char* HP_script_parse_syntax_close_sub(const char *p, int *flag) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_syntax_close_sub_pre ) { - const char* (*preHookFunc) (const char *p, int *flag); + const char* (*preHookFunc) (const char **p, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_syntax_close_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_syntax_close_sub_pre[hIndex].func; - retVal___ = preHookFunc(p, flag); + retVal___ = preHookFunc(&p, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61475,11 +61669,11 @@ const char* HP_script_parse_syntax(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_syntax_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_syntax_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_syntax_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61502,11 +61696,11 @@ c_op HP_script_get_com(unsigned char *scriptbuf, int *pos) { int hIndex = 0; c_op retVal___ = C_NOP; if( HPMHooks.count.HP_script_get_com_pre ) { - c_op (*preHookFunc) (unsigned char *scriptbuf, int *pos); + c_op (*preHookFunc) (unsigned char **scriptbuf, int **pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_com_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_com_pre[hIndex].func; - retVal___ = preHookFunc(scriptbuf, pos); + retVal___ = preHookFunc(&scriptbuf, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61529,11 +61723,11 @@ int HP_script_get_num(unsigned char *scriptbuf, int *pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_get_num_pre ) { - int (*preHookFunc) (unsigned char *scriptbuf, int *pos); + int (*preHookFunc) (unsigned char **scriptbuf, int **pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_num_pre[hIndex].func; - retVal___ = preHookFunc(scriptbuf, pos); + retVal___ = preHookFunc(&scriptbuf, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61571,10 +61765,10 @@ const char* HP_script_op2name(int op) { retVal___ = HPMHooks.source.script.op2name(op); } if( HPMHooks.count.HP_script_op2name_post ) { - const char* (*postHookFunc) (const char* retVal___, int *op); + const char* (*postHookFunc) (const char* retVal___, int op); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op2name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op2name_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &op); + retVal___ = postHookFunc(retVal___, op); } } return retVal___; @@ -61582,11 +61776,11 @@ const char* HP_script_op2name(int op) { void HP_script_reportsrc(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_reportsrc_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reportsrc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_reportsrc_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61608,11 +61802,11 @@ void HP_script_reportsrc(struct script_state *st) { void HP_script_reportdata(struct script_data *data) { int hIndex = 0; if( HPMHooks.count.HP_script_reportdata_pre ) { - void (*preHookFunc) (struct script_data *data); + void (*preHookFunc) (struct script_data **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reportdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_reportdata_pre[hIndex].func; - preHookFunc(data); + preHookFunc(&data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61634,11 +61828,11 @@ void HP_script_reportdata(struct script_data *data) { void HP_script_reportfunc(struct script_state *st) { int hIndex = 0; if( HPMHooks.count.HP_script_reportfunc_pre ) { - void (*preHookFunc) (struct script_state *st); + void (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reportfunc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_reportfunc_pre[hIndex].func; - preHookFunc(st); + preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61660,11 +61854,11 @@ void HP_script_reportfunc(struct script_state *st) { void HP_script_disp_warning_message(const char *mes, const char *pos) { int hIndex = 0; if( HPMHooks.count.HP_script_disp_warning_message_pre ) { - void (*preHookFunc) (const char *mes, const char *pos); + void (*preHookFunc) (const char **mes, const char **pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_disp_warning_message_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_disp_warning_message_pre[hIndex].func; - preHookFunc(mes, pos); + preHookFunc(&mes, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61686,11 +61880,11 @@ void HP_script_disp_warning_message(const char *mes, const char *pos) { void HP_script_check_event(struct script_state *st, const char *evt) { int hIndex = 0; if( HPMHooks.count.HP_script_check_event_pre ) { - void (*preHookFunc) (struct script_state *st, const char *evt); + void (*preHookFunc) (struct script_state **st, const char **evt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_check_event_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_check_event_pre[hIndex].func; - preHookFunc(st, evt); + preHookFunc(&st, &evt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61713,11 +61907,11 @@ unsigned int HP_script_calc_hash(const char *p) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_script_calc_hash_pre ) { - unsigned int (*preHookFunc) (const char *p); + unsigned int (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_calc_hash_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_calc_hash_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61754,10 +61948,10 @@ void HP_script_addb(int a) { HPMHooks.source.script.addb(a); } if( HPMHooks.count.HP_script_addb_post ) { - void (*postHookFunc) (int *a); + void (*postHookFunc) (int a); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_addb_post[hIndex].func; - postHookFunc(&a); + postHookFunc(a); } } return; @@ -61780,10 +61974,10 @@ void HP_script_addc(int a) { HPMHooks.source.script.addc(a); } if( HPMHooks.count.HP_script_addc_post ) { - void (*postHookFunc) (int *a); + void (*postHookFunc) (int a); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_addc_post[hIndex].func; - postHookFunc(&a); + postHookFunc(a); } } return; @@ -61806,10 +62000,10 @@ void HP_script_addi(int a) { HPMHooks.source.script.addi(a); } if( HPMHooks.count.HP_script_addi_post ) { - void (*postHookFunc) (int *a); + void (*postHookFunc) (int a); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addi_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_addi_post[hIndex].func; - postHookFunc(&a); + postHookFunc(a); } } return; @@ -61832,10 +62026,10 @@ void HP_script_addl(int l) { HPMHooks.source.script.addl(l); } if( HPMHooks.count.HP_script_addl_post ) { - void (*postHookFunc) (int *l); + void (*postHookFunc) (int l); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_addl_post[hIndex].func; - postHookFunc(&l); + postHookFunc(l); } } return; @@ -61843,11 +62037,11 @@ void HP_script_addl(int l) { void HP_script_set_label(int l, int pos, const char *script_pos) { int hIndex = 0; if( HPMHooks.count.HP_script_set_label_pre ) { - void (*preHookFunc) (int *l, int *pos, const char *script_pos); + void (*preHookFunc) (int *l, int *pos, const char **script_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_label_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_label_pre[hIndex].func; - preHookFunc(&l, &pos, script_pos); + preHookFunc(&l, &pos, &script_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61858,10 +62052,10 @@ void HP_script_set_label(int l, int pos, const char *script_pos) { HPMHooks.source.script.set_label(l, pos, script_pos); } if( HPMHooks.count.HP_script_set_label_post ) { - void (*postHookFunc) (int *l, int *pos, const char *script_pos); + void (*postHookFunc) (int l, int pos, const char *script_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_label_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_label_post[hIndex].func; - postHookFunc(&l, &pos, script_pos); + postHookFunc(l, pos, script_pos); } } return; @@ -61870,11 +62064,11 @@ const char* HP_script_skip_word(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_skip_word_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_skip_word_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_skip_word_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61897,11 +62091,11 @@ int HP_script_add_word(const char *p) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_add_word_pre ) { - int (*preHookFunc) (const char *p); + int (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_word_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_word_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61924,11 +62118,11 @@ const char* HP_script_parse_callfunc(const char *p, int require_paren, int is_cu int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_callfunc_pre ) { - const char* (*preHookFunc) (const char *p, int *require_paren, int *is_custom); + const char* (*preHookFunc) (const char **p, int *require_paren, int *is_custom); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_callfunc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_callfunc_pre[hIndex].func; - retVal___ = preHookFunc(p, &require_paren, &is_custom); + retVal___ = preHookFunc(&p, &require_paren, &is_custom); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61939,10 +62133,10 @@ const char* HP_script_parse_callfunc(const char *p, int require_paren, int is_cu retVal___ = HPMHooks.source.script.parse_callfunc(p, require_paren, is_custom); } if( HPMHooks.count.HP_script_parse_callfunc_post ) { - const char* (*postHookFunc) (const char* retVal___, const char *p, int *require_paren, int *is_custom); + const char* (*postHookFunc) (const char* retVal___, const char *p, int require_paren, int is_custom); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_callfunc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_parse_callfunc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, p, &require_paren, &is_custom); + retVal___ = postHookFunc(retVal___, p, require_paren, is_custom); } } return retVal___; @@ -61950,11 +62144,11 @@ const char* HP_script_parse_callfunc(const char *p, int require_paren, int is_cu void HP_script_parse_nextline(bool first, const char *p) { int hIndex = 0; if( HPMHooks.count.HP_script_parse_nextline_pre ) { - void (*preHookFunc) (bool *first, const char *p); + void (*preHookFunc) (bool *first, const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_nextline_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_nextline_pre[hIndex].func; - preHookFunc(&first, p); + preHookFunc(&first, &p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -61965,10 +62159,10 @@ void HP_script_parse_nextline(bool first, const char *p) { HPMHooks.source.script.parse_nextline(first, p); } if( HPMHooks.count.HP_script_parse_nextline_post ) { - void (*postHookFunc) (bool *first, const char *p); + void (*postHookFunc) (bool first, const char *p); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_nextline_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_parse_nextline_post[hIndex].func; - postHookFunc(&first, p); + postHookFunc(first, p); } } return; @@ -61977,11 +62171,11 @@ const char* HP_script_parse_variable(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_variable_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_variable_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_variable_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62004,11 +62198,11 @@ const char* HP_script_parse_simpleexpr(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_simpleexpr_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_simpleexpr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_simpleexpr_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62031,11 +62225,11 @@ const char* HP_script_parse_expr(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_expr_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_expr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_expr_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62058,11 +62252,11 @@ const char* HP_script_parse_line(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_parse_line_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_line_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_parse_line_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62110,11 +62304,11 @@ void HP_script_read_constdb(void) { void HP_script_constdb_comment(const char *comment) { int hIndex = 0; if( HPMHooks.count.HP_script_constdb_comment_pre ) { - void (*preHookFunc) (const char *comment); + void (*preHookFunc) (const char **comment); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_constdb_comment_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_constdb_comment_pre[hIndex].func; - preHookFunc(comment); + preHookFunc(&comment); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62133,15 +62327,41 @@ void HP_script_constdb_comment(const char *comment) { } return; } +void HP_script_load_parameters(void) { + int hIndex = 0; + if( HPMHooks.count.HP_script_load_parameters_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_parameters_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_script_load_parameters_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.script.load_parameters(); + } + if( HPMHooks.count.HP_script_load_parameters_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_parameters_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_script_load_parameters_post[hIndex].func; + postHookFunc(); + } + } + return; +} const char* HP_script_print_line(StringBuf *buf, const char *p, const char *mark, int line) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_print_line_pre ) { - const char* (*preHookFunc) (StringBuf *buf, const char *p, const char *mark, int *line); + const char* (*preHookFunc) (StringBuf **buf, const char **p, const char **mark, int *line); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_print_line_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_print_line_pre[hIndex].func; - retVal___ = preHookFunc(buf, p, mark, &line); + retVal___ = preHookFunc(&buf, &p, &mark, &line); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62152,10 +62372,10 @@ const char* HP_script_print_line(StringBuf *buf, const char *p, const char *mark retVal___ = HPMHooks.source.script.print_line(buf, p, mark, line); } if( HPMHooks.count.HP_script_print_line_post ) { - const char* (*postHookFunc) (const char* retVal___, StringBuf *buf, const char *p, const char *mark, int *line); + const char* (*postHookFunc) (const char* retVal___, StringBuf *buf, const char *p, const char *mark, int line); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_print_line_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_print_line_post[hIndex].func; - retVal___ = postHookFunc(retVal___, buf, p, mark, &line); + retVal___ = postHookFunc(retVal___, buf, p, mark, line); } } return retVal___; @@ -62163,11 +62383,11 @@ const char* HP_script_print_line(StringBuf *buf, const char *p, const char *mark void HP_script_errorwarning_sub(StringBuf *buf, const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos) { int hIndex = 0; if( HPMHooks.count.HP_script_errorwarning_sub_pre ) { - void (*preHookFunc) (StringBuf *buf, const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*preHookFunc) (StringBuf **buf, const char **src, const char **file, int *start_line, const char **error_msg, const char **error_pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_errorwarning_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_errorwarning_sub_pre[hIndex].func; - preHookFunc(buf, src, file, &start_line, error_msg, error_pos); + preHookFunc(&buf, &src, &file, &start_line, &error_msg, &error_pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62178,10 +62398,10 @@ void HP_script_errorwarning_sub(StringBuf *buf, const char *src, const char *fil HPMHooks.source.script.errorwarning_sub(buf, src, file, start_line, error_msg, error_pos); } if( HPMHooks.count.HP_script_errorwarning_sub_post ) { - void (*postHookFunc) (StringBuf *buf, const char *src, const char *file, int *start_line, const char *error_msg, const char *error_pos); + void (*postHookFunc) (StringBuf *buf, const char *src, const char *file, int start_line, const char *error_msg, const char *error_pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_errorwarning_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_errorwarning_sub_post[hIndex].func; - postHookFunc(buf, src, file, &start_line, error_msg, error_pos); + postHookFunc(buf, src, file, start_line, error_msg, error_pos); } } return; @@ -62190,11 +62410,11 @@ int HP_script_set_reg(struct script_state *st, struct map_session_data *sd, int6 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_set_reg_pre ) { - int (*preHookFunc) (struct script_state *st, struct map_session_data *sd, int64 *num, const char *name, const void *value, struct reg_db *ref); + int (*preHookFunc) (struct script_state **st, struct map_session_data **sd, int64 *num, const char **name, const void **value, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_pre[hIndex].func; - retVal___ = preHookFunc(st, sd, &num, name, value, ref); + retVal___ = preHookFunc(&st, &sd, &num, &name, &value, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62205,10 +62425,10 @@ int HP_script_set_reg(struct script_state *st, struct map_session_data *sd, int6 retVal___ = HPMHooks.source.script.set_reg(st, sd, num, name, value, ref); } if( HPMHooks.count.HP_script_set_reg_post ) { - int (*postHookFunc) (int retVal___, struct script_state *st, struct map_session_data *sd, int64 *num, const char *name, const void *value, struct reg_db *ref); + int (*postHookFunc) (int retVal___, struct script_state *st, struct map_session_data *sd, int64 num, const char *name, const void *value, struct reg_db *ref); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_post[hIndex].func; - retVal___ = postHookFunc(retVal___, st, sd, &num, name, value, ref); + retVal___ = postHookFunc(retVal___, st, sd, num, name, value, ref); } } return retVal___; @@ -62216,11 +62436,11 @@ int HP_script_set_reg(struct script_state *st, struct map_session_data *sd, int6 void HP_script_set_reg_ref_str(struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_ref_str_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_ref_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_ref_str_pre[hIndex].func; - preHookFunc(st, n, &num, name, str); + preHookFunc(&st, &n, &num, &name, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62231,10 +62451,10 @@ void HP_script_set_reg_ref_str(struct script_state *st, struct reg_db *n, int64 HPMHooks.source.script.set_reg_ref_str(st, n, num, name, str); } if( HPMHooks.count.HP_script_set_reg_ref_str_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_ref_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_ref_str_post[hIndex].func; - postHookFunc(st, n, &num, name, str); + postHookFunc(st, n, num, name, str); } } return; @@ -62242,11 +62462,11 @@ void HP_script_set_reg_ref_str(struct script_state *st, struct reg_db *n, int64 void HP_script_set_reg_scope_str(struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_scope_str_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_scope_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_scope_str_pre[hIndex].func; - preHookFunc(st, n, &num, name, str); + preHookFunc(&st, &n, &num, &name, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62257,10 +62477,10 @@ void HP_script_set_reg_scope_str(struct script_state *st, struct reg_db *n, int6 HPMHooks.source.script.set_reg_scope_str(st, n, num, name, str); } if( HPMHooks.count.HP_script_set_reg_scope_str_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_scope_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_scope_str_post[hIndex].func; - postHookFunc(st, n, &num, name, str); + postHookFunc(st, n, num, name, str); } } return; @@ -62268,11 +62488,11 @@ void HP_script_set_reg_scope_str(struct script_state *st, struct reg_db *n, int6 void HP_script_set_reg_npc_str(struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_npc_str_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_npc_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_npc_str_pre[hIndex].func; - preHookFunc(st, n, &num, name, str); + preHookFunc(&st, &n, &num, &name, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62283,10 +62503,10 @@ void HP_script_set_reg_npc_str(struct script_state *st, struct reg_db *n, int64 HPMHooks.source.script.set_reg_npc_str(st, n, num, name, str); } if( HPMHooks.count.HP_script_set_reg_npc_str_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, const char *str); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_npc_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_npc_str_post[hIndex].func; - postHookFunc(st, n, &num, name, str); + postHookFunc(st, n, num, name, str); } } return; @@ -62294,11 +62514,11 @@ void HP_script_set_reg_npc_str(struct script_state *st, struct reg_db *n, int64 void HP_script_set_reg_instance_str(struct script_state *st, int64 num, const char *name, const char *str) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_instance_str_pre ) { - void (*preHookFunc) (struct script_state *st, int64 *num, const char *name, const char *str); + void (*preHookFunc) (struct script_state **st, int64 *num, const char **name, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_instance_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_instance_str_pre[hIndex].func; - preHookFunc(st, &num, name, str); + preHookFunc(&st, &num, &name, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62309,10 +62529,10 @@ void HP_script_set_reg_instance_str(struct script_state *st, int64 num, const ch HPMHooks.source.script.set_reg_instance_str(st, num, name, str); } if( HPMHooks.count.HP_script_set_reg_instance_str_post ) { - void (*postHookFunc) (struct script_state *st, int64 *num, const char *name, const char *str); + void (*postHookFunc) (struct script_state *st, int64 num, const char *name, const char *str); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_instance_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_instance_str_post[hIndex].func; - postHookFunc(st, &num, name, str); + postHookFunc(st, num, name, str); } } return; @@ -62320,11 +62540,11 @@ void HP_script_set_reg_instance_str(struct script_state *st, int64 num, const ch void HP_script_set_reg_ref_num(struct script_state *st, struct reg_db *n, int64 num, const char *name, int val) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_ref_num_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_ref_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_ref_num_pre[hIndex].func; - preHookFunc(st, n, &num, name, &val); + preHookFunc(&st, &n, &num, &name, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62335,10 +62555,10 @@ void HP_script_set_reg_ref_num(struct script_state *st, struct reg_db *n, int64 HPMHooks.source.script.set_reg_ref_num(st, n, num, name, val); } if( HPMHooks.count.HP_script_set_reg_ref_num_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_ref_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_ref_num_post[hIndex].func; - postHookFunc(st, n, &num, name, &val); + postHookFunc(st, n, num, name, val); } } return; @@ -62346,11 +62566,11 @@ void HP_script_set_reg_ref_num(struct script_state *st, struct reg_db *n, int64 void HP_script_set_reg_scope_num(struct script_state *st, struct reg_db *n, int64 num, const char *name, int val) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_scope_num_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_scope_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_scope_num_pre[hIndex].func; - preHookFunc(st, n, &num, name, &val); + preHookFunc(&st, &n, &num, &name, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62361,10 +62581,10 @@ void HP_script_set_reg_scope_num(struct script_state *st, struct reg_db *n, int6 HPMHooks.source.script.set_reg_scope_num(st, n, num, name, val); } if( HPMHooks.count.HP_script_set_reg_scope_num_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_scope_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_scope_num_post[hIndex].func; - postHookFunc(st, n, &num, name, &val); + postHookFunc(st, n, num, name, val); } } return; @@ -62372,11 +62592,11 @@ void HP_script_set_reg_scope_num(struct script_state *st, struct reg_db *n, int6 void HP_script_set_reg_npc_num(struct script_state *st, struct reg_db *n, int64 num, const char *name, int val) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_npc_num_pre ) { - void (*preHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*preHookFunc) (struct script_state **st, struct reg_db **n, int64 *num, const char **name, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_npc_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_npc_num_pre[hIndex].func; - preHookFunc(st, n, &num, name, &val); + preHookFunc(&st, &n, &num, &name, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62387,10 +62607,10 @@ void HP_script_set_reg_npc_num(struct script_state *st, struct reg_db *n, int64 HPMHooks.source.script.set_reg_npc_num(st, n, num, name, val); } if( HPMHooks.count.HP_script_set_reg_npc_num_post ) { - void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 *num, const char *name, int *val); + void (*postHookFunc) (struct script_state *st, struct reg_db *n, int64 num, const char *name, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_npc_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_npc_num_post[hIndex].func; - postHookFunc(st, n, &num, name, &val); + postHookFunc(st, n, num, name, val); } } return; @@ -62398,11 +62618,11 @@ void HP_script_set_reg_npc_num(struct script_state *st, struct reg_db *n, int64 void HP_script_set_reg_instance_num(struct script_state *st, int64 num, const char *name, int val) { int hIndex = 0; if( HPMHooks.count.HP_script_set_reg_instance_num_pre ) { - void (*preHookFunc) (struct script_state *st, int64 *num, const char *name, int *val); + void (*preHookFunc) (struct script_state **st, int64 *num, const char **name, int *val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_instance_num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_set_reg_instance_num_pre[hIndex].func; - preHookFunc(st, &num, name, &val); + preHookFunc(&st, &num, &name, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62413,10 +62633,10 @@ void HP_script_set_reg_instance_num(struct script_state *st, int64 num, const ch HPMHooks.source.script.set_reg_instance_num(st, num, name, val); } if( HPMHooks.count.HP_script_set_reg_instance_num_post ) { - void (*postHookFunc) (struct script_state *st, int64 *num, const char *name, int *val); + void (*postHookFunc) (struct script_state *st, int64 num, const char *name, int val); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_instance_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_set_reg_instance_num_post[hIndex].func; - postHookFunc(st, &num, name, &val); + postHookFunc(st, num, name, val); } } return; @@ -62424,11 +62644,11 @@ void HP_script_set_reg_instance_num(struct script_state *st, int64 num, const ch void HP_script_stack_expand(struct script_stack *stack) { int hIndex = 0; if( HPMHooks.count.HP_script_stack_expand_pre ) { - void (*preHookFunc) (struct script_stack *stack); + void (*preHookFunc) (struct script_stack **stack); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_stack_expand_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_stack_expand_pre[hIndex].func; - preHookFunc(stack); + preHookFunc(&stack); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62451,11 +62671,11 @@ struct script_data* HP_script_push_retinfo(struct script_stack *stack, struct sc int hIndex = 0; struct script_data* retVal___ = NULL; if( HPMHooks.count.HP_script_push_retinfo_pre ) { - struct script_data* (*preHookFunc) (struct script_stack *stack, struct script_retinfo *ri, struct reg_db *ref); + struct script_data* (*preHookFunc) (struct script_stack **stack, struct script_retinfo **ri, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_push_retinfo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_push_retinfo_pre[hIndex].func; - retVal___ = preHookFunc(stack, ri, ref); + retVal___ = preHookFunc(&stack, &ri, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62477,11 +62697,11 @@ struct script_data* HP_script_push_retinfo(struct script_stack *stack, struct sc void HP_script_op_3(struct script_state *st, int op) { int hIndex = 0; if( HPMHooks.count.HP_script_op_3_pre ) { - void (*preHookFunc) (struct script_state *st, int *op); + void (*preHookFunc) (struct script_state **st, int *op); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_3_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_op_3_pre[hIndex].func; - preHookFunc(st, &op); + preHookFunc(&st, &op); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62492,10 +62712,10 @@ void HP_script_op_3(struct script_state *st, int op) { HPMHooks.source.script.op_3(st, op); } if( HPMHooks.count.HP_script_op_3_post ) { - void (*postHookFunc) (struct script_state *st, int *op); + void (*postHookFunc) (struct script_state *st, int op); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_3_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op_3_post[hIndex].func; - postHookFunc(st, &op); + postHookFunc(st, op); } } return; @@ -62503,11 +62723,11 @@ void HP_script_op_3(struct script_state *st, int op) { void HP_script_op_2str(struct script_state *st, int op, const char *s1, const char *s2) { int hIndex = 0; if( HPMHooks.count.HP_script_op_2str_pre ) { - void (*preHookFunc) (struct script_state *st, int *op, const char *s1, const char *s2); + void (*preHookFunc) (struct script_state **st, int *op, const char **s1, const char **s2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_op_2str_pre[hIndex].func; - preHookFunc(st, &op, s1, s2); + preHookFunc(&st, &op, &s1, &s2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62518,10 +62738,10 @@ void HP_script_op_2str(struct script_state *st, int op, const char *s1, const ch HPMHooks.source.script.op_2str(st, op, s1, s2); } if( HPMHooks.count.HP_script_op_2str_post ) { - void (*postHookFunc) (struct script_state *st, int *op, const char *s1, const char *s2); + void (*postHookFunc) (struct script_state *st, int op, const char *s1, const char *s2); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op_2str_post[hIndex].func; - postHookFunc(st, &op, s1, s2); + postHookFunc(st, op, s1, s2); } } return; @@ -62529,11 +62749,11 @@ void HP_script_op_2str(struct script_state *st, int op, const char *s1, const ch void HP_script_op_2num(struct script_state *st, int op, int i1, int i2) { int hIndex = 0; if( HPMHooks.count.HP_script_op_2num_pre ) { - void (*preHookFunc) (struct script_state *st, int *op, int *i1, int *i2); + void (*preHookFunc) (struct script_state **st, int *op, int *i1, int *i2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2num_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_op_2num_pre[hIndex].func; - preHookFunc(st, &op, &i1, &i2); + preHookFunc(&st, &op, &i1, &i2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62544,10 +62764,10 @@ void HP_script_op_2num(struct script_state *st, int op, int i1, int i2) { HPMHooks.source.script.op_2num(st, op, i1, i2); } if( HPMHooks.count.HP_script_op_2num_post ) { - void (*postHookFunc) (struct script_state *st, int *op, int *i1, int *i2); + void (*postHookFunc) (struct script_state *st, int op, int i1, int i2); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op_2num_post[hIndex].func; - postHookFunc(st, &op, &i1, &i2); + postHookFunc(st, op, i1, i2); } } return; @@ -62555,11 +62775,11 @@ void HP_script_op_2num(struct script_state *st, int op, int i1, int i2) { void HP_script_op_2(struct script_state *st, int op) { int hIndex = 0; if( HPMHooks.count.HP_script_op_2_pre ) { - void (*preHookFunc) (struct script_state *st, int *op); + void (*preHookFunc) (struct script_state **st, int *op); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_op_2_pre[hIndex].func; - preHookFunc(st, &op); + preHookFunc(&st, &op); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62570,10 +62790,10 @@ void HP_script_op_2(struct script_state *st, int op) { HPMHooks.source.script.op_2(st, op); } if( HPMHooks.count.HP_script_op_2_post ) { - void (*postHookFunc) (struct script_state *st, int *op); + void (*postHookFunc) (struct script_state *st, int op); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op_2_post[hIndex].func; - postHookFunc(st, &op); + postHookFunc(st, op); } } return; @@ -62581,11 +62801,11 @@ void HP_script_op_2(struct script_state *st, int op) { void HP_script_op_1(struct script_state *st, int op) { int hIndex = 0; if( HPMHooks.count.HP_script_op_1_pre ) { - void (*preHookFunc) (struct script_state *st, int *op); + void (*preHookFunc) (struct script_state **st, int *op); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_1_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_op_1_pre[hIndex].func; - preHookFunc(st, &op); + preHookFunc(&st, &op); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62596,10 +62816,10 @@ void HP_script_op_1(struct script_state *st, int op) { HPMHooks.source.script.op_1(st, op); } if( HPMHooks.count.HP_script_op_1_post ) { - void (*postHookFunc) (struct script_state *st, int *op); + void (*postHookFunc) (struct script_state *st, int op); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_op_1_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_op_1_post[hIndex].func; - postHookFunc(st, &op); + postHookFunc(st, op); } } return; @@ -62607,11 +62827,11 @@ void HP_script_op_1(struct script_state *st, int op) { void HP_script_check_buildin_argtype(struct script_state *st, int func) { int hIndex = 0; if( HPMHooks.count.HP_script_check_buildin_argtype_pre ) { - void (*preHookFunc) (struct script_state *st, int *func); + void (*preHookFunc) (struct script_state **st, int *func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_check_buildin_argtype_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_check_buildin_argtype_pre[hIndex].func; - preHookFunc(st, &func); + preHookFunc(&st, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62622,10 +62842,10 @@ void HP_script_check_buildin_argtype(struct script_state *st, int func) { HPMHooks.source.script.check_buildin_argtype(st, func); } if( HPMHooks.count.HP_script_check_buildin_argtype_post ) { - void (*postHookFunc) (struct script_state *st, int *func); + void (*postHookFunc) (struct script_state *st, int func); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_check_buildin_argtype_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_check_buildin_argtype_post[hIndex].func; - postHookFunc(st, &func); + postHookFunc(st, func); } } return; @@ -62633,11 +62853,11 @@ void HP_script_check_buildin_argtype(struct script_state *st, int func) { void HP_script_detach_state(struct script_state *st, bool dequeue_event) { int hIndex = 0; if( HPMHooks.count.HP_script_detach_state_pre ) { - void (*preHookFunc) (struct script_state *st, bool *dequeue_event); + void (*preHookFunc) (struct script_state **st, bool *dequeue_event); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_detach_state_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_detach_state_pre[hIndex].func; - preHookFunc(st, &dequeue_event); + preHookFunc(&st, &dequeue_event); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62648,24 +62868,24 @@ void HP_script_detach_state(struct script_state *st, bool dequeue_event) { HPMHooks.source.script.detach_state(st, dequeue_event); } if( HPMHooks.count.HP_script_detach_state_post ) { - void (*postHookFunc) (struct script_state *st, bool *dequeue_event); + void (*postHookFunc) (struct script_state *st, bool dequeue_event); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_detach_state_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_detach_state_post[hIndex].func; - postHookFunc(st, &dequeue_event); + postHookFunc(st, dequeue_event); } } return; } -int HP_script_db_free_code_sub(DBKey key, DBData *data, va_list ap) { +int HP_script_db_free_code_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_db_free_code_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_db_free_code_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_db_free_code_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62679,11 +62899,11 @@ int HP_script_db_free_code_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_script_db_free_code_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_db_free_code_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_script_db_free_code_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -62692,11 +62912,11 @@ int HP_script_db_free_code_sub(DBKey key, DBData *data, va_list ap) { void HP_script_add_autobonus(const char *autobonus) { int hIndex = 0; if( HPMHooks.count.HP_script_add_autobonus_pre ) { - void (*preHookFunc) (const char *autobonus); + void (*preHookFunc) (const char **autobonus); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_autobonus_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_autobonus_pre[hIndex].func; - preHookFunc(autobonus); + preHookFunc(&autobonus); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62719,11 +62939,11 @@ int HP_script_menu_countoptions(const char *str, int max_count, int *total) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_menu_countoptions_pre ) { - int (*preHookFunc) (const char *str, int *max_count, int *total); + int (*preHookFunc) (const char **str, int *max_count, int **total); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_menu_countoptions_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_menu_countoptions_pre[hIndex].func; - retVal___ = preHookFunc(str, &max_count, total); + retVal___ = preHookFunc(&str, &max_count, &total); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62734,10 +62954,10 @@ int HP_script_menu_countoptions(const char *str, int max_count, int *total) { retVal___ = HPMHooks.source.script.menu_countoptions(str, max_count, total); } if( HPMHooks.count.HP_script_menu_countoptions_post ) { - int (*postHookFunc) (int retVal___, const char *str, int *max_count, int *total); + int (*postHookFunc) (int retVal___, const char *str, int max_count, int *total); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_menu_countoptions_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_menu_countoptions_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &max_count, total); + retVal___ = postHookFunc(retVal___, str, max_count, total); } } return retVal___; @@ -62746,12 +62966,12 @@ int HP_script_buildin_areawarp_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_areawarp_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_areawarp_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_areawarp_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62779,12 +62999,12 @@ int HP_script_buildin_areapercentheal_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_areapercentheal_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_areapercentheal_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_areapercentheal_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62811,11 +63031,11 @@ int HP_script_buildin_areapercentheal_sub(struct block_list *bl, va_list ap) { void HP_script_buildin_delitem_delete(struct map_session_data *sd, int idx, int *amount, bool delete_items) { int hIndex = 0; if( HPMHooks.count.HP_script_buildin_delitem_delete_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount, bool *delete_items); + void (*preHookFunc) (struct map_session_data **sd, int *idx, int **amount, bool *delete_items); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_delitem_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_buildin_delitem_delete_pre[hIndex].func; - preHookFunc(sd, &idx, amount, &delete_items); + preHookFunc(&sd, &idx, &amount, &delete_items); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62826,10 +63046,10 @@ void HP_script_buildin_delitem_delete(struct map_session_data *sd, int idx, int HPMHooks.source.script.buildin_delitem_delete(sd, idx, amount, delete_items); } if( HPMHooks.count.HP_script_buildin_delitem_delete_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx, int *amount, bool *delete_items); + void (*postHookFunc) (struct map_session_data *sd, int idx, int *amount, bool delete_items); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_delitem_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_buildin_delitem_delete_post[hIndex].func; - postHookFunc(sd, &idx, amount, &delete_items); + postHookFunc(sd, idx, amount, delete_items); } } return; @@ -62838,11 +63058,11 @@ bool HP_script_buildin_delitem_search(struct map_session_data *sd, struct item * int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_script_buildin_delitem_search_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, struct item *it, bool *exact_match); + bool (*preHookFunc) (struct map_session_data **sd, struct item **it, bool *exact_match); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_delitem_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_buildin_delitem_search_pre[hIndex].func; - retVal___ = preHookFunc(sd, it, &exact_match); + retVal___ = preHookFunc(&sd, &it, &exact_match); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -62853,10 +63073,10 @@ bool HP_script_buildin_delitem_search(struct map_session_data *sd, struct item * retVal___ = HPMHooks.source.script.buildin_delitem_search(sd, it, exact_match); } if( HPMHooks.count.HP_script_buildin_delitem_search_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, struct item *it, bool *exact_match); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, struct item *it, bool exact_match); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_delitem_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_buildin_delitem_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, it, &exact_match); + retVal___ = postHookFunc(retVal___, sd, it, exact_match); } } return retVal___; @@ -62865,12 +63085,12 @@ int HP_script_buildin_killmonster_sub_strip(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_killmonster_sub_strip_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonster_sub_strip_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_killmonster_sub_strip_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62898,12 +63118,12 @@ int HP_script_buildin_killmonster_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_killmonster_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonster_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_killmonster_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62931,12 +63151,12 @@ int HP_script_buildin_killmonsterall_sub_strip(struct block_list *bl, va_list ap int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_killmonsterall_sub_strip_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonsterall_sub_strip_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_killmonsterall_sub_strip_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62964,12 +63184,12 @@ int HP_script_buildin_killmonsterall_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_killmonsterall_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonsterall_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_killmonsterall_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -62997,12 +63217,12 @@ int HP_script_buildin_announce_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_announce_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_announce_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_announce_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63030,12 +63250,12 @@ int HP_script_buildin_getareausers_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_getareausers_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_getareausers_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_getareausers_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63063,12 +63283,12 @@ int HP_script_buildin_getareadropitem_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_getareadropitem_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_getareadropitem_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_getareadropitem_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63096,12 +63316,12 @@ int HP_script_mapflag_pvp_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_mapflag_pvp_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_mapflag_pvp_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_mapflag_pvp_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63129,12 +63349,12 @@ int HP_script_buildin_pvpoff_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_pvpoff_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_pvpoff_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_pvpoff_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63162,12 +63382,12 @@ int HP_script_buildin_maprespawnguildid_sub_pc(struct map_session_data *sd, va_l int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_pc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list ap); + int (*preHookFunc) (struct map_session_data **sd, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_pc_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_maprespawnguildid_sub_pc_pre[hIndex].func; - retVal___ = preHookFunc(sd, ap___copy); + retVal___ = preHookFunc(&sd, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63195,12 +63415,12 @@ int HP_script_buildin_maprespawnguildid_sub_mob(struct block_list *bl, va_list a int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_mob_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_mob_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_maprespawnguildid_sub_mob_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63228,12 +63448,12 @@ int HP_script_buildin_mobcount_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_mobcount_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_mobcount_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_mobcount_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63261,12 +63481,12 @@ int HP_script_playbgm_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_playbgm_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_playbgm_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_playbgm_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63294,12 +63514,12 @@ int HP_script_playbgm_foreachpc_sub(struct map_session_data *sd, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_playbgm_foreachpc_sub_pre ) { - int (*preHookFunc) (struct map_session_data *sd, va_list args); + int (*preHookFunc) (struct map_session_data **sd, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_playbgm_foreachpc_sub_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_script_playbgm_foreachpc_sub_pre[hIndex].func; - retVal___ = preHookFunc(sd, args___copy); + retVal___ = preHookFunc(&sd, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -63327,12 +63547,12 @@ int HP_script_soundeffect_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_soundeffect_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_soundeffect_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_soundeffect_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63356,15 +63576,15 @@ int HP_script_soundeffect_sub(struct block_list *bl, va_list ap) { } return retVal___; } -int HP_script_buildin_query_sql_sub(struct script_state *st, Sql *handle) { +int HP_script_buildin_query_sql_sub(struct script_state *st, struct Sql *handle) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_query_sql_sub_pre ) { - int (*preHookFunc) (struct script_state *st, Sql *handle); + int (*preHookFunc) (struct script_state **st, struct Sql **handle); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_query_sql_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_buildin_query_sql_sub_pre[hIndex].func; - retVal___ = preHookFunc(st, handle); + retVal___ = preHookFunc(&st, &handle); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63375,7 +63595,7 @@ int HP_script_buildin_query_sql_sub(struct script_state *st, Sql *handle) { retVal___ = HPMHooks.source.script.buildin_query_sql_sub(st, handle); } if( HPMHooks.count.HP_script_buildin_query_sql_sub_post ) { - int (*postHookFunc) (int retVal___, struct script_state *st, Sql *handle); + int (*postHookFunc) (int retVal___, struct script_state *st, struct Sql *handle); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_query_sql_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_buildin_query_sql_sub_post[hIndex].func; retVal___ = postHookFunc(retVal___, st, handle); @@ -63387,12 +63607,12 @@ int HP_script_buildin_instance_warpall_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_instance_warpall_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_instance_warpall_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_instance_warpall_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63420,12 +63640,12 @@ int HP_script_buildin_mobuseskill_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_buildin_mobuseskill_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_mobuseskill_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_buildin_mobuseskill_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63453,12 +63673,12 @@ int HP_script_cleanfloor_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_cleanfloor_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_cleanfloor_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_cleanfloor_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63486,11 +63706,11 @@ int HP_script_run_func(struct script_state *st) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_run_func_pre ) { - int (*preHookFunc) (struct script_state *st); + int (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_func_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_func_pre[hIndex].func; - retVal___ = preHookFunc(st); + retVal___ = preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63513,11 +63733,11 @@ const char* HP_script_getfuncname(struct script_state *st) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_getfuncname_pre ) { - const char* (*preHookFunc) (struct script_state *st); + const char* (*preHookFunc) (struct script_state **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_getfuncname_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_getfuncname_pre[hIndex].func; - retVal___ = preHookFunc(st); + retVal___ = preHookFunc(&st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63540,11 +63760,11 @@ unsigned int HP_script_calc_hash_ci(const char *p) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_script_calc_hash_ci_pre ) { - unsigned int (*preHookFunc) (const char *p); + unsigned int (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_calc_hash_ci_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_calc_hash_ci_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63567,11 +63787,11 @@ struct reg_db* HP_script_array_src(struct script_state *st, struct map_session_d int hIndex = 0; struct reg_db* retVal___ = NULL; if( HPMHooks.count.HP_script_array_src_pre ) { - struct reg_db* (*preHookFunc) (struct script_state *st, struct map_session_data *sd, const char *name, struct reg_db *ref); + struct reg_db* (*preHookFunc) (struct script_state **st, struct map_session_data **sd, const char **name, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_src_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_src_pre[hIndex].func; - retVal___ = preHookFunc(st, sd, name, ref); + retVal___ = preHookFunc(&st, &sd, &name, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63593,11 +63813,11 @@ struct reg_db* HP_script_array_src(struct script_state *st, struct map_session_d void HP_script_array_update(struct reg_db *src, int64 num, bool empty) { int hIndex = 0; if( HPMHooks.count.HP_script_array_update_pre ) { - void (*preHookFunc) (struct reg_db *src, int64 *num, bool *empty); + void (*preHookFunc) (struct reg_db **src, int64 *num, bool *empty); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_update_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_update_pre[hIndex].func; - preHookFunc(src, &num, &empty); + preHookFunc(&src, &num, &empty); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63608,10 +63828,10 @@ void HP_script_array_update(struct reg_db *src, int64 num, bool empty) { HPMHooks.source.script.array_update(src, num, empty); } if( HPMHooks.count.HP_script_array_update_post ) { - void (*postHookFunc) (struct reg_db *src, int64 *num, bool *empty); + void (*postHookFunc) (struct reg_db *src, int64 num, bool empty); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_update_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_array_update_post[hIndex].func; - postHookFunc(src, &num, &empty); + postHookFunc(src, num, empty); } } return; @@ -63619,11 +63839,11 @@ void HP_script_array_update(struct reg_db *src, int64 num, bool empty) { void HP_script_array_delete(struct reg_db *src, struct script_array *sa) { int hIndex = 0; if( HPMHooks.count.HP_script_array_delete_pre ) { - void (*preHookFunc) (struct reg_db *src, struct script_array *sa); + void (*preHookFunc) (struct reg_db **src, struct script_array **sa); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_delete_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_delete_pre[hIndex].func; - preHookFunc(src, sa); + preHookFunc(&src, &sa); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63645,11 +63865,11 @@ void HP_script_array_delete(struct reg_db *src, struct script_array *sa) { void HP_script_array_remove_member(struct reg_db *src, struct script_array *sa, unsigned int idx) { int hIndex = 0; if( HPMHooks.count.HP_script_array_remove_member_pre ) { - void (*preHookFunc) (struct reg_db *src, struct script_array *sa, unsigned int *idx); + void (*preHookFunc) (struct reg_db **src, struct script_array **sa, unsigned int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_remove_member_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_remove_member_pre[hIndex].func; - preHookFunc(src, sa, &idx); + preHookFunc(&src, &sa, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63660,10 +63880,10 @@ void HP_script_array_remove_member(struct reg_db *src, struct script_array *sa, HPMHooks.source.script.array_remove_member(src, sa, idx); } if( HPMHooks.count.HP_script_array_remove_member_post ) { - void (*postHookFunc) (struct reg_db *src, struct script_array *sa, unsigned int *idx); + void (*postHookFunc) (struct reg_db *src, struct script_array *sa, unsigned int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_remove_member_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_array_remove_member_post[hIndex].func; - postHookFunc(src, sa, &idx); + postHookFunc(src, sa, idx); } } return; @@ -63671,11 +63891,11 @@ void HP_script_array_remove_member(struct reg_db *src, struct script_array *sa, void HP_script_array_add_member(struct script_array *sa, unsigned int idx) { int hIndex = 0; if( HPMHooks.count.HP_script_array_add_member_pre ) { - void (*preHookFunc) (struct script_array *sa, unsigned int *idx); + void (*preHookFunc) (struct script_array **sa, unsigned int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_add_member_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_add_member_pre[hIndex].func; - preHookFunc(sa, &idx); + preHookFunc(&sa, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63686,10 +63906,10 @@ void HP_script_array_add_member(struct script_array *sa, unsigned int idx) { HPMHooks.source.script.array_add_member(sa, idx); } if( HPMHooks.count.HP_script_array_add_member_post ) { - void (*postHookFunc) (struct script_array *sa, unsigned int *idx); + void (*postHookFunc) (struct script_array *sa, unsigned int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_add_member_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_array_add_member_post[hIndex].func; - postHookFunc(sa, &idx); + postHookFunc(sa, idx); } } return; @@ -63698,11 +63918,11 @@ unsigned int HP_script_array_size(struct script_state *st, struct map_session_da int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_script_array_size_pre ) { - unsigned int (*preHookFunc) (struct script_state *st, struct map_session_data *sd, const char *name, struct reg_db *ref); + unsigned int (*preHookFunc) (struct script_state **st, struct map_session_data **sd, const char **name, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_size_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_size_pre[hIndex].func; - retVal___ = preHookFunc(st, sd, name, ref); + retVal___ = preHookFunc(&st, &sd, &name, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63725,11 +63945,11 @@ unsigned int HP_script_array_highest_key(struct script_state *st, struct map_ses int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_script_array_highest_key_pre ) { - unsigned int (*preHookFunc) (struct script_state *st, struct map_session_data *sd, const char *name, struct reg_db *ref); + unsigned int (*preHookFunc) (struct script_state **st, struct map_session_data **sd, const char **name, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_highest_key_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_highest_key_pre[hIndex].func; - retVal___ = preHookFunc(st, sd, name, ref); + retVal___ = preHookFunc(&st, &sd, &name, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63748,16 +63968,16 @@ unsigned int HP_script_array_highest_key(struct script_state *st, struct map_ses } return retVal___; } -int HP_script_array_free_db(DBKey key, DBData *data, va_list ap) { +int HP_script_array_free_db(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_array_free_db_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_free_db_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_array_free_db_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63771,11 +63991,11 @@ int HP_script_array_free_db(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_script_array_free_db_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_free_db_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_script_array_free_db_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -63784,11 +64004,11 @@ int HP_script_array_free_db(DBKey key, DBData *data, va_list ap) { void HP_script_array_ensure_zero(struct script_state *st, struct map_session_data *sd, int64 uid, struct reg_db *ref) { int hIndex = 0; if( HPMHooks.count.HP_script_array_ensure_zero_pre ) { - void (*preHookFunc) (struct script_state *st, struct map_session_data *sd, int64 *uid, struct reg_db *ref); + void (*preHookFunc) (struct script_state **st, struct map_session_data **sd, int64 *uid, struct reg_db **ref); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_ensure_zero_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_ensure_zero_pre[hIndex].func; - preHookFunc(st, sd, &uid, ref); + preHookFunc(&st, &sd, &uid, &ref); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63799,10 +64019,10 @@ void HP_script_array_ensure_zero(struct script_state *st, struct map_session_dat HPMHooks.source.script.array_ensure_zero(st, sd, uid, ref); } if( HPMHooks.count.HP_script_array_ensure_zero_post ) { - void (*postHookFunc) (struct script_state *st, struct map_session_data *sd, int64 *uid, struct reg_db *ref); + void (*postHookFunc) (struct script_state *st, struct map_session_data *sd, int64 uid, struct reg_db *ref); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_ensure_zero_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_array_ensure_zero_post[hIndex].func; - postHookFunc(st, sd, &uid, ref); + postHookFunc(st, sd, uid, ref); } } return; @@ -63810,11 +64030,11 @@ void HP_script_array_ensure_zero(struct script_state *st, struct map_session_dat void HP_script_reg_destroy_single(struct map_session_data *sd, int64 reg, struct script_reg_state *data) { int hIndex = 0; if( HPMHooks.count.HP_script_reg_destroy_single_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int64 *reg, struct script_reg_state *data); + void (*preHookFunc) (struct map_session_data **sd, int64 *reg, struct script_reg_state **data); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reg_destroy_single_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_reg_destroy_single_pre[hIndex].func; - preHookFunc(sd, ®, data); + preHookFunc(&sd, ®, &data); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63825,24 +64045,24 @@ void HP_script_reg_destroy_single(struct map_session_data *sd, int64 reg, struct HPMHooks.source.script.reg_destroy_single(sd, reg, data); } if( HPMHooks.count.HP_script_reg_destroy_single_post ) { - void (*postHookFunc) (struct map_session_data *sd, int64 *reg, struct script_reg_state *data); + void (*postHookFunc) (struct map_session_data *sd, int64 reg, struct script_reg_state *data); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reg_destroy_single_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_reg_destroy_single_post[hIndex].func; - postHookFunc(sd, ®, data); + postHookFunc(sd, reg, data); } } return; } -int HP_script_reg_destroy(DBKey key, DBData *data, va_list ap) { +int HP_script_reg_destroy(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_reg_destroy_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reg_destroy_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_reg_destroy_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -63856,11 +64076,11 @@ int HP_script_reg_destroy(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_script_reg_destroy_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reg_destroy_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_script_reg_destroy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -63884,10 +64104,10 @@ void HP_script_generic_ui_array_expand(unsigned int plus) { HPMHooks.source.script.generic_ui_array_expand(plus); } if( HPMHooks.count.HP_script_generic_ui_array_expand_post ) { - void (*postHookFunc) (unsigned int *plus); + void (*postHookFunc) (unsigned int plus); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_generic_ui_array_expand_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_generic_ui_array_expand_post[hIndex].func; - postHookFunc(&plus); + postHookFunc(plus); } } return; @@ -63896,11 +64116,11 @@ unsigned int* HP_script_array_cpy_list(struct script_array *sa) { int hIndex = 0; unsigned int* retVal___ = NULL; if( HPMHooks.count.HP_script_array_cpy_list_pre ) { - unsigned int* (*preHookFunc) (struct script_array *sa); + unsigned int* (*preHookFunc) (struct script_array **sa); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_array_cpy_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_array_cpy_list_pre[hIndex].func; - retVal___ = preHookFunc(sa); + retVal___ = preHookFunc(&sa); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63949,11 +64169,11 @@ unsigned short HP_script_mapindexname2id(struct script_state *st, const char *na int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_script_mapindexname2id_pre ) { - unsigned short (*preHookFunc) (struct script_state *st, const char *name); + unsigned short (*preHookFunc) (struct script_state **st, const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_mapindexname2id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_mapindexname2id_pre[hIndex].func; - retVal___ = preHookFunc(st, name); + retVal___ = preHookFunc(&st, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -63976,11 +64196,11 @@ int HP_script_string_dup(char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_string_dup_pre ) { - int (*preHookFunc) (char *str); + int (*preHookFunc) (char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_string_dup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_string_dup_pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64028,11 +64248,11 @@ void HP_script_load_translations(void) { void HP_script_load_translation(const char *file, uint8 lang_id, uint32 *total) { int hIndex = 0; if( HPMHooks.count.HP_script_load_translation_pre ) { - void (*preHookFunc) (const char *file, uint8 *lang_id, uint32 *total); + void (*preHookFunc) (const char **file, uint8 *lang_id, uint32 **total); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_translation_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_load_translation_pre[hIndex].func; - preHookFunc(file, &lang_id, total); + preHookFunc(&file, &lang_id, &total); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64043,24 +64263,24 @@ void HP_script_load_translation(const char *file, uint8 lang_id, uint32 *total) HPMHooks.source.script.load_translation(file, lang_id, total); } if( HPMHooks.count.HP_script_load_translation_post ) { - void (*postHookFunc) (const char *file, uint8 *lang_id, uint32 *total); + void (*postHookFunc) (const char *file, uint8 lang_id, uint32 *total); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_translation_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_load_translation_post[hIndex].func; - postHookFunc(file, &lang_id, total); + postHookFunc(file, lang_id, total); } } return; } -int HP_script_translation_db_destroyer(DBKey key, DBData *data, va_list ap) { +int HP_script_translation_db_destroyer(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_script_translation_db_destroyer_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_translation_db_destroyer_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_script_translation_db_destroyer_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -64074,11 +64294,11 @@ int HP_script_translation_db_destroyer(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_script_translation_db_destroyer_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_translation_db_destroyer_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_script_translation_db_destroyer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -64102,10 +64322,10 @@ void HP_script_clear_translations(bool reload) { HPMHooks.source.script.clear_translations(reload); } if( HPMHooks.count.HP_script_clear_translations_post ) { - void (*postHookFunc) (bool *reload); + void (*postHookFunc) (bool reload); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_clear_translations_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_clear_translations_post[hIndex].func; - postHookFunc(&reload); + postHookFunc(reload); } } return; @@ -64129,10 +64349,10 @@ int HP_script_parse_cleanup_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.script.parse_cleanup_timer(tid, tick, id, data); } if( HPMHooks.count.HP_script_parse_cleanup_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_parse_cleanup_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_parse_cleanup_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -64141,11 +64361,11 @@ uint8 HP_script_add_language(const char *name) { int hIndex = 0; uint8 retVal___ = 0; if( HPMHooks.count.HP_script_add_language_pre ) { - uint8 (*preHookFunc) (const char *name); + uint8 (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_language_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_add_language_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64168,11 +64388,11 @@ const char* HP_script_get_translation_file_name(const char *file) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_script_get_translation_file_name_pre ) { - const char* (*preHookFunc) (const char *file); + const char* (*preHookFunc) (const char **file); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_translation_file_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_get_translation_file_name_pre[hIndex].func; - retVal___ = preHookFunc(file); + retVal___ = preHookFunc(&file); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64220,11 +64440,11 @@ void HP_script_parser_clean_leftovers(void) { void HP_script_run_use_script(struct map_session_data *sd, struct item_data *data, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_use_script_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*preHookFunc) (struct map_session_data **sd, struct item_data **data, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_use_script_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_use_script_pre[hIndex].func; - preHookFunc(sd, data, &oid); + preHookFunc(&sd, &data, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64235,10 +64455,10 @@ void HP_script_run_use_script(struct map_session_data *sd, struct item_data *dat HPMHooks.source.script.run_use_script(sd, data, oid); } if( HPMHooks.count.HP_script_run_use_script_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_use_script_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_use_script_post[hIndex].func; - postHookFunc(sd, data, &oid); + postHookFunc(sd, data, oid); } } return; @@ -64246,11 +64466,11 @@ void HP_script_run_use_script(struct map_session_data *sd, struct item_data *dat void HP_script_run_item_equip_script(struct map_session_data *sd, struct item_data *data, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_item_equip_script_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*preHookFunc) (struct map_session_data **sd, struct item_data **data, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_item_equip_script_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_item_equip_script_pre[hIndex].func; - preHookFunc(sd, data, &oid); + preHookFunc(&sd, &data, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64261,10 +64481,10 @@ void HP_script_run_item_equip_script(struct map_session_data *sd, struct item_da HPMHooks.source.script.run_item_equip_script(sd, data, oid); } if( HPMHooks.count.HP_script_run_item_equip_script_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_item_equip_script_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_item_equip_script_post[hIndex].func; - postHookFunc(sd, data, &oid); + postHookFunc(sd, data, oid); } } return; @@ -64272,11 +64492,11 @@ void HP_script_run_item_equip_script(struct map_session_data *sd, struct item_da void HP_script_run_item_unequip_script(struct map_session_data *sd, struct item_data *data, int oid) { int hIndex = 0; if( HPMHooks.count.HP_script_run_item_unequip_script_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*preHookFunc) (struct map_session_data **sd, struct item_data **data, int *oid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_item_unequip_script_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_run_item_unequip_script_pre[hIndex].func; - preHookFunc(sd, data, &oid); + preHookFunc(&sd, &data, &oid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64287,24 +64507,24 @@ void HP_script_run_item_unequip_script(struct map_session_data *sd, struct item_ HPMHooks.source.script.run_item_unequip_script(sd, data, oid); } if( HPMHooks.count.HP_script_run_item_unequip_script_post ) { - void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int *oid); + void (*postHookFunc) (struct map_session_data *sd, struct item_data *data, int oid); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_item_unequip_script_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_run_item_unequip_script_post[hIndex].func; - postHookFunc(sd, data, &oid); + postHookFunc(sd, data, oid); } } return; } -/* searchstore */ +/* searchstore_interface */ bool HP_searchstore_open(struct map_session_data *sd, unsigned int uses, unsigned short effect) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_searchstore_open_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned int *uses, unsigned short *effect); + bool (*preHookFunc) (struct map_session_data **sd, unsigned int *uses, unsigned short *effect); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_open_pre[hIndex].func; - retVal___ = preHookFunc(sd, &uses, &effect); + retVal___ = preHookFunc(&sd, &uses, &effect); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64315,10 +64535,10 @@ bool HP_searchstore_open(struct map_session_data *sd, unsigned int uses, unsigne retVal___ = HPMHooks.source.searchstore.open(sd, uses, effect); } if( HPMHooks.count.HP_searchstore_open_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned int *uses, unsigned short *effect); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned int uses, unsigned short effect); for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_open_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_searchstore_open_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &uses, &effect); + retVal___ = postHookFunc(retVal___, sd, uses, effect); } } return retVal___; @@ -64326,11 +64546,11 @@ bool HP_searchstore_open(struct map_session_data *sd, unsigned int uses, unsigne void HP_searchstore_query(struct map_session_data *sd, unsigned char type, unsigned int min_price, unsigned int max_price, const unsigned short *itemlist, unsigned int item_count, const unsigned short *cardlist, unsigned int card_count) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_query_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned char *type, unsigned int *min_price, unsigned int *max_price, const unsigned short *itemlist, unsigned int *item_count, const unsigned short *cardlist, unsigned int *card_count); + void (*preHookFunc) (struct map_session_data **sd, unsigned char *type, unsigned int *min_price, unsigned int *max_price, const unsigned short **itemlist, unsigned int *item_count, const unsigned short **cardlist, unsigned int *card_count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_query_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_query_pre[hIndex].func; - preHookFunc(sd, &type, &min_price, &max_price, itemlist, &item_count, cardlist, &card_count); + preHookFunc(&sd, &type, &min_price, &max_price, &itemlist, &item_count, &cardlist, &card_count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64341,10 +64561,10 @@ void HP_searchstore_query(struct map_session_data *sd, unsigned char type, unsig HPMHooks.source.searchstore.query(sd, type, min_price, max_price, itemlist, item_count, cardlist, card_count); } if( HPMHooks.count.HP_searchstore_query_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned char *type, unsigned int *min_price, unsigned int *max_price, const unsigned short *itemlist, unsigned int *item_count, const unsigned short *cardlist, unsigned int *card_count); + void (*postHookFunc) (struct map_session_data *sd, unsigned char type, unsigned int min_price, unsigned int max_price, const unsigned short *itemlist, unsigned int item_count, const unsigned short *cardlist, unsigned int card_count); for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_query_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_searchstore_query_post[hIndex].func; - postHookFunc(sd, &type, &min_price, &max_price, itemlist, &item_count, cardlist, &card_count); + postHookFunc(sd, type, min_price, max_price, itemlist, item_count, cardlist, card_count); } } return; @@ -64353,11 +64573,11 @@ bool HP_searchstore_querynext(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_searchstore_querynext_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_querynext_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_querynext_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64379,11 +64599,11 @@ bool HP_searchstore_querynext(struct map_session_data *sd) { void HP_searchstore_next(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_next_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_next_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_next_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64405,11 +64625,11 @@ void HP_searchstore_next(struct map_session_data *sd) { void HP_searchstore_clear(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_clear_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_clear_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64431,11 +64651,11 @@ void HP_searchstore_clear(struct map_session_data *sd) { void HP_searchstore_close(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_close_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_close_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64457,11 +64677,11 @@ void HP_searchstore_close(struct map_session_data *sd) { void HP_searchstore_click(struct map_session_data *sd, int account_id, int store_id, unsigned short nameid) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_click_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *account_id, int *store_id, unsigned short *nameid); + void (*preHookFunc) (struct map_session_data **sd, int *account_id, int *store_id, unsigned short *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_click_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_click_pre[hIndex].func; - preHookFunc(sd, &account_id, &store_id, &nameid); + preHookFunc(&sd, &account_id, &store_id, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64472,10 +64692,10 @@ void HP_searchstore_click(struct map_session_data *sd, int account_id, int store HPMHooks.source.searchstore.click(sd, account_id, store_id, nameid); } if( HPMHooks.count.HP_searchstore_click_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *account_id, int *store_id, unsigned short *nameid); + void (*postHookFunc) (struct map_session_data *sd, int account_id, int store_id, unsigned short nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_click_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_searchstore_click_post[hIndex].func; - postHookFunc(sd, &account_id, &store_id, &nameid); + postHookFunc(sd, account_id, store_id, nameid); } } return; @@ -64484,11 +64704,11 @@ bool HP_searchstore_queryremote(struct map_session_data *sd, int account_id) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_searchstore_queryremote_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, int *account_id); + bool (*preHookFunc) (struct map_session_data **sd, int *account_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_queryremote_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_queryremote_pre[hIndex].func; - retVal___ = preHookFunc(sd, &account_id); + retVal___ = preHookFunc(&sd, &account_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64499,10 +64719,10 @@ bool HP_searchstore_queryremote(struct map_session_data *sd, int account_id) { retVal___ = HPMHooks.source.searchstore.queryremote(sd, account_id); } if( HPMHooks.count.HP_searchstore_queryremote_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *account_id); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int account_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_queryremote_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_searchstore_queryremote_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &account_id); + retVal___ = postHookFunc(retVal___, sd, account_id); } } return retVal___; @@ -64510,11 +64730,11 @@ bool HP_searchstore_queryremote(struct map_session_data *sd, int account_id) { void HP_searchstore_clearremote(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_searchstore_clearremote_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_clearremote_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_clearremote_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64537,11 +64757,11 @@ bool HP_searchstore_result(struct map_session_data *sd, unsigned int store_id, i int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_searchstore_result_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned int *store_id, int *account_id, const char *store_name, unsigned short *nameid, unsigned short *amount, unsigned int *price, const short *card, unsigned char *refine); + bool (*preHookFunc) (struct map_session_data **sd, unsigned int *store_id, int *account_id, const char **store_name, unsigned short *nameid, unsigned short *amount, unsigned int *price, const short **card, unsigned char *refine); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_result_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_searchstore_result_pre[hIndex].func; - retVal___ = preHookFunc(sd, &store_id, &account_id, store_name, &nameid, &amount, &price, card, &refine); + retVal___ = preHookFunc(&sd, &store_id, &account_id, &store_name, &nameid, &amount, &price, &card, &refine); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64552,15 +64772,15 @@ bool HP_searchstore_result(struct map_session_data *sd, unsigned int store_id, i retVal___ = HPMHooks.source.searchstore.result(sd, store_id, account_id, store_name, nameid, amount, price, card, refine); } if( HPMHooks.count.HP_searchstore_result_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned int *store_id, int *account_id, const char *store_name, unsigned short *nameid, unsigned short *amount, unsigned int *price, const short *card, unsigned char *refine); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned int store_id, int account_id, const char *store_name, unsigned short nameid, unsigned short amount, unsigned int price, const short *card, unsigned char refine); for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_result_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_searchstore_result_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &store_id, &account_id, store_name, &nameid, &amount, &price, card, &refine); + retVal___ = postHookFunc(retVal___, sd, store_id, account_id, store_name, nameid, amount, price, card, refine); } } return retVal___; } -/* showmsg */ +/* showmsg_interface */ void HP_showmsg_init(void) { int hIndex = 0; if( HPMHooks.count.HP_showmsg_init_pre ) { @@ -64643,12 +64863,12 @@ int HP_showmsg_showMessageV(const char *string, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_showmsg_showMessageV_pre ) { - int (*preHookFunc) (const char *string, va_list ap); + int (*preHookFunc) (const char **string, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_showmsg_showMessageV_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_showmsg_showMessageV_pre[hIndex].func; - retVal___ = preHookFunc(string, ap___copy); + retVal___ = preHookFunc(&string, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -64672,7 +64892,7 @@ int HP_showmsg_showMessageV(const char *string, va_list ap) { } return retVal___; } -/* skill */ +/* skill_interface */ int HP_skill_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -64692,10 +64912,10 @@ int HP_skill_init(bool minimal) { retVal___ = HPMHooks.source.skill.init(minimal); } if( HPMHooks.count.HP_skill_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -64771,10 +64991,10 @@ void HP_skill_read_db(bool minimal) { HPMHooks.source.skill.read_db(minimal); } if( HPMHooks.count.HP_skill_read_db_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_read_db_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_read_db_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -64798,10 +65018,10 @@ int HP_skill_get_index(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_index(skill_id); } if( HPMHooks.count.HP_skill_get_index_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_index_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_index_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64825,10 +65045,10 @@ int HP_skill_get_type(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_type(skill_id); } if( HPMHooks.count.HP_skill_get_type_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64852,10 +65072,10 @@ int HP_skill_get_hit(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_hit(skill_id); } if( HPMHooks.count.HP_skill_get_hit_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_hit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_hit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64879,10 +65099,10 @@ int HP_skill_get_inf(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_inf(skill_id); } if( HPMHooks.count.HP_skill_get_inf_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_inf_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_inf_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64906,10 +65126,10 @@ int HP_skill_get_ele(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_ele(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_ele_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ele_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_ele_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -64933,10 +65153,10 @@ int HP_skill_get_nk(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_nk(skill_id); } if( HPMHooks.count.HP_skill_get_nk_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_nk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_nk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64960,10 +65180,10 @@ int HP_skill_get_max(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_max(skill_id); } if( HPMHooks.count.HP_skill_get_max_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_max_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_max_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -64987,10 +65207,10 @@ int HP_skill_get_range(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_range(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_range_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_range_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_range_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -64999,11 +65219,11 @@ int HP_skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_get_range2_pre ) { - int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_range2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_range2_pre[hIndex].func; - retVal___ = preHookFunc(bl, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -65014,10 +65234,10 @@ int HP_skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv) retVal___ = HPMHooks.source.skill.get_range2(bl, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_range2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_range2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_range2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, skill_id, skill_lv); } } return retVal___; @@ -65041,10 +65261,10 @@ int HP_skill_get_splash(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_splash(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_splash_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_splash_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_splash_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65068,10 +65288,10 @@ int HP_skill_get_hp(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_hp(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_hp_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_hp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_hp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65095,10 +65315,10 @@ int HP_skill_get_mhp(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_mhp(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_mhp_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_mhp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_mhp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65122,10 +65342,10 @@ int HP_skill_get_sp(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_sp(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_sp_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_sp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_sp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65149,10 +65369,10 @@ int HP_skill_get_state(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_state(skill_id); } if( HPMHooks.count.HP_skill_get_state_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_state_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_state_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65176,10 +65396,10 @@ int HP_skill_get_spiritball(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_spiritball(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_spiritball_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_spiritball_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_spiritball_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65203,10 +65423,10 @@ int HP_skill_get_zeny(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_zeny(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_zeny_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_zeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_zeny_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65230,10 +65450,10 @@ int HP_skill_get_num(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_num(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_num_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_num_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_num_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65257,10 +65477,10 @@ int HP_skill_get_cast(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_cast(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_cast_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_cast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_cast_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65284,10 +65504,10 @@ int HP_skill_get_delay(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_delay(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_delay_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_delay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_delay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65311,10 +65531,10 @@ int HP_skill_get_walkdelay(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_walkdelay(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_walkdelay_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_walkdelay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_walkdelay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65338,10 +65558,10 @@ int HP_skill_get_time(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_time(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_time_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_time_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_time_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65365,10 +65585,10 @@ int HP_skill_get_time2(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_time2(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_time2_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_time2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_time2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65392,10 +65612,10 @@ int HP_skill_get_castnodex(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_castnodex(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_castnodex_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castnodex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_castnodex_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65419,10 +65639,10 @@ int HP_skill_get_delaynodex(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_delaynodex(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_delaynodex_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_delaynodex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_delaynodex_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65446,10 +65666,10 @@ int HP_skill_get_castdef(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_castdef(skill_id); } if( HPMHooks.count.HP_skill_get_castdef_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castdef_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_castdef_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65473,10 +65693,10 @@ int HP_skill_get_weapontype(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_weapontype(skill_id); } if( HPMHooks.count.HP_skill_get_weapontype_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_weapontype_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_weapontype_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65500,10 +65720,10 @@ int HP_skill_get_ammotype(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_ammotype(skill_id); } if( HPMHooks.count.HP_skill_get_ammotype_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ammotype_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_ammotype_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65527,10 +65747,10 @@ int HP_skill_get_ammo_qty(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_ammo_qty(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_ammo_qty_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ammo_qty_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_ammo_qty_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65554,10 +65774,10 @@ int HP_skill_get_unit_id(uint16 skill_id, int flag) { retVal___ = HPMHooks.source.skill.get_unit_id(skill_id, flag); } if( HPMHooks.count.HP_skill_get_unit_id_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, int *flag); + int (*postHookFunc) (int retVal___, uint16 skill_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &flag); + retVal___ = postHookFunc(retVal___, skill_id, flag); } } return retVal___; @@ -65581,10 +65801,10 @@ int HP_skill_get_inf2(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_inf2(skill_id); } if( HPMHooks.count.HP_skill_get_inf2_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_inf2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_inf2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65608,10 +65828,10 @@ int HP_skill_get_castcancel(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_castcancel(skill_id); } if( HPMHooks.count.HP_skill_get_castcancel_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castcancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_castcancel_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65635,10 +65855,10 @@ int HP_skill_get_maxcount(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_maxcount(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_maxcount_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_maxcount_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_maxcount_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65662,10 +65882,10 @@ int HP_skill_get_blewcount(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_blewcount(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_blewcount_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_blewcount_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_blewcount_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65689,10 +65909,10 @@ int HP_skill_get_unit_flag(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_unit_flag(skill_id); } if( HPMHooks.count.HP_skill_get_unit_flag_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_flag_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_flag_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65716,10 +65936,10 @@ int HP_skill_get_unit_target(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_unit_target(skill_id); } if( HPMHooks.count.HP_skill_get_unit_target_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_target_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_target_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65743,10 +65963,10 @@ int HP_skill_get_unit_interval(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_unit_interval(skill_id); } if( HPMHooks.count.HP_skill_get_unit_interval_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_interval_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_interval_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65770,10 +65990,10 @@ int HP_skill_get_unit_bl_target(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_unit_bl_target(skill_id); } if( HPMHooks.count.HP_skill_get_unit_bl_target_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_bl_target_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_bl_target_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65797,10 +66017,10 @@ int HP_skill_get_unit_layout_type(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_unit_layout_type(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_unit_layout_type_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_layout_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_layout_type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65824,10 +66044,10 @@ int HP_skill_get_unit_range(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_unit_range(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_unit_range_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_range_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_range_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65851,10 +66071,10 @@ int HP_skill_get_cooldown(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_cooldown(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_cooldown_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_cooldown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_cooldown_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -65878,10 +66098,10 @@ int HP_skill_tree_get_max(uint16 skill_id, int b_class) { retVal___ = HPMHooks.source.skill.tree_get_max(skill_id, b_class); } if( HPMHooks.count.HP_skill_tree_get_max_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, int *b_class); + int (*postHookFunc) (int retVal___, uint16 skill_id, int b_class); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_tree_get_max_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_tree_get_max_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &b_class); + retVal___ = postHookFunc(retVal___, skill_id, b_class); } } return retVal___; @@ -65905,10 +66125,10 @@ const char* HP_skill_get_name(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_name(skill_id); } if( HPMHooks.count.HP_skill_get_name_post ) { - const char* (*postHookFunc) (const char* retVal___, uint16 *skill_id); + const char* (*postHookFunc) (const char* retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_name_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65932,10 +66152,10 @@ const char* HP_skill_get_desc(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_desc(skill_id); } if( HPMHooks.count.HP_skill_get_desc_post ) { - const char* (*postHookFunc) (const char* retVal___, uint16 *skill_id); + const char* (*postHookFunc) (const char* retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_desc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_desc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -65943,11 +66163,11 @@ const char* HP_skill_get_desc(uint16 skill_id) { void HP_skill_chk(uint16 *skill_id) { int hIndex = 0; if( HPMHooks.count.HP_skill_chk_pre ) { - void (*preHookFunc) (uint16 *skill_id); + void (*preHookFunc) (uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_chk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_chk_pre[hIndex].func; - preHookFunc(skill_id); + preHookFunc(&skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -65985,10 +66205,10 @@ int HP_skill_get_casttype(uint16 skill_id) { retVal___ = HPMHooks.source.skill.get_casttype(skill_id); } if( HPMHooks.count.HP_skill_get_casttype_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id); + int (*postHookFunc) (int retVal___, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_casttype_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_casttype_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -66012,10 +66232,10 @@ int HP_skill_get_casttype2(uint16 index) { retVal___ = HPMHooks.source.skill.get_casttype2(index); } if( HPMHooks.count.HP_skill_get_casttype2_post ) { - int (*postHookFunc) (int retVal___, uint16 *index); + int (*postHookFunc) (int retVal___, uint16 index); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_casttype2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_casttype2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &index); + retVal___ = postHookFunc(retVal___, index); } } return retVal___; @@ -66039,10 +66259,10 @@ bool HP_skill_is_combo(int skill_id) { retVal___ = HPMHooks.source.skill.is_combo(skill_id); } if( HPMHooks.count.HP_skill_is_combo_post ) { - bool (*postHookFunc) (bool retVal___, int *skill_id); + bool (*postHookFunc) (bool retVal___, int skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_is_combo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_is_combo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -66051,11 +66271,11 @@ int HP_skill_name2id(const char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_name2id_pre ) { - int (*preHookFunc) (const char *name); + int (*preHookFunc) (const char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_name2id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_name2id_pre[hIndex].func; - retVal___ = preHookFunc(name); + retVal___ = preHookFunc(&name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66078,11 +66298,11 @@ int HP_skill_isammotype(struct map_session_data *sd, int skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_isammotype_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *skill_id); + int (*preHookFunc) (struct map_session_data **sd, int *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_isammotype_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_isammotype_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66093,10 +66313,10 @@ int HP_skill_isammotype(struct map_session_data *sd, int skill_id) { retVal___ = HPMHooks.source.skill.isammotype(sd, skill_id); } if( HPMHooks.count.HP_skill_isammotype_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_isammotype_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_isammotype_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -66120,10 +66340,10 @@ int HP_skill_castend_id(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.castend_id(tid, tick, id, data); } if( HPMHooks.count.HP_skill_castend_id_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -66147,10 +66367,10 @@ int HP_skill_castend_pos(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.castend_pos(tid, tick, id, data); } if( HPMHooks.count.HP_skill_castend_pos_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_pos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -66159,11 +66379,11 @@ int HP_skill_castend_map(struct map_session_data *sd, uint16 skill_id, const cha int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_castend_map_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, const char *mapname); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, const char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_map_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_map_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, mapname); + retVal___ = preHookFunc(&sd, &skill_id, &mapname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66174,10 +66394,10 @@ int HP_skill_castend_map(struct map_session_data *sd, uint16 skill_id, const cha retVal___ = HPMHooks.source.skill.castend_map(sd, skill_id, mapname); } if( HPMHooks.count.HP_skill_castend_map_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, const char *mapname); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, const char *mapname); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_map_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_map_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, mapname); + retVal___ = postHookFunc(retVal___, sd, skill_id, mapname); } } return retVal___; @@ -66186,11 +66406,11 @@ int HP_skill_cleartimerskill(struct block_list *src) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_cleartimerskill_pre ) { - int (*preHookFunc) (struct block_list *src); + int (*preHookFunc) (struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cleartimerskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_cleartimerskill_pre[hIndex].func; - retVal___ = preHookFunc(src); + retVal___ = preHookFunc(&src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66213,11 +66433,11 @@ int HP_skill_addtimerskill(struct block_list *src, int64 tick, int target, int x int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_addtimerskill_pre ) { - int (*preHookFunc) (struct block_list *src, int64 *tick, int *target, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int *type, int *flag); + int (*preHookFunc) (struct block_list **src, int64 *tick, int *target, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int *type, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_addtimerskill_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_addtimerskill_pre[hIndex].func; - retVal___ = preHookFunc(src, &tick, &target, &x, &y, &skill_id, &skill_lv, &type, &flag); + retVal___ = preHookFunc(&src, &tick, &target, &x, &y, &skill_id, &skill_lv, &type, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66228,10 +66448,10 @@ int HP_skill_addtimerskill(struct block_list *src, int64 tick, int target, int x retVal___ = HPMHooks.source.skill.addtimerskill(src, tick, target, x, y, skill_id, skill_lv, type, flag); } if( HPMHooks.count.HP_skill_addtimerskill_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int64 *tick, int *target, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int *type, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, int64 tick, int target, int x, int y, uint16 skill_id, uint16 skill_lv, int type, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_addtimerskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_addtimerskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &tick, &target, &x, &y, &skill_id, &skill_lv, &type, &flag); + retVal___ = postHookFunc(retVal___, src, tick, target, x, y, skill_id, skill_lv, type, flag); } } return retVal___; @@ -66240,11 +66460,11 @@ int HP_skill_additional_effect(struct block_list *src, struct block_list *bl, ui int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_additional_effect_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, int64 *tick); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_additional_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_additional_effect_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, &attack_type, &dmg_lv, &tick); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &attack_type, &dmg_lv, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66255,10 +66475,10 @@ int HP_skill_additional_effect(struct block_list *src, struct block_list *bl, ui retVal___ = HPMHooks.source.skill.additional_effect(src, bl, skill_id, skill_lv, attack_type, dmg_lv, tick); } if( HPMHooks.count.HP_skill_additional_effect_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, int64 *tick); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int attack_type, int dmg_lv, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_additional_effect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_additional_effect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, &attack_type, &dmg_lv, &tick); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, attack_type, dmg_lv, tick); } } return retVal___; @@ -66267,11 +66487,11 @@ int HP_skill_counter_additional_effect(struct block_list *src, struct block_list int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_counter_additional_effect_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int64 *tick); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_counter_additional_effect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_counter_additional_effect_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, &attack_type, &tick); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &attack_type, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66282,10 +66502,10 @@ int HP_skill_counter_additional_effect(struct block_list *src, struct block_list retVal___ = HPMHooks.source.skill.counter_additional_effect(src, bl, skill_id, skill_lv, attack_type, tick); } if( HPMHooks.count.HP_skill_counter_additional_effect_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int64 *tick); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int attack_type, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_counter_additional_effect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_counter_additional_effect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, &attack_type, &tick); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, attack_type, tick); } } return retVal___; @@ -66294,11 +66514,11 @@ int HP_skill_blown(struct block_list *src, struct block_list *target, int count, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_blown_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, int *count, int8 *dir, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, int *count, int8 *dir, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_blown_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &count, &dir, &flag); + retVal___ = preHookFunc(&src, &target, &count, &dir, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66309,10 +66529,10 @@ int HP_skill_blown(struct block_list *src, struct block_list *target, int count, retVal___ = HPMHooks.source.skill.blown(src, target, count, dir, flag); } if( HPMHooks.count.HP_skill_blown_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int *count, int8 *dir, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int count, int8 dir, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blown_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &count, &dir, &flag); + retVal___ = postHookFunc(retVal___, src, target, count, dir, flag); } } return retVal___; @@ -66321,11 +66541,11 @@ int HP_skill_break_equip(struct block_list *bl, unsigned short where, int rate, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_break_equip_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned short *where, int *rate, int *flag); + int (*preHookFunc) (struct block_list **bl, unsigned short *where, int *rate, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_break_equip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_break_equip_pre[hIndex].func; - retVal___ = preHookFunc(bl, &where, &rate, &flag); + retVal___ = preHookFunc(&bl, &where, &rate, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66336,10 +66556,10 @@ int HP_skill_break_equip(struct block_list *bl, unsigned short where, int rate, retVal___ = HPMHooks.source.skill.break_equip(bl, where, rate, flag); } if( HPMHooks.count.HP_skill_break_equip_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned short *where, int *rate, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned short where, int rate, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_break_equip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_break_equip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &where, &rate, &flag); + retVal___ = postHookFunc(retVal___, bl, where, rate, flag); } } return retVal___; @@ -66348,11 +66568,11 @@ int HP_skill_strip_equip(struct block_list *bl, unsigned short where, int rate, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_strip_equip_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned short *where, int *rate, int *lv, int *time); + int (*preHookFunc) (struct block_list **bl, unsigned short *where, int *rate, int *lv, int *time); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_strip_equip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_strip_equip_pre[hIndex].func; - retVal___ = preHookFunc(bl, &where, &rate, &lv, &time); + retVal___ = preHookFunc(&bl, &where, &rate, &lv, &time); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66363,10 +66583,10 @@ int HP_skill_strip_equip(struct block_list *bl, unsigned short where, int rate, retVal___ = HPMHooks.source.skill.strip_equip(bl, where, rate, lv, time); } if( HPMHooks.count.HP_skill_strip_equip_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned short *where, int *rate, int *lv, int *time); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned short where, int rate, int lv, int time); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_strip_equip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_strip_equip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &where, &rate, &lv, &time); + retVal___ = postHookFunc(retVal___, bl, where, rate, lv, time); } } return retVal___; @@ -66390,10 +66610,10 @@ struct skill_unit_group* HP_skill_id2group(int group_id) { retVal___ = HPMHooks.source.skill.id2group(group_id); } if( HPMHooks.count.HP_skill_id2group_post ) { - struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, int *group_id); + struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, int group_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_id2group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_id2group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &group_id); + retVal___ = postHookFunc(retVal___, group_id); } } return retVal___; @@ -66402,11 +66622,11 @@ struct skill_unit_group* HP_skill_unitsetting(struct block_list *src, uint16 ski int hIndex = 0; struct skill_unit_group* retVal___ = NULL; if( HPMHooks.count.HP_skill_unitsetting_pre ) { - struct skill_unit_group* (*preHookFunc) (struct block_list *src, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *flag); + struct skill_unit_group* (*preHookFunc) (struct block_list **src, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetting_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unitsetting_pre[hIndex].func; - retVal___ = preHookFunc(src, &skill_id, &skill_lv, &x, &y, &flag); + retVal___ = preHookFunc(&src, &skill_id, &skill_lv, &x, &y, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66417,10 +66637,10 @@ struct skill_unit_group* HP_skill_unitsetting(struct block_list *src, uint16 ski retVal___ = HPMHooks.source.skill.unitsetting(src, skill_id, skill_lv, x, y, flag); } if( HPMHooks.count.HP_skill_unitsetting_post ) { - struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, struct block_list *src, uint16 *skill_id, uint16 *skill_lv, short *x, short *y, int *flag); + struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, struct block_list *src, uint16 skill_id, uint16 skill_lv, short x, short y, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetting_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unitsetting_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &skill_id, &skill_lv, &x, &y, &flag); + retVal___ = postHookFunc(retVal___, src, skill_id, skill_lv, x, y, flag); } } return retVal___; @@ -66429,11 +66649,11 @@ struct skill_unit* HP_skill_initunit(struct skill_unit_group *group, int idx, in int hIndex = 0; struct skill_unit* retVal___ = NULL; if( HPMHooks.count.HP_skill_initunit_pre ) { - struct skill_unit* (*preHookFunc) (struct skill_unit_group *group, int *idx, int *x, int *y, int *val1, int *val2); + struct skill_unit* (*preHookFunc) (struct skill_unit_group **group, int *idx, int *x, int *y, int *val1, int *val2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_initunit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_initunit_pre[hIndex].func; - retVal___ = preHookFunc(group, &idx, &x, &y, &val1, &val2); + retVal___ = preHookFunc(&group, &idx, &x, &y, &val1, &val2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66444,10 +66664,10 @@ struct skill_unit* HP_skill_initunit(struct skill_unit_group *group, int idx, in retVal___ = HPMHooks.source.skill.initunit(group, idx, x, y, val1, val2); } if( HPMHooks.count.HP_skill_initunit_post ) { - struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, struct skill_unit_group *group, int *idx, int *x, int *y, int *val1, int *val2); + struct skill_unit* (*postHookFunc) (struct skill_unit* retVal___, struct skill_unit_group *group, int idx, int x, int y, int val1, int val2); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_initunit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_initunit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, group, &idx, &x, &y, &val1, &val2); + retVal___ = postHookFunc(retVal___, group, idx, x, y, val1, val2); } } return retVal___; @@ -66456,11 +66676,11 @@ int HP_skill_delunit(struct skill_unit *su) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_delunit_pre ) { - int (*preHookFunc) (struct skill_unit *su); + int (*preHookFunc) (struct skill_unit **su); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_delunit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_delunit_pre[hIndex].func; - retVal___ = preHookFunc(su); + retVal___ = preHookFunc(&su); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66483,11 +66703,11 @@ struct skill_unit_group* HP_skill_init_unitgroup(struct block_list *src, int cou int hIndex = 0; struct skill_unit_group* retVal___ = NULL; if( HPMHooks.count.HP_skill_init_unitgroup_pre ) { - struct skill_unit_group* (*preHookFunc) (struct block_list *src, int *count, uint16 *skill_id, uint16 *skill_lv, int *unit_id, int *limit, int *interval); + struct skill_unit_group* (*preHookFunc) (struct block_list **src, int *count, uint16 *skill_id, uint16 *skill_lv, int *unit_id, int *limit, int *interval); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_init_unitgroup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_init_unitgroup_pre[hIndex].func; - retVal___ = preHookFunc(src, &count, &skill_id, &skill_lv, &unit_id, &limit, &interval); + retVal___ = preHookFunc(&src, &count, &skill_id, &skill_lv, &unit_id, &limit, &interval); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66498,10 +66718,10 @@ struct skill_unit_group* HP_skill_init_unitgroup(struct block_list *src, int cou retVal___ = HPMHooks.source.skill.init_unitgroup(src, count, skill_id, skill_lv, unit_id, limit, interval); } if( HPMHooks.count.HP_skill_init_unitgroup_post ) { - struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, struct block_list *src, int *count, uint16 *skill_id, uint16 *skill_lv, int *unit_id, int *limit, int *interval); + struct skill_unit_group* (*postHookFunc) (struct skill_unit_group* retVal___, struct block_list *src, int count, uint16 skill_id, uint16 skill_lv, int unit_id, int limit, int interval); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_init_unitgroup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_init_unitgroup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &count, &skill_id, &skill_lv, &unit_id, &limit, &interval); + retVal___ = postHookFunc(retVal___, src, count, skill_id, skill_lv, unit_id, limit, interval); } } return retVal___; @@ -66510,11 +66730,11 @@ int HP_skill_del_unitgroup(struct skill_unit_group *group, const char *file, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_del_unitgroup_pre ) { - int (*preHookFunc) (struct skill_unit_group *group, const char *file, int *line, const char *func); + int (*preHookFunc) (struct skill_unit_group **group, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_del_unitgroup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_del_unitgroup_pre[hIndex].func; - retVal___ = preHookFunc(group, file, &line, func); + retVal___ = preHookFunc(&group, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66525,10 +66745,10 @@ int HP_skill_del_unitgroup(struct skill_unit_group *group, const char *file, int retVal___ = HPMHooks.source.skill.del_unitgroup(group, file, line, func); } if( HPMHooks.count.HP_skill_del_unitgroup_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit_group *group, const char *file, int *line, const char *func); + int (*postHookFunc) (int retVal___, struct skill_unit_group *group, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_del_unitgroup_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_del_unitgroup_post[hIndex].func; - retVal___ = postHookFunc(retVal___, group, file, &line, func); + retVal___ = postHookFunc(retVal___, group, file, line, func); } } return retVal___; @@ -66537,11 +66757,11 @@ int HP_skill_clear_unitgroup(struct block_list *src) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_clear_unitgroup_pre ) { - int (*preHookFunc) (struct block_list *src); + int (*preHookFunc) (struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_clear_unitgroup_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_clear_unitgroup_pre[hIndex].func; - retVal___ = preHookFunc(src); + retVal___ = preHookFunc(&src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66564,11 +66784,11 @@ int HP_skill_clear_group(struct block_list *bl, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_clear_group_pre ) { - int (*preHookFunc) (struct block_list *bl, int *flag); + int (*preHookFunc) (struct block_list **bl, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_clear_group_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_clear_group_pre[hIndex].func; - retVal___ = preHookFunc(bl, &flag); + retVal___ = preHookFunc(&bl, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66579,10 +66799,10 @@ int HP_skill_clear_group(struct block_list *bl, int flag) { retVal___ = HPMHooks.source.skill.clear_group(bl, flag); } if( HPMHooks.count.HP_skill_clear_group_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_clear_group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_clear_group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &flag); + retVal___ = postHookFunc(retVal___, bl, flag); } } return retVal___; @@ -66591,11 +66811,11 @@ int HP_skill_unit_onplace(struct skill_unit *src, struct block_list *bl, int64 t int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_onplace_pre ) { - int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*preHookFunc) (struct skill_unit **src, struct block_list **bl, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_onplace_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &tick); + retVal___ = preHookFunc(&src, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66606,10 +66826,10 @@ int HP_skill_unit_onplace(struct skill_unit *src, struct block_list *bl, int64 t retVal___ = HPMHooks.source.skill.unit_onplace(src, bl, tick); } if( HPMHooks.count.HP_skill_unit_onplace_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_onplace_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &tick); + retVal___ = postHookFunc(retVal___, src, bl, tick); } } return retVal___; @@ -66618,11 +66838,11 @@ int HP_skill_unit_ondamaged(struct skill_unit *src, struct block_list *bl, int64 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_ondamaged_pre ) { - int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *damage, int64 *tick); + int (*preHookFunc) (struct skill_unit **src, struct block_list **bl, int64 *damage, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_ondamaged_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_ondamaged_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &damage, &tick); + retVal___ = preHookFunc(&src, &bl, &damage, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66633,10 +66853,10 @@ int HP_skill_unit_ondamaged(struct skill_unit *src, struct block_list *bl, int64 retVal___ = HPMHooks.source.skill.unit_ondamaged(src, bl, damage, tick); } if( HPMHooks.count.HP_skill_unit_ondamaged_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 *damage, int64 *tick); + int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 damage, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_ondamaged_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_ondamaged_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &damage, &tick); + retVal___ = postHookFunc(retVal___, src, bl, damage, tick); } } return retVal___; @@ -66645,11 +66865,11 @@ int HP_skill_cast_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_cast_fix_pre ) { - int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_cast_fix_pre[hIndex].func; - retVal___ = preHookFunc(bl, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66660,10 +66880,10 @@ int HP_skill_cast_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.cast_fix(bl, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_cast_fix_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_cast_fix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, skill_id, skill_lv); } } return retVal___; @@ -66672,11 +66892,11 @@ int HP_skill_cast_fix_sc(struct block_list *bl, int time) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_cast_fix_sc_pre ) { - int (*preHookFunc) (struct block_list *bl, int *time); + int (*preHookFunc) (struct block_list **bl, int *time); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_sc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_cast_fix_sc_pre[hIndex].func; - retVal___ = preHookFunc(bl, &time); + retVal___ = preHookFunc(&bl, &time); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66687,10 +66907,10 @@ int HP_skill_cast_fix_sc(struct block_list *bl, int time) { retVal___ = HPMHooks.source.skill.cast_fix_sc(bl, time); } if( HPMHooks.count.HP_skill_cast_fix_sc_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *time); + int (*postHookFunc) (int retVal___, struct block_list *bl, int time); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_sc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_cast_fix_sc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &time); + retVal___ = postHookFunc(retVal___, bl, time); } } return retVal___; @@ -66699,11 +66919,11 @@ int HP_skill_vf_cast_fix(struct block_list *bl, double time, uint16 skill_id, ui int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_vf_cast_fix_pre ) { - int (*preHookFunc) (struct block_list *bl, double *time, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, double *time, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_vf_cast_fix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_vf_cast_fix_pre[hIndex].func; - retVal___ = preHookFunc(bl, &time, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &time, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66714,10 +66934,10 @@ int HP_skill_vf_cast_fix(struct block_list *bl, double time, uint16 skill_id, ui retVal___ = HPMHooks.source.skill.vf_cast_fix(bl, time, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_vf_cast_fix_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, double *time, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, double time, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_vf_cast_fix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_vf_cast_fix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &time, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, time, skill_id, skill_lv); } } return retVal___; @@ -66726,11 +66946,11 @@ int HP_skill_delay_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_delay_fix_pre ) { - int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_delay_fix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_delay_fix_pre[hIndex].func; - retVal___ = preHookFunc(bl, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66741,10 +66961,10 @@ int HP_skill_delay_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) retVal___ = HPMHooks.source.skill.delay_fix(bl, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_delay_fix_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_delay_fix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_delay_fix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, skill_id, skill_lv); } } return retVal___; @@ -66753,11 +66973,11 @@ int HP_skill_check_condition_castbegin(struct map_session_data *sd, uint16 skill int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castbegin_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66768,10 +66988,10 @@ int HP_skill_check_condition_castbegin(struct map_session_data *sd, uint16 skill retVal___ = HPMHooks.source.skill.check_condition_castbegin(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_check_condition_castbegin_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv); } } return retVal___; @@ -66780,11 +67000,11 @@ int HP_skill_check_condition_castend(struct map_session_data *sd, uint16 skill_i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castend_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castend_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castend_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66795,10 +67015,10 @@ int HP_skill_check_condition_castend(struct map_session_data *sd, uint16 skill_i retVal___ = HPMHooks.source.skill.check_condition_castend(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_check_condition_castend_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castend_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_condition_castend_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv); } } return retVal___; @@ -66807,11 +67027,11 @@ int HP_skill_consume_requirement(struct map_session_data *sd, uint16 skill_id, u int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_consume_requirement_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, short *type); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv, short *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_consume_requirement_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_consume_requirement_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &skill_lv, &type); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66822,24 +67042,23 @@ int HP_skill_consume_requirement(struct map_session_data *sd, uint16 skill_id, u retVal___ = HPMHooks.source.skill.consume_requirement(sd, skill_id, skill_lv, type); } if( HPMHooks.count.HP_skill_consume_requirement_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, short *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, uint16 skill_lv, short type); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_consume_requirement_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_consume_requirement_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &skill_lv, &type); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv, type); } } return retVal___; } struct skill_condition HP_skill_get_requirement(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) { int hIndex = 0; - struct skill_condition retVal___; - memset(&retVal___, '\0', sizeof(struct skill_condition)); + struct skill_condition retVal___ = { 0 }; if( HPMHooks.count.HP_skill_get_requirement_pre ) { - struct skill_condition (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + struct skill_condition (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_requirement_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_requirement_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &skill_lv); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66850,10 +67069,10 @@ struct skill_condition HP_skill_get_requirement(struct map_session_data *sd, uin retVal___ = HPMHooks.source.skill.get_requirement(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_requirement_post ) { - struct skill_condition (*postHookFunc) (struct skill_condition retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + struct skill_condition (*postHookFunc) (struct skill_condition retVal___, struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_requirement_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_requirement_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv); } } return retVal___; @@ -66862,11 +67081,11 @@ int HP_skill_check_pc_partner(struct map_session_data *sd, uint16 skill_id, uint int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_pc_partner_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, int *range, int *cast_flag); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 **skill_lv, int *range, int *cast_flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_pc_partner_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_pc_partner_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, skill_lv, &range, &cast_flag); + retVal___ = preHookFunc(&sd, &skill_id, &skill_lv, &range, &cast_flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66877,10 +67096,10 @@ int HP_skill_check_pc_partner(struct map_session_data *sd, uint16 skill_id, uint retVal___ = HPMHooks.source.skill.check_pc_partner(sd, skill_id, skill_lv, range, cast_flag); } if( HPMHooks.count.HP_skill_check_pc_partner_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, int *range, int *cast_flag); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, uint16 *skill_lv, int range, int cast_flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_pc_partner_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_pc_partner_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, skill_lv, &range, &cast_flag); + retVal___ = postHookFunc(retVal___, sd, skill_id, skill_lv, range, cast_flag); } } return retVal___; @@ -66889,11 +67108,11 @@ int HP_skill_unit_move(struct block_list *bl, int64 tick, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_move_pre ) { - int (*preHookFunc) (struct block_list *bl, int64 *tick, int *flag); + int (*preHookFunc) (struct block_list **bl, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_move_pre[hIndex].func; - retVal___ = preHookFunc(bl, &tick, &flag); + retVal___ = preHookFunc(&bl, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66904,10 +67123,10 @@ int HP_skill_unit_move(struct block_list *bl, int64 tick, int flag) { retVal___ = HPMHooks.source.skill.unit_move(bl, tick, flag); } if( HPMHooks.count.HP_skill_unit_move_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_move_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &tick, &flag); + retVal___ = postHookFunc(retVal___, bl, tick, flag); } } return retVal___; @@ -66916,11 +67135,11 @@ int HP_skill_unit_onleft(uint16 skill_id, struct block_list *bl, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_onleft_pre ) { - int (*preHookFunc) (uint16 *skill_id, struct block_list *bl, int64 *tick); + int (*preHookFunc) (uint16 *skill_id, struct block_list **bl, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onleft_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_onleft_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, bl, &tick); + retVal___ = preHookFunc(&skill_id, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66931,10 +67150,10 @@ int HP_skill_unit_onleft(uint16 skill_id, struct block_list *bl, int64 tick) { retVal___ = HPMHooks.source.skill.unit_onleft(skill_id, bl, tick); } if( HPMHooks.count.HP_skill_unit_onleft_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, struct block_list *bl, int64 *tick); + int (*postHookFunc) (int retVal___, uint16 skill_id, struct block_list *bl, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onleft_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_onleft_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, bl, &tick); + retVal___ = postHookFunc(retVal___, skill_id, bl, tick); } } return retVal___; @@ -66943,11 +67162,11 @@ int HP_skill_unit_onout(struct skill_unit *src, struct block_list *bl, int64 tic int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_onout_pre ) { - int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*preHookFunc) (struct skill_unit **src, struct block_list **bl, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onout_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_onout_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &tick); + retVal___ = preHookFunc(&src, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66958,10 +67177,10 @@ int HP_skill_unit_onout(struct skill_unit *src, struct block_list *bl, int64 tic retVal___ = HPMHooks.source.skill.unit_onout(src, bl, tick); } if( HPMHooks.count.HP_skill_unit_onout_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onout_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_onout_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &tick); + retVal___ = postHookFunc(retVal___, src, bl, tick); } } return retVal___; @@ -66970,11 +67189,11 @@ int HP_skill_unit_move_unit_group(struct skill_unit_group *group, int16 m, int16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_move_unit_group_pre ) { - int (*preHookFunc) (struct skill_unit_group *group, int16 *m, int16 *dx, int16 *dy); + int (*preHookFunc) (struct skill_unit_group **group, int16 *m, int16 *dx, int16 *dy); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_unit_group_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_move_unit_group_pre[hIndex].func; - retVal___ = preHookFunc(group, &m, &dx, &dy); + retVal___ = preHookFunc(&group, &m, &dx, &dy); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -66985,10 +67204,10 @@ int HP_skill_unit_move_unit_group(struct skill_unit_group *group, int16 m, int16 retVal___ = HPMHooks.source.skill.unit_move_unit_group(group, m, dx, dy); } if( HPMHooks.count.HP_skill_unit_move_unit_group_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit_group *group, int16 *m, int16 *dx, int16 *dy); + int (*postHookFunc) (int retVal___, struct skill_unit_group *group, int16 m, int16 dx, int16 dy); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_unit_group_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_move_unit_group_post[hIndex].func; - retVal___ = postHookFunc(retVal___, group, &m, &dx, &dy); + retVal___ = postHookFunc(retVal___, group, m, dx, dy); } } return retVal___; @@ -66997,11 +67216,11 @@ int HP_skill_sit(struct map_session_data *sd, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_sit_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *type); + int (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_sit_pre[hIndex].func; - retVal___ = preHookFunc(sd, &type); + retVal___ = preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67012,10 +67231,10 @@ int HP_skill_sit(struct map_session_data *sd, int type) { retVal___ = HPMHooks.source.skill.sit(sd, type); } if( HPMHooks.count.HP_skill_sit_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *type); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_sit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &type); + retVal___ = postHookFunc(retVal___, sd, type); } } return retVal___; @@ -67023,11 +67242,11 @@ int HP_skill_sit(struct map_session_data *sd, int type) { void HP_skill_brandishspear(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag) { int hIndex = 0; if( HPMHooks.count.HP_skill_brandishspear_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + void (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_brandishspear_pre[hIndex].func; - preHookFunc(src, bl, &skill_id, &skill_lv, &tick, &flag); + preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67038,10 +67257,10 @@ void HP_skill_brandishspear(struct block_list *src, struct block_list *bl, uint1 HPMHooks.source.skill.brandishspear(src, bl, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_brandishspear_post ) { - void (*postHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + void (*postHookFunc) (struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_brandishspear_post[hIndex].func; - postHookFunc(src, bl, &skill_id, &skill_lv, &tick, &flag); + postHookFunc(src, bl, skill_id, skill_lv, tick, flag); } } return; @@ -67049,11 +67268,11 @@ void HP_skill_brandishspear(struct block_list *src, struct block_list *bl, uint1 void HP_skill_repairweapon(struct map_session_data *sd, int idx) { int hIndex = 0; if( HPMHooks.count.HP_skill_repairweapon_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx); + void (*preHookFunc) (struct map_session_data **sd, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_repairweapon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_repairweapon_pre[hIndex].func; - preHookFunc(sd, &idx); + preHookFunc(&sd, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67064,10 +67283,10 @@ void HP_skill_repairweapon(struct map_session_data *sd, int idx) { HPMHooks.source.skill.repairweapon(sd, idx); } if( HPMHooks.count.HP_skill_repairweapon_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx); + void (*postHookFunc) (struct map_session_data *sd, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_repairweapon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_repairweapon_post[hIndex].func; - postHookFunc(sd, &idx); + postHookFunc(sd, idx); } } return; @@ -67075,11 +67294,11 @@ void HP_skill_repairweapon(struct map_session_data *sd, int idx) { void HP_skill_identify(struct map_session_data *sd, int idx) { int hIndex = 0; if( HPMHooks.count.HP_skill_identify_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx); + void (*preHookFunc) (struct map_session_data **sd, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_identify_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_identify_pre[hIndex].func; - preHookFunc(sd, &idx); + preHookFunc(&sd, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67090,10 +67309,10 @@ void HP_skill_identify(struct map_session_data *sd, int idx) { HPMHooks.source.skill.identify(sd, idx); } if( HPMHooks.count.HP_skill_identify_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx); + void (*postHookFunc) (struct map_session_data *sd, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_identify_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_identify_post[hIndex].func; - postHookFunc(sd, &idx); + postHookFunc(sd, idx); } } return; @@ -67101,11 +67320,11 @@ void HP_skill_identify(struct map_session_data *sd, int idx) { void HP_skill_weaponrefine(struct map_session_data *sd, int idx) { int hIndex = 0; if( HPMHooks.count.HP_skill_weaponrefine_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *idx); + void (*preHookFunc) (struct map_session_data **sd, int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_weaponrefine_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_weaponrefine_pre[hIndex].func; - preHookFunc(sd, &idx); + preHookFunc(&sd, &idx); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67116,10 +67335,10 @@ void HP_skill_weaponrefine(struct map_session_data *sd, int idx) { HPMHooks.source.skill.weaponrefine(sd, idx); } if( HPMHooks.count.HP_skill_weaponrefine_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *idx); + void (*postHookFunc) (struct map_session_data *sd, int idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_weaponrefine_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_weaponrefine_post[hIndex].func; - postHookFunc(sd, &idx); + postHookFunc(sd, idx); } } return; @@ -67128,11 +67347,11 @@ int HP_skill_autospell(struct map_session_data *md, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_autospell_pre ) { - int (*preHookFunc) (struct map_session_data *md, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **md, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_autospell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_autospell_pre[hIndex].func; - retVal___ = preHookFunc(md, &skill_id); + retVal___ = preHookFunc(&md, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67143,10 +67362,10 @@ int HP_skill_autospell(struct map_session_data *md, uint16 skill_id) { retVal___ = HPMHooks.source.skill.autospell(md, skill_id); } if( HPMHooks.count.HP_skill_autospell_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *md, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *md, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_autospell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_autospell_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &skill_id); + retVal___ = postHookFunc(retVal___, md, skill_id); } } return retVal___; @@ -67155,11 +67374,11 @@ int HP_skill_calc_heal(struct block_list *src, struct block_list *target, uint16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_calc_heal_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, bool *heal); + int (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, bool *heal); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_calc_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_calc_heal_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &heal); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &heal); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67170,10 +67389,10 @@ int HP_skill_calc_heal(struct block_list *src, struct block_list *target, uint16 retVal___ = HPMHooks.source.skill.calc_heal(src, target, skill_id, skill_lv, heal); } if( HPMHooks.count.HP_skill_calc_heal_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, bool *heal); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, bool heal); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_calc_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_calc_heal_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &heal); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, heal); } } return retVal___; @@ -67182,11 +67401,11 @@ bool HP_skill_check_cloaking(struct block_list *bl, struct status_change_entry * int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_check_cloaking_pre ) { - bool (*preHookFunc) (struct block_list *bl, struct status_change_entry *sce); + bool (*preHookFunc) (struct block_list **bl, struct status_change_entry **sce); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_cloaking_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_cloaking_pre[hIndex].func; - retVal___ = preHookFunc(bl, sce); + retVal___ = preHookFunc(&bl, &sce); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67209,12 +67428,12 @@ int HP_skill_check_cloaking_end(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_cloaking_end_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_cloaking_end_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_check_cloaking_end_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67242,11 +67461,11 @@ bool HP_skill_can_cloak(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_can_cloak_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); + bool (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_can_cloak_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_can_cloak_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67269,11 +67488,11 @@ int HP_skill_enchant_elemental_end(struct block_list *bl, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_enchant_elemental_end_pre ) { - int (*preHookFunc) (struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_enchant_elemental_end_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_enchant_elemental_end_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type); + retVal___ = preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67284,10 +67503,10 @@ int HP_skill_enchant_elemental_end(struct block_list *bl, int type) { retVal___ = HPMHooks.source.skill.enchant_elemental_end(bl, type); } if( HPMHooks.count.HP_skill_enchant_elemental_end_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_enchant_elemental_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_enchant_elemental_end_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type); + retVal___ = postHookFunc(retVal___, bl, type); } } return retVal___; @@ -67296,11 +67515,11 @@ int HP_skill_not_ok(uint16 skill_id, struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_not_ok_pre ) { - int (*preHookFunc) (uint16 *skill_id, struct map_session_data *sd); + int (*preHookFunc) (uint16 *skill_id, struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_not_ok_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, sd); + retVal___ = preHookFunc(&skill_id, &sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67311,10 +67530,10 @@ int HP_skill_not_ok(uint16 skill_id, struct map_session_data *sd) { retVal___ = HPMHooks.source.skill.not_ok(skill_id, sd); } if( HPMHooks.count.HP_skill_not_ok_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, struct map_session_data *sd); + int (*postHookFunc) (int retVal___, uint16 skill_id, struct map_session_data *sd); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_not_ok_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, sd); + retVal___ = postHookFunc(retVal___, skill_id, sd); } } return retVal___; @@ -67323,11 +67542,11 @@ int HP_skill_not_ok_hom(uint16 skill_id, struct homun_data *hd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_not_ok_hom_pre ) { - int (*preHookFunc) (uint16 *skill_id, struct homun_data *hd); + int (*preHookFunc) (uint16 *skill_id, struct homun_data **hd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_hom_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_not_ok_hom_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, hd); + retVal___ = preHookFunc(&skill_id, &hd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67338,10 +67557,10 @@ int HP_skill_not_ok_hom(uint16 skill_id, struct homun_data *hd) { retVal___ = HPMHooks.source.skill.not_ok_hom(skill_id, hd); } if( HPMHooks.count.HP_skill_not_ok_hom_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, struct homun_data *hd); + int (*postHookFunc) (int retVal___, uint16 skill_id, struct homun_data *hd); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_hom_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_not_ok_hom_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, hd); + retVal___ = postHookFunc(retVal___, skill_id, hd); } } return retVal___; @@ -67350,11 +67569,11 @@ int HP_skill_not_ok_mercenary(uint16 skill_id, struct mercenary_data *md) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_not_ok_mercenary_pre ) { - int (*preHookFunc) (uint16 *skill_id, struct mercenary_data *md); + int (*preHookFunc) (uint16 *skill_id, struct mercenary_data **md); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_mercenary_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_not_ok_mercenary_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, md); + retVal___ = preHookFunc(&skill_id, &md); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67365,10 +67584,10 @@ int HP_skill_not_ok_mercenary(uint16 skill_id, struct mercenary_data *md) { retVal___ = HPMHooks.source.skill.not_ok_mercenary(skill_id, md); } if( HPMHooks.count.HP_skill_not_ok_mercenary_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, struct mercenary_data *md); + int (*postHookFunc) (int retVal___, uint16 skill_id, struct mercenary_data *md); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_mercenary_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_not_ok_mercenary_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, md); + retVal___ = postHookFunc(retVal___, skill_id, md); } } return retVal___; @@ -67377,12 +67596,12 @@ int HP_skill_chastle_mob_changetarget(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_chastle_mob_changetarget_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_chastle_mob_changetarget_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_chastle_mob_changetarget_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67410,11 +67629,11 @@ int HP_skill_can_produce_mix(struct map_session_data *sd, int nameid, int trigge int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_can_produce_mix_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *trigger, int *qty); + int (*preHookFunc) (struct map_session_data **sd, int *nameid, int *trigger, int *qty); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_can_produce_mix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_can_produce_mix_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid, &trigger, &qty); + retVal___ = preHookFunc(&sd, &nameid, &trigger, &qty); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67425,10 +67644,10 @@ int HP_skill_can_produce_mix(struct map_session_data *sd, int nameid, int trigge retVal___ = HPMHooks.source.skill.can_produce_mix(sd, nameid, trigger, qty); } if( HPMHooks.count.HP_skill_can_produce_mix_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid, int *trigger, int *qty); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid, int trigger, int qty); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_can_produce_mix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_can_produce_mix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid, &trigger, &qty); + retVal___ = postHookFunc(retVal___, sd, nameid, trigger, qty); } } return retVal___; @@ -67437,11 +67656,11 @@ int HP_skill_produce_mix(struct map_session_data *sd, uint16 skill_id, int namei int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_produce_mix_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *nameid, int *slot1, int *slot2, int *slot3, int *qty); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, int *nameid, int *slot1, int *slot2, int *slot3, int *qty); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_produce_mix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_produce_mix_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &nameid, &slot1, &slot2, &slot3, &qty); + retVal___ = preHookFunc(&sd, &skill_id, &nameid, &slot1, &slot2, &slot3, &qty); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67452,10 +67671,10 @@ int HP_skill_produce_mix(struct map_session_data *sd, uint16 skill_id, int namei retVal___ = HPMHooks.source.skill.produce_mix(sd, skill_id, nameid, slot1, slot2, slot3, qty); } if( HPMHooks.count.HP_skill_produce_mix_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, int *nameid, int *slot1, int *slot2, int *slot3, int *qty); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, int nameid, int slot1, int slot2, int slot3, int qty); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_produce_mix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_produce_mix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &nameid, &slot1, &slot2, &slot3, &qty); + retVal___ = postHookFunc(retVal___, sd, skill_id, nameid, slot1, slot2, slot3, qty); } } return retVal___; @@ -67464,11 +67683,11 @@ int HP_skill_arrow_create(struct map_session_data *sd, int nameid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_arrow_create_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid); + int (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_arrow_create_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_arrow_create_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67479,10 +67698,10 @@ int HP_skill_arrow_create(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.skill.arrow_create(sd, nameid); } if( HPMHooks.count.HP_skill_arrow_create_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_arrow_create_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_arrow_create_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -67491,11 +67710,11 @@ int HP_skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_castend_nodamage_id_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67506,10 +67725,10 @@ int HP_skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, retVal___ = HPMHooks.source.skill.castend_nodamage_id(src, bl, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_castend_nodamage_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, tick, flag); } } return retVal___; @@ -67518,11 +67737,11 @@ int HP_skill_castend_damage_id(struct block_list *src, struct block_list *bl, ui int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_castend_damage_id_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_damage_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_damage_id_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67533,10 +67752,10 @@ int HP_skill_castend_damage_id(struct block_list *src, struct block_list *bl, ui retVal___ = HPMHooks.source.skill.castend_damage_id(src, bl, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_castend_damage_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_damage_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_damage_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, bl, skill_id, skill_lv, tick, flag); } } return retVal___; @@ -67545,11 +67764,11 @@ int HP_skill_castend_pos2(struct block_list *src, int x, int y, uint16 skill_id, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_castend_pos2_pre ) { - int (*preHookFunc) (struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (struct block_list **src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_pos2_pre[hIndex].func; - retVal___ = preHookFunc(src, &x, &y, &skill_id, &skill_lv, &tick, &flag); + retVal___ = preHookFunc(&src, &x, &y, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67560,10 +67779,10 @@ int HP_skill_castend_pos2(struct block_list *src, int x, int y, uint16 skill_id, retVal___ = HPMHooks.source.skill.castend_pos2(src, x, y, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_castend_pos2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, int x, int y, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_castend_pos2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &x, &y, &skill_id, &skill_lv, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, x, y, skill_id, skill_lv, tick, flag); } } return retVal___; @@ -67572,11 +67791,11 @@ int HP_skill_blockpc_start(struct map_session_data *sd, uint16 skill_id, int tic int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_blockpc_start_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *tick); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, int *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockpc_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_blockpc_start_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id, &tick); + retVal___ = preHookFunc(&sd, &skill_id, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67587,10 +67806,10 @@ int HP_skill_blockpc_start(struct map_session_data *sd, uint16 skill_id, int tic retVal___ = HPMHooks.source.skill.blockpc_start(sd, skill_id, tick); } if( HPMHooks.count.HP_skill_blockpc_start_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id, int *tick); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id, int tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockpc_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockpc_start_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id, &tick); + retVal___ = postHookFunc(retVal___, sd, skill_id, tick); } } return retVal___; @@ -67599,11 +67818,11 @@ int HP_skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_blockhomun_start_pre ) { - int (*preHookFunc) (struct homun_data *hd, uint16 *skill_id, int *tick); + int (*preHookFunc) (struct homun_data **hd, uint16 *skill_id, int *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockhomun_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_blockhomun_start_pre[hIndex].func; - retVal___ = preHookFunc(hd, &skill_id, &tick); + retVal___ = preHookFunc(&hd, &skill_id, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67614,10 +67833,10 @@ int HP_skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick) retVal___ = HPMHooks.source.skill.blockhomun_start(hd, skill_id, tick); } if( HPMHooks.count.HP_skill_blockhomun_start_post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, uint16 *skill_id, int *tick); + int (*postHookFunc) (int retVal___, struct homun_data *hd, uint16 skill_id, int tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockhomun_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockhomun_start_post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &skill_id, &tick); + retVal___ = postHookFunc(retVal___, hd, skill_id, tick); } } return retVal___; @@ -67626,11 +67845,11 @@ int HP_skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tic int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_blockmerc_start_pre ) { - int (*preHookFunc) (struct mercenary_data *md, uint16 *skill_id, int *tick); + int (*preHookFunc) (struct mercenary_data **md, uint16 *skill_id, int *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockmerc_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_blockmerc_start_pre[hIndex].func; - retVal___ = preHookFunc(md, &skill_id, &tick); + retVal___ = preHookFunc(&md, &skill_id, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67641,10 +67860,10 @@ int HP_skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tic retVal___ = HPMHooks.source.skill.blockmerc_start(md, skill_id, tick); } if( HPMHooks.count.HP_skill_blockmerc_start_post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, uint16 *skill_id, int *tick); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, uint16 skill_id, int tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockmerc_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockmerc_start_post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &skill_id, &tick); + retVal___ = postHookFunc(retVal___, md, skill_id, tick); } } return retVal___; @@ -67653,11 +67872,11 @@ int HP_skill_attack(int attack_type, struct block_list *src, struct block_list * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_attack_pre ) { - int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (int *attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_pre[hIndex].func; - retVal___ = preHookFunc(&attack_type, src, dsrc, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67668,10 +67887,10 @@ int HP_skill_attack(int attack_type, struct block_list *src, struct block_list * retVal___ = HPMHooks.source.skill.attack(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_attack_post ) { - int (*postHookFunc) (int retVal___, int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, int attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &attack_type, src, dsrc, bl, &skill_id, &skill_lv, &tick, &flag); + retVal___ = postHookFunc(retVal___, attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag); } } return retVal___; @@ -67680,12 +67899,12 @@ int HP_skill_attack_area(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_attack_area_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_area_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_attack_area_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67713,12 +67932,12 @@ int HP_skill_area_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_area_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_area_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_area_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67746,11 +67965,11 @@ int HP_skill_area_sub_count(struct block_list *src, struct block_list *target, u int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_area_sub_count_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_area_sub_count_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_area_sub_count_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &skill_lv, &tick, &flag); + retVal___ = preHookFunc(&src, &target, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67761,10 +67980,10 @@ int HP_skill_area_sub_count(struct block_list *src, struct block_list *target, u retVal___ = HPMHooks.source.skill.area_sub_count(src, target, skill_id, skill_lv, tick, flag); } if( HPMHooks.count.HP_skill_area_sub_count_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_area_sub_count_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_area_sub_count_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &skill_lv, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, skill_lv, tick, flag); } } return retVal___; @@ -67773,11 +67992,11 @@ int HP_skill_check_unit_range(struct block_list *bl, int x, int y, uint16 skill_ int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_unit_range_pre ) { - int (*preHookFunc) (struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_unit_range_pre[hIndex].func; - retVal___ = preHookFunc(bl, &x, &y, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &x, &y, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67788,10 +68007,10 @@ int HP_skill_check_unit_range(struct block_list *bl, int x, int y, uint16 skill_ retVal___ = HPMHooks.source.skill.check_unit_range(bl, x, y, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_check_unit_range_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, int x, int y, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_unit_range_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &x, &y, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, x, y, skill_id, skill_lv); } } return retVal___; @@ -67800,12 +68019,12 @@ int HP_skill_check_unit_range_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_unit_range_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_check_unit_range_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67833,11 +68052,11 @@ int HP_skill_check_unit_range2(struct block_list *bl, int x, int y, uint16 skill int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_unit_range2_pre ) { - int (*preHookFunc) (struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_unit_range2_pre[hIndex].func; - retVal___ = preHookFunc(bl, &x, &y, &skill_id, &skill_lv); + retVal___ = preHookFunc(&bl, &x, &y, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67848,10 +68067,10 @@ int HP_skill_check_unit_range2(struct block_list *bl, int x, int y, uint16 skill retVal___ = HPMHooks.source.skill.check_unit_range2(bl, x, y, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_check_unit_range2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *bl, int x, int y, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_unit_range2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &x, &y, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, bl, x, y, skill_id, skill_lv); } } return retVal___; @@ -67860,12 +68079,12 @@ int HP_skill_check_unit_range2_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_unit_range2_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range2_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_check_unit_range2_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -67892,11 +68111,11 @@ int HP_skill_check_unit_range2_sub(struct block_list *bl, va_list ap) { void HP_skill_toggle_magicpower(struct block_list *bl, uint16 skill_id) { int hIndex = 0; if( HPMHooks.count.HP_skill_toggle_magicpower_pre ) { - void (*preHookFunc) (struct block_list *bl, uint16 *skill_id); + void (*preHookFunc) (struct block_list **bl, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_toggle_magicpower_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_toggle_magicpower_pre[hIndex].func; - preHookFunc(bl, &skill_id); + preHookFunc(&bl, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67907,10 +68126,10 @@ void HP_skill_toggle_magicpower(struct block_list *bl, uint16 skill_id) { HPMHooks.source.skill.toggle_magicpower(bl, skill_id); } if( HPMHooks.count.HP_skill_toggle_magicpower_post ) { - void (*postHookFunc) (struct block_list *bl, uint16 *skill_id); + void (*postHookFunc) (struct block_list *bl, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_toggle_magicpower_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_toggle_magicpower_post[hIndex].func; - postHookFunc(bl, &skill_id); + postHookFunc(bl, skill_id); } } return; @@ -67919,11 +68138,11 @@ int HP_skill_magic_reflect(struct block_list *src, struct block_list *bl, int ty int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_magic_reflect_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magic_reflect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_magic_reflect_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &type); + retVal___ = preHookFunc(&src, &bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67934,10 +68153,10 @@ int HP_skill_magic_reflect(struct block_list *src, struct block_list *bl, int ty retVal___ = HPMHooks.source.skill.magic_reflect(src, bl, type); } if( HPMHooks.count.HP_skill_magic_reflect_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magic_reflect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_magic_reflect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &type); + retVal___ = postHookFunc(retVal___, src, bl, type); } } return retVal___; @@ -67946,11 +68165,11 @@ int HP_skill_onskillusage(struct map_session_data *sd, struct block_list *bl, ui int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_onskillusage_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, uint16 *skill_id, int64 *tick); + int (*preHookFunc) (struct map_session_data **sd, struct block_list **bl, uint16 *skill_id, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_onskillusage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_onskillusage_pre[hIndex].func; - retVal___ = preHookFunc(sd, bl, &skill_id, &tick); + retVal___ = preHookFunc(&sd, &bl, &skill_id, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -67961,10 +68180,10 @@ int HP_skill_onskillusage(struct map_session_data *sd, struct block_list *bl, ui retVal___ = HPMHooks.source.skill.onskillusage(sd, bl, skill_id, tick); } if( HPMHooks.count.HP_skill_onskillusage_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, uint16 *skill_id, int64 *tick); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct block_list *bl, uint16 skill_id, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_onskillusage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_onskillusage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, bl, &skill_id, &tick); + retVal___ = postHookFunc(retVal___, sd, bl, skill_id, tick); } } return retVal___; @@ -67973,12 +68192,12 @@ int HP_skill_cell_overlap(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_cell_overlap_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cell_overlap_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_cell_overlap_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68021,10 +68240,10 @@ int HP_skill_timerskill(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.timerskill(tid, tick, id, data); } if( HPMHooks.count.HP_skill_timerskill_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_timerskill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -68033,12 +68252,12 @@ int HP_skill_trap_splash(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_trap_splash_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_trap_splash_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_trap_splash_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68066,11 +68285,11 @@ int HP_skill_check_condition_mercenary(struct block_list *bl, int skill_id, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_mercenary_pre ) { - int (*preHookFunc) (struct block_list *bl, int *skill_id, int *lv, int *type); + int (*preHookFunc) (struct block_list **bl, int *skill_id, int *lv, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_mercenary_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_mercenary_pre[hIndex].func; - retVal___ = preHookFunc(bl, &skill_id, &lv, &type); + retVal___ = preHookFunc(&bl, &skill_id, &lv, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68081,10 +68300,10 @@ int HP_skill_check_condition_mercenary(struct block_list *bl, int skill_id, int retVal___ = HPMHooks.source.skill.check_condition_mercenary(bl, skill_id, lv, type); } if( HPMHooks.count.HP_skill_check_condition_mercenary_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *skill_id, int *lv, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int skill_id, int lv, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_mercenary_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_condition_mercenary_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &skill_id, &lv, &type); + retVal___ = postHookFunc(retVal___, bl, skill_id, lv, type); } } return retVal___; @@ -68093,11 +68312,11 @@ struct skill_unit_group* HP_skill_locate_element_field(struct block_list *bl) { int hIndex = 0; struct skill_unit_group* retVal___ = NULL; if( HPMHooks.count.HP_skill_locate_element_field_pre ) { - struct skill_unit_group* (*preHookFunc) (struct block_list *bl); + struct skill_unit_group* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_locate_element_field_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_locate_element_field_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68120,12 +68339,12 @@ int HP_skill_graffitiremover(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_graffitiremover_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_graffitiremover_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_graffitiremover_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68153,12 +68372,12 @@ int HP_skill_activate_reverberation(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_activate_reverberation_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_activate_reverberation_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_activate_reverberation_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68186,12 +68405,12 @@ int HP_skill_dance_overlap_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_dance_overlap_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_overlap_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_dance_overlap_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68219,11 +68438,11 @@ int HP_skill_dance_overlap(struct skill_unit *su, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_dance_overlap_pre ) { - int (*preHookFunc) (struct skill_unit *su, int *flag); + int (*preHookFunc) (struct skill_unit **su, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_overlap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_dance_overlap_pre[hIndex].func; - retVal___ = preHookFunc(su, &flag); + retVal___ = preHookFunc(&su, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68234,10 +68453,10 @@ int HP_skill_dance_overlap(struct skill_unit *su, int flag) { retVal___ = HPMHooks.source.skill.dance_overlap(su, flag); } if( HPMHooks.count.HP_skill_dance_overlap_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit *su, int *flag); + int (*postHookFunc) (int retVal___, struct skill_unit *su, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_overlap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_dance_overlap_post[hIndex].func; - retVal___ = postHookFunc(retVal___, su, &flag); + retVal___ = postHookFunc(retVal___, su, flag); } } return retVal___; @@ -68246,11 +68465,11 @@ struct s_skill_unit_layout* HP_skill_get_unit_layout(uint16 skill_id, uint16 ski int hIndex = 0; struct s_skill_unit_layout* retVal___ = NULL; if( HPMHooks.count.HP_skill_get_unit_layout_pre ) { - struct s_skill_unit_layout* (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv, struct block_list *src, int *x, int *y); + struct s_skill_unit_layout* (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv, struct block_list **src, int *x, int *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_layout_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_unit_layout_pre[hIndex].func; - retVal___ = preHookFunc(&skill_id, &skill_lv, src, &x, &y); + retVal___ = preHookFunc(&skill_id, &skill_lv, &src, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68261,10 +68480,10 @@ struct s_skill_unit_layout* HP_skill_get_unit_layout(uint16 skill_id, uint16 ski retVal___ = HPMHooks.source.skill.get_unit_layout(skill_id, skill_lv, src, x, y); } if( HPMHooks.count.HP_skill_get_unit_layout_post ) { - struct s_skill_unit_layout* (*postHookFunc) (struct s_skill_unit_layout* retVal___, uint16 *skill_id, uint16 *skill_lv, struct block_list *src, int *x, int *y); + struct s_skill_unit_layout* (*postHookFunc) (struct s_skill_unit_layout* retVal___, uint16 skill_id, uint16 skill_lv, struct block_list *src, int x, int y); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_layout_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_unit_layout_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv, src, &x, &y); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv, src, x, y); } } return retVal___; @@ -68273,12 +68492,12 @@ int HP_skill_frostjoke_scream(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_frostjoke_scream_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_frostjoke_scream_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_frostjoke_scream_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68306,12 +68525,12 @@ int HP_skill_greed(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_greed_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_greed_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_greed_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68339,12 +68558,12 @@ int HP_skill_destroy_trap(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_destroy_trap_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_destroy_trap_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_destroy_trap_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68372,11 +68591,11 @@ struct skill_unit_group_tickset* HP_skill_unitgrouptickset_search(struct block_l int hIndex = 0; struct skill_unit_group_tickset* retVal___ = NULL; if( HPMHooks.count.HP_skill_unitgrouptickset_search_pre ) { - struct skill_unit_group_tickset* (*preHookFunc) (struct block_list *bl, struct skill_unit_group *group, int64 *tick); + struct skill_unit_group_tickset* (*preHookFunc) (struct block_list **bl, struct skill_unit_group **group, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitgrouptickset_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unitgrouptickset_search_pre[hIndex].func; - retVal___ = preHookFunc(bl, group, &tick); + retVal___ = preHookFunc(&bl, &group, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68387,10 +68606,10 @@ struct skill_unit_group_tickset* HP_skill_unitgrouptickset_search(struct block_l retVal___ = HPMHooks.source.skill.unitgrouptickset_search(bl, group, tick); } if( HPMHooks.count.HP_skill_unitgrouptickset_search_post ) { - struct skill_unit_group_tickset* (*postHookFunc) (struct skill_unit_group_tickset* retVal___, struct block_list *bl, struct skill_unit_group *group, int64 *tick); + struct skill_unit_group_tickset* (*postHookFunc) (struct skill_unit_group_tickset* retVal___, struct block_list *bl, struct skill_unit_group *group, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitgrouptickset_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unitgrouptickset_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, group, &tick); + retVal___ = postHookFunc(retVal___, bl, group, tick); } } return retVal___; @@ -68399,11 +68618,11 @@ bool HP_skill_dance_switch(struct skill_unit *su, int flag) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_dance_switch_pre ) { - bool (*preHookFunc) (struct skill_unit *su, int *flag); + bool (*preHookFunc) (struct skill_unit **su, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_switch_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_dance_switch_pre[hIndex].func; - retVal___ = preHookFunc(su, &flag); + retVal___ = preHookFunc(&su, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68414,10 +68633,10 @@ bool HP_skill_dance_switch(struct skill_unit *su, int flag) { retVal___ = HPMHooks.source.skill.dance_switch(su, flag); } if( HPMHooks.count.HP_skill_dance_switch_post ) { - bool (*postHookFunc) (bool retVal___, struct skill_unit *su, int *flag); + bool (*postHookFunc) (bool retVal___, struct skill_unit *su, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_switch_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_dance_switch_post[hIndex].func; - retVal___ = postHookFunc(retVal___, su, &flag); + retVal___ = postHookFunc(retVal___, su, flag); } } return retVal___; @@ -68426,12 +68645,12 @@ int HP_skill_check_condition_char_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_char_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_char_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_check_condition_char_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68459,12 +68678,12 @@ int HP_skill_check_condition_mob_master_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_mob_master_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_mob_master_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_check_condition_mob_master_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68491,11 +68710,11 @@ int HP_skill_check_condition_mob_master_sub(struct block_list *bl, va_list ap) { void HP_skill_brandishspear_first(struct square *tc, uint8 dir, int16 x, int16 y) { int hIndex = 0; if( HPMHooks.count.HP_skill_brandishspear_first_pre ) { - void (*preHookFunc) (struct square *tc, uint8 *dir, int16 *x, int16 *y); + void (*preHookFunc) (struct square **tc, uint8 *dir, int16 *x, int16 *y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_first_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_brandishspear_first_pre[hIndex].func; - preHookFunc(tc, &dir, &x, &y); + preHookFunc(&tc, &dir, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68506,10 +68725,10 @@ void HP_skill_brandishspear_first(struct square *tc, uint8 dir, int16 x, int16 y HPMHooks.source.skill.brandishspear_first(tc, dir, x, y); } if( HPMHooks.count.HP_skill_brandishspear_first_post ) { - void (*postHookFunc) (struct square *tc, uint8 *dir, int16 *x, int16 *y); + void (*postHookFunc) (struct square *tc, uint8 dir, int16 x, int16 y); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_first_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_brandishspear_first_post[hIndex].func; - postHookFunc(tc, &dir, &x, &y); + postHookFunc(tc, dir, x, y); } } return; @@ -68517,11 +68736,11 @@ void HP_skill_brandishspear_first(struct square *tc, uint8 dir, int16 x, int16 y void HP_skill_brandishspear_dir(struct square *tc, uint8 dir, int are) { int hIndex = 0; if( HPMHooks.count.HP_skill_brandishspear_dir_pre ) { - void (*preHookFunc) (struct square *tc, uint8 *dir, int *are); + void (*preHookFunc) (struct square **tc, uint8 *dir, int *are); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_dir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_brandishspear_dir_pre[hIndex].func; - preHookFunc(tc, &dir, &are); + preHookFunc(&tc, &dir, &are); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68532,10 +68751,10 @@ void HP_skill_brandishspear_dir(struct square *tc, uint8 dir, int are) { HPMHooks.source.skill.brandishspear_dir(tc, dir, are); } if( HPMHooks.count.HP_skill_brandishspear_dir_post ) { - void (*postHookFunc) (struct square *tc, uint8 *dir, int *are); + void (*postHookFunc) (struct square *tc, uint8 dir, int are); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_brandishspear_dir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_brandishspear_dir_post[hIndex].func; - postHookFunc(tc, &dir, &are); + postHookFunc(tc, dir, are); } } return; @@ -68559,10 +68778,10 @@ int HP_skill_get_fixed_cast(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_fixed_cast(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_fixed_cast_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_fixed_cast_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_fixed_cast_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -68571,12 +68790,12 @@ int HP_skill_sit_count(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_sit_count_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_count_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_sit_count_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68604,12 +68823,12 @@ int HP_skill_sit_in(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_sit_in_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_in_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_sit_in_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68637,12 +68856,12 @@ int HP_skill_sit_out(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_sit_out_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_out_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_sit_out_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68669,11 +68888,11 @@ int HP_skill_sit_out(struct block_list *bl, va_list ap) { void HP_skill_unitsetmapcell(struct skill_unit *src, uint16 skill_id, uint16 skill_lv, cell_t cell, bool flag) { int hIndex = 0; if( HPMHooks.count.HP_skill_unitsetmapcell_pre ) { - void (*preHookFunc) (struct skill_unit *src, uint16 *skill_id, uint16 *skill_lv, cell_t *cell, bool *flag); + void (*preHookFunc) (struct skill_unit **src, uint16 *skill_id, uint16 *skill_lv, cell_t *cell, bool *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetmapcell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unitsetmapcell_pre[hIndex].func; - preHookFunc(src, &skill_id, &skill_lv, &cell, &flag); + preHookFunc(&src, &skill_id, &skill_lv, &cell, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68684,10 +68903,10 @@ void HP_skill_unitsetmapcell(struct skill_unit *src, uint16 skill_id, uint16 ski HPMHooks.source.skill.unitsetmapcell(src, skill_id, skill_lv, cell, flag); } if( HPMHooks.count.HP_skill_unitsetmapcell_post ) { - void (*postHookFunc) (struct skill_unit *src, uint16 *skill_id, uint16 *skill_lv, cell_t *cell, bool *flag); + void (*postHookFunc) (struct skill_unit *src, uint16 skill_id, uint16 skill_lv, cell_t cell, bool flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetmapcell_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unitsetmapcell_post[hIndex].func; - postHookFunc(src, &skill_id, &skill_lv, &cell, &flag); + postHookFunc(src, skill_id, skill_lv, cell, flag); } } return; @@ -68696,11 +68915,11 @@ int HP_skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_onplace_timer_pre ) { - int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*preHookFunc) (struct skill_unit **src, struct block_list **bl, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_timer_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_onplace_timer_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &tick); + retVal___ = preHookFunc(&src, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68711,10 +68930,10 @@ int HP_skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, i retVal___ = HPMHooks.source.skill.unit_onplace_timer(src, bl, tick); } if( HPMHooks.count.HP_skill_unit_onplace_timer_post ) { - int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 *tick); + int (*postHookFunc) (int retVal___, struct skill_unit *src, struct block_list *bl, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_onplace_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &tick); + retVal___ = postHookFunc(retVal___, src, bl, tick); } } return retVal___; @@ -68723,12 +68942,12 @@ int HP_skill_unit_effect(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_effect_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_effect_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_unit_effect_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68756,12 +68975,12 @@ int HP_skill_unit_timer_sub_onplace(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_timer_sub_onplace_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_sub_onplace_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_unit_timer_sub_onplace_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68789,12 +69008,12 @@ int HP_skill_unit_move_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_move_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_unit_move_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68837,10 +69056,10 @@ int HP_skill_blockpc_end(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.blockpc_end(tid, tick, id, data); } if( HPMHooks.count.HP_skill_blockpc_end_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockpc_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockpc_end_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -68864,10 +69083,10 @@ int HP_skill_blockhomun_end(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.blockhomun_end(tid, tick, id, data); } if( HPMHooks.count.HP_skill_blockhomun_end_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockhomun_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockhomun_end_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -68891,10 +69110,10 @@ int HP_skill_blockmerc_end(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.blockmerc_end(tid, tick, id, data); } if( HPMHooks.count.HP_skill_blockmerc_end_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockmerc_end_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_blockmerc_end_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -68903,11 +69122,11 @@ int HP_skill_split_atoi(char *str, int *val) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_split_atoi_pre ) { - int (*preHookFunc) (char *str, int *val); + int (*preHookFunc) (char **str, int **val); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_split_atoi_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_split_atoi_pre[hIndex].func; - retVal___ = preHookFunc(str, val); + retVal___ = preHookFunc(&str, &val); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -68945,24 +69164,24 @@ int HP_skill_unit_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.skill.unit_timer(tid, tick, id, data); } if( HPMHooks.count.HP_skill_unit_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_unit_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; } -int HP_skill_unit_timer_sub(DBKey key, DBData *data, va_list ap) { +int HP_skill_unit_timer_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_unit_timer_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_unit_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -68976,11 +69195,11 @@ int HP_skill_unit_timer_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_skill_unit_timer_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_skill_unit_timer_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } @@ -69016,11 +69235,11 @@ bool HP_skill_parse_row_skilldb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_skilldb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_skilldb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_skilldb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69031,10 +69250,10 @@ bool HP_skill_parse_row_skilldb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_skilldb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_skilldb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_skilldb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_skilldb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69043,11 +69262,11 @@ bool HP_skill_parse_row_requiredb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_requiredb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_requiredb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_requiredb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69058,10 +69277,10 @@ bool HP_skill_parse_row_requiredb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_requiredb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_requiredb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_requiredb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_requiredb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69070,11 +69289,11 @@ bool HP_skill_parse_row_castdb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_castdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_castdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69085,10 +69304,10 @@ bool HP_skill_parse_row_castdb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_castdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_castdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_castdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69097,11 +69316,11 @@ bool HP_skill_parse_row_castnodexdb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_castnodexdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castnodexdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_castnodexdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69112,10 +69331,10 @@ bool HP_skill_parse_row_castnodexdb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_castnodexdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_castnodexdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castnodexdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_castnodexdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69124,11 +69343,11 @@ bool HP_skill_parse_row_unitdb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_unitdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_unitdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_unitdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69139,10 +69358,10 @@ bool HP_skill_parse_row_unitdb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_unitdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_unitdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_unitdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_unitdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69151,11 +69370,11 @@ bool HP_skill_parse_row_producedb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_producedb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_producedb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_producedb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69166,10 +69385,10 @@ bool HP_skill_parse_row_producedb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_producedb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_producedb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_producedb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_producedb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69178,11 +69397,11 @@ bool HP_skill_parse_row_createarrowdb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_createarrowdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_createarrowdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_createarrowdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69193,10 +69412,10 @@ bool HP_skill_parse_row_createarrowdb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_createarrowdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_createarrowdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_createarrowdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_createarrowdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69205,11 +69424,11 @@ bool HP_skill_parse_row_abradb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_abradb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_abradb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_abradb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69220,10 +69439,10 @@ bool HP_skill_parse_row_abradb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_abradb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_abradb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_abradb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_abradb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69232,11 +69451,11 @@ bool HP_skill_parse_row_spellbookdb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_spellbookdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_spellbookdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_spellbookdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69247,10 +69466,10 @@ bool HP_skill_parse_row_spellbookdb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_spellbookdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_spellbookdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_spellbookdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_spellbookdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69259,11 +69478,11 @@ bool HP_skill_parse_row_magicmushroomdb(char *split[], int column, int current) int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_magicmushroomdb_pre ) { - bool (*preHookFunc) (char *split[], int *column, int *current); + bool (*preHookFunc) (char **split[], int *column, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_magicmushroomdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_magicmushroomdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &column, ¤t); + retVal___ = preHookFunc(&split, &column, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69274,10 +69493,10 @@ bool HP_skill_parse_row_magicmushroomdb(char *split[], int column, int current) retVal___ = HPMHooks.source.skill.parse_row_magicmushroomdb(split, column, current); } if( HPMHooks.count.HP_skill_parse_row_magicmushroomdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *column, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int column, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_magicmushroomdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_magicmushroomdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &column, ¤t); + retVal___ = postHookFunc(retVal___, split, column, current); } } return retVal___; @@ -69286,11 +69505,11 @@ bool HP_skill_parse_row_reproducedb(char *split[], int column, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_reproducedb_pre ) { - bool (*preHookFunc) (char *split[], int *column, int *current); + bool (*preHookFunc) (char **split[], int *column, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_reproducedb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_reproducedb_pre[hIndex].func; - retVal___ = preHookFunc(split, &column, ¤t); + retVal___ = preHookFunc(&split, &column, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69301,10 +69520,10 @@ bool HP_skill_parse_row_reproducedb(char *split[], int column, int current) { retVal___ = HPMHooks.source.skill.parse_row_reproducedb(split, column, current); } if( HPMHooks.count.HP_skill_parse_row_reproducedb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *column, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int column, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_reproducedb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_reproducedb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &column, ¤t); + retVal___ = postHookFunc(retVal___, split, column, current); } } return retVal___; @@ -69313,11 +69532,11 @@ bool HP_skill_parse_row_improvisedb(char *split[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_improvisedb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_improvisedb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_improvisedb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69328,10 +69547,10 @@ bool HP_skill_parse_row_improvisedb(char *split[], int columns, int current) { retVal___ = HPMHooks.source.skill.parse_row_improvisedb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_improvisedb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_improvisedb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_improvisedb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69340,11 +69559,11 @@ bool HP_skill_parse_row_changematerialdb(char *split[], int columns, int current int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_parse_row_changematerialdb_pre ) { - bool (*preHookFunc) (char *split[], int *columns, int *current); + bool (*preHookFunc) (char **split[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_changematerialdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_parse_row_changematerialdb_pre[hIndex].func; - retVal___ = preHookFunc(split, &columns, ¤t); + retVal___ = preHookFunc(&split, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69355,10 +69574,10 @@ bool HP_skill_parse_row_changematerialdb(char *split[], int columns, int current retVal___ = HPMHooks.source.skill.parse_row_changematerialdb(split, columns, current); } if( HPMHooks.count.HP_skill_parse_row_changematerialdb_post ) { - bool (*postHookFunc) (bool retVal___, char *split[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *split[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_changematerialdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_parse_row_changematerialdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, split, &columns, ¤t); + retVal___ = postHookFunc(retVal___, split, columns, current); } } return retVal___; @@ -69366,11 +69585,11 @@ bool HP_skill_parse_row_changematerialdb(char *split[], int columns, int current void HP_skill_usave_add(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_skill_usave_add_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_usave_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_usave_add_pre[hIndex].func; - preHookFunc(sd, &skill_id, &skill_lv); + preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69381,10 +69600,10 @@ void HP_skill_usave_add(struct map_session_data *sd, uint16 skill_id, uint16 ski HPMHooks.source.skill.usave_add(sd, skill_id, skill_lv); } if( HPMHooks.count.HP_skill_usave_add_post ) { - void (*postHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*postHookFunc) (struct map_session_data *sd, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_usave_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_usave_add_post[hIndex].func; - postHookFunc(sd, &skill_id, &skill_lv); + postHookFunc(sd, skill_id, skill_lv); } } return; @@ -69392,11 +69611,11 @@ void HP_skill_usave_add(struct map_session_data *sd, uint16 skill_id, uint16 ski void HP_skill_usave_trigger(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_skill_usave_trigger_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_usave_trigger_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_usave_trigger_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69418,11 +69637,11 @@ void HP_skill_usave_trigger(struct map_session_data *sd) { void HP_skill_cooldown_load(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_skill_cooldown_load_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cooldown_load_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_cooldown_load_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69445,11 +69664,11 @@ int HP_skill_spellbook(struct map_session_data *sd, int nameid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_spellbook_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid); + int (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_spellbook_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_spellbook_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69460,10 +69679,10 @@ int HP_skill_spellbook(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.skill.spellbook(sd, nameid); } if( HPMHooks.count.HP_skill_spellbook_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_spellbook_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_spellbook_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -69472,11 +69691,11 @@ int HP_skill_block_check(struct block_list *bl, enum sc_type type, uint16 skill_ int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_block_check_pre ) { - int (*preHookFunc) (struct block_list *bl, enum sc_type *type, uint16 *skill_id); + int (*preHookFunc) (struct block_list **bl, enum sc_type *type, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_block_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_block_check_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type, &skill_id); + retVal___ = preHookFunc(&bl, &type, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69487,10 +69706,10 @@ int HP_skill_block_check(struct block_list *bl, enum sc_type type, uint16 skill_ retVal___ = HPMHooks.source.skill.block_check(bl, type, skill_id); } if( HPMHooks.count.HP_skill_block_check_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, enum sc_type *type, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct block_list *bl, enum sc_type type, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_block_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_block_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type, &skill_id); + retVal___ = postHookFunc(retVal___, bl, type, skill_id); } } return retVal___; @@ -69499,12 +69718,12 @@ int HP_skill_detonator(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_detonator_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_detonator_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_skill_detonator_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -69532,11 +69751,11 @@ bool HP_skill_check_camouflage(struct block_list *bl, struct status_change_entry int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_check_camouflage_pre ) { - bool (*preHookFunc) (struct block_list *bl, struct status_change_entry *sce); + bool (*preHookFunc) (struct block_list **bl, struct status_change_entry **sce); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_camouflage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_camouflage_pre[hIndex].func; - retVal___ = preHookFunc(bl, sce); + retVal___ = preHookFunc(&bl, &sce); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69559,11 +69778,11 @@ int HP_skill_magicdecoy(struct map_session_data *sd, int nameid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_magicdecoy_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid); + int (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magicdecoy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_magicdecoy_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69574,10 +69793,10 @@ int HP_skill_magicdecoy(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.skill.magicdecoy(sd, nameid); } if( HPMHooks.count.HP_skill_magicdecoy_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magicdecoy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_magicdecoy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -69586,11 +69805,11 @@ int HP_skill_poisoningweapon(struct map_session_data *sd, int nameid) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_poisoningweapon_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *nameid); + int (*preHookFunc) (struct map_session_data **sd, int *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_poisoningweapon_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_poisoningweapon_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69601,10 +69820,10 @@ int HP_skill_poisoningweapon(struct map_session_data *sd, int nameid) { retVal___ = HPMHooks.source.skill.poisoningweapon(sd, nameid); } if( HPMHooks.count.HP_skill_poisoningweapon_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *nameid); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_poisoningweapon_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_poisoningweapon_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -69613,11 +69832,11 @@ int HP_skill_select_menu(struct map_session_data *sd, uint16 skill_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_select_menu_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_select_menu_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_select_menu_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_id); + retVal___ = preHookFunc(&sd, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69628,10 +69847,10 @@ int HP_skill_select_menu(struct map_session_data *sd, uint16 skill_id) { retVal___ = HPMHooks.source.skill.select_menu(sd, skill_id); } if( HPMHooks.count.HP_skill_select_menu_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_id); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_select_menu_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_select_menu_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_id); + retVal___ = postHookFunc(retVal___, sd, skill_id); } } return retVal___; @@ -69640,11 +69859,11 @@ int HP_skill_elementalanalysis(struct map_session_data *sd, uint16 skill_lv, con int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_elementalanalysis_pre ) { - int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv, const struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, uint16 *skill_lv, const struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_elementalanalysis_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_elementalanalysis_pre[hIndex].func; - retVal___ = preHookFunc(sd, &skill_lv, item_list); + retVal___ = preHookFunc(&sd, &skill_lv, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69655,10 +69874,10 @@ int HP_skill_elementalanalysis(struct map_session_data *sd, uint16 skill_lv, con retVal___ = HPMHooks.source.skill.elementalanalysis(sd, skill_lv, item_list); } if( HPMHooks.count.HP_skill_elementalanalysis_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 *skill_lv, const struct itemlist *item_list); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, uint16 skill_lv, const struct itemlist *item_list); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_elementalanalysis_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_elementalanalysis_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &skill_lv, item_list); + retVal___ = postHookFunc(retVal___, sd, skill_lv, item_list); } } return retVal___; @@ -69667,11 +69886,11 @@ int HP_skill_changematerial(struct map_session_data *sd, const struct itemlist * int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_changematerial_pre ) { - int (*preHookFunc) (struct map_session_data *sd, const struct itemlist *item_list); + int (*preHookFunc) (struct map_session_data **sd, const struct itemlist **item_list); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_changematerial_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_changematerial_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_list); + retVal___ = preHookFunc(&sd, &item_list); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69709,10 +69928,10 @@ int HP_skill_get_elemental_type(uint16 skill_id, uint16 skill_lv) { retVal___ = HPMHooks.source.skill.get_elemental_type(skill_id, skill_lv); } if( HPMHooks.count.HP_skill_get_elemental_type_post ) { - int (*postHookFunc) (int retVal___, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_elemental_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_get_elemental_type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, skill_id, skill_lv); } } return retVal___; @@ -69720,11 +69939,11 @@ int HP_skill_get_elemental_type(uint16 skill_id, uint16 skill_lv) { void HP_skill_cooldown_save(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_skill_cooldown_save_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cooldown_save_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_cooldown_save_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69774,11 +69993,11 @@ bool HP_skill_check_shadowform(struct block_list *bl, int64 damage, int hit) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_check_shadowform_pre ) { - bool (*preHookFunc) (struct block_list *bl, int64 *damage, int *hit); + bool (*preHookFunc) (struct block_list **bl, int64 *damage, int *hit); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_shadowform_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_shadowform_pre[hIndex].func; - retVal___ = preHookFunc(bl, &damage, &hit); + retVal___ = preHookFunc(&bl, &damage, &hit); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69789,10 +70008,10 @@ bool HP_skill_check_shadowform(struct block_list *bl, int64 damage, int hit) { retVal___ = HPMHooks.source.skill.check_shadowform(bl, damage, hit); } if( HPMHooks.count.HP_skill_check_shadowform_post ) { - bool (*postHookFunc) (bool retVal___, struct block_list *bl, int64 *damage, int *hit); + bool (*postHookFunc) (bool retVal___, struct block_list *bl, int64 damage, int hit); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_shadowform_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_check_shadowform_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &damage, &hit); + retVal___ = postHookFunc(retVal___, bl, damage, hit); } } return retVal___; @@ -69801,11 +70020,11 @@ bool HP_skill_castend_damage_id_unknown(struct block_list *src, struct block_lis int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_damage_id_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, struct status_data *tstatus, struct status_change *sc); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag, struct status_data **tstatus, struct status_change **sc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_damage_id_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_damage_id_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, skill_id, skill_lv, tick, flag, tstatus, sc); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag, &tstatus, &sc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69827,11 +70046,11 @@ bool HP_skill_castend_damage_id_unknown(struct block_list *src, struct block_lis void HP_skill_additional_effect_unknown(struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, int64 *tick) { int hIndex = 0; if( HPMHooks.count.HP_skill_additional_effect_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, int64 *tick); + void (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int **attack_type, int **dmg_lv, int64 **tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_additional_effect_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_additional_effect_unknown_pre[hIndex].func; - preHookFunc(src, bl, skill_id, skill_lv, attack_type, dmg_lv, tick); + preHookFunc(&src, &bl, &skill_id, &skill_lv, &attack_type, &dmg_lv, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69853,11 +70072,11 @@ void HP_skill_additional_effect_unknown(struct block_list *src, struct block_lis void HP_skill_counter_additional_effect_unknown(struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int64 *tick) { int hIndex = 0; if( HPMHooks.count.HP_skill_counter_additional_effect_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int64 *tick); + void (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int **attack_type, int64 **tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_counter_additional_effect_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_counter_additional_effect_unknown_pre[hIndex].func; - preHookFunc(src, bl, skill_id, skill_lv, attack_type, tick); + preHookFunc(&src, &bl, &skill_id, &skill_lv, &attack_type, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69879,11 +70098,11 @@ void HP_skill_counter_additional_effect_unknown(struct block_list *src, struct b void HP_skill_attack_combo1_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, struct status_change_entry *sce, int *combo) { int hIndex = 0; if( HPMHooks.count.HP_skill_attack_combo1_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, struct status_change_entry *sce, int *combo); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag, struct status_change_entry **sce, int **combo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_combo1_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_combo1_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag, sce, combo); + preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag, &sce, &combo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69905,11 +70124,11 @@ void HP_skill_attack_combo1_unknown(int *attack_type, struct block_list *src, st void HP_skill_attack_combo2_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *combo) { int hIndex = 0; if( HPMHooks.count.HP_skill_attack_combo2_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *combo); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag, int **combo); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_combo2_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_combo2_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag, combo); + preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag, &combo); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69931,11 +70150,11 @@ void HP_skill_attack_combo2_unknown(int *attack_type, struct block_list *src, st void HP_skill_attack_display_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *type, struct Damage *dmg, int64 *damage) { int hIndex = 0; if( HPMHooks.count.HP_skill_attack_display_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *type, struct Damage *dmg, int64 *damage); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag, int **type, struct Damage **dmg, int64 **damage); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_display_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_display_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag, type, dmg, damage); + preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag, &type, &dmg, &damage); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69958,11 +70177,11 @@ int HP_skill_attack_copy_unknown(int *attack_type, struct block_list *src, struc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_attack_copy_unknown_pre ) { - int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_copy_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_copy_unknown_pre[hIndex].func; - retVal___ = preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -69985,11 +70204,11 @@ int HP_skill_attack_dir_unknown(int *attack_type, struct block_list *src, struct int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_attack_dir_unknown_pre ) { - int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + int (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_dir_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_dir_unknown_pre[hIndex].func; - retVal___ = preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70011,11 +70230,11 @@ int HP_skill_attack_dir_unknown(int *attack_type, struct block_list *src, struct void HP_skill_attack_blow_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *type, struct Damage *dmg, int64 *damage, int8 *dir) { int hIndex = 0; if( HPMHooks.count.HP_skill_attack_blow_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag, int *type, struct Damage *dmg, int64 *damage, int8 *dir); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag, int **type, struct Damage **dmg, int64 **damage, int8 **dir); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_blow_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_blow_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag, type, dmg, damage, dir); + preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag, &type, &dmg, &damage, &dir); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70037,11 +70256,11 @@ void HP_skill_attack_blow_unknown(int *attack_type, struct block_list *src, stru void HP_skill_attack_post_unknown(int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag) { int hIndex = 0; if( HPMHooks.count.HP_skill_attack_post_unknown_pre ) { - void (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + void (*preHookFunc) (int **attack_type, struct block_list **src, struct block_list **dsrc, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_post_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_attack_post_unknown_pre[hIndex].func; - preHookFunc(attack_type, src, dsrc, bl, skill_id, skill_lv, tick, flag); + preHookFunc(&attack_type, &src, &dsrc, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70064,11 +70283,11 @@ bool HP_skill_timerskill_dead_unknown(struct block_list *src, struct unit_data * int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_timerskill_dead_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct unit_data *ud, struct skill_timerskill *skl); + bool (*preHookFunc) (struct block_list **src, struct unit_data **ud, struct skill_timerskill **skl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_dead_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_timerskill_dead_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, ud, skl); + retVal___ = preHookFunc(&src, &ud, &skl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70090,11 +70309,11 @@ bool HP_skill_timerskill_dead_unknown(struct block_list *src, struct unit_data * void HP_skill_timerskill_target_unknown(int tid, int64 tick, struct block_list *src, struct block_list *target, struct unit_data *ud, struct skill_timerskill *skl) { int hIndex = 0; if( HPMHooks.count.HP_skill_timerskill_target_unknown_pre ) { - void (*preHookFunc) (int *tid, int64 *tick, struct block_list *src, struct block_list *target, struct unit_data *ud, struct skill_timerskill *skl); + void (*preHookFunc) (int *tid, int64 *tick, struct block_list **src, struct block_list **target, struct unit_data **ud, struct skill_timerskill **skl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_target_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_timerskill_target_unknown_pre[hIndex].func; - preHookFunc(&tid, &tick, src, target, ud, skl); + preHookFunc(&tid, &tick, &src, &target, &ud, &skl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70105,10 +70324,10 @@ void HP_skill_timerskill_target_unknown(int tid, int64 tick, struct block_list * HPMHooks.source.skill.timerskill_target_unknown(tid, tick, src, target, ud, skl); } if( HPMHooks.count.HP_skill_timerskill_target_unknown_post ) { - void (*postHookFunc) (int *tid, int64 *tick, struct block_list *src, struct block_list *target, struct unit_data *ud, struct skill_timerskill *skl); + void (*postHookFunc) (int tid, int64 tick, struct block_list *src, struct block_list *target, struct unit_data *ud, struct skill_timerskill *skl); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_target_unknown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_timerskill_target_unknown_post[hIndex].func; - postHookFunc(&tid, &tick, src, target, ud, skl); + postHookFunc(tid, tick, src, target, ud, skl); } } return; @@ -70116,11 +70335,11 @@ void HP_skill_timerskill_target_unknown(int tid, int64 tick, struct block_list * void HP_skill_timerskill_notarget_unknown(int tid, int64 tick, struct block_list *src, struct unit_data *ud, struct skill_timerskill *skl) { int hIndex = 0; if( HPMHooks.count.HP_skill_timerskill_notarget_unknown_pre ) { - void (*preHookFunc) (int *tid, int64 *tick, struct block_list *src, struct unit_data *ud, struct skill_timerskill *skl); + void (*preHookFunc) (int *tid, int64 *tick, struct block_list **src, struct unit_data **ud, struct skill_timerskill **skl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_notarget_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_timerskill_notarget_unknown_pre[hIndex].func; - preHookFunc(&tid, &tick, src, ud, skl); + preHookFunc(&tid, &tick, &src, &ud, &skl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70131,10 +70350,10 @@ void HP_skill_timerskill_notarget_unknown(int tid, int64 tick, struct block_list HPMHooks.source.skill.timerskill_notarget_unknown(tid, tick, src, ud, skl); } if( HPMHooks.count.HP_skill_timerskill_notarget_unknown_post ) { - void (*postHookFunc) (int *tid, int64 *tick, struct block_list *src, struct unit_data *ud, struct skill_timerskill *skl); + void (*postHookFunc) (int tid, int64 tick, struct block_list *src, struct unit_data *ud, struct skill_timerskill *skl); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_notarget_unknown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_timerskill_notarget_unknown_post[hIndex].func; - postHookFunc(&tid, &tick, src, ud, skl); + postHookFunc(tid, tick, src, ud, skl); } } return; @@ -70158,10 +70377,10 @@ bool HP_skill_cleartimerskill_exception(int skill_id) { retVal___ = HPMHooks.source.skill.cleartimerskill_exception(skill_id); } if( HPMHooks.count.HP_skill_cleartimerskill_exception_post ) { - bool (*postHookFunc) (bool retVal___, int *skill_id); + bool (*postHookFunc) (bool retVal___, int skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cleartimerskill_exception_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_skill_cleartimerskill_exception_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -70170,11 +70389,11 @@ bool HP_skill_castend_id_unknown(struct unit_data *ud, struct block_list *src, s int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_id_unknown_pre ) { - bool (*preHookFunc) (struct unit_data *ud, struct block_list *src, struct block_list *target); + bool (*preHookFunc) (struct unit_data **ud, struct block_list **src, struct block_list **target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_id_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_id_unknown_pre[hIndex].func; - retVal___ = preHookFunc(ud, src, target); + retVal___ = preHookFunc(&ud, &src, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70197,11 +70416,11 @@ bool HP_skill_castend_nodamage_id_dead_unknown(struct block_list *src, struct bl int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_nodamage_id_dead_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_dead_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_dead_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70224,11 +70443,11 @@ bool HP_skill_castend_nodamage_id_undead_unknown(struct block_list *src, struct int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_nodamage_id_undead_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_undead_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_undead_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70251,11 +70470,11 @@ bool HP_skill_castend_nodamage_id_mado_unknown(struct block_list *src, struct bl int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_nodamage_id_mado_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_mado_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_mado_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70278,11 +70497,11 @@ bool HP_skill_castend_nodamage_id_unknown(struct block_list *src, struct block_l int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_nodamage_id_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + bool (*preHookFunc) (struct block_list **src, struct block_list **bl, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_nodamage_id_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&src, &bl, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70304,11 +70523,11 @@ bool HP_skill_castend_nodamage_id_unknown(struct block_list *src, struct block_l void HP_skill_castend_pos2_effect_unknown(struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag) { int hIndex = 0; if( HPMHooks.count.HP_skill_castend_pos2_effect_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + void (*preHookFunc) (struct block_list **src, int **x, int **y, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos2_effect_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_pos2_effect_unknown_pre[hIndex].func; - preHookFunc(src, x, y, skill_id, skill_lv, tick, flag); + preHookFunc(&src, &x, &y, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70331,11 +70550,11 @@ bool HP_skill_castend_pos2_unknown(struct block_list *src, int *x, int *y, uint1 int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_castend_pos2_unknown_pre ) { - bool (*preHookFunc) (struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int64 *tick, int *flag); + bool (*preHookFunc) (struct block_list **src, int **x, int **y, uint16 **skill_id, uint16 **skill_lv, int64 **tick, int **flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos2_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_castend_pos2_unknown_pre[hIndex].func; - retVal___ = preHookFunc(src, x, y, skill_id, skill_lv, tick, flag); + retVal___ = preHookFunc(&src, &x, &y, &skill_id, &skill_lv, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70357,11 +70576,11 @@ bool HP_skill_castend_pos2_unknown(struct block_list *src, int *x, int *y, uint1 void HP_skill_unitsetting1_unknown(struct block_list *src, uint16 *skill_id, uint16 *skill_lv, int16 *x, int16 *y, int *flag, int *val1, int *val2, int *val3) { int hIndex = 0; if( HPMHooks.count.HP_skill_unitsetting1_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, uint16 *skill_id, uint16 *skill_lv, int16 *x, int16 *y, int *flag, int *val1, int *val2, int *val3); + void (*preHookFunc) (struct block_list **src, uint16 **skill_id, uint16 **skill_lv, int16 **x, int16 **y, int **flag, int **val1, int **val2, int **val3); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetting1_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unitsetting1_unknown_pre[hIndex].func; - preHookFunc(src, skill_id, skill_lv, x, y, flag, val1, val2, val3); + preHookFunc(&src, &skill_id, &skill_lv, &x, &y, &flag, &val1, &val2, &val3); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70383,11 +70602,11 @@ void HP_skill_unitsetting1_unknown(struct block_list *src, uint16 *skill_id, uin void HP_skill_unitsetting2_unknown(struct block_list *src, uint16 *skill_id, uint16 *skill_lv, int16 *x, int16 *y, int *flag, int *unit_flag, int *val1, int *val2, int *val3, struct skill_unit_group *group) { int hIndex = 0; if( HPMHooks.count.HP_skill_unitsetting2_unknown_pre ) { - void (*preHookFunc) (struct block_list *src, uint16 *skill_id, uint16 *skill_lv, int16 *x, int16 *y, int *flag, int *unit_flag, int *val1, int *val2, int *val3, struct skill_unit_group *group); + void (*preHookFunc) (struct block_list **src, uint16 **skill_id, uint16 **skill_lv, int16 **x, int16 **y, int **flag, int **unit_flag, int **val1, int **val2, int **val3, struct skill_unit_group **group); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unitsetting2_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unitsetting2_unknown_pre[hIndex].func; - preHookFunc(src, skill_id, skill_lv, x, y, flag, unit_flag, val1, val2, val3, group); + preHookFunc(&src, &skill_id, &skill_lv, &x, &y, &flag, &unit_flag, &val1, &val2, &val3, &group); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70409,11 +70628,11 @@ void HP_skill_unitsetting2_unknown(struct block_list *src, uint16 *skill_id, uin void HP_skill_unit_onplace_unknown(struct skill_unit *src, struct block_list *bl, int64 *tick) { int hIndex = 0; if( HPMHooks.count.HP_skill_unit_onplace_unknown_pre ) { - void (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *tick); + void (*preHookFunc) (struct skill_unit **src, struct block_list **bl, int64 **tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_unit_onplace_unknown_pre[hIndex].func; - preHookFunc(src, bl, tick); + preHookFunc(&src, &bl, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70436,11 +70655,11 @@ int HP_skill_check_condition_castbegin_off_unknown(struct status_change *sc, uin int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castbegin_off_unknown_pre ) { - int (*preHookFunc) (struct status_change *sc, uint16 *skill_id); + int (*preHookFunc) (struct status_change **sc, uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_off_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_off_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, skill_id); + retVal___ = preHookFunc(&sc, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70463,11 +70682,11 @@ int HP_skill_check_condition_castbegin_mount_unknown(struct status_change *sc, u int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castbegin_mount_unknown_pre ) { - int (*preHookFunc) (struct status_change *sc, uint16 *skill_id); + int (*preHookFunc) (struct status_change **sc, uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_mount_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_mount_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, skill_id); + retVal___ = preHookFunc(&sc, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70490,11 +70709,11 @@ int HP_skill_check_condition_castbegin_madogear_unknown(struct status_change *sc int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castbegin_madogear_unknown_pre ) { - int (*preHookFunc) (struct status_change *sc, uint16 *skill_id); + int (*preHookFunc) (struct status_change **sc, uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_madogear_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_madogear_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, skill_id); + retVal___ = preHookFunc(&sc, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70517,11 +70736,11 @@ int HP_skill_check_condition_castbegin_unknown(struct status_change *sc, uint16 int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_skill_check_condition_castbegin_unknown_pre ) { - int (*preHookFunc) (struct status_change *sc, uint16 *skill_id); + int (*preHookFunc) (struct status_change **sc, uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castbegin_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, skill_id); + retVal___ = preHookFunc(&sc, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70543,11 +70762,11 @@ int HP_skill_check_condition_castbegin_unknown(struct status_change *sc, uint16 void HP_skill_check_condition_castend_unknown(struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv) { int hIndex = 0; if( HPMHooks.count.HP_skill_check_condition_castend_unknown_pre ) { - void (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv); + void (*preHookFunc) (struct map_session_data **sd, uint16 **skill_id, uint16 **skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castend_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_check_condition_castend_unknown_pre[hIndex].func; - preHookFunc(sd, skill_id, skill_lv); + preHookFunc(&sd, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70570,11 +70789,11 @@ bool HP_skill_get_requirement_off_unknown(struct status_change *sc, uint16 *skil int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_get_requirement_off_unknown_pre ) { - bool (*preHookFunc) (struct status_change *sc, uint16 *skill_id); + bool (*preHookFunc) (struct status_change **sc, uint16 **skill_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_requirement_off_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_requirement_off_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, skill_id); + retVal___ = preHookFunc(&sc, &skill_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70597,11 +70816,11 @@ bool HP_skill_get_requirement_item_unknown(struct status_change *sc, struct map_ int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_skill_get_requirement_item_unknown_pre ) { - bool (*preHookFunc) (struct status_change *sc, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, uint16 *idx, int *i); + bool (*preHookFunc) (struct status_change **sc, struct map_session_data **sd, uint16 **skill_id, uint16 **skill_lv, uint16 **idx, int **i); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_requirement_item_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_requirement_item_unknown_pre[hIndex].func; - retVal___ = preHookFunc(sc, sd, skill_id, skill_lv, idx, i); + retVal___ = preHookFunc(&sc, &sd, &skill_id, &skill_lv, &idx, &i); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70623,11 +70842,11 @@ bool HP_skill_get_requirement_item_unknown(struct status_change *sc, struct map_ void HP_skill_get_requirement_unknown(struct status_change *sc, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, struct skill_condition *req) { int hIndex = 0; if( HPMHooks.count.HP_skill_get_requirement_unknown_pre ) { - void (*preHookFunc) (struct status_change *sc, struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, struct skill_condition *req); + void (*preHookFunc) (struct status_change **sc, struct map_session_data **sd, uint16 **skill_id, uint16 **skill_lv, struct skill_condition **req); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_requirement_unknown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_skill_get_requirement_unknown_pre[hIndex].func; - preHookFunc(sc, sd, skill_id, skill_lv, req); + preHookFunc(&sc, &sd, &skill_id, &skill_lv, &req); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70646,7 +70865,7 @@ void HP_skill_get_requirement_unknown(struct status_change *sc, struct map_sessi } return; } -/* sockt */ +/* socket_interface */ void HP_sockt_init(void) { int hIndex = 0; if( HPMHooks.count.HP_sockt_init_pre ) { @@ -70718,10 +70937,10 @@ int HP_sockt_perform(int next) { retVal___ = HPMHooks.source.sockt.perform(next); } if( HPMHooks.count.HP_sockt_perform_post ) { - int (*postHookFunc) (int retVal___, int *next); + int (*postHookFunc) (int retVal___, int next); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_perform_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_perform_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &next); + retVal___ = postHookFunc(retVal___, next); } } return retVal___; @@ -70744,10 +70963,10 @@ void HP_sockt_datasync(int fd, bool send) { HPMHooks.source.sockt.datasync(fd, send); } if( HPMHooks.count.HP_sockt_datasync_post ) { - void (*postHookFunc) (int *fd, bool *send); + void (*postHookFunc) (int fd, bool send); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_datasync_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_datasync_post[hIndex].func; - postHookFunc(&fd, &send); + postHookFunc(fd, send); } } return; @@ -70771,10 +70990,10 @@ int HP_sockt_make_listen_bind(uint32 ip, uint16 port) { retVal___ = HPMHooks.source.sockt.make_listen_bind(ip, port); } if( HPMHooks.count.HP_sockt_make_listen_bind_post ) { - int (*postHookFunc) (int retVal___, uint32 *ip, uint16 *port); + int (*postHookFunc) (int retVal___, uint32 ip, uint16 port); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_listen_bind_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_make_listen_bind_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip, &port); + retVal___ = postHookFunc(retVal___, ip, port); } } return retVal___; @@ -70783,11 +71002,11 @@ int HP_sockt_make_connection(uint32 ip, uint16 port, struct hSockOpt *opt) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sockt_make_connection_pre ) { - int (*preHookFunc) (uint32 *ip, uint16 *port, struct hSockOpt *opt); + int (*preHookFunc) (uint32 *ip, uint16 *port, struct hSockOpt **opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_make_connection_pre[hIndex].func; - retVal___ = preHookFunc(&ip, &port, opt); + retVal___ = preHookFunc(&ip, &port, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -70798,10 +71017,10 @@ int HP_sockt_make_connection(uint32 ip, uint16 port, struct hSockOpt *opt) { retVal___ = HPMHooks.source.sockt.make_connection(ip, port, opt); } if( HPMHooks.count.HP_sockt_make_connection_post ) { - int (*postHookFunc) (int retVal___, uint32 *ip, uint16 *port, struct hSockOpt *opt); + int (*postHookFunc) (int retVal___, uint32 ip, uint16 port, struct hSockOpt *opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_make_connection_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_make_connection_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip, &port, opt); + retVal___ = postHookFunc(retVal___, ip, port, opt); } } return retVal___; @@ -70825,10 +71044,10 @@ int HP_sockt_realloc_fifo(int fd, unsigned int rfifo_size, unsigned int wfifo_si retVal___ = HPMHooks.source.sockt.realloc_fifo(fd, rfifo_size, wfifo_size); } if( HPMHooks.count.HP_sockt_realloc_fifo_post ) { - int (*postHookFunc) (int retVal___, int *fd, unsigned int *rfifo_size, unsigned int *wfifo_size); + int (*postHookFunc) (int retVal___, int fd, unsigned int rfifo_size, unsigned int wfifo_size); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_fifo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_realloc_fifo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, &rfifo_size, &wfifo_size); + retVal___ = postHookFunc(retVal___, fd, rfifo_size, wfifo_size); } } return retVal___; @@ -70852,10 +71071,10 @@ int HP_sockt_realloc_writefifo(int fd, size_t addition) { retVal___ = HPMHooks.source.sockt.realloc_writefifo(fd, addition); } if( HPMHooks.count.HP_sockt_realloc_writefifo_post ) { - int (*postHookFunc) (int retVal___, int *fd, size_t *addition); + int (*postHookFunc) (int retVal___, int fd, size_t addition); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_realloc_writefifo_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_realloc_writefifo_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, &addition); + retVal___ = postHookFunc(retVal___, fd, addition); } } return retVal___; @@ -70879,10 +71098,10 @@ int HP_sockt_wfifoset(int fd, size_t len) { retVal___ = HPMHooks.source.sockt.wfifoset(fd, len); } if( HPMHooks.count.HP_sockt_wfifoset_post ) { - int (*postHookFunc) (int retVal___, int *fd, size_t *len); + int (*postHookFunc) (int retVal___, int fd, size_t len); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_wfifoset_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_wfifoset_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, &len); + retVal___ = postHookFunc(retVal___, fd, len); } } return retVal___; @@ -70906,10 +71125,10 @@ int HP_sockt_rfifoskip(int fd, size_t len) { retVal___ = HPMHooks.source.sockt.rfifoskip(fd, len); } if( HPMHooks.count.HP_sockt_rfifoskip_post ) { - int (*postHookFunc) (int retVal___, int *fd, size_t *len); + int (*postHookFunc) (int retVal___, int fd, size_t len); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_rfifoskip_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_rfifoskip_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd, &len); + retVal___ = postHookFunc(retVal___, fd, len); } } return retVal___; @@ -70932,10 +71151,10 @@ void HP_sockt_close(int fd) { HPMHooks.source.sockt.close(fd); } if( HPMHooks.count.HP_sockt_close_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_close_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_close_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -70959,10 +71178,10 @@ bool HP_sockt_session_is_valid(int fd) { retVal___ = HPMHooks.source.sockt.session_is_valid(fd); } if( HPMHooks.count.HP_sockt_session_is_valid_post ) { - bool (*postHookFunc) (bool retVal___, int *fd); + bool (*postHookFunc) (bool retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_valid_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_session_is_valid_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -70986,10 +71205,10 @@ bool HP_sockt_session_is_active(int fd) { retVal___ = HPMHooks.source.sockt.session_is_active(fd); } if( HPMHooks.count.HP_sockt_session_is_active_post ) { - bool (*postHookFunc) (bool retVal___, int *fd); + bool (*postHookFunc) (bool retVal___, int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_session_is_active_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_session_is_active_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &fd); + retVal___ = postHookFunc(retVal___, fd); } } return retVal___; @@ -71012,10 +71231,10 @@ void HP_sockt_flush(int fd) { HPMHooks.source.sockt.flush(fd); } if( HPMHooks.count.HP_sockt_flush_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_flush_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_flush_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -71064,10 +71283,10 @@ void HP_sockt_set_nonblocking(int fd, unsigned long yes) { HPMHooks.source.sockt.set_nonblocking(fd, yes); } if( HPMHooks.count.HP_sockt_set_nonblocking_post ) { - void (*postHookFunc) (int *fd, unsigned long *yes); + void (*postHookFunc) (int fd, unsigned long yes); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_nonblocking_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_set_nonblocking_post[hIndex].func; - postHookFunc(&fd, &yes); + postHookFunc(fd, yes); } } return; @@ -71090,10 +71309,10 @@ void HP_sockt_set_defaultparse(ParseFunc defaultparse) { HPMHooks.source.sockt.set_defaultparse(defaultparse); } if( HPMHooks.count.HP_sockt_set_defaultparse_post ) { - void (*postHookFunc) (ParseFunc *defaultparse); + void (*postHookFunc) (ParseFunc defaultparse); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_set_defaultparse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_set_defaultparse_post[hIndex].func; - postHookFunc(&defaultparse); + postHookFunc(defaultparse); } } return; @@ -71102,11 +71321,11 @@ uint32 HP_sockt_host2ip(const char *hostname) { int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_sockt_host2ip_pre ) { - uint32 (*preHookFunc) (const char *hostname); + uint32 (*preHookFunc) (const char **hostname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_host2ip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_host2ip_pre[hIndex].func; - retVal___ = preHookFunc(hostname); + retVal___ = preHookFunc(&hostname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71129,11 +71348,11 @@ const char* HP_sockt_ip2str(uint32 ip, char *ip_str) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_sockt_ip2str_pre ) { - const char* (*preHookFunc) (uint32 *ip, char *ip_str); + const char* (*preHookFunc) (uint32 *ip, char **ip_str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_ip2str_pre[hIndex].func; - retVal___ = preHookFunc(&ip, ip_str); + retVal___ = preHookFunc(&ip, &ip_str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71144,10 +71363,10 @@ const char* HP_sockt_ip2str(uint32 ip, char *ip_str) { retVal___ = HPMHooks.source.sockt.ip2str(ip, ip_str); } if( HPMHooks.count.HP_sockt_ip2str_post ) { - const char* (*postHookFunc) (const char* retVal___, uint32 *ip, char *ip_str); + const char* (*postHookFunc) (const char* retVal___, uint32 ip, char *ip_str); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ip2str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_ip2str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip, ip_str); + retVal___ = postHookFunc(retVal___, ip, ip_str); } } return retVal___; @@ -71156,11 +71375,11 @@ uint32 HP_sockt_str2ip(const char *ip_str) { int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_sockt_str2ip_pre ) { - uint32 (*preHookFunc) (const char *ip_str); + uint32 (*preHookFunc) (const char **ip_str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_str2ip_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_str2ip_pre[hIndex].func; - retVal___ = preHookFunc(ip_str); + retVal___ = preHookFunc(&ip_str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71198,10 +71417,10 @@ uint16 HP_sockt_ntows(uint16 netshort) { retVal___ = HPMHooks.source.sockt.ntows(netshort); } if( HPMHooks.count.HP_sockt_ntows_post ) { - uint16 (*postHookFunc) (uint16 retVal___, uint16 *netshort); + uint16 (*postHookFunc) (uint16 retVal___, uint16 netshort); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_ntows_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_ntows_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &netshort); + retVal___ = postHookFunc(retVal___, netshort); } } return retVal___; @@ -71210,11 +71429,11 @@ int HP_sockt_getips(uint32 *ips, int max) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sockt_getips_pre ) { - int (*preHookFunc) (uint32 *ips, int *max); + int (*preHookFunc) (uint32 **ips, int *max); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_getips_pre[hIndex].func; - retVal___ = preHookFunc(ips, &max); + retVal___ = preHookFunc(&ips, &max); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71225,10 +71444,10 @@ int HP_sockt_getips(uint32 *ips, int max) { retVal___ = HPMHooks.source.sockt.getips(ips, max); } if( HPMHooks.count.HP_sockt_getips_post ) { - int (*postHookFunc) (int retVal___, uint32 *ips, int *max); + int (*postHookFunc) (int retVal___, uint32 *ips, int max); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_getips_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_getips_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ips, &max); + retVal___ = postHookFunc(retVal___, ips, max); } } return retVal___; @@ -71251,10 +71470,10 @@ void HP_sockt_eof(int fd) { HPMHooks.source.sockt.eof(fd); } if( HPMHooks.count.HP_sockt_eof_post ) { - void (*postHookFunc) (int *fd); + void (*postHookFunc) (int fd); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_eof_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_eof_post[hIndex].func; - postHookFunc(&fd); + postHookFunc(fd); } } return; @@ -71263,11 +71482,11 @@ uint32 HP_sockt_lan_subnet_check(uint32 ip, struct s_subnet *info) { int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_sockt_lan_subnet_check_pre ) { - uint32 (*preHookFunc) (uint32 *ip, struct s_subnet *info); + uint32 (*preHookFunc) (uint32 *ip, struct s_subnet **info); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_lan_subnet_check_pre[hIndex].func; - retVal___ = preHookFunc(&ip, info); + retVal___ = preHookFunc(&ip, &info); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71278,10 +71497,10 @@ uint32 HP_sockt_lan_subnet_check(uint32 ip, struct s_subnet *info) { retVal___ = HPMHooks.source.sockt.lan_subnet_check(ip, info); } if( HPMHooks.count.HP_sockt_lan_subnet_check_post ) { - uint32 (*postHookFunc) (uint32 retVal___, uint32 *ip, struct s_subnet *info); + uint32 (*postHookFunc) (uint32 retVal___, uint32 ip, struct s_subnet *info); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_lan_subnet_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_lan_subnet_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip, info); + retVal___ = postHookFunc(retVal___, ip, info); } } return retVal___; @@ -71305,10 +71524,10 @@ bool HP_sockt_allowed_ip_check(uint32 ip) { retVal___ = HPMHooks.source.sockt.allowed_ip_check(ip); } if( HPMHooks.count.HP_sockt_allowed_ip_check_post ) { - bool (*postHookFunc) (bool retVal___, uint32 *ip); + bool (*postHookFunc) (bool retVal___, uint32 ip); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_allowed_ip_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_allowed_ip_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip); + retVal___ = postHookFunc(retVal___, ip); } } return retVal___; @@ -71332,10 +71551,10 @@ bool HP_sockt_trusted_ip_check(uint32 ip) { retVal___ = HPMHooks.source.sockt.trusted_ip_check(ip); } if( HPMHooks.count.HP_sockt_trusted_ip_check_post ) { - bool (*postHookFunc) (bool retVal___, uint32 *ip); + bool (*postHookFunc) (bool retVal___, uint32 ip); for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_trusted_ip_check_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sockt_trusted_ip_check_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &ip); + retVal___ = postHookFunc(retVal___, ip); } } return retVal___; @@ -71344,11 +71563,11 @@ int HP_sockt_net_config_read_sub(struct config_setting_t *t, struct s_subnet_vec int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sockt_net_config_read_sub_pre ) { - int (*preHookFunc) (struct config_setting_t *t, struct s_subnet_vector *list, const char *filename, const char *groupname); + int (*preHookFunc) (struct config_setting_t **t, struct s_subnet_vector **list, const char **filename, const char **groupname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_net_config_read_sub_pre[hIndex].func; - retVal___ = preHookFunc(t, list, filename, groupname); + retVal___ = preHookFunc(&t, &list, &filename, &groupname); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71370,11 +71589,11 @@ int HP_sockt_net_config_read_sub(struct config_setting_t *t, struct s_subnet_vec void HP_sockt_net_config_read(const char *filename) { int hIndex = 0; if( HPMHooks.count.HP_sockt_net_config_read_pre ) { - void (*preHookFunc) (const char *filename); + void (*preHookFunc) (const char **filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sockt_net_config_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sockt_net_config_read_pre[hIndex].func; - preHookFunc(filename); + preHookFunc(&filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71393,16 +71612,16 @@ void HP_sockt_net_config_read(const char *filename) { } return; } -/* SQL */ -int HP_SQL_Connect(Sql *self, const char *user, const char *passwd, const char *host, uint16 port, const char *db) { +/* sql_interface */ +int HP_SQL_Connect(struct Sql *self, const char *user, const char *passwd, const char *host, uint16 port, const char *db) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_Connect_pre ) { - int (*preHookFunc) (Sql *self, const char *user, const char *passwd, const char *host, uint16 *port, const char *db); + int (*preHookFunc) (struct Sql **self, const char **user, const char **passwd, const char **host, uint16 *port, const char **db); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_Connect_pre[hIndex].func; - retVal___ = preHookFunc(self, user, passwd, host, &port, db); + retVal___ = preHookFunc(&self, &user, &passwd, &host, &port, &db); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71413,23 +71632,23 @@ int HP_SQL_Connect(Sql *self, const char *user, const char *passwd, const char * retVal___ = HPMHooks.source.SQL.Connect(self, user, passwd, host, port, db); } if( HPMHooks.count.HP_SQL_Connect_post ) { - int (*postHookFunc) (int retVal___, Sql *self, const char *user, const char *passwd, const char *host, uint16 *port, const char *db); + int (*postHookFunc) (int retVal___, struct Sql *self, const char *user, const char *passwd, const char *host, uint16 port, const char *db); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Connect_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_Connect_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, user, passwd, host, &port, db); + retVal___ = postHookFunc(retVal___, self, user, passwd, host, port, db); } } return retVal___; } -int HP_SQL_GetTimeout(Sql *self, uint32 *out_timeout) { +int HP_SQL_GetTimeout(struct Sql *self, uint32 *out_timeout) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_GetTimeout_pre ) { - int (*preHookFunc) (Sql *self, uint32 *out_timeout); + int (*preHookFunc) (struct Sql **self, uint32 **out_timeout); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_GetTimeout_pre[hIndex].func; - retVal___ = preHookFunc(self, out_timeout); + retVal___ = preHookFunc(&self, &out_timeout); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71440,7 +71659,7 @@ int HP_SQL_GetTimeout(Sql *self, uint32 *out_timeout) { retVal___ = HPMHooks.source.SQL.GetTimeout(self, out_timeout); } if( HPMHooks.count.HP_SQL_GetTimeout_post ) { - int (*postHookFunc) (int retVal___, Sql *self, uint32 *out_timeout); + int (*postHookFunc) (int retVal___, struct Sql *self, uint32 *out_timeout); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetTimeout_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_GetTimeout_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, out_timeout); @@ -71448,15 +71667,15 @@ int HP_SQL_GetTimeout(Sql *self, uint32 *out_timeout) { } return retVal___; } -int HP_SQL_GetColumnNames(Sql *self, const char *table, char *out_buf, size_t buf_len, char sep) { +int HP_SQL_GetColumnNames(struct Sql *self, const char *table, char *out_buf, size_t buf_len, char sep) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_GetColumnNames_pre ) { - int (*preHookFunc) (Sql *self, const char *table, char *out_buf, size_t *buf_len, char *sep); + int (*preHookFunc) (struct Sql **self, const char **table, char **out_buf, size_t *buf_len, char *sep); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_GetColumnNames_pre[hIndex].func; - retVal___ = preHookFunc(self, table, out_buf, &buf_len, &sep); + retVal___ = preHookFunc(&self, &table, &out_buf, &buf_len, &sep); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71467,23 +71686,23 @@ int HP_SQL_GetColumnNames(Sql *self, const char *table, char *out_buf, size_t bu retVal___ = HPMHooks.source.SQL.GetColumnNames(self, table, out_buf, buf_len, sep); } if( HPMHooks.count.HP_SQL_GetColumnNames_post ) { - int (*postHookFunc) (int retVal___, Sql *self, const char *table, char *out_buf, size_t *buf_len, char *sep); + int (*postHookFunc) (int retVal___, struct Sql *self, const char *table, char *out_buf, size_t buf_len, char sep); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetColumnNames_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_GetColumnNames_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, table, out_buf, &buf_len, &sep); + retVal___ = postHookFunc(retVal___, self, table, out_buf, buf_len, sep); } } return retVal___; } -int HP_SQL_SetEncoding(Sql *self, const char *encoding) { +int HP_SQL_SetEncoding(struct Sql *self, const char *encoding) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_SetEncoding_pre ) { - int (*preHookFunc) (Sql *self, const char *encoding); + int (*preHookFunc) (struct Sql **self, const char **encoding); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_SetEncoding_pre[hIndex].func; - retVal___ = preHookFunc(self, encoding); + retVal___ = preHookFunc(&self, &encoding); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71494,7 +71713,7 @@ int HP_SQL_SetEncoding(Sql *self, const char *encoding) { retVal___ = HPMHooks.source.SQL.SetEncoding(self, encoding); } if( HPMHooks.count.HP_SQL_SetEncoding_post ) { - int (*postHookFunc) (int retVal___, Sql *self, const char *encoding); + int (*postHookFunc) (int retVal___, struct Sql *self, const char *encoding); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_SetEncoding_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_SetEncoding_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, encoding); @@ -71502,15 +71721,15 @@ int HP_SQL_SetEncoding(Sql *self, const char *encoding) { } return retVal___; } -int HP_SQL_Ping(Sql *self) { +int HP_SQL_Ping(struct Sql *self) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_Ping_pre ) { - int (*preHookFunc) (Sql *self); + int (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_Ping_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71521,7 +71740,7 @@ int HP_SQL_Ping(Sql *self) { retVal___ = HPMHooks.source.SQL.Ping(self); } if( HPMHooks.count.HP_SQL_Ping_post ) { - int (*postHookFunc) (int retVal___, Sql *self); + int (*postHookFunc) (int retVal___, struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Ping_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_Ping_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71529,15 +71748,15 @@ int HP_SQL_Ping(Sql *self) { } return retVal___; } -size_t HP_SQL_EscapeString(Sql *self, char *out_to, const char *from) { +size_t HP_SQL_EscapeString(struct Sql *self, char *out_to, const char *from) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_SQL_EscapeString_pre ) { - size_t (*preHookFunc) (Sql *self, char *out_to, const char *from); + size_t (*preHookFunc) (struct Sql **self, char **out_to, const char **from); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_EscapeString_pre[hIndex].func; - retVal___ = preHookFunc(self, out_to, from); + retVal___ = preHookFunc(&self, &out_to, &from); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71548,7 +71767,7 @@ size_t HP_SQL_EscapeString(Sql *self, char *out_to, const char *from) { retVal___ = HPMHooks.source.SQL.EscapeString(self, out_to, from); } if( HPMHooks.count.HP_SQL_EscapeString_post ) { - size_t (*postHookFunc) (size_t retVal___, Sql *self, char *out_to, const char *from); + size_t (*postHookFunc) (size_t retVal___, struct Sql *self, char *out_to, const char *from); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeString_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_EscapeString_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, out_to, from); @@ -71556,15 +71775,15 @@ size_t HP_SQL_EscapeString(Sql *self, char *out_to, const char *from) { } return retVal___; } -size_t HP_SQL_EscapeStringLen(Sql *self, char *out_to, const char *from, size_t from_len) { +size_t HP_SQL_EscapeStringLen(struct Sql *self, char *out_to, const char *from, size_t from_len) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_SQL_EscapeStringLen_pre ) { - size_t (*preHookFunc) (Sql *self, char *out_to, const char *from, size_t *from_len); + size_t (*preHookFunc) (struct Sql **self, char **out_to, const char **from, size_t *from_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_EscapeStringLen_pre[hIndex].func; - retVal___ = preHookFunc(self, out_to, from, &from_len); + retVal___ = preHookFunc(&self, &out_to, &from, &from_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71575,24 +71794,24 @@ size_t HP_SQL_EscapeStringLen(Sql *self, char *out_to, const char *from, size_t retVal___ = HPMHooks.source.SQL.EscapeStringLen(self, out_to, from, from_len); } if( HPMHooks.count.HP_SQL_EscapeStringLen_post ) { - size_t (*postHookFunc) (size_t retVal___, Sql *self, char *out_to, const char *from, size_t *from_len); + size_t (*postHookFunc) (size_t retVal___, struct Sql *self, char *out_to, const char *from, size_t from_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_EscapeStringLen_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_EscapeStringLen_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, out_to, from, &from_len); + retVal___ = postHookFunc(retVal___, self, out_to, from, from_len); } } return retVal___; } -int HP_SQL_QueryV(Sql *self, const char *query, va_list args) { +int HP_SQL_QueryV(struct Sql *self, const char *query, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_QueryV_pre ) { - int (*preHookFunc) (Sql *self, const char *query, va_list args); + int (*preHookFunc) (struct Sql **self, const char **query, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_SQL_QueryV_pre[hIndex].func; - retVal___ = preHookFunc(self, query, args___copy); + retVal___ = preHookFunc(&self, &query, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -71606,7 +71825,7 @@ int HP_SQL_QueryV(Sql *self, const char *query, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_SQL_QueryV_post ) { - int (*postHookFunc) (int retVal___, Sql *self, const char *query, va_list args); + int (*postHookFunc) (int retVal___, struct Sql *self, const char *query, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryV_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_SQL_QueryV_post[hIndex].func; @@ -71616,15 +71835,15 @@ int HP_SQL_QueryV(Sql *self, const char *query, va_list args) { } return retVal___; } -int HP_SQL_QueryStr(Sql *self, const char *query) { +int HP_SQL_QueryStr(struct Sql *self, const char *query) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_QueryStr_pre ) { - int (*preHookFunc) (Sql *self, const char *query); + int (*preHookFunc) (struct Sql **self, const char **query); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_QueryStr_pre[hIndex].func; - retVal___ = preHookFunc(self, query); + retVal___ = preHookFunc(&self, &query); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71635,7 +71854,7 @@ int HP_SQL_QueryStr(Sql *self, const char *query) { retVal___ = HPMHooks.source.SQL.QueryStr(self, query); } if( HPMHooks.count.HP_SQL_QueryStr_post ) { - int (*postHookFunc) (int retVal___, Sql *self, const char *query); + int (*postHookFunc) (int retVal___, struct Sql *self, const char *query); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_QueryStr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_QueryStr_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query); @@ -71643,15 +71862,15 @@ int HP_SQL_QueryStr(Sql *self, const char *query) { } return retVal___; } -uint64 HP_SQL_LastInsertId(Sql *self) { +uint64 HP_SQL_LastInsertId(struct Sql *self) { int hIndex = 0; uint64 retVal___ = 0; if( HPMHooks.count.HP_SQL_LastInsertId_pre ) { - uint64 (*preHookFunc) (Sql *self); + uint64 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_LastInsertId_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71662,7 +71881,7 @@ uint64 HP_SQL_LastInsertId(Sql *self) { retVal___ = HPMHooks.source.SQL.LastInsertId(self); } if( HPMHooks.count.HP_SQL_LastInsertId_post ) { - uint64 (*postHookFunc) (uint64 retVal___, Sql *self); + uint64 (*postHookFunc) (uint64 retVal___, struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_LastInsertId_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_LastInsertId_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71670,15 +71889,15 @@ uint64 HP_SQL_LastInsertId(Sql *self) { } return retVal___; } -uint32 HP_SQL_NumColumns(Sql *self) { +uint32 HP_SQL_NumColumns(struct Sql *self) { int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_SQL_NumColumns_pre ) { - uint32 (*preHookFunc) (Sql *self); + uint32 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_NumColumns_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71689,7 +71908,7 @@ uint32 HP_SQL_NumColumns(Sql *self) { retVal___ = HPMHooks.source.SQL.NumColumns(self); } if( HPMHooks.count.HP_SQL_NumColumns_post ) { - uint32 (*postHookFunc) (uint32 retVal___, Sql *self); + uint32 (*postHookFunc) (uint32 retVal___, struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumColumns_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_NumColumns_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71697,15 +71916,15 @@ uint32 HP_SQL_NumColumns(Sql *self) { } return retVal___; } -uint64 HP_SQL_NumRows(Sql *self) { +uint64 HP_SQL_NumRows(struct Sql *self) { int hIndex = 0; uint64 retVal___ = 0; if( HPMHooks.count.HP_SQL_NumRows_pre ) { - uint64 (*preHookFunc) (Sql *self); + uint64 (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_NumRows_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71716,7 +71935,7 @@ uint64 HP_SQL_NumRows(Sql *self) { retVal___ = HPMHooks.source.SQL.NumRows(self); } if( HPMHooks.count.HP_SQL_NumRows_post ) { - uint64 (*postHookFunc) (uint64 retVal___, Sql *self); + uint64 (*postHookFunc) (uint64 retVal___, struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NumRows_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_NumRows_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71724,15 +71943,15 @@ uint64 HP_SQL_NumRows(Sql *self) { } return retVal___; } -int HP_SQL_NextRow(Sql *self) { +int HP_SQL_NextRow(struct Sql *self) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_NextRow_pre ) { - int (*preHookFunc) (Sql *self); + int (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_NextRow_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71743,7 +71962,7 @@ int HP_SQL_NextRow(Sql *self) { retVal___ = HPMHooks.source.SQL.NextRow(self); } if( HPMHooks.count.HP_SQL_NextRow_post ) { - int (*postHookFunc) (int retVal___, Sql *self); + int (*postHookFunc) (int retVal___, struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_NextRow_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_NextRow_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71751,15 +71970,15 @@ int HP_SQL_NextRow(Sql *self) { } return retVal___; } -int HP_SQL_GetData(Sql *self, size_t col, char **out_buf, size_t *out_len) { +int HP_SQL_GetData(struct Sql *self, size_t col, char **out_buf, size_t *out_len) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_GetData_pre ) { - int (*preHookFunc) (Sql *self, size_t *col, char **out_buf, size_t *out_len); + int (*preHookFunc) (struct Sql **self, size_t *col, char ***out_buf, size_t **out_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_GetData_pre[hIndex].func; - retVal___ = preHookFunc(self, &col, out_buf, out_len); + retVal___ = preHookFunc(&self, &col, &out_buf, &out_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71770,22 +71989,22 @@ int HP_SQL_GetData(Sql *self, size_t col, char **out_buf, size_t *out_len) { retVal___ = HPMHooks.source.SQL.GetData(self, col, out_buf, out_len); } if( HPMHooks.count.HP_SQL_GetData_post ) { - int (*postHookFunc) (int retVal___, Sql *self, size_t *col, char **out_buf, size_t *out_len); + int (*postHookFunc) (int retVal___, struct Sql *self, size_t col, char **out_buf, size_t *out_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_GetData_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_GetData_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, &col, out_buf, out_len); + retVal___ = postHookFunc(retVal___, self, col, out_buf, out_len); } } return retVal___; } -void HP_SQL_FreeResult(Sql *self) { +void HP_SQL_FreeResult(struct Sql *self) { int hIndex = 0; if( HPMHooks.count.HP_SQL_FreeResult_pre ) { - void (*preHookFunc) (Sql *self); + void (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_FreeResult_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71796,7 +72015,7 @@ void HP_SQL_FreeResult(Sql *self) { HPMHooks.source.SQL.FreeResult(self); } if( HPMHooks.count.HP_SQL_FreeResult_post ) { - void (*postHookFunc) (Sql *self); + void (*postHookFunc) (struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_FreeResult_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_FreeResult_post[hIndex].func; postHookFunc(self); @@ -71804,14 +72023,14 @@ void HP_SQL_FreeResult(Sql *self) { } return; } -void HP_SQL_ShowDebug_(Sql *self, const char *debug_file, const unsigned long debug_line) { +void HP_SQL_ShowDebug_(struct Sql *self, const char *debug_file, const unsigned long debug_line) { int hIndex = 0; if( HPMHooks.count.HP_SQL_ShowDebug__pre ) { - void (*preHookFunc) (Sql *self, const char *debug_file, const unsigned long *debug_line); + void (*preHookFunc) (struct Sql **self, const char **debug_file, const unsigned long *debug_line); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_ShowDebug__pre[hIndex].func; - preHookFunc(self, debug_file, &debug_line); + preHookFunc(&self, &debug_file, &debug_line); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71822,22 +72041,22 @@ void HP_SQL_ShowDebug_(Sql *self, const char *debug_file, const unsigned long de HPMHooks.source.SQL.ShowDebug_(self, debug_file, debug_line); } if( HPMHooks.count.HP_SQL_ShowDebug__post ) { - void (*postHookFunc) (Sql *self, const char *debug_file, const unsigned long *debug_line); + void (*postHookFunc) (struct Sql *self, const char *debug_file, const unsigned long debug_line); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_ShowDebug__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_ShowDebug__post[hIndex].func; - postHookFunc(self, debug_file, &debug_line); + postHookFunc(self, debug_file, debug_line); } } return; } -void HP_SQL_Free(Sql *self) { +void HP_SQL_Free(struct Sql *self) { int hIndex = 0; if( HPMHooks.count.HP_SQL_Free_pre ) { - void (*preHookFunc) (Sql *self); + void (*preHookFunc) (struct Sql **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_Free_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71848,7 +72067,7 @@ void HP_SQL_Free(Sql *self) { HPMHooks.source.SQL.Free(self); } if( HPMHooks.count.HP_SQL_Free_post ) { - void (*postHookFunc) (Sql *self); + void (*postHookFunc) (struct Sql *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_Free_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_Free_post[hIndex].func; postHookFunc(self); @@ -71883,15 +72102,15 @@ struct Sql* HP_SQL_Malloc(void) { } return retVal___; } -struct SqlStmt* HP_SQL_StmtMalloc(Sql *sql) { +struct SqlStmt* HP_SQL_StmtMalloc(struct Sql *sql) { int hIndex = 0; struct SqlStmt* retVal___ = NULL; if( HPMHooks.count.HP_SQL_StmtMalloc_pre ) { - struct SqlStmt* (*preHookFunc) (Sql *sql); + struct SqlStmt* (*preHookFunc) (struct Sql **sql); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtMalloc_pre[hIndex].func; - retVal___ = preHookFunc(sql); + retVal___ = preHookFunc(&sql); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71902,7 +72121,7 @@ struct SqlStmt* HP_SQL_StmtMalloc(Sql *sql) { retVal___ = HPMHooks.source.SQL.StmtMalloc(sql); } if( HPMHooks.count.HP_SQL_StmtMalloc_post ) { - struct SqlStmt* (*postHookFunc) (struct SqlStmt* retVal___, Sql *sql); + struct SqlStmt* (*postHookFunc) (struct SqlStmt* retVal___, struct Sql *sql); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtMalloc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtMalloc_post[hIndex].func; retVal___ = postHookFunc(retVal___, sql); @@ -71910,16 +72129,16 @@ struct SqlStmt* HP_SQL_StmtMalloc(Sql *sql) { } return retVal___; } -int HP_SQL_StmtPrepareV(SqlStmt *self, const char *query, va_list args) { +int HP_SQL_StmtPrepareV(struct SqlStmt *self, const char *query, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtPrepareV_pre ) { - int (*preHookFunc) (SqlStmt *self, const char *query, va_list args); + int (*preHookFunc) (struct SqlStmt **self, const char **query, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_SQL_StmtPrepareV_pre[hIndex].func; - retVal___ = preHookFunc(self, query, args___copy); + retVal___ = preHookFunc(&self, &query, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -71933,7 +72152,7 @@ int HP_SQL_StmtPrepareV(SqlStmt *self, const char *query, va_list args) { va_end(args___copy); } if( HPMHooks.count.HP_SQL_StmtPrepareV_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self, const char *query, va_list args); + int (*postHookFunc) (int retVal___, struct SqlStmt *self, const char *query, va_list args); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareV_post; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); postHookFunc = HPMHooks.list.HP_SQL_StmtPrepareV_post[hIndex].func; @@ -71943,15 +72162,15 @@ int HP_SQL_StmtPrepareV(SqlStmt *self, const char *query, va_list args) { } return retVal___; } -int HP_SQL_StmtPrepareStr(SqlStmt *self, const char *query) { +int HP_SQL_StmtPrepareStr(struct SqlStmt *self, const char *query) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtPrepareStr_pre ) { - int (*preHookFunc) (SqlStmt *self, const char *query); + int (*preHookFunc) (struct SqlStmt **self, const char **query); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtPrepareStr_pre[hIndex].func; - retVal___ = preHookFunc(self, query); + retVal___ = preHookFunc(&self, &query); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71962,7 +72181,7 @@ int HP_SQL_StmtPrepareStr(SqlStmt *self, const char *query) { retVal___ = HPMHooks.source.SQL.StmtPrepareStr(self, query); } if( HPMHooks.count.HP_SQL_StmtPrepareStr_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self, const char *query); + int (*postHookFunc) (int retVal___, struct SqlStmt *self, const char *query); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtPrepareStr_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtPrepareStr_post[hIndex].func; retVal___ = postHookFunc(retVal___, self, query); @@ -71970,15 +72189,15 @@ int HP_SQL_StmtPrepareStr(SqlStmt *self, const char *query) { } return retVal___; } -size_t HP_SQL_StmtNumParams(SqlStmt *self) { +size_t HP_SQL_StmtNumParams(struct SqlStmt *self) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtNumParams_pre ) { - size_t (*preHookFunc) (SqlStmt *self); + size_t (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumParams_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -71989,7 +72208,7 @@ size_t HP_SQL_StmtNumParams(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtNumParams(self); } if( HPMHooks.count.HP_SQL_StmtNumParams_post ) { - size_t (*postHookFunc) (size_t retVal___, SqlStmt *self); + size_t (*postHookFunc) (size_t retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumParams_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumParams_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -71997,15 +72216,15 @@ size_t HP_SQL_StmtNumParams(SqlStmt *self) { } return retVal___; } -int HP_SQL_StmtBindParam(SqlStmt *self, size_t idx, SqlDataType buffer_type, void *buffer, size_t buffer_len) { +int HP_SQL_StmtBindParam(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, const void *buffer, size_t buffer_len) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtBindParam_pre ) { - int (*preHookFunc) (SqlStmt *self, size_t *idx, SqlDataType *buffer_type, void *buffer, size_t *buffer_len); + int (*preHookFunc) (struct SqlStmt **self, size_t *idx, enum SqlDataType *buffer_type, const void **buffer, size_t *buffer_len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtBindParam_pre[hIndex].func; - retVal___ = preHookFunc(self, &idx, &buffer_type, buffer, &buffer_len); + retVal___ = preHookFunc(&self, &idx, &buffer_type, &buffer, &buffer_len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72016,23 +72235,23 @@ int HP_SQL_StmtBindParam(SqlStmt *self, size_t idx, SqlDataType buffer_type, voi retVal___ = HPMHooks.source.SQL.StmtBindParam(self, idx, buffer_type, buffer, buffer_len); } if( HPMHooks.count.HP_SQL_StmtBindParam_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self, size_t *idx, SqlDataType *buffer_type, void *buffer, size_t *buffer_len); + int (*postHookFunc) (int retVal___, struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, const void *buffer, size_t buffer_len); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindParam_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtBindParam_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, &idx, &buffer_type, buffer, &buffer_len); + retVal___ = postHookFunc(retVal___, self, idx, buffer_type, buffer, buffer_len); } } return retVal___; } -int HP_SQL_StmtExecute(SqlStmt *self) { +int HP_SQL_StmtExecute(struct SqlStmt *self) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtExecute_pre ) { - int (*preHookFunc) (SqlStmt *self); + int (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtExecute_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72043,7 +72262,7 @@ int HP_SQL_StmtExecute(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtExecute(self); } if( HPMHooks.count.HP_SQL_StmtExecute_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self); + int (*postHookFunc) (int retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtExecute_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtExecute_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -72051,15 +72270,15 @@ int HP_SQL_StmtExecute(SqlStmt *self) { } return retVal___; } -uint64 HP_SQL_StmtLastInsertId(SqlStmt *self) { +uint64 HP_SQL_StmtLastInsertId(struct SqlStmt *self) { int hIndex = 0; uint64 retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtLastInsertId_pre ) { - uint64 (*preHookFunc) (SqlStmt *self); + uint64 (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtLastInsertId_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72070,7 +72289,7 @@ uint64 HP_SQL_StmtLastInsertId(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtLastInsertId(self); } if( HPMHooks.count.HP_SQL_StmtLastInsertId_post ) { - uint64 (*postHookFunc) (uint64 retVal___, SqlStmt *self); + uint64 (*postHookFunc) (uint64 retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtLastInsertId_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtLastInsertId_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -72078,15 +72297,15 @@ uint64 HP_SQL_StmtLastInsertId(SqlStmt *self) { } return retVal___; } -size_t HP_SQL_StmtNumColumns(SqlStmt *self) { +size_t HP_SQL_StmtNumColumns(struct SqlStmt *self) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtNumColumns_pre ) { - size_t (*preHookFunc) (SqlStmt *self); + size_t (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumColumns_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72097,7 +72316,7 @@ size_t HP_SQL_StmtNumColumns(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtNumColumns(self); } if( HPMHooks.count.HP_SQL_StmtNumColumns_post ) { - size_t (*postHookFunc) (size_t retVal___, SqlStmt *self); + size_t (*postHookFunc) (size_t retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumColumns_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumColumns_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -72105,15 +72324,15 @@ size_t HP_SQL_StmtNumColumns(SqlStmt *self) { } return retVal___; } -int HP_SQL_StmtBindColumn(SqlStmt *self, size_t idx, SqlDataType buffer_type, void *buffer, size_t buffer_len, uint32 *out_length, int8 *out_is_null) { +int HP_SQL_StmtBindColumn(struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, void *buffer, size_t buffer_len, uint32 *out_length, int8 *out_is_null) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtBindColumn_pre ) { - int (*preHookFunc) (SqlStmt *self, size_t *idx, SqlDataType *buffer_type, void *buffer, size_t *buffer_len, uint32 *out_length, int8 *out_is_null); + int (*preHookFunc) (struct SqlStmt **self, size_t *idx, enum SqlDataType *buffer_type, void **buffer, size_t *buffer_len, uint32 **out_length, int8 **out_is_null); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtBindColumn_pre[hIndex].func; - retVal___ = preHookFunc(self, &idx, &buffer_type, buffer, &buffer_len, out_length, out_is_null); + retVal___ = preHookFunc(&self, &idx, &buffer_type, &buffer, &buffer_len, &out_length, &out_is_null); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72124,23 +72343,23 @@ int HP_SQL_StmtBindColumn(SqlStmt *self, size_t idx, SqlDataType buffer_type, vo retVal___ = HPMHooks.source.SQL.StmtBindColumn(self, idx, buffer_type, buffer, buffer_len, out_length, out_is_null); } if( HPMHooks.count.HP_SQL_StmtBindColumn_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self, size_t *idx, SqlDataType *buffer_type, void *buffer, size_t *buffer_len, uint32 *out_length, int8 *out_is_null); + int (*postHookFunc) (int retVal___, struct SqlStmt *self, size_t idx, enum SqlDataType buffer_type, void *buffer, size_t buffer_len, uint32 *out_length, int8 *out_is_null); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtBindColumn_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtBindColumn_post[hIndex].func; - retVal___ = postHookFunc(retVal___, self, &idx, &buffer_type, buffer, &buffer_len, out_length, out_is_null); + retVal___ = postHookFunc(retVal___, self, idx, buffer_type, buffer, buffer_len, out_length, out_is_null); } } return retVal___; } -uint64 HP_SQL_StmtNumRows(SqlStmt *self) { +uint64 HP_SQL_StmtNumRows(struct SqlStmt *self) { int hIndex = 0; uint64 retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtNumRows_pre ) { - uint64 (*preHookFunc) (SqlStmt *self); + uint64 (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtNumRows_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72151,7 +72370,7 @@ uint64 HP_SQL_StmtNumRows(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtNumRows(self); } if( HPMHooks.count.HP_SQL_StmtNumRows_post ) { - uint64 (*postHookFunc) (uint64 retVal___, SqlStmt *self); + uint64 (*postHookFunc) (uint64 retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNumRows_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtNumRows_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -72159,15 +72378,15 @@ uint64 HP_SQL_StmtNumRows(SqlStmt *self) { } return retVal___; } -int HP_SQL_StmtNextRow(SqlStmt *self) { +int HP_SQL_StmtNextRow(struct SqlStmt *self) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_SQL_StmtNextRow_pre ) { - int (*preHookFunc) (SqlStmt *self); + int (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtNextRow_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72178,7 +72397,7 @@ int HP_SQL_StmtNextRow(SqlStmt *self) { retVal___ = HPMHooks.source.SQL.StmtNextRow(self); } if( HPMHooks.count.HP_SQL_StmtNextRow_post ) { - int (*postHookFunc) (int retVal___, SqlStmt *self); + int (*postHookFunc) (int retVal___, struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtNextRow_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtNextRow_post[hIndex].func; retVal___ = postHookFunc(retVal___, self); @@ -72186,14 +72405,14 @@ int HP_SQL_StmtNextRow(SqlStmt *self) { } return retVal___; } -void HP_SQL_StmtFreeResult(SqlStmt *self) { +void HP_SQL_StmtFreeResult(struct SqlStmt *self) { int hIndex = 0; if( HPMHooks.count.HP_SQL_StmtFreeResult_pre ) { - void (*preHookFunc) (SqlStmt *self); + void (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtFreeResult_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72204,7 +72423,7 @@ void HP_SQL_StmtFreeResult(SqlStmt *self) { HPMHooks.source.SQL.StmtFreeResult(self); } if( HPMHooks.count.HP_SQL_StmtFreeResult_post ) { - void (*postHookFunc) (SqlStmt *self); + void (*postHookFunc) (struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFreeResult_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtFreeResult_post[hIndex].func; postHookFunc(self); @@ -72212,14 +72431,14 @@ void HP_SQL_StmtFreeResult(SqlStmt *self) { } return; } -void HP_SQL_StmtFree(SqlStmt *self) { +void HP_SQL_StmtFree(struct SqlStmt *self) { int hIndex = 0; if( HPMHooks.count.HP_SQL_StmtFree_pre ) { - void (*preHookFunc) (SqlStmt *self); + void (*preHookFunc) (struct SqlStmt **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtFree_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72230,7 +72449,7 @@ void HP_SQL_StmtFree(SqlStmt *self) { HPMHooks.source.SQL.StmtFree(self); } if( HPMHooks.count.HP_SQL_StmtFree_post ) { - void (*postHookFunc) (SqlStmt *self); + void (*postHookFunc) (struct SqlStmt *self); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtFree_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtFree_post[hIndex].func; postHookFunc(self); @@ -72238,14 +72457,14 @@ void HP_SQL_StmtFree(SqlStmt *self) { } return; } -void HP_SQL_StmtShowDebug_(SqlStmt *self, const char *debug_file, const unsigned long debug_line) { +void HP_SQL_StmtShowDebug_(struct SqlStmt *self, const char *debug_file, const unsigned long debug_line) { int hIndex = 0; if( HPMHooks.count.HP_SQL_StmtShowDebug__pre ) { - void (*preHookFunc) (SqlStmt *self, const char *debug_file, const unsigned long *debug_line); + void (*preHookFunc) (struct SqlStmt **self, const char **debug_file, const unsigned long *debug_line); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_SQL_StmtShowDebug__pre[hIndex].func; - preHookFunc(self, debug_file, &debug_line); + preHookFunc(&self, &debug_file, &debug_line); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72256,15 +72475,15 @@ void HP_SQL_StmtShowDebug_(SqlStmt *self, const char *debug_file, const unsigned HPMHooks.source.SQL.StmtShowDebug_(self, debug_file, debug_line); } if( HPMHooks.count.HP_SQL_StmtShowDebug__post ) { - void (*postHookFunc) (SqlStmt *self, const char *debug_file, const unsigned long *debug_line); + void (*postHookFunc) (struct SqlStmt *self, const char *debug_file, const unsigned long debug_line); for(hIndex = 0; hIndex < HPMHooks.count.HP_SQL_StmtShowDebug__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_SQL_StmtShowDebug__post[hIndex].func; - postHookFunc(self, debug_file, &debug_line); + postHookFunc(self, debug_file, debug_line); } } return; } -/* status */ +/* status_interface */ int HP_status_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -72284,10 +72503,10 @@ int HP_status_init(bool minimal) { retVal___ = HPMHooks.source.status.init(minimal); } if( HPMHooks.count.HP_status_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -72337,10 +72556,10 @@ int HP_status_get_refine_chance(enum refine_type wlv, int refine) { retVal___ = HPMHooks.source.status.get_refine_chance(wlv, refine); } if( HPMHooks.count.HP_status_get_refine_chance_post ) { - int (*postHookFunc) (int retVal___, enum refine_type *wlv, int *refine); + int (*postHookFunc) (int retVal___, enum refine_type wlv, int refine); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_refine_chance_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_refine_chance_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &wlv, &refine); + retVal___ = postHookFunc(retVal___, wlv, refine); } } return retVal___; @@ -72364,10 +72583,10 @@ sc_type HP_status_skill2sc(int skill_id) { retVal___ = HPMHooks.source.status.skill2sc(skill_id); } if( HPMHooks.count.HP_status_skill2sc_post ) { - sc_type (*postHookFunc) (sc_type retVal___, int *skill_id); + sc_type (*postHookFunc) (sc_type retVal___, int skill_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_skill2sc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_skill2sc_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &skill_id); + retVal___ = postHookFunc(retVal___, skill_id); } } return retVal___; @@ -72391,10 +72610,10 @@ int HP_status_sc2skill(sc_type sc) { retVal___ = HPMHooks.source.status.sc2skill(sc); } if( HPMHooks.count.HP_status_sc2skill_post ) { - int (*postHookFunc) (int retVal___, sc_type *sc); + int (*postHookFunc) (int retVal___, sc_type sc); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_sc2skill_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_sc2skill_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &sc); + retVal___ = postHookFunc(retVal___, sc); } } return retVal___; @@ -72418,10 +72637,10 @@ unsigned int HP_status_sc2scb_flag(sc_type sc) { retVal___ = HPMHooks.source.status.sc2scb_flag(sc); } if( HPMHooks.count.HP_status_sc2scb_flag_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, sc_type *sc); + unsigned int (*postHookFunc) (unsigned int retVal___, sc_type sc); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_sc2scb_flag_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_sc2scb_flag_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &sc); + retVal___ = postHookFunc(retVal___, sc); } } return retVal___; @@ -72445,10 +72664,10 @@ int HP_status_type2relevant_bl_types(int type) { retVal___ = HPMHooks.source.status.type2relevant_bl_types(type); } if( HPMHooks.count.HP_status_type2relevant_bl_types_post ) { - int (*postHookFunc) (int retVal___, int *type); + int (*postHookFunc) (int retVal___, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_type2relevant_bl_types_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_type2relevant_bl_types_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &type); + retVal___ = postHookFunc(retVal___, type); } } return retVal___; @@ -72472,10 +72691,10 @@ int HP_status_get_sc_type(sc_type idx) { retVal___ = HPMHooks.source.status.get_sc_type(idx); } if( HPMHooks.count.HP_status_get_sc_type_post ) { - int (*postHookFunc) (int retVal___, sc_type *idx); + int (*postHookFunc) (int retVal___, sc_type idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_type_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_sc_type_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &idx); + retVal___ = postHookFunc(retVal___, idx); } } return retVal___; @@ -72484,11 +72703,11 @@ int HP_status_damage(struct block_list *src, struct block_list *target, int64 hp int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_damage_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, int64 *hp, int64 *sp, int *walkdelay, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, int64 *hp, int64 *sp, int *walkdelay, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_damage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_damage_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &hp, &sp, &walkdelay, &flag); + retVal___ = preHookFunc(&src, &target, &hp, &sp, &walkdelay, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72499,10 +72718,10 @@ int HP_status_damage(struct block_list *src, struct block_list *target, int64 hp retVal___ = HPMHooks.source.status.damage(src, target, hp, sp, walkdelay, flag); } if( HPMHooks.count.HP_status_damage_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int64 *hp, int64 *sp, int *walkdelay, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int64 hp, int64 sp, int walkdelay, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_damage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_damage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &hp, &sp, &walkdelay, &flag); + retVal___ = postHookFunc(retVal___, src, target, hp, sp, walkdelay, flag); } } return retVal___; @@ -72511,11 +72730,11 @@ int HP_status_charge(struct block_list *bl, int64 hp, int64 sp) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_charge_pre ) { - int (*preHookFunc) (struct block_list *bl, int64 *hp, int64 *sp); + int (*preHookFunc) (struct block_list **bl, int64 *hp, int64 *sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_charge_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_charge_pre[hIndex].func; - retVal___ = preHookFunc(bl, &hp, &sp); + retVal___ = preHookFunc(&bl, &hp, &sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72526,10 +72745,10 @@ int HP_status_charge(struct block_list *bl, int64 hp, int64 sp) { retVal___ = HPMHooks.source.status.charge(bl, hp, sp); } if( HPMHooks.count.HP_status_charge_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int64 *hp, int64 *sp); + int (*postHookFunc) (int retVal___, struct block_list *bl, int64 hp, int64 sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_charge_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_charge_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &hp, &sp); + retVal___ = postHookFunc(retVal___, bl, hp, sp); } } return retVal___; @@ -72538,11 +72757,11 @@ int HP_status_percent_change(struct block_list *src, struct block_list *target, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_percent_change_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, signed char *hp_rate, signed char *sp_rate, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, signed char *hp_rate, signed char *sp_rate, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_percent_change_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_percent_change_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &hp_rate, &sp_rate, &flag); + retVal___ = preHookFunc(&src, &target, &hp_rate, &sp_rate, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72553,10 +72772,10 @@ int HP_status_percent_change(struct block_list *src, struct block_list *target, retVal___ = HPMHooks.source.status.percent_change(src, target, hp_rate, sp_rate, flag); } if( HPMHooks.count.HP_status_percent_change_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, signed char *hp_rate, signed char *sp_rate, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, signed char hp_rate, signed char sp_rate, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_percent_change_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_percent_change_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &hp_rate, &sp_rate, &flag); + retVal___ = postHookFunc(retVal___, src, target, hp_rate, sp_rate, flag); } } return retVal___; @@ -72565,11 +72784,11 @@ int HP_status_set_hp(struct block_list *bl, unsigned int hp, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_set_hp_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned int *hp, int *flag); + int (*preHookFunc) (struct block_list **bl, unsigned int *hp, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_hp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_set_hp_pre[hIndex].func; - retVal___ = preHookFunc(bl, &hp, &flag); + retVal___ = preHookFunc(&bl, &hp, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72580,10 +72799,10 @@ int HP_status_set_hp(struct block_list *bl, unsigned int hp, int flag) { retVal___ = HPMHooks.source.status.set_hp(bl, hp, flag); } if( HPMHooks.count.HP_status_set_hp_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int *hp, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int hp, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_hp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_set_hp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &hp, &flag); + retVal___ = postHookFunc(retVal___, bl, hp, flag); } } return retVal___; @@ -72592,11 +72811,11 @@ int HP_status_set_sp(struct block_list *bl, unsigned int sp, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_set_sp_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned int *sp, int *flag); + int (*preHookFunc) (struct block_list **bl, unsigned int *sp, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_sp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_set_sp_pre[hIndex].func; - retVal___ = preHookFunc(bl, &sp, &flag); + retVal___ = preHookFunc(&bl, &sp, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72607,10 +72826,10 @@ int HP_status_set_sp(struct block_list *bl, unsigned int sp, int flag) { retVal___ = HPMHooks.source.status.set_sp(bl, sp, flag); } if( HPMHooks.count.HP_status_set_sp_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int *sp, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int sp, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_sp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_set_sp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &sp, &flag); + retVal___ = postHookFunc(retVal___, bl, sp, flag); } } return retVal___; @@ -72619,11 +72838,11 @@ int HP_status_heal(struct block_list *bl, int64 hp, int64 sp, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_heal_pre ) { - int (*preHookFunc) (struct block_list *bl, int64 *hp, int64 *sp, int *flag); + int (*preHookFunc) (struct block_list **bl, int64 *hp, int64 *sp, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_heal_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_heal_pre[hIndex].func; - retVal___ = preHookFunc(bl, &hp, &sp, &flag); + retVal___ = preHookFunc(&bl, &hp, &sp, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72634,10 +72853,10 @@ int HP_status_heal(struct block_list *bl, int64 hp, int64 sp, int flag) { retVal___ = HPMHooks.source.status.heal(bl, hp, sp, flag); } if( HPMHooks.count.HP_status_heal_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int64 *hp, int64 *sp, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, int64 hp, int64 sp, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_heal_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_heal_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &hp, &sp, &flag); + retVal___ = postHookFunc(retVal___, bl, hp, sp, flag); } } return retVal___; @@ -72646,11 +72865,11 @@ int HP_status_revive(struct block_list *bl, unsigned char per_hp, unsigned char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_revive_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned char *per_hp, unsigned char *per_sp); + int (*preHookFunc) (struct block_list **bl, unsigned char *per_hp, unsigned char *per_sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_revive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_revive_pre[hIndex].func; - retVal___ = preHookFunc(bl, &per_hp, &per_sp); + retVal___ = preHookFunc(&bl, &per_hp, &per_sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72661,10 +72880,10 @@ int HP_status_revive(struct block_list *bl, unsigned char per_hp, unsigned char retVal___ = HPMHooks.source.status.revive(bl, per_hp, per_sp); } if( HPMHooks.count.HP_status_revive_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned char *per_hp, unsigned char *per_sp); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned char per_hp, unsigned char per_sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_revive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_revive_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &per_hp, &per_sp); + retVal___ = postHookFunc(retVal___, bl, per_hp, per_sp); } } return retVal___; @@ -72673,11 +72892,11 @@ int HP_status_fixed_revive(struct block_list *bl, unsigned int per_hp, unsigned int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_fixed_revive_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned int *per_hp, unsigned int *per_sp); + int (*preHookFunc) (struct block_list **bl, unsigned int *per_hp, unsigned int *per_sp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_fixed_revive_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_fixed_revive_pre[hIndex].func; - retVal___ = preHookFunc(bl, &per_hp, &per_sp); + retVal___ = preHookFunc(&bl, &per_hp, &per_sp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72688,10 +72907,10 @@ int HP_status_fixed_revive(struct block_list *bl, unsigned int per_hp, unsigned retVal___ = HPMHooks.source.status.fixed_revive(bl, per_hp, per_sp); } if( HPMHooks.count.HP_status_fixed_revive_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int *per_hp, unsigned int *per_sp); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned int per_hp, unsigned int per_sp); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_fixed_revive_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_fixed_revive_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &per_hp, &per_sp); + retVal___ = postHookFunc(retVal___, bl, per_hp, per_sp); } } return retVal___; @@ -72700,11 +72919,11 @@ struct regen_data* HP_status_get_regen_data(struct block_list *bl) { int hIndex = 0; struct regen_data* retVal___ = NULL; if( HPMHooks.count.HP_status_get_regen_data_pre ) { - struct regen_data* (*preHookFunc) (struct block_list *bl); + struct regen_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_regen_data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_regen_data_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72727,11 +72946,11 @@ struct status_data* HP_status_get_status_data(struct block_list *bl) { int hIndex = 0; struct status_data* retVal___ = NULL; if( HPMHooks.count.HP_status_get_status_data_pre ) { - struct status_data* (*preHookFunc) (struct block_list *bl); + struct status_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_status_data_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_status_data_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72754,11 +72973,11 @@ struct status_data* HP_status_get_base_status(struct block_list *bl) { int hIndex = 0; struct status_data* retVal___ = NULL; if( HPMHooks.count.HP_status_get_base_status_pre ) { - struct status_data* (*preHookFunc) (struct block_list *bl); + struct status_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_base_status_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_base_status_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72777,15 +72996,15 @@ struct status_data* HP_status_get_base_status(struct block_list *bl) { } return retVal___; } -const char* HP_status_get_name(struct block_list *bl) { +const char* HP_status_get_name(const struct block_list *bl) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_status_get_name_pre ) { - const char* (*preHookFunc) (struct block_list *bl); + const char* (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_name_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_name_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72796,7 +73015,7 @@ const char* HP_status_get_name(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_name(bl); } if( HPMHooks.count.HP_status_get_name_post ) { - const char* (*postHookFunc) (const char* retVal___, struct block_list *bl); + const char* (*postHookFunc) (const char* retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_name_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_name_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -72804,15 +73023,15 @@ const char* HP_status_get_name(struct block_list *bl) { } return retVal___; } -int HP_status_get_class(struct block_list *bl) { +int HP_status_get_class(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_class_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_class_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_class_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72823,7 +73042,7 @@ int HP_status_get_class(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_class(bl); } if( HPMHooks.count.HP_status_get_class_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_class_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_class_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -72831,15 +73050,15 @@ int HP_status_get_class(struct block_list *bl) { } return retVal___; } -int HP_status_get_lv(struct block_list *bl) { +int HP_status_get_lv(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_lv_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_lv_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_lv_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72850,7 +73069,7 @@ int HP_status_get_lv(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_lv(bl); } if( HPMHooks.count.HP_status_get_lv_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_lv_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_lv_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -72862,11 +73081,11 @@ defType HP_status_get_def(struct block_list *bl) { int hIndex = 0; defType retVal___ = 0; if( HPMHooks.count.HP_status_get_def_pre ) { - defType (*preHookFunc) (struct block_list *bl); + defType (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_def_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_def_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72889,11 +73108,11 @@ unsigned short HP_status_get_speed(struct block_list *bl) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_get_speed_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl); + unsigned short (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_speed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_speed_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72916,11 +73135,11 @@ unsigned char HP_status_calc_attack_element(struct block_list *bl, struct status int hIndex = 0; unsigned char retVal___ = 0; if( HPMHooks.count.HP_status_calc_attack_element_pre ) { - unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *element); + unsigned char (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *element); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_attack_element_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_attack_element_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &element); + retVal___ = preHookFunc(&bl, &sc, &element); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72931,23 +73150,23 @@ unsigned char HP_status_calc_attack_element(struct block_list *bl, struct status retVal___ = HPMHooks.source.status.calc_attack_element(bl, sc, element); } if( HPMHooks.count.HP_status_calc_attack_element_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int *element); + unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int element); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_attack_element_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_attack_element_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &element); + retVal___ = postHookFunc(retVal___, bl, sc, element); } } return retVal___; } -int HP_status_get_party_id(struct block_list *bl) { +int HP_status_get_party_id(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_party_id_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_party_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_party_id_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72958,7 +73177,7 @@ int HP_status_get_party_id(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_party_id(bl); } if( HPMHooks.count.HP_status_get_party_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_party_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_party_id_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -72966,15 +73185,15 @@ int HP_status_get_party_id(struct block_list *bl) { } return retVal___; } -int HP_status_get_guild_id(struct block_list *bl) { +int HP_status_get_guild_id(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_guild_id_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_guild_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_guild_id_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -72985,7 +73204,7 @@ int HP_status_get_guild_id(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_guild_id(bl); } if( HPMHooks.count.HP_status_get_guild_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_guild_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_guild_id_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -72993,15 +73212,15 @@ int HP_status_get_guild_id(struct block_list *bl) { } return retVal___; } -int HP_status_get_emblem_id(struct block_list *bl) { +int HP_status_get_emblem_id(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_emblem_id_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_emblem_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_emblem_id_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73012,7 +73231,7 @@ int HP_status_get_emblem_id(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_emblem_id(bl); } if( HPMHooks.count.HP_status_get_emblem_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_emblem_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_emblem_id_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -73020,15 +73239,15 @@ int HP_status_get_emblem_id(struct block_list *bl) { } return retVal___; } -int HP_status_get_mexp(struct block_list *bl) { +int HP_status_get_mexp(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_mexp_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_mexp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_mexp_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73039,7 +73258,7 @@ int HP_status_get_mexp(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_mexp(bl); } if( HPMHooks.count.HP_status_get_mexp_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_mexp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_mexp_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -73047,15 +73266,15 @@ int HP_status_get_mexp(struct block_list *bl) { } return retVal___; } -int HP_status_get_race2(struct block_list *bl) { +int HP_status_get_race2(const struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_race2_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (const struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_race2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_race2_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73066,7 +73285,7 @@ int HP_status_get_race2(struct block_list *bl) { retVal___ = HPMHooks.source.status.get_race2(bl); } if( HPMHooks.count.HP_status_get_race2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + int (*postHookFunc) (int retVal___, const struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_race2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_race2_post[hIndex].func; retVal___ = postHookFunc(retVal___, bl); @@ -73078,11 +73297,11 @@ struct view_data* HP_status_get_viewdata(struct block_list *bl) { int hIndex = 0; struct view_data* retVal___ = NULL; if( HPMHooks.count.HP_status_get_viewdata_pre ) { - struct view_data* (*preHookFunc) (struct block_list *bl); + struct view_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_viewdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_viewdata_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73104,11 +73323,11 @@ struct view_data* HP_status_get_viewdata(struct block_list *bl) { void HP_status_set_viewdata(struct block_list *bl, int class_) { int hIndex = 0; if( HPMHooks.count.HP_status_set_viewdata_pre ) { - void (*preHookFunc) (struct block_list *bl, int *class_); + void (*preHookFunc) (struct block_list **bl, int *class_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_viewdata_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_set_viewdata_pre[hIndex].func; - preHookFunc(bl, &class_); + preHookFunc(&bl, &class_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73119,10 +73338,10 @@ void HP_status_set_viewdata(struct block_list *bl, int class_) { HPMHooks.source.status.set_viewdata(bl, class_); } if( HPMHooks.count.HP_status_set_viewdata_post ) { - void (*postHookFunc) (struct block_list *bl, int *class_); + void (*postHookFunc) (struct block_list *bl, int class_); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_viewdata_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_set_viewdata_post[hIndex].func; - postHookFunc(bl, &class_); + postHookFunc(bl, class_); } } return; @@ -73130,11 +73349,11 @@ void HP_status_set_viewdata(struct block_list *bl, int class_) { void HP_status_change_init(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_status_change_init_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_init_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_init_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73157,11 +73376,11 @@ struct status_change* HP_status_get_sc(struct block_list *bl) { int hIndex = 0; struct status_change* retVal___ = NULL; if( HPMHooks.count.HP_status_get_sc_pre ) { - struct status_change* (*preHookFunc) (struct block_list *bl); + struct status_change* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_sc_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73184,11 +73403,11 @@ int HP_status_isdead(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_isdead_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_isdead_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_isdead_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73211,11 +73430,11 @@ int HP_status_isimmune(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_isimmune_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_isimmune_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_isimmune_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73238,11 +73457,11 @@ int HP_status_get_sc_def(struct block_list *src, struct block_list *bl, enum sc_ int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_sc_def_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, enum sc_type *type, int *rate, int *tick, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, enum sc_type *type, int *rate, int *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_def_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_sc_def_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &type, &rate, &tick, &flag); + retVal___ = preHookFunc(&src, &bl, &type, &rate, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73253,10 +73472,10 @@ int HP_status_get_sc_def(struct block_list *src, struct block_list *bl, enum sc_ retVal___ = HPMHooks.source.status.get_sc_def(src, bl, type, rate, tick, flag); } if( HPMHooks.count.HP_status_get_sc_def_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, enum sc_type *type, int *rate, int *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, enum sc_type type, int rate, int tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_def_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_sc_def_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &type, &rate, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, bl, type, rate, tick, flag); } } return retVal___; @@ -73265,11 +73484,11 @@ int HP_status_change_start(struct block_list *src, struct block_list *bl, enum s int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_start_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl, enum sc_type *type, int *rate, int *val1, int *val2, int *val3, int *val4, int *tick, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **bl, enum sc_type *type, int *rate, int *val1, int *val2, int *val3, int *val4, int *tick, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_start_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_start_pre[hIndex].func; - retVal___ = preHookFunc(src, bl, &type, &rate, &val1, &val2, &val3, &val4, &tick, &flag); + retVal___ = preHookFunc(&src, &bl, &type, &rate, &val1, &val2, &val3, &val4, &tick, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73280,10 +73499,10 @@ int HP_status_change_start(struct block_list *src, struct block_list *bl, enum s retVal___ = HPMHooks.source.status.change_start(src, bl, type, rate, val1, val2, val3, val4, tick, flag); } if( HPMHooks.count.HP_status_change_start_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, enum sc_type *type, int *rate, int *val1, int *val2, int *val3, int *val4, int *tick, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *bl, enum sc_type type, int rate, int val1, int val2, int val3, int val4, int tick, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_start_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_change_start_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, bl, &type, &rate, &val1, &val2, &val3, &val4, &tick, &flag); + retVal___ = postHookFunc(retVal___, src, bl, type, rate, val1, val2, val3, val4, tick, flag); } } return retVal___; @@ -73292,11 +73511,11 @@ int HP_status_change_end_(struct block_list *bl, enum sc_type type, int tid, con int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_end__pre ) { - int (*preHookFunc) (struct block_list *bl, enum sc_type *type, int *tid, const char *file, int *line); + int (*preHookFunc) (struct block_list **bl, enum sc_type *type, int *tid, const char **file, int *line); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_end__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_end__pre[hIndex].func; - retVal___ = preHookFunc(bl, &type, &tid, file, &line); + retVal___ = preHookFunc(&bl, &type, &tid, &file, &line); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73307,10 +73526,10 @@ int HP_status_change_end_(struct block_list *bl, enum sc_type type, int tid, con retVal___ = HPMHooks.source.status.change_end_(bl, type, tid, file, line); } if( HPMHooks.count.HP_status_change_end__post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, enum sc_type *type, int *tid, const char *file, int *line); + int (*postHookFunc) (int retVal___, struct block_list *bl, enum sc_type type, int tid, const char *file, int line); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_end__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_change_end__post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type, &tid, file, &line); + retVal___ = postHookFunc(retVal___, bl, type, tid, file, line); } } return retVal___; @@ -73334,10 +73553,10 @@ int HP_status_kaahi_heal_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.status.kaahi_heal_timer(tid, tick, id, data); } if( HPMHooks.count.HP_status_kaahi_heal_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_kaahi_heal_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_kaahi_heal_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -73361,10 +73580,10 @@ int HP_status_change_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.status.change_timer(tid, tick, id, data); } if( HPMHooks.count.HP_status_change_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_change_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -73373,12 +73592,12 @@ int HP_status_change_timer_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_timer_sub_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); + int (*preHookFunc) (struct block_list **bl, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_timer_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_status_change_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); + retVal___ = preHookFunc(&bl, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -73406,11 +73625,11 @@ int HP_status_change_clear(struct block_list *bl, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_clear_pre ) { - int (*preHookFunc) (struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_clear_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type); + retVal___ = preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73421,10 +73640,10 @@ int HP_status_change_clear(struct block_list *bl, int type) { retVal___ = HPMHooks.source.status.change_clear(bl, type); } if( HPMHooks.count.HP_status_change_clear_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_change_clear_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type); + retVal___ = postHookFunc(retVal___, bl, type); } } return retVal___; @@ -73433,11 +73652,11 @@ int HP_status_change_clear_buffs(struct block_list *bl, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_clear_buffs_pre ) { - int (*preHookFunc) (struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_buffs_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_clear_buffs_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type); + retVal___ = preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73448,10 +73667,10 @@ int HP_status_change_clear_buffs(struct block_list *bl, int type) { retVal___ = HPMHooks.source.status.change_clear_buffs(bl, type); } if( HPMHooks.count.HP_status_change_clear_buffs_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_buffs_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_change_clear_buffs_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type); + retVal___ = postHookFunc(retVal___, bl, type); } } return retVal___; @@ -73459,11 +73678,11 @@ int HP_status_change_clear_buffs(struct block_list *bl, int type) { void HP_status_calc_bl_(struct block_list *bl, enum scb_flag flag, enum e_status_calc_opt opt) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_bl__pre ) { - void (*preHookFunc) (struct block_list *bl, enum scb_flag *flag, enum e_status_calc_opt *opt); + void (*preHookFunc) (struct block_list **bl, enum scb_flag *flag, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_bl__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_bl__pre[hIndex].func; - preHookFunc(bl, &flag, &opt); + preHookFunc(&bl, &flag, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73474,10 +73693,10 @@ void HP_status_calc_bl_(struct block_list *bl, enum scb_flag flag, enum e_status HPMHooks.source.status.calc_bl_(bl, flag, opt); } if( HPMHooks.count.HP_status_calc_bl__post ) { - void (*postHookFunc) (struct block_list *bl, enum scb_flag *flag, enum e_status_calc_opt *opt); + void (*postHookFunc) (struct block_list *bl, enum scb_flag flag, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_bl__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_bl__post[hIndex].func; - postHookFunc(bl, &flag, &opt); + postHookFunc(bl, flag, opt); } } return; @@ -73486,11 +73705,11 @@ int HP_status_calc_mob_(struct mob_data *md, enum e_status_calc_opt opt) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_mob__pre ) { - int (*preHookFunc) (struct mob_data *md, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct mob_data **md, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mob__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_mob__pre[hIndex].func; - retVal___ = preHookFunc(md, &opt); + retVal___ = preHookFunc(&md, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73501,10 +73720,10 @@ int HP_status_calc_mob_(struct mob_data *md, enum e_status_calc_opt opt) { retVal___ = HPMHooks.source.status.calc_mob_(md, opt); } if( HPMHooks.count.HP_status_calc_mob__post ) { - int (*postHookFunc) (int retVal___, struct mob_data *md, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct mob_data *md, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mob__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_mob__post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &opt); + retVal___ = postHookFunc(retVal___, md, opt); } } return retVal___; @@ -73513,11 +73732,11 @@ int HP_status_calc_pet_(struct pet_data *pd, enum e_status_calc_opt opt) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_pet__pre ) { - int (*preHookFunc) (struct pet_data *pd, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct pet_data **pd, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pet__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_pet__pre[hIndex].func; - retVal___ = preHookFunc(pd, &opt); + retVal___ = preHookFunc(&pd, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73528,10 +73747,10 @@ int HP_status_calc_pet_(struct pet_data *pd, enum e_status_calc_opt opt) { retVal___ = HPMHooks.source.status.calc_pet_(pd, opt); } if( HPMHooks.count.HP_status_calc_pet__post ) { - int (*postHookFunc) (int retVal___, struct pet_data *pd, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct pet_data *pd, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pet__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_pet__post[hIndex].func; - retVal___ = postHookFunc(retVal___, pd, &opt); + retVal___ = postHookFunc(retVal___, pd, opt); } } return retVal___; @@ -73540,11 +73759,11 @@ int HP_status_calc_pc_(struct map_session_data *sd, enum e_status_calc_opt opt) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_pc__pre ) { - int (*preHookFunc) (struct map_session_data *sd, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct map_session_data **sd, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pc__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_pc__pre[hIndex].func; - retVal___ = preHookFunc(sd, &opt); + retVal___ = preHookFunc(&sd, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73555,10 +73774,10 @@ int HP_status_calc_pc_(struct map_session_data *sd, enum e_status_calc_opt opt) retVal___ = HPMHooks.source.status.calc_pc_(sd, opt); } if( HPMHooks.count.HP_status_calc_pc__post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pc__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_pc__post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &opt); + retVal___ = postHookFunc(retVal___, sd, opt); } } return retVal___; @@ -73566,11 +73785,11 @@ int HP_status_calc_pc_(struct map_session_data *sd, enum e_status_calc_opt opt) void HP_status_calc_pc_additional(struct map_session_data *sd, enum e_status_calc_opt opt) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_pc_additional_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum e_status_calc_opt *opt); + void (*preHookFunc) (struct map_session_data **sd, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pc_additional_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_pc_additional_pre[hIndex].func; - preHookFunc(sd, &opt); + preHookFunc(&sd, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73581,10 +73800,10 @@ void HP_status_calc_pc_additional(struct map_session_data *sd, enum e_status_cal HPMHooks.source.status.calc_pc_additional(sd, opt); } if( HPMHooks.count.HP_status_calc_pc_additional_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum e_status_calc_opt *opt); + void (*postHookFunc) (struct map_session_data *sd, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pc_additional_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_pc_additional_post[hIndex].func; - postHookFunc(sd, &opt); + postHookFunc(sd, opt); } } return; @@ -73593,11 +73812,11 @@ int HP_status_calc_homunculus_(struct homun_data *hd, enum e_status_calc_opt opt int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_homunculus__pre ) { - int (*preHookFunc) (struct homun_data *hd, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct homun_data **hd, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_homunculus__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_homunculus__pre[hIndex].func; - retVal___ = preHookFunc(hd, &opt); + retVal___ = preHookFunc(&hd, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73608,10 +73827,10 @@ int HP_status_calc_homunculus_(struct homun_data *hd, enum e_status_calc_opt opt retVal___ = HPMHooks.source.status.calc_homunculus_(hd, opt); } if( HPMHooks.count.HP_status_calc_homunculus__post ) { - int (*postHookFunc) (int retVal___, struct homun_data *hd, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct homun_data *hd, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_homunculus__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_homunculus__post[hIndex].func; - retVal___ = postHookFunc(retVal___, hd, &opt); + retVal___ = postHookFunc(retVal___, hd, opt); } } return retVal___; @@ -73620,11 +73839,11 @@ int HP_status_calc_mercenary_(struct mercenary_data *md, enum e_status_calc_opt int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_mercenary__pre ) { - int (*preHookFunc) (struct mercenary_data *md, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct mercenary_data **md, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mercenary__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_mercenary__pre[hIndex].func; - retVal___ = preHookFunc(md, &opt); + retVal___ = preHookFunc(&md, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73635,10 +73854,10 @@ int HP_status_calc_mercenary_(struct mercenary_data *md, enum e_status_calc_opt retVal___ = HPMHooks.source.status.calc_mercenary_(md, opt); } if( HPMHooks.count.HP_status_calc_mercenary__post ) { - int (*postHookFunc) (int retVal___, struct mercenary_data *md, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct mercenary_data *md, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mercenary__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_mercenary__post[hIndex].func; - retVal___ = postHookFunc(retVal___, md, &opt); + retVal___ = postHookFunc(retVal___, md, opt); } } return retVal___; @@ -73647,11 +73866,11 @@ int HP_status_calc_elemental_(struct elemental_data *ed, enum e_status_calc_opt int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_elemental__pre ) { - int (*preHookFunc) (struct elemental_data *ed, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct elemental_data **ed, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_elemental__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_elemental__pre[hIndex].func; - retVal___ = preHookFunc(ed, &opt); + retVal___ = preHookFunc(&ed, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73662,10 +73881,10 @@ int HP_status_calc_elemental_(struct elemental_data *ed, enum e_status_calc_opt retVal___ = HPMHooks.source.status.calc_elemental_(ed, opt); } if( HPMHooks.count.HP_status_calc_elemental__post ) { - int (*postHookFunc) (int retVal___, struct elemental_data *ed, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct elemental_data *ed, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_elemental__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_elemental__post[hIndex].func; - retVal___ = postHookFunc(retVal___, ed, &opt); + retVal___ = postHookFunc(retVal___, ed, opt); } } return retVal___; @@ -73673,11 +73892,11 @@ int HP_status_calc_elemental_(struct elemental_data *ed, enum e_status_calc_opt void HP_status_calc_misc(struct block_list *bl, struct status_data *st, int level) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_misc_pre ) { - void (*preHookFunc) (struct block_list *bl, struct status_data *st, int *level); + void (*preHookFunc) (struct block_list **bl, struct status_data **st, int *level); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_misc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_misc_pre[hIndex].func; - preHookFunc(bl, st, &level); + preHookFunc(&bl, &st, &level); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73688,10 +73907,10 @@ void HP_status_calc_misc(struct block_list *bl, struct status_data *st, int leve HPMHooks.source.status.calc_misc(bl, st, level); } if( HPMHooks.count.HP_status_calc_misc_post ) { - void (*postHookFunc) (struct block_list *bl, struct status_data *st, int *level); + void (*postHookFunc) (struct block_list *bl, struct status_data *st, int level); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_misc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_misc_post[hIndex].func; - postHookFunc(bl, st, &level); + postHookFunc(bl, st, level); } } return; @@ -73699,11 +73918,11 @@ void HP_status_calc_misc(struct block_list *bl, struct status_data *st, int leve void HP_status_calc_regen(struct block_list *bl, struct status_data *st, struct regen_data *regen) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_regen_pre ) { - void (*preHookFunc) (struct block_list *bl, struct status_data *st, struct regen_data *regen); + void (*preHookFunc) (struct block_list **bl, struct status_data **st, struct regen_data **regen); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_regen_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_regen_pre[hIndex].func; - preHookFunc(bl, st, regen); + preHookFunc(&bl, &st, ®en); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73725,11 +73944,11 @@ void HP_status_calc_regen(struct block_list *bl, struct status_data *st, struct void HP_status_calc_regen_rate(struct block_list *bl, struct regen_data *regen, struct status_change *sc) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_regen_rate_pre ) { - void (*preHookFunc) (struct block_list *bl, struct regen_data *regen, struct status_change *sc); + void (*preHookFunc) (struct block_list **bl, struct regen_data **regen, struct status_change **sc); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_regen_rate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_regen_rate_pre[hIndex].func; - preHookFunc(bl, regen, sc); + preHookFunc(&bl, ®en, &sc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73752,11 +73971,11 @@ int HP_status_check_skilluse(struct block_list *src, struct block_list *target, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_check_skilluse_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, int *flag); + int (*preHookFunc) (struct block_list **src, struct block_list **target, uint16 *skill_id, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_check_skilluse_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_check_skilluse_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &skill_id, &flag); + retVal___ = preHookFunc(&src, &target, &skill_id, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73767,10 +73986,10 @@ int HP_status_check_skilluse(struct block_list *src, struct block_list *target, retVal___ = HPMHooks.source.status.check_skilluse(src, target, skill_id, flag); } if( HPMHooks.count.HP_status_check_skilluse_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 *skill_id, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, uint16 skill_id, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_check_skilluse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_check_skilluse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &skill_id, &flag); + retVal___ = postHookFunc(retVal___, src, target, skill_id, flag); } } return retVal___; @@ -73779,11 +73998,11 @@ int HP_status_check_visibility(struct block_list *src, struct block_list *target int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_check_visibility_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target); + int (*preHookFunc) (struct block_list **src, struct block_list **target); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_check_visibility_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_check_visibility_pre[hIndex].func; - retVal___ = preHookFunc(src, target); + retVal___ = preHookFunc(&src, &target); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73806,11 +74025,11 @@ int HP_status_change_spread(struct block_list *src, struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_change_spread_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *bl); + int (*preHookFunc) (struct block_list **src, struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_spread_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_change_spread_pre[hIndex].func; - retVal___ = preHookFunc(src, bl); + retVal___ = preHookFunc(&src, &bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73833,11 +74052,11 @@ defType HP_status_calc_def(struct block_list *bl, struct status_change *sc, int int hIndex = 0; defType retVal___ = 0; if( HPMHooks.count.HP_status_calc_def_pre ) { - defType (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *def, bool *viewable); + defType (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *def, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_def_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &def, &viewable); + retVal___ = preHookFunc(&bl, &sc, &def, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73848,10 +74067,10 @@ defType HP_status_calc_def(struct block_list *bl, struct status_change *sc, int retVal___ = HPMHooks.source.status.calc_def(bl, sc, def, viewable); } if( HPMHooks.count.HP_status_calc_def_post ) { - defType (*postHookFunc) (defType retVal___, struct block_list *bl, struct status_change *sc, int *def, bool *viewable); + defType (*postHookFunc) (defType retVal___, struct block_list *bl, struct status_change *sc, int def, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_def_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &def, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, def, viewable); } } return retVal___; @@ -73860,11 +74079,11 @@ short HP_status_calc_def2(struct block_list *bl, struct status_change *sc, int d int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_status_calc_def2_pre ) { - short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *def2, bool *viewable); + short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *def2, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_def2_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &def2, &viewable); + retVal___ = preHookFunc(&bl, &sc, &def2, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73875,10 +74094,10 @@ short HP_status_calc_def2(struct block_list *bl, struct status_change *sc, int d retVal___ = HPMHooks.source.status.calc_def2(bl, sc, def2, viewable); } if( HPMHooks.count.HP_status_calc_def2_post ) { - short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int *def2, bool *viewable); + short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int def2, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_def2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &def2, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, def2, viewable); } } return retVal___; @@ -73887,11 +74106,11 @@ defType HP_status_calc_mdef(struct block_list *bl, struct status_change *sc, int int hIndex = 0; defType retVal___ = 0; if( HPMHooks.count.HP_status_calc_mdef_pre ) { - defType (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *mdef, bool *viewable); + defType (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *mdef, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_mdef_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &mdef, &viewable); + retVal___ = preHookFunc(&bl, &sc, &mdef, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73902,10 +74121,10 @@ defType HP_status_calc_mdef(struct block_list *bl, struct status_change *sc, int retVal___ = HPMHooks.source.status.calc_mdef(bl, sc, mdef, viewable); } if( HPMHooks.count.HP_status_calc_mdef_post ) { - defType (*postHookFunc) (defType retVal___, struct block_list *bl, struct status_change *sc, int *mdef, bool *viewable); + defType (*postHookFunc) (defType retVal___, struct block_list *bl, struct status_change *sc, int mdef, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_mdef_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &mdef, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, mdef, viewable); } } return retVal___; @@ -73914,11 +74133,11 @@ short HP_status_calc_mdef2(struct block_list *bl, struct status_change *sc, int int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_status_calc_mdef2_pre ) { - short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *mdef2, bool *viewable); + short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *mdef2, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_mdef2_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &mdef2, &viewable); + retVal___ = preHookFunc(&bl, &sc, &mdef2, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73929,10 +74148,10 @@ short HP_status_calc_mdef2(struct block_list *bl, struct status_change *sc, int retVal___ = HPMHooks.source.status.calc_mdef2(bl, sc, mdef2, viewable); } if( HPMHooks.count.HP_status_calc_mdef2_post ) { - short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int *mdef2, bool *viewable); + short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int mdef2, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_mdef2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &mdef2, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, mdef2, viewable); } } return retVal___; @@ -73941,11 +74160,11 @@ unsigned short HP_status_calc_batk(struct block_list *bl, struct status_change * int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_batk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *batk, bool *viewable); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *batk, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_batk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_batk_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &batk, &viewable); + retVal___ = preHookFunc(&bl, &sc, &batk, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73956,10 +74175,10 @@ unsigned short HP_status_calc_batk(struct block_list *bl, struct status_change * retVal___ = HPMHooks.source.status.calc_batk(bl, sc, batk, viewable); } if( HPMHooks.count.HP_status_calc_batk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *batk, bool *viewable); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int batk, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_batk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_batk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &batk, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, batk, viewable); } } return retVal___; @@ -73968,11 +74187,11 @@ unsigned short HP_status_base_matk(struct block_list *bl, const struct status_da int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_base_matk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, const struct status_data *st, int *level); + unsigned short (*preHookFunc) (struct block_list **bl, const struct status_data **st, int *level); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_matk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_base_matk_pre[hIndex].func; - retVal___ = preHookFunc(bl, st, &level); + retVal___ = preHookFunc(&bl, &st, &level); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -73983,10 +74202,10 @@ unsigned short HP_status_base_matk(struct block_list *bl, const struct status_da retVal___ = HPMHooks.source.status.base_matk(bl, st, level); } if( HPMHooks.count.HP_status_base_matk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, const struct status_data *st, int *level); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, const struct status_data *st, int level); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_matk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_base_matk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, st, &level); + retVal___ = postHookFunc(retVal___, bl, st, level); } } return retVal___; @@ -73995,11 +74214,11 @@ int HP_status_get_weapon_atk(struct block_list *src, struct weapon_atk *watk, in int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_weapon_atk_pre ) { - int (*preHookFunc) (struct block_list *src, struct weapon_atk *watk, int *flag); + int (*preHookFunc) (struct block_list **src, struct weapon_atk **watk, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_weapon_atk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_weapon_atk_pre[hIndex].func; - retVal___ = preHookFunc(src, watk, &flag); + retVal___ = preHookFunc(&src, &watk, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74010,10 +74229,10 @@ int HP_status_get_weapon_atk(struct block_list *src, struct weapon_atk *watk, in retVal___ = HPMHooks.source.status.get_weapon_atk(src, watk, flag); } if( HPMHooks.count.HP_status_get_weapon_atk_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct weapon_atk *watk, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, struct weapon_atk *watk, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_weapon_atk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_weapon_atk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, watk, &flag); + retVal___ = postHookFunc(retVal___, src, watk, flag); } } return retVal___; @@ -74022,11 +74241,11 @@ int HP_status_get_total_mdef(struct block_list *src) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_total_mdef_pre ) { - int (*preHookFunc) (struct block_list *src); + int (*preHookFunc) (struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_total_mdef_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_total_mdef_pre[hIndex].func; - retVal___ = preHookFunc(src); + retVal___ = preHookFunc(&src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74049,11 +74268,11 @@ int HP_status_get_total_def(struct block_list *src) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_total_def_pre ) { - int (*preHookFunc) (struct block_list *src); + int (*preHookFunc) (struct block_list **src); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_total_def_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_total_def_pre[hIndex].func; - retVal___ = preHookFunc(src); + retVal___ = preHookFunc(&src); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74076,11 +74295,11 @@ int HP_status_get_matk(struct block_list *src, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_get_matk_pre ) { - int (*preHookFunc) (struct block_list *src, int *flag); + int (*preHookFunc) (struct block_list **src, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_matk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_matk_pre[hIndex].func; - retVal___ = preHookFunc(src, &flag); + retVal___ = preHookFunc(&src, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74091,10 +74310,10 @@ int HP_status_get_matk(struct block_list *src, int flag) { retVal___ = HPMHooks.source.status.get_matk(src, flag); } if( HPMHooks.count.HP_status_get_matk_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *src, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_matk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_matk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &flag); + retVal___ = postHookFunc(retVal___, src, flag); } } return retVal___; @@ -74102,11 +74321,11 @@ int HP_status_get_matk(struct block_list *src, int flag) { void HP_status_update_matk(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_status_update_matk_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_update_matk_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74208,11 +74427,11 @@ int HP_status_base_amotion_pc(struct map_session_data *sd, struct status_data *s int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_base_amotion_pc_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct status_data *st); + int (*preHookFunc) (struct map_session_data **sd, struct status_data **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_amotion_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_base_amotion_pc_pre[hIndex].func; - retVal___ = preHookFunc(sd, st); + retVal___ = preHookFunc(&sd, &st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74235,11 +74454,11 @@ unsigned short HP_status_base_atk(const struct block_list *bl, const struct stat int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_base_atk_pre ) { - unsigned short (*preHookFunc) (const struct block_list *bl, const struct status_data *st); + unsigned short (*preHookFunc) (const struct block_list **bl, const struct status_data **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_atk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_base_atk_pre[hIndex].func; - retVal___ = preHookFunc(bl, st); + retVal___ = preHookFunc(&bl, &st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74258,15 +74477,15 @@ unsigned short HP_status_base_atk(const struct block_list *bl, const struct stat } return retVal___; } -unsigned int HP_status_get_base_maxhp(struct map_session_data *sd, struct status_data *st) { +unsigned int HP_status_get_base_maxhp(const struct map_session_data *sd, const struct status_data *st) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_status_get_base_maxhp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd, struct status_data *st); + unsigned int (*preHookFunc) (const struct map_session_data **sd, const struct status_data **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_base_maxhp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_base_maxhp_pre[hIndex].func; - retVal___ = preHookFunc(sd, st); + retVal___ = preHookFunc(&sd, &st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74277,7 +74496,7 @@ unsigned int HP_status_get_base_maxhp(struct map_session_data *sd, struct status retVal___ = HPMHooks.source.status.get_base_maxhp(sd, st); } if( HPMHooks.count.HP_status_get_base_maxhp_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct map_session_data *sd, struct status_data *st); + unsigned int (*postHookFunc) (unsigned int retVal___, const struct map_session_data *sd, const struct status_data *st); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_base_maxhp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_base_maxhp_post[hIndex].func; retVal___ = postHookFunc(retVal___, sd, st); @@ -74285,15 +74504,15 @@ unsigned int HP_status_get_base_maxhp(struct map_session_data *sd, struct status } return retVal___; } -unsigned int HP_status_get_base_maxsp(struct map_session_data *sd, struct status_data *st) { +unsigned int HP_status_get_base_maxsp(const struct map_session_data *sd, const struct status_data *st) { int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_status_get_base_maxsp_pre ) { - unsigned int (*preHookFunc) (struct map_session_data *sd, struct status_data *st); + unsigned int (*preHookFunc) (const struct map_session_data **sd, const struct status_data **st); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_base_maxsp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_get_base_maxsp_pre[hIndex].func; - retVal___ = preHookFunc(sd, st); + retVal___ = preHookFunc(&sd, &st); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74304,7 +74523,7 @@ unsigned int HP_status_get_base_maxsp(struct map_session_data *sd, struct status retVal___ = HPMHooks.source.status.get_base_maxsp(sd, st); } if( HPMHooks.count.HP_status_get_base_maxsp_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct map_session_data *sd, struct status_data *st); + unsigned int (*postHookFunc) (unsigned int retVal___, const struct map_session_data *sd, const struct status_data *st); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_base_maxsp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_get_base_maxsp_post[hIndex].func; retVal___ = postHookFunc(retVal___, sd, st); @@ -74316,11 +74535,11 @@ int HP_status_calc_npc_(struct npc_data *nd, enum e_status_calc_opt opt) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_calc_npc__pre ) { - int (*preHookFunc) (struct npc_data *nd, enum e_status_calc_opt *opt); + int (*preHookFunc) (struct npc_data **nd, enum e_status_calc_opt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_npc__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_npc__pre[hIndex].func; - retVal___ = preHookFunc(nd, &opt); + retVal___ = preHookFunc(&nd, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74331,10 +74550,10 @@ int HP_status_calc_npc_(struct npc_data *nd, enum e_status_calc_opt opt) { retVal___ = HPMHooks.source.status.calc_npc_(nd, opt); } if( HPMHooks.count.HP_status_calc_npc__post ) { - int (*postHookFunc) (int retVal___, struct npc_data *nd, enum e_status_calc_opt *opt); + int (*postHookFunc) (int retVal___, struct npc_data *nd, enum e_status_calc_opt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_npc__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_npc__post[hIndex].func; - retVal___ = postHookFunc(retVal___, nd, &opt); + retVal___ = postHookFunc(retVal___, nd, opt); } } return retVal___; @@ -74343,11 +74562,11 @@ unsigned short HP_status_calc_str(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_str_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *str); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_str_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_str_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &str); + retVal___ = preHookFunc(&bl, &sc, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74358,10 +74577,10 @@ unsigned short HP_status_calc_str(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_str(bl, sc, str); } if( HPMHooks.count.HP_status_calc_str_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *str); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int str); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_str_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_str_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &str); + retVal___ = postHookFunc(retVal___, bl, sc, str); } } return retVal___; @@ -74370,11 +74589,11 @@ unsigned short HP_status_calc_agi(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_agi_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *agi); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *agi); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_agi_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_agi_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &agi); + retVal___ = preHookFunc(&bl, &sc, &agi); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74385,10 +74604,10 @@ unsigned short HP_status_calc_agi(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_agi(bl, sc, agi); } if( HPMHooks.count.HP_status_calc_agi_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *agi); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int agi); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_agi_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_agi_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &agi); + retVal___ = postHookFunc(retVal___, bl, sc, agi); } } return retVal___; @@ -74397,11 +74616,11 @@ unsigned short HP_status_calc_vit(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_vit_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *vit); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *vit); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_vit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_vit_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &vit); + retVal___ = preHookFunc(&bl, &sc, &vit); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74412,10 +74631,10 @@ unsigned short HP_status_calc_vit(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_vit(bl, sc, vit); } if( HPMHooks.count.HP_status_calc_vit_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *vit); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int vit); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_vit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_vit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &vit); + retVal___ = postHookFunc(retVal___, bl, sc, vit); } } return retVal___; @@ -74424,11 +74643,11 @@ unsigned short HP_status_calc_int(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_int_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *int_); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *int_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_int_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_int_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &int_); + retVal___ = preHookFunc(&bl, &sc, &int_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74439,10 +74658,10 @@ unsigned short HP_status_calc_int(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_int(bl, sc, int_); } if( HPMHooks.count.HP_status_calc_int_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *int_); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int int_); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_int_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_int_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &int_); + retVal___ = postHookFunc(retVal___, bl, sc, int_); } } return retVal___; @@ -74451,11 +74670,11 @@ unsigned short HP_status_calc_dex(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_dex_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *dex); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *dex); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dex_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_dex_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &dex); + retVal___ = preHookFunc(&bl, &sc, &dex); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74466,10 +74685,10 @@ unsigned short HP_status_calc_dex(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_dex(bl, sc, dex); } if( HPMHooks.count.HP_status_calc_dex_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *dex); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int dex); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dex_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_dex_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &dex); + retVal___ = postHookFunc(retVal___, bl, sc, dex); } } return retVal___; @@ -74478,11 +74697,11 @@ unsigned short HP_status_calc_luk(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_luk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *luk); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *luk); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_luk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_luk_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &luk); + retVal___ = preHookFunc(&bl, &sc, &luk); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74493,10 +74712,10 @@ unsigned short HP_status_calc_luk(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_luk(bl, sc, luk); } if( HPMHooks.count.HP_status_calc_luk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *luk); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int luk); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_luk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_luk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &luk); + retVal___ = postHookFunc(retVal___, bl, sc, luk); } } return retVal___; @@ -74505,11 +74724,11 @@ unsigned short HP_status_calc_watk(struct block_list *bl, struct status_change * int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_watk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *watk, bool *viewable); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *watk, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_watk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_watk_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &watk, &viewable); + retVal___ = preHookFunc(&bl, &sc, &watk, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74520,10 +74739,10 @@ unsigned short HP_status_calc_watk(struct block_list *bl, struct status_change * retVal___ = HPMHooks.source.status.calc_watk(bl, sc, watk, viewable); } if( HPMHooks.count.HP_status_calc_watk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *watk, bool *viewable); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int watk, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_watk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_watk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &watk, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, watk, viewable); } } return retVal___; @@ -74532,11 +74751,11 @@ unsigned short HP_status_calc_matk(struct block_list *bl, struct status_change * int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_matk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *matk, bool *viewable); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *matk, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_matk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_matk_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &matk, &viewable); + retVal___ = preHookFunc(&bl, &sc, &matk, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74547,10 +74766,10 @@ unsigned short HP_status_calc_matk(struct block_list *bl, struct status_change * retVal___ = HPMHooks.source.status.calc_matk(bl, sc, matk, viewable); } if( HPMHooks.count.HP_status_calc_matk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *matk, bool *viewable); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int matk, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_matk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_matk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &matk, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, matk, viewable); } } return retVal___; @@ -74559,11 +74778,11 @@ signed short HP_status_calc_hit(struct block_list *bl, struct status_change *sc, int hIndex = 0; signed short retVal___ = 0; if( HPMHooks.count.HP_status_calc_hit_pre ) { - signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *hit, bool *viewable); + signed short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *hit, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_hit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_hit_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &hit, &viewable); + retVal___ = preHookFunc(&bl, &sc, &hit, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74574,10 +74793,10 @@ signed short HP_status_calc_hit(struct block_list *bl, struct status_change *sc, retVal___ = HPMHooks.source.status.calc_hit(bl, sc, hit, viewable); } if( HPMHooks.count.HP_status_calc_hit_post ) { - signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int *hit, bool *viewable); + signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int hit, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_hit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_hit_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &hit, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, hit, viewable); } } return retVal___; @@ -74586,11 +74805,11 @@ signed short HP_status_calc_critical(struct block_list *bl, struct status_change int hIndex = 0; signed short retVal___ = 0; if( HPMHooks.count.HP_status_calc_critical_pre ) { - signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *critical, bool *viewable); + signed short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *critical, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_critical_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_critical_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &critical, &viewable); + retVal___ = preHookFunc(&bl, &sc, &critical, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74601,10 +74820,10 @@ signed short HP_status_calc_critical(struct block_list *bl, struct status_change retVal___ = HPMHooks.source.status.calc_critical(bl, sc, critical, viewable); } if( HPMHooks.count.HP_status_calc_critical_post ) { - signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int *critical, bool *viewable); + signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int critical, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_critical_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_critical_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &critical, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, critical, viewable); } } return retVal___; @@ -74613,11 +74832,11 @@ signed short HP_status_calc_flee(struct block_list *bl, struct status_change *sc int hIndex = 0; signed short retVal___ = 0; if( HPMHooks.count.HP_status_calc_flee_pre ) { - signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *flee, bool *viewable); + signed short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *flee, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_flee_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &flee, &viewable); + retVal___ = preHookFunc(&bl, &sc, &flee, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74628,10 +74847,10 @@ signed short HP_status_calc_flee(struct block_list *bl, struct status_change *sc retVal___ = HPMHooks.source.status.calc_flee(bl, sc, flee, viewable); } if( HPMHooks.count.HP_status_calc_flee_post ) { - signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int *flee, bool *viewable); + signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int flee, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_flee_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &flee, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, flee, viewable); } } return retVal___; @@ -74640,11 +74859,11 @@ signed short HP_status_calc_flee2(struct block_list *bl, struct status_change *s int hIndex = 0; signed short retVal___ = 0; if( HPMHooks.count.HP_status_calc_flee2_pre ) { - signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *flee2, bool *viewable); + signed short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *flee2, bool *viewable); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_flee2_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &flee2, &viewable); + retVal___ = preHookFunc(&bl, &sc, &flee2, &viewable); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74655,10 +74874,10 @@ signed short HP_status_calc_flee2(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_flee2(bl, sc, flee2, viewable); } if( HPMHooks.count.HP_status_calc_flee2_post ) { - signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int *flee2, bool *viewable); + signed short (*postHookFunc) (signed short retVal___, struct block_list *bl, struct status_change *sc, int flee2, bool viewable); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_flee2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &flee2, &viewable); + retVal___ = postHookFunc(retVal___, bl, sc, flee2, viewable); } } return retVal___; @@ -74667,11 +74886,11 @@ unsigned short HP_status_calc_speed(struct block_list *bl, struct status_change int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_speed_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *speed); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *speed); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_speed_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_speed_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &speed); + retVal___ = preHookFunc(&bl, &sc, &speed); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74682,10 +74901,10 @@ unsigned short HP_status_calc_speed(struct block_list *bl, struct status_change retVal___ = HPMHooks.source.status.calc_speed(bl, sc, speed); } if( HPMHooks.count.HP_status_calc_speed_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *speed); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int speed); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_speed_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_speed_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &speed); + retVal___ = postHookFunc(retVal___, bl, sc, speed); } } return retVal___; @@ -74694,11 +74913,11 @@ short HP_status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_status_calc_aspd_rate_pre ) { - short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *aspd_rate); + short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *aspd_rate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_rate_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_aspd_rate_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &aspd_rate); + retVal___ = preHookFunc(&bl, &sc, &aspd_rate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74709,10 +74928,10 @@ short HP_status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, retVal___ = HPMHooks.source.status.calc_aspd_rate(bl, sc, aspd_rate); } if( HPMHooks.count.HP_status_calc_aspd_rate_post ) { - short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int *aspd_rate); + short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int aspd_rate); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_rate_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_aspd_rate_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &aspd_rate); + retVal___ = postHookFunc(retVal___, bl, sc, aspd_rate); } } return retVal___; @@ -74721,11 +74940,11 @@ unsigned short HP_status_calc_dmotion(struct block_list *bl, struct status_chang int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_dmotion_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *dmotion); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *dmotion); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dmotion_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_dmotion_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &dmotion); + retVal___ = preHookFunc(&bl, &sc, &dmotion); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74736,10 +74955,10 @@ unsigned short HP_status_calc_dmotion(struct block_list *bl, struct status_chang retVal___ = HPMHooks.source.status.calc_dmotion(bl, sc, dmotion); } if( HPMHooks.count.HP_status_calc_dmotion_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *dmotion); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int dmotion); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dmotion_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_dmotion_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &dmotion); + retVal___ = postHookFunc(retVal___, bl, sc, dmotion); } } return retVal___; @@ -74748,11 +74967,11 @@ short HP_status_calc_aspd(struct block_list *bl, struct status_change *sc, short int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_status_calc_aspd_pre ) { - short (*preHookFunc) (struct block_list *bl, struct status_change *sc, short *flag); + short (*preHookFunc) (struct block_list **bl, struct status_change **sc, short *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_aspd_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &flag); + retVal___ = preHookFunc(&bl, &sc, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74763,10 +74982,10 @@ short HP_status_calc_aspd(struct block_list *bl, struct status_change *sc, short retVal___ = HPMHooks.source.status.calc_aspd(bl, sc, flag); } if( HPMHooks.count.HP_status_calc_aspd_post ) { - short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, short *flag); + short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, short flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_aspd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &flag); + retVal___ = postHookFunc(retVal___, bl, sc, flag); } } return retVal___; @@ -74775,11 +74994,11 @@ short HP_status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, i int hIndex = 0; short retVal___ = 0; if( HPMHooks.count.HP_status_calc_fix_aspd_pre ) { - short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *aspd); + short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *aspd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_fix_aspd_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_fix_aspd_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &aspd); + retVal___ = preHookFunc(&bl, &sc, &aspd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74790,10 +75009,10 @@ short HP_status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, i retVal___ = HPMHooks.source.status.calc_fix_aspd(bl, sc, aspd); } if( HPMHooks.count.HP_status_calc_fix_aspd_post ) { - short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int *aspd); + short (*postHookFunc) (short retVal___, struct block_list *bl, struct status_change *sc, int aspd); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_fix_aspd_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_fix_aspd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &aspd); + retVal___ = postHookFunc(retVal___, bl, sc, aspd); } } return retVal___; @@ -74802,11 +75021,11 @@ unsigned int HP_status_calc_maxhp(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_status_calc_maxhp_pre ) { - unsigned int (*preHookFunc) (struct block_list *bl, struct status_change *sc, uint64 *maxhp); + unsigned int (*preHookFunc) (struct block_list **bl, struct status_change **sc, uint64 *maxhp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxhp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_maxhp_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &maxhp); + retVal___ = preHookFunc(&bl, &sc, &maxhp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74817,10 +75036,10 @@ unsigned int HP_status_calc_maxhp(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_maxhp(bl, sc, maxhp); } if( HPMHooks.count.HP_status_calc_maxhp_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct block_list *bl, struct status_change *sc, uint64 *maxhp); + unsigned int (*postHookFunc) (unsigned int retVal___, struct block_list *bl, struct status_change *sc, uint64 maxhp); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxhp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_maxhp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &maxhp); + retVal___ = postHookFunc(retVal___, bl, sc, maxhp); } } return retVal___; @@ -74829,11 +75048,11 @@ unsigned int HP_status_calc_maxsp(struct block_list *bl, struct status_change *s int hIndex = 0; unsigned int retVal___ = 0; if( HPMHooks.count.HP_status_calc_maxsp_pre ) { - unsigned int (*preHookFunc) (struct block_list *bl, struct status_change *sc, unsigned int *maxsp); + unsigned int (*preHookFunc) (struct block_list **bl, struct status_change **sc, unsigned int *maxsp); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxsp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_maxsp_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &maxsp); + retVal___ = preHookFunc(&bl, &sc, &maxsp); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74844,10 +75063,10 @@ unsigned int HP_status_calc_maxsp(struct block_list *bl, struct status_change *s retVal___ = HPMHooks.source.status.calc_maxsp(bl, sc, maxsp); } if( HPMHooks.count.HP_status_calc_maxsp_post ) { - unsigned int (*postHookFunc) (unsigned int retVal___, struct block_list *bl, struct status_change *sc, unsigned int *maxsp); + unsigned int (*postHookFunc) (unsigned int retVal___, struct block_list *bl, struct status_change *sc, unsigned int maxsp); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxsp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_maxsp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &maxsp); + retVal___ = postHookFunc(retVal___, bl, sc, maxsp); } } return retVal___; @@ -74856,11 +75075,11 @@ unsigned char HP_status_calc_element(struct block_list *bl, struct status_change int hIndex = 0; unsigned char retVal___ = 0; if( HPMHooks.count.HP_status_calc_element_pre ) { - unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *element); + unsigned char (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *element); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_element_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &element); + retVal___ = preHookFunc(&bl, &sc, &element); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74871,10 +75090,10 @@ unsigned char HP_status_calc_element(struct block_list *bl, struct status_change retVal___ = HPMHooks.source.status.calc_element(bl, sc, element); } if( HPMHooks.count.HP_status_calc_element_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int *element); + unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int element); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_element_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &element); + retVal___ = postHookFunc(retVal___, bl, sc, element); } } return retVal___; @@ -74883,11 +75102,11 @@ unsigned char HP_status_calc_element_lv(struct block_list *bl, struct status_cha int hIndex = 0; unsigned char retVal___ = 0; if( HPMHooks.count.HP_status_calc_element_lv_pre ) { - unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *lv); + unsigned char (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_lv_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_element_lv_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &lv); + retVal___ = preHookFunc(&bl, &sc, &lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74898,10 +75117,10 @@ unsigned char HP_status_calc_element_lv(struct block_list *bl, struct status_cha retVal___ = HPMHooks.source.status.calc_element_lv(bl, sc, lv); } if( HPMHooks.count.HP_status_calc_element_lv_post ) { - unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int *lv); + unsigned char (*postHookFunc) (unsigned char retVal___, struct block_list *bl, struct status_change *sc, int lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_lv_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_element_lv_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &lv); + retVal___ = postHookFunc(retVal___, bl, sc, lv); } } return retVal___; @@ -74910,11 +75129,11 @@ uint32 HP_status_calc_mode(const struct block_list *bl, const struct status_chan int hIndex = 0; uint32 retVal___ = 0; if( HPMHooks.count.HP_status_calc_mode_pre ) { - uint32 (*preHookFunc) (const struct block_list *bl, const struct status_change *sc, uint32 *mode); + uint32 (*preHookFunc) (const struct block_list **bl, const struct status_change **sc, uint32 *mode); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mode_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_mode_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &mode); + retVal___ = preHookFunc(&bl, &sc, &mode); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74925,10 +75144,10 @@ uint32 HP_status_calc_mode(const struct block_list *bl, const struct status_chan retVal___ = HPMHooks.source.status.calc_mode(bl, sc, mode); } if( HPMHooks.count.HP_status_calc_mode_post ) { - uint32 (*postHookFunc) (uint32 retVal___, const struct block_list *bl, const struct status_change *sc, uint32 *mode); + uint32 (*postHookFunc) (uint32 retVal___, const struct block_list *bl, const struct status_change *sc, uint32 mode); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mode_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_mode_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &mode); + retVal___ = postHookFunc(retVal___, bl, sc, mode); } } return retVal___; @@ -74937,11 +75156,11 @@ unsigned short HP_status_calc_ematk(struct block_list *bl, struct status_change int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_calc_ematk_pre ) { - unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *matk); + unsigned short (*preHookFunc) (struct block_list **bl, struct status_change **sc, int *matk); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_ematk_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_ematk_pre[hIndex].func; - retVal___ = preHookFunc(bl, sc, &matk); + retVal___ = preHookFunc(&bl, &sc, &matk); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74952,10 +75171,10 @@ unsigned short HP_status_calc_ematk(struct block_list *bl, struct status_change retVal___ = HPMHooks.source.status.calc_ematk(bl, sc, matk); } if( HPMHooks.count.HP_status_calc_ematk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int *matk); + unsigned short (*postHookFunc) (unsigned short retVal___, struct block_list *bl, struct status_change *sc, int matk); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_ematk_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_ematk_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sc, &matk); + retVal___ = postHookFunc(retVal___, bl, sc, matk); } } return retVal___; @@ -74963,11 +75182,11 @@ unsigned short HP_status_calc_ematk(struct block_list *bl, struct status_change void HP_status_calc_bl_main(struct block_list *bl, int flag) { int hIndex = 0; if( HPMHooks.count.HP_status_calc_bl_main_pre ) { - void (*preHookFunc) (struct block_list *bl, int *flag); + void (*preHookFunc) (struct block_list **bl, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_bl_main_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_calc_bl_main_pre[hIndex].func; - preHookFunc(bl, &flag); + preHookFunc(&bl, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -74978,10 +75197,10 @@ void HP_status_calc_bl_main(struct block_list *bl, int flag) { HPMHooks.source.status.calc_bl_main(bl, flag); } if( HPMHooks.count.HP_status_calc_bl_main_post ) { - void (*postHookFunc) (struct block_list *bl, int *flag); + void (*postHookFunc) (struct block_list *bl, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_bl_main_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_calc_bl_main_post[hIndex].func; - postHookFunc(bl, &flag); + postHookFunc(bl, flag); } } return; @@ -74989,11 +75208,11 @@ void HP_status_calc_bl_main(struct block_list *bl, int flag) { void HP_status_display_add(struct map_session_data *sd, enum sc_type type, int dval1, int dval2, int dval3) { int hIndex = 0; if( HPMHooks.count.HP_status_display_add_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum sc_type *type, int *dval1, int *dval2, int *dval3); + void (*preHookFunc) (struct map_session_data **sd, enum sc_type *type, int *dval1, int *dval2, int *dval3); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_display_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_display_add_pre[hIndex].func; - preHookFunc(sd, &type, &dval1, &dval2, &dval3); + preHookFunc(&sd, &type, &dval1, &dval2, &dval3); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75004,10 +75223,10 @@ void HP_status_display_add(struct map_session_data *sd, enum sc_type type, int d HPMHooks.source.status.display_add(sd, type, dval1, dval2, dval3); } if( HPMHooks.count.HP_status_display_add_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum sc_type *type, int *dval1, int *dval2, int *dval3); + void (*postHookFunc) (struct map_session_data *sd, enum sc_type type, int dval1, int dval2, int dval3); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_display_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_display_add_post[hIndex].func; - postHookFunc(sd, &type, &dval1, &dval2, &dval3); + postHookFunc(sd, type, dval1, dval2, dval3); } } return; @@ -75015,11 +75234,11 @@ void HP_status_display_add(struct map_session_data *sd, enum sc_type type, int d void HP_status_display_remove(struct map_session_data *sd, enum sc_type type) { int hIndex = 0; if( HPMHooks.count.HP_status_display_remove_pre ) { - void (*preHookFunc) (struct map_session_data *sd, enum sc_type *type); + void (*preHookFunc) (struct map_session_data **sd, enum sc_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_display_remove_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_display_remove_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75030,10 +75249,10 @@ void HP_status_display_remove(struct map_session_data *sd, enum sc_type type) { HPMHooks.source.status.display_remove(sd, type); } if( HPMHooks.count.HP_status_display_remove_post ) { - void (*postHookFunc) (struct map_session_data *sd, enum sc_type *type); + void (*postHookFunc) (struct map_session_data *sd, enum sc_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_display_remove_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_display_remove_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -75042,12 +75261,12 @@ int HP_status_natural_heal(struct block_list *bl, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_natural_heal_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list args); + int (*preHookFunc) (struct block_list **bl, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_natural_heal_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_status_natural_heal_pre[hIndex].func; - retVal___ = preHookFunc(bl, args___copy); + retVal___ = preHookFunc(&bl, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -75090,10 +75309,10 @@ int HP_status_natural_heal_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.status.natural_heal_timer(tid, tick, id, data); } if( HPMHooks.count.HP_status_natural_heal_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_natural_heal_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_natural_heal_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -75102,11 +75321,11 @@ bool HP_status_readdb_job2(char *fields[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_status_readdb_job2_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); + bool (*preHookFunc) (char **fields[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_job2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_readdb_job2_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); + retVal___ = preHookFunc(&fields, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75117,10 +75336,10 @@ bool HP_status_readdb_job2(char *fields[], int columns, int current) { retVal___ = HPMHooks.source.status.readdb_job2(fields, columns, current); } if( HPMHooks.count.HP_status_readdb_job2_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_job2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_readdb_job2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); + retVal___ = postHookFunc(retVal___, fields, columns, current); } } return retVal___; @@ -75129,11 +75348,11 @@ bool HP_status_readdb_sizefix(char *fields[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_status_readdb_sizefix_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); + bool (*preHookFunc) (char **fields[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_sizefix_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_readdb_sizefix_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); + retVal___ = preHookFunc(&fields, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75144,10 +75363,10 @@ bool HP_status_readdb_sizefix(char *fields[], int columns, int current) { retVal___ = HPMHooks.source.status.readdb_sizefix(fields, columns, current); } if( HPMHooks.count.HP_status_readdb_sizefix_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_sizefix_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_readdb_sizefix_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); + retVal___ = postHookFunc(retVal___, fields, columns, current); } } return retVal___; @@ -75156,11 +75375,11 @@ int HP_status_readdb_refine_libconfig(const char *filename) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_readdb_refine_libconfig_pre ) { - int (*preHookFunc) (const char *filename); + int (*preHookFunc) (const char **filename); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_refine_libconfig_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_readdb_refine_libconfig_pre[hIndex].func; - retVal___ = preHookFunc(filename); + retVal___ = preHookFunc(&filename); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75183,11 +75402,11 @@ int HP_status_readdb_refine_libconfig_sub(struct config_setting_t *r, const char int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_status_readdb_refine_libconfig_sub_pre ) { - int (*preHookFunc) (struct config_setting_t *r, const char *name, const char *source); + int (*preHookFunc) (struct config_setting_t **r, const char **name, const char **source); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_refine_libconfig_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_readdb_refine_libconfig_sub_pre[hIndex].func; - retVal___ = preHookFunc(r, name, source); + retVal___ = preHookFunc(&r, &name, &source); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75210,11 +75429,11 @@ bool HP_status_readdb_scconfig(char *fields[], int columns, int current) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_status_readdb_scconfig_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); + bool (*preHookFunc) (char **fields[], int *columns, int *current); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_scconfig_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_readdb_scconfig_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); + retVal___ = preHookFunc(&fields, &columns, ¤t); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75225,10 +75444,10 @@ bool HP_status_readdb_scconfig(char *fields[], int columns, int current) { retVal___ = HPMHooks.source.status.readdb_scconfig(fields, columns, current); } if( HPMHooks.count.HP_status_readdb_scconfig_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); + bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_scconfig_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_readdb_scconfig_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); + retVal___ = postHookFunc(retVal___, fields, columns, current); } } return retVal___; @@ -75262,11 +75481,11 @@ void HP_status_read_job_db(void) { void HP_status_read_job_db_sub(int idx, const char *name, struct config_setting_t *jdb) { int hIndex = 0; if( HPMHooks.count.HP_status_read_job_db_sub_pre ) { - void (*preHookFunc) (int *idx, const char *name, struct config_setting_t *jdb); + void (*preHookFunc) (int *idx, const char **name, struct config_setting_t **jdb); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_status_read_job_db_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_status_read_job_db_sub_pre[hIndex].func; - preHookFunc(&idx, name, jdb); + preHookFunc(&idx, &name, &jdb); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75277,15 +75496,15 @@ void HP_status_read_job_db_sub(int idx, const char *name, struct config_setting_ HPMHooks.source.status.read_job_db_sub(idx, name, jdb); } if( HPMHooks.count.HP_status_read_job_db_sub_post ) { - void (*postHookFunc) (int *idx, const char *name, struct config_setting_t *jdb); + void (*postHookFunc) (int idx, const char *name, struct config_setting_t *jdb); for(hIndex = 0; hIndex < HPMHooks.count.HP_status_read_job_db_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_status_read_job_db_sub_post[hIndex].func; - postHookFunc(&idx, name, jdb); + postHookFunc(idx, name, jdb); } } return; } -/* storage */ +/* storage_interface */ void HP_storage_reconnect(void) { int hIndex = 0; if( HPMHooks.count.HP_storage_reconnect_pre ) { @@ -75316,11 +75535,11 @@ int HP_storage_delitem(struct map_session_data *sd, int n, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_delitem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *n, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_delitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_delitem_pre[hIndex].func; - retVal___ = preHookFunc(sd, &n, &amount); + retVal___ = preHookFunc(&sd, &n, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75331,10 +75550,10 @@ int HP_storage_delitem(struct map_session_data *sd, int n, int amount) { retVal___ = HPMHooks.source.storage.delitem(sd, n, amount); } if( HPMHooks.count.HP_storage_delitem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *n, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int n, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_delitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_delitem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &n, &amount); + retVal___ = postHookFunc(retVal___, sd, n, amount); } } return retVal___; @@ -75343,11 +75562,11 @@ int HP_storage_open(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_open_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_open_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75370,11 +75589,11 @@ int HP_storage_add(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_add_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_add_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_add_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75385,10 +75604,10 @@ int HP_storage_add(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.storage.add(sd, index, amount); } if( HPMHooks.count.HP_storage_add_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -75397,11 +75616,11 @@ int HP_storage_get(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_get_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_get_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_get_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75412,10 +75631,10 @@ int HP_storage_get(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.storage.get(sd, index, amount); } if( HPMHooks.count.HP_storage_get_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_get_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_get_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -75424,11 +75643,11 @@ int HP_storage_additem(struct map_session_data *sd, struct item *item_data, int int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_additem_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount); + int (*preHookFunc) (struct map_session_data **sd, struct item **item_data, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_additem_pre[hIndex].func; - retVal___ = preHookFunc(sd, item_data, &amount); + retVal___ = preHookFunc(&sd, &item_data, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75439,10 +75658,10 @@ int HP_storage_additem(struct map_session_data *sd, struct item *item_data, int retVal___ = HPMHooks.source.storage.additem(sd, item_data, amount); } if( HPMHooks.count.HP_storage_additem_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct item *item_data, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_additem_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, item_data, &amount); + retVal___ = postHookFunc(retVal___, sd, item_data, amount); } } return retVal___; @@ -75451,11 +75670,11 @@ int HP_storage_addfromcart(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_addfromcart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_addfromcart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_addfromcart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75466,10 +75685,10 @@ int HP_storage_addfromcart(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.storage.addfromcart(sd, index, amount); } if( HPMHooks.count.HP_storage_addfromcart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_addfromcart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_addfromcart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -75478,11 +75697,11 @@ int HP_storage_gettocart(struct map_session_data *sd, int index, int amount) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_gettocart_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount); + int (*preHookFunc) (struct map_session_data **sd, int *index, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_gettocart_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_gettocart_pre[hIndex].func; - retVal___ = preHookFunc(sd, &index, &amount); + retVal___ = preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75493,10 +75712,10 @@ int HP_storage_gettocart(struct map_session_data *sd, int index, int amount) { retVal___ = HPMHooks.source.storage.gettocart(sd, index, amount); } if( HPMHooks.count.HP_storage_gettocart_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *index, int *amount); + int (*postHookFunc) (int retVal___, struct map_session_data *sd, int index, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_gettocart_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_gettocart_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &index, &amount); + retVal___ = postHookFunc(retVal___, sd, index, amount); } } return retVal___; @@ -75504,11 +75723,11 @@ int HP_storage_gettocart(struct map_session_data *sd, int index, int amount) { void HP_storage_close(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_storage_close_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_close_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75530,11 +75749,11 @@ void HP_storage_close(struct map_session_data *sd) { void HP_storage_pc_quit(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_storage_pc_quit_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *flag); + void (*preHookFunc) (struct map_session_data **sd, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_pc_quit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_pc_quit_pre[hIndex].func; - preHookFunc(sd, &flag); + preHookFunc(&sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75545,10 +75764,10 @@ void HP_storage_pc_quit(struct map_session_data *sd, int flag) { HPMHooks.source.storage.pc_quit(sd, flag); } if( HPMHooks.count.HP_storage_pc_quit_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *flag); + void (*postHookFunc) (struct map_session_data *sd, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_pc_quit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_pc_quit_post[hIndex].func; - postHookFunc(sd, &flag); + postHookFunc(sd, flag); } } return; @@ -75557,11 +75776,11 @@ int HP_storage_comp_item(const void *i1_, const void *i2_) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_comp_item_pre ) { - int (*preHookFunc) (const void *i1_, const void *i2_); + int (*preHookFunc) (const void **i1_, const void **i2_); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_comp_item_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_comp_item_pre[hIndex].func; - retVal___ = preHookFunc(i1_, i2_); + retVal___ = preHookFunc(&i1_, &i2_); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75583,11 +75802,11 @@ int HP_storage_comp_item(const void *i1_, const void *i2_) { void HP_storage_sortitem(struct item *items, unsigned int size) { int hIndex = 0; if( HPMHooks.count.HP_storage_sortitem_pre ) { - void (*preHookFunc) (struct item *items, unsigned int *size); + void (*preHookFunc) (struct item **items, unsigned int *size); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_sortitem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_storage_sortitem_pre[hIndex].func; - preHookFunc(items, &size); + preHookFunc(&items, &size); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75598,24 +75817,24 @@ void HP_storage_sortitem(struct item *items, unsigned int size) { HPMHooks.source.storage.sortitem(items, size); } if( HPMHooks.count.HP_storage_sortitem_post ) { - void (*postHookFunc) (struct item *items, unsigned int *size); + void (*postHookFunc) (struct item *items, unsigned int size); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_sortitem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_storage_sortitem_post[hIndex].func; - postHookFunc(items, &size); + postHookFunc(items, size); } } return; } -int HP_storage_reconnect_sub(DBKey key, DBData *data, va_list ap) { +int HP_storage_reconnect_sub(union DBKey key, struct DBData *data, va_list ap) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_storage_reconnect_sub_pre ) { - int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + int (*preHookFunc) (union DBKey *key, struct DBData **data, va_list ap); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_reconnect_sub_pre; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); preHookFunc = HPMHooks.list.HP_storage_reconnect_sub_pre[hIndex].func; - retVal___ = preHookFunc(&key, data, ap___copy); + retVal___ = preHookFunc(&key, &data, ap___copy); va_end(ap___copy); } if( *HPMforce_return ) { @@ -75629,17 +75848,17 @@ int HP_storage_reconnect_sub(DBKey key, DBData *data, va_list ap) { va_end(ap___copy); } if( HPMHooks.count.HP_storage_reconnect_sub_post ) { - int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + int (*postHookFunc) (int retVal___, union DBKey key, struct DBData *data, va_list ap); for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_reconnect_sub_post; hIndex++ ) { va_list ap___copy; va_copy(ap___copy, ap); postHookFunc = HPMHooks.list.HP_storage_reconnect_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + retVal___ = postHookFunc(retVal___, key, data, ap___copy); va_end(ap___copy); } } return retVal___; } -/* StrBuf */ +/* stringbuf_interface */ StringBuf* HP_StrBuf_Malloc(void) { int hIndex = 0; StringBuf* retVal___ = NULL; @@ -75670,11 +75889,11 @@ StringBuf* HP_StrBuf_Malloc(void) { void HP_StrBuf_Init(StringBuf *self) { int hIndex = 0; if( HPMHooks.count.HP_StrBuf_Init_pre ) { - void (*preHookFunc) (StringBuf *self); + void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Init_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Init_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75697,12 +75916,12 @@ int HP_StrBuf_Vprintf(StringBuf *self, const char *fmt, va_list args) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_StrBuf_Vprintf_pre ) { - int (*preHookFunc) (StringBuf *self, const char *fmt, va_list args); + int (*preHookFunc) (StringBuf **self, const char **fmt, va_list args); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Vprintf_pre; hIndex++ ) { va_list args___copy; va_copy(args___copy, args); preHookFunc = HPMHooks.list.HP_StrBuf_Vprintf_pre[hIndex].func; - retVal___ = preHookFunc(self, fmt, args___copy); + retVal___ = preHookFunc(&self, &fmt, args___copy); va_end(args___copy); } if( *HPMforce_return ) { @@ -75730,11 +75949,11 @@ int HP_StrBuf_Append(StringBuf *self, const StringBuf *sbuf) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_StrBuf_Append_pre ) { - int (*preHookFunc) (StringBuf *self, const StringBuf *sbuf); + int (*preHookFunc) (StringBuf **self, const StringBuf **sbuf); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Append_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Append_pre[hIndex].func; - retVal___ = preHookFunc(self, sbuf); + retVal___ = preHookFunc(&self, &sbuf); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75757,11 +75976,11 @@ int HP_StrBuf_AppendStr(StringBuf *self, const char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_StrBuf_AppendStr_pre ) { - int (*preHookFunc) (StringBuf *self, const char *str); + int (*preHookFunc) (StringBuf **self, const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_AppendStr_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_AppendStr_pre[hIndex].func; - retVal___ = preHookFunc(self, str); + retVal___ = preHookFunc(&self, &str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75784,11 +76003,11 @@ int HP_StrBuf_Length(StringBuf *self) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_StrBuf_Length_pre ) { - int (*preHookFunc) (StringBuf *self); + int (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Length_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Length_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75811,11 +76030,11 @@ char* HP_StrBuf_Value(StringBuf *self) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_StrBuf_Value_pre ) { - char* (*preHookFunc) (StringBuf *self); + char* (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Value_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Value_pre[hIndex].func; - retVal___ = preHookFunc(self); + retVal___ = preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75837,11 +76056,11 @@ char* HP_StrBuf_Value(StringBuf *self) { void HP_StrBuf_Clear(StringBuf *self) { int hIndex = 0; if( HPMHooks.count.HP_StrBuf_Clear_pre ) { - void (*preHookFunc) (StringBuf *self); + void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Clear_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75863,11 +76082,11 @@ void HP_StrBuf_Clear(StringBuf *self) { void HP_StrBuf_Destroy(StringBuf *self) { int hIndex = 0; if( HPMHooks.count.HP_StrBuf_Destroy_pre ) { - void (*preHookFunc) (StringBuf *self); + void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Destroy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Destroy_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75889,11 +76108,11 @@ void HP_StrBuf_Destroy(StringBuf *self) { void HP_StrBuf_Free(StringBuf *self) { int hIndex = 0; if( HPMHooks.count.HP_StrBuf_Free_pre ) { - void (*preHookFunc) (StringBuf *self); + void (*preHookFunc) (StringBuf **self); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_StrBuf_Free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_StrBuf_Free_pre[hIndex].func; - preHookFunc(self); + preHookFunc(&self); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75912,16 +76131,16 @@ void HP_StrBuf_Free(StringBuf *self) { } return; } -/* strlib */ +/* strlib_interface */ char* HP_strlib_jstrescape(char *pt) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_jstrescape_pre ) { - char* (*preHookFunc) (char *pt); + char* (*preHookFunc) (char **pt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescape_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_jstrescape_pre[hIndex].func; - retVal___ = preHookFunc(pt); + retVal___ = preHookFunc(&pt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75944,11 +76163,11 @@ char* HP_strlib_jstrescapecpy(char *pt, const char *spt) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_jstrescapecpy_pre ) { - char* (*preHookFunc) (char *pt, const char *spt); + char* (*preHookFunc) (char **pt, const char **spt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jstrescapecpy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_jstrescapecpy_pre[hIndex].func; - retVal___ = preHookFunc(pt, spt); + retVal___ = preHookFunc(&pt, &spt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75971,11 +76190,11 @@ int HP_strlib_jmemescapecpy(char *pt, const char *spt, int size) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_strlib_jmemescapecpy_pre ) { - int (*preHookFunc) (char *pt, const char *spt, int *size); + int (*preHookFunc) (char **pt, const char **spt, int *size); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_jmemescapecpy_pre[hIndex].func; - retVal___ = preHookFunc(pt, spt, &size); + retVal___ = preHookFunc(&pt, &spt, &size); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -75986,10 +76205,10 @@ int HP_strlib_jmemescapecpy(char *pt, const char *spt, int size) { retVal___ = HPMHooks.source.strlib.jmemescapecpy(pt, spt, size); } if( HPMHooks.count.HP_strlib_jmemescapecpy_post ) { - int (*postHookFunc) (int retVal___, char *pt, const char *spt, int *size); + int (*postHookFunc) (int retVal___, char *pt, const char *spt, int size); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_jmemescapecpy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_jmemescapecpy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, pt, spt, &size); + retVal___ = postHookFunc(retVal___, pt, spt, size); } } return retVal___; @@ -75998,11 +76217,11 @@ int HP_strlib_remove_control_chars_(char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_strlib_remove_control_chars__pre ) { - int (*preHookFunc) (char *str); + int (*preHookFunc) (char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_remove_control_chars__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_remove_control_chars__pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76025,11 +76244,11 @@ char* HP_strlib_trim_(char *str) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_trim__pre ) { - char* (*preHookFunc) (char *str); + char* (*preHookFunc) (char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_trim__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_trim__pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76052,11 +76271,11 @@ char* HP_strlib_normalize_name_(char *str, const char *delims) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_normalize_name__pre ) { - char* (*preHookFunc) (char *str, const char *delims); + char* (*preHookFunc) (char **str, const char **delims); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_normalize_name__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_normalize_name__pre[hIndex].func; - retVal___ = preHookFunc(str, delims); + retVal___ = preHookFunc(&str, &delims); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76079,11 +76298,11 @@ const char* HP_strlib_stristr_(const char *haystack, const char *needle) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_stristr__pre ) { - const char* (*preHookFunc) (const char *haystack, const char *needle); + const char* (*preHookFunc) (const char **haystack, const char **needle); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_stristr__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_stristr__pre[hIndex].func; - retVal___ = preHookFunc(haystack, needle); + retVal___ = preHookFunc(&haystack, &needle); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76106,11 +76325,11 @@ size_t HP_strlib_strnlen_(const char *string, size_t maxlen) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_strlib_strnlen__pre ) { - size_t (*preHookFunc) (const char *string, size_t *maxlen); + size_t (*preHookFunc) (const char **string, size_t *maxlen); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_strnlen__pre[hIndex].func; - retVal___ = preHookFunc(string, &maxlen); + retVal___ = preHookFunc(&string, &maxlen); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76121,10 +76340,10 @@ size_t HP_strlib_strnlen_(const char *string, size_t maxlen) { retVal___ = HPMHooks.source.strlib.strnlen_(string, maxlen); } if( HPMHooks.count.HP_strlib_strnlen__post ) { - size_t (*postHookFunc) (size_t retVal___, const char *string, size_t *maxlen); + size_t (*postHookFunc) (size_t retVal___, const char *string, size_t maxlen); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strnlen__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_strnlen__post[hIndex].func; - retVal___ = postHookFunc(retVal___, string, &maxlen); + retVal___ = postHookFunc(retVal___, string, maxlen); } } return retVal___; @@ -76133,11 +76352,11 @@ char* HP_strlib_strtok_r_(char *s1, const char *s2, char **lasts) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_strtok_r__pre ) { - char* (*preHookFunc) (char *s1, const char *s2, char **lasts); + char* (*preHookFunc) (char **s1, const char **s2, char ***lasts); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strtok_r__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_strtok_r__pre[hIndex].func; - retVal___ = preHookFunc(s1, s2, lasts); + retVal___ = preHookFunc(&s1, &s2, &lasts); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76160,11 +76379,11 @@ int HP_strlib_e_mail_check_(char *email) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_strlib_e_mail_check__pre ) { - int (*preHookFunc) (char *email); + int (*preHookFunc) (char **email); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_e_mail_check__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_e_mail_check__pre[hIndex].func; - retVal___ = preHookFunc(email); + retVal___ = preHookFunc(&email); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76187,11 +76406,11 @@ int HP_strlib_config_switch_(const char *str) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_strlib_config_switch__pre ) { - int (*preHookFunc) (const char *str); + int (*preHookFunc) (const char **str); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_config_switch__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_config_switch__pre[hIndex].func; - retVal___ = preHookFunc(str); + retVal___ = preHookFunc(&str); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76214,11 +76433,11 @@ char* HP_strlib_safestrncpy_(char *dst, const char *src, size_t n) { int hIndex = 0; char* retVal___ = NULL; if( HPMHooks.count.HP_strlib_safestrncpy__pre ) { - char* (*preHookFunc) (char *dst, const char *src, size_t *n); + char* (*preHookFunc) (char **dst, const char **src, size_t *n); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_safestrncpy__pre[hIndex].func; - retVal___ = preHookFunc(dst, src, &n); + retVal___ = preHookFunc(&dst, &src, &n); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76229,10 +76448,10 @@ char* HP_strlib_safestrncpy_(char *dst, const char *src, size_t n) { retVal___ = HPMHooks.source.strlib.safestrncpy_(dst, src, n); } if( HPMHooks.count.HP_strlib_safestrncpy__post ) { - char* (*postHookFunc) (char* retVal___, char *dst, const char *src, size_t *n); + char* (*postHookFunc) (char* retVal___, char *dst, const char *src, size_t n); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrncpy__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_safestrncpy__post[hIndex].func; - retVal___ = postHookFunc(retVal___, dst, src, &n); + retVal___ = postHookFunc(retVal___, dst, src, n); } } return retVal___; @@ -76241,11 +76460,11 @@ size_t HP_strlib_safestrnlen_(const char *string, size_t maxlen) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_strlib_safestrnlen__pre ) { - size_t (*preHookFunc) (const char *string, size_t *maxlen); + size_t (*preHookFunc) (const char **string, size_t *maxlen); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_safestrnlen__pre[hIndex].func; - retVal___ = preHookFunc(string, &maxlen); + retVal___ = preHookFunc(&string, &maxlen); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76256,10 +76475,10 @@ size_t HP_strlib_safestrnlen_(const char *string, size_t maxlen) { retVal___ = HPMHooks.source.strlib.safestrnlen_(string, maxlen); } if( HPMHooks.count.HP_strlib_safestrnlen__post ) { - size_t (*postHookFunc) (size_t retVal___, const char *string, size_t *maxlen); + size_t (*postHookFunc) (size_t retVal___, const char *string, size_t maxlen); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_safestrnlen__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_safestrnlen__post[hIndex].func; - retVal___ = postHookFunc(retVal___, string, &maxlen); + retVal___ = postHookFunc(retVal___, string, maxlen); } } return retVal___; @@ -76268,11 +76487,11 @@ int HP_strlib_strline_(const char *str, size_t pos) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_strlib_strline__pre ) { - int (*preHookFunc) (const char *str, size_t *pos); + int (*preHookFunc) (const char **str, size_t *pos); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_strline__pre[hIndex].func; - retVal___ = preHookFunc(str, &pos); + retVal___ = preHookFunc(&str, &pos); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76283,23 +76502,23 @@ int HP_strlib_strline_(const char *str, size_t pos) { retVal___ = HPMHooks.source.strlib.strline_(str, pos); } if( HPMHooks.count.HP_strlib_strline__post ) { - int (*postHookFunc) (int retVal___, const char *str, size_t *pos); + int (*postHookFunc) (int retVal___, const char *str, size_t pos); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_strline__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_strline__post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &pos); + retVal___ = postHookFunc(retVal___, str, pos); } } return retVal___; } -bool HP_strlib_bin2hex_(char *output, unsigned char *input, size_t count) { +bool HP_strlib_bin2hex_(char *output, const unsigned char *input, size_t count) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_strlib_bin2hex__pre ) { - bool (*preHookFunc) (char *output, unsigned char *input, size_t *count); + bool (*preHookFunc) (char **output, const unsigned char **input, size_t *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_strlib_bin2hex__pre[hIndex].func; - retVal___ = preHookFunc(output, input, &count); + retVal___ = preHookFunc(&output, &input, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76310,24 +76529,24 @@ bool HP_strlib_bin2hex_(char *output, unsigned char *input, size_t count) { retVal___ = HPMHooks.source.strlib.bin2hex_(output, input, count); } if( HPMHooks.count.HP_strlib_bin2hex__post ) { - bool (*postHookFunc) (bool retVal___, char *output, unsigned char *input, size_t *count); + bool (*postHookFunc) (bool retVal___, char *output, const unsigned char *input, size_t count); for(hIndex = 0; hIndex < HPMHooks.count.HP_strlib_bin2hex__post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_strlib_bin2hex__post[hIndex].func; - retVal___ = postHookFunc(retVal___, output, input, &count); + retVal___ = postHookFunc(retVal___, output, input, count); } } return retVal___; } -/* sv */ +/* sv_interface */ int HP_sv_parse_next(struct s_svstate *svstate) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sv_parse_next_pre ) { - int (*preHookFunc) (struct s_svstate *svstate); + int (*preHookFunc) (struct s_svstate **svstate); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_next_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_parse_next_pre[hIndex].func; - retVal___ = preHookFunc(svstate); + retVal___ = preHookFunc(&svstate); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76350,11 +76569,11 @@ int HP_sv_parse(const char *str, int len, int startoff, char delim, int *out_pos int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sv_parse_pre ) { - int (*preHookFunc) (const char *str, int *len, int *startoff, char *delim, int *out_pos, int *npos, enum e_svopt *opt); + int (*preHookFunc) (const char **str, int *len, int *startoff, char *delim, int **out_pos, int *npos, enum e_svopt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_parse_pre[hIndex].func; - retVal___ = preHookFunc(str, &len, &startoff, &delim, out_pos, &npos, &opt); + retVal___ = preHookFunc(&str, &len, &startoff, &delim, &out_pos, &npos, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76365,10 +76584,10 @@ int HP_sv_parse(const char *str, int len, int startoff, char delim, int *out_pos retVal___ = HPMHooks.source.sv.parse(str, len, startoff, delim, out_pos, npos, opt); } if( HPMHooks.count.HP_sv_parse_post ) { - int (*postHookFunc) (int retVal___, const char *str, int *len, int *startoff, char *delim, int *out_pos, int *npos, enum e_svopt *opt); + int (*postHookFunc) (int retVal___, const char *str, int len, int startoff, char delim, int *out_pos, int npos, enum e_svopt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_parse_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sv_parse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &len, &startoff, &delim, out_pos, &npos, &opt); + retVal___ = postHookFunc(retVal___, str, len, startoff, delim, out_pos, npos, opt); } } return retVal___; @@ -76377,11 +76596,11 @@ int HP_sv_split(char *str, int len, int startoff, char delim, char **out_fields, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_sv_split_pre ) { - int (*preHookFunc) (char *str, int *len, int *startoff, char *delim, char **out_fields, int *nfields, enum e_svopt *opt); + int (*preHookFunc) (char **str, int *len, int *startoff, char *delim, char ***out_fields, int *nfields, enum e_svopt *opt); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_split_pre[hIndex].func; - retVal___ = preHookFunc(str, &len, &startoff, &delim, out_fields, &nfields, &opt); + retVal___ = preHookFunc(&str, &len, &startoff, &delim, &out_fields, &nfields, &opt); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76392,10 +76611,10 @@ int HP_sv_split(char *str, int len, int startoff, char delim, char **out_fields, retVal___ = HPMHooks.source.sv.split(str, len, startoff, delim, out_fields, nfields, opt); } if( HPMHooks.count.HP_sv_split_post ) { - int (*postHookFunc) (int retVal___, char *str, int *len, int *startoff, char *delim, char **out_fields, int *nfields, enum e_svopt *opt); + int (*postHookFunc) (int retVal___, char *str, int len, int startoff, char delim, char **out_fields, int nfields, enum e_svopt opt); for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_split_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sv_split_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &len, &startoff, &delim, out_fields, &nfields, &opt); + retVal___ = postHookFunc(retVal___, str, len, startoff, delim, out_fields, nfields, opt); } } return retVal___; @@ -76404,11 +76623,11 @@ size_t HP_sv_escape_c(char *out_dest, const char *src, size_t len, const char *e int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_sv_escape_c_pre ) { - size_t (*preHookFunc) (char *out_dest, const char *src, size_t *len, const char *escapes); + size_t (*preHookFunc) (char **out_dest, const char **src, size_t *len, const char **escapes); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_escape_c_pre[hIndex].func; - retVal___ = preHookFunc(out_dest, src, &len, escapes); + retVal___ = preHookFunc(&out_dest, &src, &len, &escapes); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76419,10 +76638,10 @@ size_t HP_sv_escape_c(char *out_dest, const char *src, size_t len, const char *e retVal___ = HPMHooks.source.sv.escape_c(out_dest, src, len, escapes); } if( HPMHooks.count.HP_sv_escape_c_post ) { - size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t *len, const char *escapes); + size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t len, const char *escapes); for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_escape_c_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sv_escape_c_post[hIndex].func; - retVal___ = postHookFunc(retVal___, out_dest, src, &len, escapes); + retVal___ = postHookFunc(retVal___, out_dest, src, len, escapes); } } return retVal___; @@ -76431,11 +76650,11 @@ size_t HP_sv_unescape_c(char *out_dest, const char *src, size_t len) { int hIndex = 0; size_t retVal___ = 0; if( HPMHooks.count.HP_sv_unescape_c_pre ) { - size_t (*preHookFunc) (char *out_dest, const char *src, size_t *len); + size_t (*preHookFunc) (char **out_dest, const char **src, size_t *len); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_unescape_c_pre[hIndex].func; - retVal___ = preHookFunc(out_dest, src, &len); + retVal___ = preHookFunc(&out_dest, &src, &len); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76446,10 +76665,10 @@ size_t HP_sv_unescape_c(char *out_dest, const char *src, size_t len) { retVal___ = HPMHooks.source.sv.unescape_c(out_dest, src, len); } if( HPMHooks.count.HP_sv_unescape_c_post ) { - size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t *len); + size_t (*postHookFunc) (size_t retVal___, char *out_dest, const char *src, size_t len); for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_unescape_c_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sv_unescape_c_post[hIndex].func; - retVal___ = postHookFunc(retVal___, out_dest, src, &len); + retVal___ = postHookFunc(retVal___, out_dest, src, len); } } return retVal___; @@ -76458,11 +76677,11 @@ const char* HP_sv_skip_escaped_c(const char *p) { int hIndex = 0; const char* retVal___ = NULL; if( HPMHooks.count.HP_sv_skip_escaped_c_pre ) { - const char* (*preHookFunc) (const char *p); + const char* (*preHookFunc) (const char **p); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_skip_escaped_c_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_skip_escaped_c_pre[hIndex].func; - retVal___ = preHookFunc(p); + retVal___ = preHookFunc(&p); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76485,11 +76704,11 @@ bool HP_sv_readdb(const char *directory, const char *filename, char delim, int m int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_sv_readdb_pre ) { - bool (*preHookFunc) (const char *directory, const char *filename, char *delim, int *mincols, int *maxcols, int *maxrows, bool ( *parseproc ) (char *fields[], int columns, int current)); + bool (*preHookFunc) (const char **directory, const char **filename, char *delim, int *mincols, int *maxcols, int *maxrows, bool ( **parseproc ) (char *fields[], int columns, int current)); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_sv_readdb_pre[hIndex].func; - retVal___ = preHookFunc(directory, filename, &delim, &mincols, &maxcols, &maxrows, parseproc); + retVal___ = preHookFunc(&directory, &filename, &delim, &mincols, &maxcols, &maxrows, &parseproc); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -76500,15 +76719,15 @@ bool HP_sv_readdb(const char *directory, const char *filename, char delim, int m retVal___ = HPMHooks.source.sv.readdb(directory, filename, delim, mincols, maxcols, maxrows, parseproc); } if( HPMHooks.count.HP_sv_readdb_post ) { - bool (*postHookFunc) (bool retVal___, const char *directory, const char *filename, char *delim, int *mincols, int *maxcols, int *maxrows, bool ( *parseproc ) (char *fields[], int columns, int current)); + bool (*postHookFunc) (bool retVal___, const char *directory, const char *filename, char delim, int mincols, int maxcols, int maxrows, bool ( *parseproc ) (char *fields[], int columns, int current)); for(hIndex = 0; hIndex < HPMHooks.count.HP_sv_readdb_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_sv_readdb_post[hIndex].func; - retVal___ = postHookFunc(retVal___, directory, filename, &delim, &mincols, &maxcols, &maxrows, parseproc); + retVal___ = postHookFunc(retVal___, directory, filename, delim, mincols, maxcols, maxrows, parseproc); } } return retVal___; } -/* sysinfo */ +/* sysinfo_interface */ int HP_sysinfo_getpagesize(void) { int hIndex = 0; int retVal___ = 0; @@ -76992,7 +77211,7 @@ void HP_sysinfo_final(void) { } return; } -/* timer */ +/* timer_interface */ int64 HP_timer_gettick(void) { int hIndex = 0; int64 retVal___ = 0; @@ -77066,10 +77285,10 @@ int HP_timer_add(int64 tick, TimerFunc func, int id, intptr_t data) { retVal___ = HPMHooks.source.timer.add(tick, func, id, data); } if( HPMHooks.count.HP_timer_add_post ) { - int (*postHookFunc) (int retVal___, int64 *tick, TimerFunc *func, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int64 tick, TimerFunc func, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_add_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tick, &func, &id, &data); + retVal___ = postHookFunc(retVal___, tick, func, id, data); } } return retVal___; @@ -77093,10 +77312,10 @@ int HP_timer_add_interval(int64 tick, TimerFunc func, int id, intptr_t data, int retVal___ = HPMHooks.source.timer.add_interval(tick, func, id, data, interval); } if( HPMHooks.count.HP_timer_add_interval_post ) { - int (*postHookFunc) (int retVal___, int64 *tick, TimerFunc *func, int *id, intptr_t *data, int *interval); + int (*postHookFunc) (int retVal___, int64 tick, TimerFunc func, int id, intptr_t data, int interval); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_interval_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_add_interval_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tick, &func, &id, &data, &interval); + retVal___ = postHookFunc(retVal___, tick, func, id, data, interval); } } return retVal___; @@ -77120,10 +77339,10 @@ const struct TimerData* HP_timer_get(int tid) { retVal___ = HPMHooks.source.timer.get(tid); } if( HPMHooks.count.HP_timer_get_post ) { - const struct TimerData* (*postHookFunc) (const struct TimerData* retVal___, int *tid); + const struct TimerData* (*postHookFunc) (const struct TimerData* retVal___, int tid); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_get_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_get_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid); + retVal___ = postHookFunc(retVal___, tid); } } return retVal___; @@ -77147,10 +77366,10 @@ int HP_timer_delete(int tid, TimerFunc func) { retVal___ = HPMHooks.source.timer.delete(tid, func); } if( HPMHooks.count.HP_timer_delete_post ) { - int (*postHookFunc) (int retVal___, int *tid, TimerFunc *func); + int (*postHookFunc) (int retVal___, int tid, TimerFunc func); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_delete_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_delete_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &func); + retVal___ = postHookFunc(retVal___, tid, func); } } return retVal___; @@ -77174,10 +77393,10 @@ int64 HP_timer_addtick(int tid, int64 tick) { retVal___ = HPMHooks.source.timer.addtick(tid, tick); } if( HPMHooks.count.HP_timer_addtick_post ) { - int64 (*postHookFunc) (int64 retVal___, int *tid, int64 *tick); + int64 (*postHookFunc) (int64 retVal___, int tid, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_addtick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_addtick_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick); + retVal___ = postHookFunc(retVal___, tid, tick); } } return retVal___; @@ -77201,10 +77420,10 @@ int64 HP_timer_settick(int tid, int64 tick) { retVal___ = HPMHooks.source.timer.settick(tid, tick); } if( HPMHooks.count.HP_timer_settick_post ) { - int64 (*postHookFunc) (int64 retVal___, int *tid, int64 *tick); + int64 (*postHookFunc) (int64 retVal___, int tid, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_settick_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_settick_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick); + retVal___ = postHookFunc(retVal___, tid, tick); } } return retVal___; @@ -77213,11 +77432,11 @@ int HP_timer_add_func_list(TimerFunc func, char *name) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_timer_add_func_list_pre ) { - int (*preHookFunc) (TimerFunc *func, char *name); + int (*preHookFunc) (TimerFunc *func, char **name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_timer_add_func_list_pre[hIndex].func; - retVal___ = preHookFunc(&func, name); + retVal___ = preHookFunc(&func, &name); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77228,10 +77447,10 @@ int HP_timer_add_func_list(TimerFunc func, char *name) { retVal___ = HPMHooks.source.timer.add_func_list(func, name); } if( HPMHooks.count.HP_timer_add_func_list_post ) { - int (*postHookFunc) (int retVal___, TimerFunc *func, char *name); + int (*postHookFunc) (int retVal___, TimerFunc func, char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_add_func_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_add_func_list_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &func, name); + retVal___ = postHookFunc(retVal___, func, name); } } return retVal___; @@ -77282,10 +77501,10 @@ int HP_timer_perform(int64 tick) { retVal___ = HPMHooks.source.timer.perform(tick); } if( HPMHooks.count.HP_timer_perform_post ) { - int (*postHookFunc) (int retVal___, int64 *tick); + int (*postHookFunc) (int retVal___, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_timer_perform_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_timer_perform_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tick); + retVal___ = postHookFunc(retVal___, tick); } } return retVal___; @@ -77342,15 +77561,15 @@ void HP_timer_final(void) { } return; } -/* trade */ +/* trade_interface */ void HP_trade_request(struct map_session_data *sd, struct map_session_data *target_sd) { int hIndex = 0; if( HPMHooks.count.HP_trade_request_pre ) { - void (*preHookFunc) (struct map_session_data *sd, struct map_session_data *target_sd); + void (*preHookFunc) (struct map_session_data **sd, struct map_session_data **target_sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_request_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_request_pre[hIndex].func; - preHookFunc(sd, target_sd); + preHookFunc(&sd, &target_sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77372,11 +77591,11 @@ void HP_trade_request(struct map_session_data *sd, struct map_session_data *targ void HP_trade_ack(struct map_session_data *sd, int type) { int hIndex = 0; if( HPMHooks.count.HP_trade_ack_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *type); + void (*preHookFunc) (struct map_session_data **sd, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_ack_pre[hIndex].func; - preHookFunc(sd, &type); + preHookFunc(&sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77387,10 +77606,10 @@ void HP_trade_ack(struct map_session_data *sd, int type) { HPMHooks.source.trade.ack(sd, type); } if( HPMHooks.count.HP_trade_ack_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *type); + void (*postHookFunc) (struct map_session_data *sd, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_trade_ack_post[hIndex].func; - postHookFunc(sd, &type); + postHookFunc(sd, type); } } return; @@ -77399,11 +77618,11 @@ int HP_trade_check_impossible(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_trade_check_impossible_pre ) { - int (*preHookFunc) (struct map_session_data *sd); + int (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_check_impossible_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_check_impossible_pre[hIndex].func; - retVal___ = preHookFunc(sd); + retVal___ = preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77426,11 +77645,11 @@ int HP_trade_check(struct map_session_data *sd, struct map_session_data *tsd) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_trade_check_pre ) { - int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd); + int (*preHookFunc) (struct map_session_data **sd, struct map_session_data **tsd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_check_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_check_pre[hIndex].func; - retVal___ = preHookFunc(sd, tsd); + retVal___ = preHookFunc(&sd, &tsd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77452,11 +77671,11 @@ int HP_trade_check(struct map_session_data *sd, struct map_session_data *tsd) { void HP_trade_additem(struct map_session_data *sd, short index, short amount) { int hIndex = 0; if( HPMHooks.count.HP_trade_additem_pre ) { - void (*preHookFunc) (struct map_session_data *sd, short *index, short *amount); + void (*preHookFunc) (struct map_session_data **sd, short *index, short *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_additem_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_additem_pre[hIndex].func; - preHookFunc(sd, &index, &amount); + preHookFunc(&sd, &index, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77467,10 +77686,10 @@ void HP_trade_additem(struct map_session_data *sd, short index, short amount) { HPMHooks.source.trade.additem(sd, index, amount); } if( HPMHooks.count.HP_trade_additem_post ) { - void (*postHookFunc) (struct map_session_data *sd, short *index, short *amount); + void (*postHookFunc) (struct map_session_data *sd, short index, short amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_additem_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_trade_additem_post[hIndex].func; - postHookFunc(sd, &index, &amount); + postHookFunc(sd, index, amount); } } return; @@ -77478,11 +77697,11 @@ void HP_trade_additem(struct map_session_data *sd, short index, short amount) { void HP_trade_addzeny(struct map_session_data *sd, int amount) { int hIndex = 0; if( HPMHooks.count.HP_trade_addzeny_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *amount); + void (*preHookFunc) (struct map_session_data **sd, int *amount); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_addzeny_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_addzeny_pre[hIndex].func; - preHookFunc(sd, &amount); + preHookFunc(&sd, &amount); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77493,10 +77712,10 @@ void HP_trade_addzeny(struct map_session_data *sd, int amount) { HPMHooks.source.trade.addzeny(sd, amount); } if( HPMHooks.count.HP_trade_addzeny_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *amount); + void (*postHookFunc) (struct map_session_data *sd, int amount); for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_addzeny_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_trade_addzeny_post[hIndex].func; - postHookFunc(sd, &amount); + postHookFunc(sd, amount); } } return; @@ -77504,11 +77723,11 @@ void HP_trade_addzeny(struct map_session_data *sd, int amount) { void HP_trade_ok(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_trade_ok_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_ok_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_ok_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77530,11 +77749,11 @@ void HP_trade_ok(struct map_session_data *sd) { void HP_trade_cancel(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_trade_cancel_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_cancel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_cancel_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77556,11 +77775,11 @@ void HP_trade_cancel(struct map_session_data *sd) { void HP_trade_commit(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_trade_commit_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_commit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_trade_commit_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77579,7 +77798,7 @@ void HP_trade_commit(struct map_session_data *sd) { } return; } -/* unit */ +/* unit_interface */ int HP_unit_init(bool minimal) { int hIndex = 0; int retVal___ = 0; @@ -77599,10 +77818,10 @@ int HP_unit_init(bool minimal) { retVal___ = HPMHooks.source.unit.init(minimal); } if( HPMHooks.count.HP_unit_init_post ) { - int (*postHookFunc) (int retVal___, bool *minimal); + int (*postHookFunc) (int retVal___, bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_init_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &minimal); + retVal___ = postHookFunc(retVal___, minimal); } } return retVal___; @@ -77638,11 +77857,11 @@ struct unit_data* HP_unit_bl2ud(struct block_list *bl) { int hIndex = 0; struct unit_data* retVal___ = NULL; if( HPMHooks.count.HP_unit_bl2ud_pre ) { - struct unit_data* (*preHookFunc) (struct block_list *bl); + struct unit_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_bl2ud_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_bl2ud_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77665,11 +77884,11 @@ struct unit_data* HP_unit_bl2ud2(struct block_list *bl) { int hIndex = 0; struct unit_data* retVal___ = NULL; if( HPMHooks.count.HP_unit_bl2ud2_pre ) { - struct unit_data* (*preHookFunc) (struct block_list *bl); + struct unit_data* (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_bl2ud2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_bl2ud2_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77688,6 +77907,32 @@ struct unit_data* HP_unit_bl2ud2(struct block_list *bl) { } return retVal___; } +void HP_unit_init_ud(struct unit_data *ud) { + int hIndex = 0; + if( HPMHooks.count.HP_unit_init_ud_pre ) { + void (*preHookFunc) (struct unit_data **ud); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_init_ud_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_unit_init_ud_pre[hIndex].func; + preHookFunc(&ud); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.unit.init_ud(ud); + } + if( HPMHooks.count.HP_unit_init_ud_post ) { + void (*postHookFunc) (struct unit_data *ud); + for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_init_ud_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_unit_init_ud_post[hIndex].func; + postHookFunc(ud); + } + } + return; +} int HP_unit_attack_timer(int tid, int64 tick, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; @@ -77707,10 +77952,10 @@ int HP_unit_attack_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.attack_timer(tid, tick, id, data); } if( HPMHooks.count.HP_unit_attack_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_attack_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -77734,10 +77979,10 @@ int HP_unit_walktoxy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.walktoxy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_unit_walktoxy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_walktoxy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -77746,11 +77991,11 @@ int HP_unit_walktoxy_sub(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_walktoxy_sub_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_walktoxy_sub_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77788,10 +78033,10 @@ int HP_unit_delay_walktoxy_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.delay_walktoxy_timer(tid, tick, id, data); } if( HPMHooks.count.HP_unit_delay_walktoxy_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_delay_walktoxy_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_delay_walktoxy_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -77800,11 +78045,11 @@ int HP_unit_walktoxy(struct block_list *bl, short x, short y, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_walktoxy_pre ) { - int (*preHookFunc) (struct block_list *bl, short *x, short *y, int *flag); + int (*preHookFunc) (struct block_list **bl, short *x, short *y, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_walktoxy_pre[hIndex].func; - retVal___ = preHookFunc(bl, &x, &y, &flag); + retVal___ = preHookFunc(&bl, &x, &y, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77815,10 +78060,10 @@ int HP_unit_walktoxy(struct block_list *bl, short x, short y, int flag) { retVal___ = HPMHooks.source.unit.walktoxy(bl, x, y, flag); } if( HPMHooks.count.HP_unit_walktoxy_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, short *x, short *y, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, short x, short y, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_walktoxy_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &x, &y, &flag); + retVal___ = postHookFunc(retVal___, bl, x, y, flag); } } return retVal___; @@ -77842,10 +78087,10 @@ int HP_unit_walktobl_sub(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.walktobl_sub(tid, tick, id, data); } if( HPMHooks.count.HP_unit_walktobl_sub_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktobl_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_walktobl_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -77854,11 +78099,11 @@ int HP_unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, i int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_walktobl_pre ) { - int (*preHookFunc) (struct block_list *bl, struct block_list *tbl, int *range, int *flag); + int (*preHookFunc) (struct block_list **bl, struct block_list **tbl, int *range, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktobl_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_walktobl_pre[hIndex].func; - retVal___ = preHookFunc(bl, tbl, &range, &flag); + retVal___ = preHookFunc(&bl, &tbl, &range, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77869,10 +78114,10 @@ int HP_unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, i retVal___ = HPMHooks.source.unit.walktobl(bl, tbl, range, flag); } if( HPMHooks.count.HP_unit_walktobl_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, struct block_list *tbl, int *range, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, struct block_list *tbl, int range, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktobl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_walktobl_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, tbl, &range, &flag); + retVal___ = postHookFunc(retVal___, bl, tbl, range, flag); } } return retVal___; @@ -77881,11 +78126,11 @@ bool HP_unit_run(struct block_list *bl, struct map_session_data *sd, enum sc_typ int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_unit_run_pre ) { - bool (*preHookFunc) (struct block_list *bl, struct map_session_data *sd, enum sc_type *type); + bool (*preHookFunc) (struct block_list **bl, struct map_session_data **sd, enum sc_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_run_pre[hIndex].func; - retVal___ = preHookFunc(bl, sd, &type); + retVal___ = preHookFunc(&bl, &sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77896,10 +78141,10 @@ bool HP_unit_run(struct block_list *bl, struct map_session_data *sd, enum sc_typ retVal___ = HPMHooks.source.unit.run(bl, sd, type); } if( HPMHooks.count.HP_unit_run_post ) { - bool (*postHookFunc) (bool retVal___, struct block_list *bl, struct map_session_data *sd, enum sc_type *type); + bool (*postHookFunc) (bool retVal___, struct block_list *bl, struct map_session_data *sd, enum sc_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_run_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, sd, &type); + retVal___ = postHookFunc(retVal___, bl, sd, type); } } return retVal___; @@ -77907,11 +78152,11 @@ bool HP_unit_run(struct block_list *bl, struct map_session_data *sd, enum sc_typ void HP_unit_run_hit(struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type type) { int hIndex = 0; if( HPMHooks.count.HP_unit_run_hit_pre ) { - void (*preHookFunc) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type *type); + void (*preHookFunc) (struct block_list **bl, struct status_change **sc, struct map_session_data **sd, enum sc_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_hit_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_run_hit_pre[hIndex].func; - preHookFunc(bl, sc, sd, &type); + preHookFunc(&bl, &sc, &sd, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77922,10 +78167,10 @@ void HP_unit_run_hit(struct block_list *bl, struct status_change *sc, struct map HPMHooks.source.unit.run_hit(bl, sc, sd, type); } if( HPMHooks.count.HP_unit_run_hit_post ) { - void (*postHookFunc) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type *type); + void (*postHookFunc) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_hit_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_run_hit_post[hIndex].func; - postHookFunc(bl, sc, sd, &type); + postHookFunc(bl, sc, sd, type); } } return; @@ -77934,11 +78179,11 @@ int HP_unit_escape(struct block_list *bl, struct block_list *target, short dist) int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_escape_pre ) { - int (*preHookFunc) (struct block_list *bl, struct block_list *target, short *dist); + int (*preHookFunc) (struct block_list **bl, struct block_list **target, short *dist); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_escape_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_escape_pre[hIndex].func; - retVal___ = preHookFunc(bl, target, &dist); + retVal___ = preHookFunc(&bl, &target, &dist); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77949,10 +78194,10 @@ int HP_unit_escape(struct block_list *bl, struct block_list *target, short dist) retVal___ = HPMHooks.source.unit.escape(bl, target, dist); } if( HPMHooks.count.HP_unit_escape_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, struct block_list *target, short *dist); + int (*postHookFunc) (int retVal___, struct block_list *bl, struct block_list *target, short dist); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_escape_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_escape_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, target, &dist); + retVal___ = postHookFunc(retVal___, bl, target, dist); } } return retVal___; @@ -77961,11 +78206,11 @@ int HP_unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, b int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_movepos_pre ) { - int (*preHookFunc) (struct block_list *bl, short *dst_x, short *dst_y, int *easy, bool *checkpath); + int (*preHookFunc) (struct block_list **bl, short *dst_x, short *dst_y, int *easy, bool *checkpath); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_movepos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_movepos_pre[hIndex].func; - retVal___ = preHookFunc(bl, &dst_x, &dst_y, &easy, &checkpath); + retVal___ = preHookFunc(&bl, &dst_x, &dst_y, &easy, &checkpath); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -77976,10 +78221,10 @@ int HP_unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, b retVal___ = HPMHooks.source.unit.movepos(bl, dst_x, dst_y, easy, checkpath); } if( HPMHooks.count.HP_unit_movepos_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, short *dst_x, short *dst_y, int *easy, bool *checkpath); + int (*postHookFunc) (int retVal___, struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_movepos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_movepos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &dst_x, &dst_y, &easy, &checkpath); + retVal___ = postHookFunc(retVal___, bl, dst_x, dst_y, easy, checkpath); } } return retVal___; @@ -77988,11 +78233,11 @@ int HP_unit_setdir(struct block_list *bl, unsigned char dir) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_setdir_pre ) { - int (*preHookFunc) (struct block_list *bl, unsigned char *dir); + int (*preHookFunc) (struct block_list **bl, unsigned char *dir); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_setdir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_setdir_pre[hIndex].func; - retVal___ = preHookFunc(bl, &dir); + retVal___ = preHookFunc(&bl, &dir); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78003,10 +78248,10 @@ int HP_unit_setdir(struct block_list *bl, unsigned char dir) { retVal___ = HPMHooks.source.unit.setdir(bl, dir); } if( HPMHooks.count.HP_unit_setdir_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned char *dir); + int (*postHookFunc) (int retVal___, struct block_list *bl, unsigned char dir); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_setdir_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_setdir_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &dir); + retVal___ = postHookFunc(retVal___, bl, dir); } } return retVal___; @@ -78015,11 +78260,11 @@ uint8 HP_unit_getdir(struct block_list *bl) { int hIndex = 0; uint8 retVal___ = 0; if( HPMHooks.count.HP_unit_getdir_pre ) { - uint8 (*preHookFunc) (struct block_list *bl); + uint8 (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_getdir_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_getdir_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78042,11 +78287,11 @@ int HP_unit_blown(struct block_list *bl, int dx, int dy, int count, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_blown_pre ) { - int (*preHookFunc) (struct block_list *bl, int *dx, int *dy, int *count, int *flag); + int (*preHookFunc) (struct block_list **bl, int *dx, int *dy, int *count, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_blown_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_blown_pre[hIndex].func; - retVal___ = preHookFunc(bl, &dx, &dy, &count, &flag); + retVal___ = preHookFunc(&bl, &dx, &dy, &count, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78057,10 +78302,10 @@ int HP_unit_blown(struct block_list *bl, int dx, int dy, int count, int flag) { retVal___ = HPMHooks.source.unit.blown(bl, dx, dy, count, flag); } if( HPMHooks.count.HP_unit_blown_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *dx, int *dy, int *count, int *flag); + int (*postHookFunc) (int retVal___, struct block_list *bl, int dx, int dy, int count, int flag); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_blown_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_blown_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &dx, &dy, &count, &flag); + retVal___ = postHookFunc(retVal___, bl, dx, dy, count, flag); } } return retVal___; @@ -78069,11 +78314,11 @@ int HP_unit_warp(struct block_list *bl, short m, short x, short y, clr_type type int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_warp_pre ) { - int (*preHookFunc) (struct block_list *bl, short *m, short *x, short *y, clr_type *type); + int (*preHookFunc) (struct block_list **bl, short *m, short *x, short *y, clr_type *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_warp_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_warp_pre[hIndex].func; - retVal___ = preHookFunc(bl, &m, &x, &y, &type); + retVal___ = preHookFunc(&bl, &m, &x, &y, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78084,10 +78329,10 @@ int HP_unit_warp(struct block_list *bl, short m, short x, short y, clr_type type retVal___ = HPMHooks.source.unit.warp(bl, m, x, y, type); } if( HPMHooks.count.HP_unit_warp_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, short *m, short *x, short *y, clr_type *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, short m, short x, short y, clr_type type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_warp_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_warp_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &m, &x, &y, &type); + retVal___ = postHookFunc(retVal___, bl, m, x, y, type); } } return retVal___; @@ -78096,11 +78341,11 @@ int HP_unit_stop_walking(struct block_list *bl, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_stop_walking_pre ) { - int (*preHookFunc) (struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_walking_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_stop_walking_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type); + retVal___ = preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78111,10 +78356,10 @@ int HP_unit_stop_walking(struct block_list *bl, int type) { retVal___ = HPMHooks.source.unit.stop_walking(bl, type); } if( HPMHooks.count.HP_unit_stop_walking_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_walking_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_stop_walking_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type); + retVal___ = postHookFunc(retVal___, bl, type); } } return retVal___; @@ -78123,11 +78368,11 @@ int HP_unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_skilluse_id_pre ) { - int (*preHookFunc) (struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **src, int *target_id, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_skilluse_id_pre[hIndex].func; - retVal___ = preHookFunc(src, &target_id, &skill_id, &skill_lv); + retVal___ = preHookFunc(&src, &target_id, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78138,10 +78383,10 @@ int HP_unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, retVal___ = HPMHooks.source.unit.skilluse_id(src, target_id, skill_id, skill_lv); } if( HPMHooks.count.HP_unit_skilluse_id_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_skilluse_id_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &target_id, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, src, target_id, skill_id, skill_lv); } } return retVal___; @@ -78165,10 +78410,10 @@ int HP_unit_step_timer(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.step_timer(tid, tick, id, data); } if( HPMHooks.count.HP_unit_step_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_step_timer_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_step_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -78176,11 +78421,11 @@ int HP_unit_step_timer(int tid, int64 tick, int id, intptr_t data) { void HP_unit_stop_stepaction(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_unit_stop_stepaction_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_stepaction_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_stop_stepaction_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78203,11 +78448,11 @@ int HP_unit_is_walking(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_is_walking_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_is_walking_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_is_walking_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78230,11 +78475,11 @@ int HP_unit_can_move(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_can_move_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_move_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_can_move_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78272,10 +78517,10 @@ int HP_unit_resume_running(int tid, int64 tick, int id, intptr_t data) { retVal___ = HPMHooks.source.unit.resume_running(tid, tick, id, data); } if( HPMHooks.count.HP_unit_resume_running_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + int (*postHookFunc) (int retVal___, int tid, int64 tick, int id, intptr_t data); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_resume_running_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_resume_running_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + retVal___ = postHookFunc(retVal___, tid, tick, id, data); } } return retVal___; @@ -78284,11 +78529,11 @@ int HP_unit_set_walkdelay(struct block_list *bl, int64 tick, int delay, int type int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_set_walkdelay_pre ) { - int (*preHookFunc) (struct block_list *bl, int64 *tick, int *delay, int *type); + int (*preHookFunc) (struct block_list **bl, int64 *tick, int *delay, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_walkdelay_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_set_walkdelay_pre[hIndex].func; - retVal___ = preHookFunc(bl, &tick, &delay, &type); + retVal___ = preHookFunc(&bl, &tick, &delay, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78299,10 +78544,10 @@ int HP_unit_set_walkdelay(struct block_list *bl, int64 tick, int delay, int type retVal___ = HPMHooks.source.unit.set_walkdelay(bl, tick, delay, type); } if( HPMHooks.count.HP_unit_set_walkdelay_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int64 *tick, int *delay, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int64 tick, int delay, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_walkdelay_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_set_walkdelay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &tick, &delay, &type); + retVal___ = postHookFunc(retVal___, bl, tick, delay, type); } } return retVal___; @@ -78311,11 +78556,11 @@ int HP_unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_skilluse_id2_pre ) { - int (*preHookFunc) (struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); + int (*preHookFunc) (struct block_list **src, int *target_id, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_skilluse_id2_pre[hIndex].func; - retVal___ = preHookFunc(src, &target_id, &skill_id, &skill_lv, &casttime, &castcancel); + retVal___ = preHookFunc(&src, &target_id, &skill_id, &skill_lv, &casttime, &castcancel); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78326,10 +78571,10 @@ int HP_unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, retVal___ = HPMHooks.source.unit.skilluse_id2(src, target_id, skill_id, skill_lv, casttime, castcancel); } if( HPMHooks.count.HP_unit_skilluse_id2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); + int (*postHookFunc) (int retVal___, struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_skilluse_id2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &target_id, &skill_id, &skill_lv, &casttime, &castcancel); + retVal___ = postHookFunc(retVal___, src, target_id, skill_id, skill_lv, casttime, castcancel); } } return retVal___; @@ -78338,11 +78583,11 @@ int HP_unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, u int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_skilluse_pos_pre ) { - int (*preHookFunc) (struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv); + int (*preHookFunc) (struct block_list **src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_skilluse_pos_pre[hIndex].func; - retVal___ = preHookFunc(src, &skill_x, &skill_y, &skill_id, &skill_lv); + retVal___ = preHookFunc(&src, &skill_x, &skill_y, &skill_id, &skill_lv); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78353,10 +78598,10 @@ int HP_unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, u retVal___ = HPMHooks.source.unit.skilluse_pos(src, skill_x, skill_y, skill_id, skill_lv); } if( HPMHooks.count.HP_unit_skilluse_pos_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv); + int (*postHookFunc) (int retVal___, struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_skilluse_pos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &skill_x, &skill_y, &skill_id, &skill_lv); + retVal___ = postHookFunc(retVal___, src, skill_x, skill_y, skill_id, skill_lv); } } return retVal___; @@ -78365,11 +78610,11 @@ int HP_unit_skilluse_pos2(struct block_list *src, short skill_x, short skill_y, int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_skilluse_pos2_pre ) { - int (*preHookFunc) (struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); + int (*preHookFunc) (struct block_list **src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos2_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_skilluse_pos2_pre[hIndex].func; - retVal___ = preHookFunc(src, &skill_x, &skill_y, &skill_id, &skill_lv, &casttime, &castcancel); + retVal___ = preHookFunc(&src, &skill_x, &skill_y, &skill_id, &skill_lv, &casttime, &castcancel); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78380,10 +78625,10 @@ int HP_unit_skilluse_pos2(struct block_list *src, short skill_x, short skill_y, retVal___ = HPMHooks.source.unit.skilluse_pos2(src, skill_x, skill_y, skill_id, skill_lv, casttime, castcancel); } if( HPMHooks.count.HP_unit_skilluse_pos2_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel); + int (*postHookFunc) (int retVal___, struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos2_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_skilluse_pos2_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &skill_x, &skill_y, &skill_id, &skill_lv, &casttime, &castcancel); + retVal___ = postHookFunc(retVal___, src, skill_x, skill_y, skill_id, skill_lv, casttime, castcancel); } } return retVal___; @@ -78392,11 +78637,11 @@ int HP_unit_set_target(struct unit_data *ud, int target_id) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_set_target_pre ) { - int (*preHookFunc) (struct unit_data *ud, int *target_id); + int (*preHookFunc) (struct unit_data **ud, int *target_id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_target_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_set_target_pre[hIndex].func; - retVal___ = preHookFunc(ud, &target_id); + retVal___ = preHookFunc(&ud, &target_id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78407,10 +78652,10 @@ int HP_unit_set_target(struct unit_data *ud, int target_id) { retVal___ = HPMHooks.source.unit.set_target(ud, target_id); } if( HPMHooks.count.HP_unit_set_target_post ) { - int (*postHookFunc) (int retVal___, struct unit_data *ud, int *target_id); + int (*postHookFunc) (int retVal___, struct unit_data *ud, int target_id); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_target_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_set_target_post[hIndex].func; - retVal___ = postHookFunc(retVal___, ud, &target_id); + retVal___ = postHookFunc(retVal___, ud, target_id); } } return retVal___; @@ -78418,11 +78663,11 @@ int HP_unit_set_target(struct unit_data *ud, int target_id) { void HP_unit_stop_attack(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_unit_stop_attack_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_stop_attack_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78445,11 +78690,11 @@ int HP_unit_unattackable(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_unattackable_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_unattackable_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_unattackable_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78472,11 +78717,11 @@ int HP_unit_attack(struct block_list *src, int target_id, int continuous) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_attack_pre ) { - int (*preHookFunc) (struct block_list *src, int *target_id, int *continuous); + int (*preHookFunc) (struct block_list **src, int *target_id, int *continuous); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_attack_pre[hIndex].func; - retVal___ = preHookFunc(src, &target_id, &continuous); + retVal___ = preHookFunc(&src, &target_id, &continuous); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78487,10 +78732,10 @@ int HP_unit_attack(struct block_list *src, int target_id, int continuous) { retVal___ = HPMHooks.source.unit.attack(src, target_id, continuous); } if( HPMHooks.count.HP_unit_attack_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *target_id, int *continuous); + int (*postHookFunc) (int retVal___, struct block_list *src, int target_id, int continuous); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &target_id, &continuous); + retVal___ = postHookFunc(retVal___, src, target_id, continuous); } } return retVal___; @@ -78499,11 +78744,11 @@ int HP_unit_cancel_combo(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_cancel_combo_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_cancel_combo_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_cancel_combo_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78526,11 +78771,11 @@ bool HP_unit_can_reach_pos(struct block_list *bl, int x, int y, int easy) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_unit_can_reach_pos_pre ) { - bool (*preHookFunc) (struct block_list *bl, int *x, int *y, int *easy); + bool (*preHookFunc) (struct block_list **bl, int *x, int *y, int *easy); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_pos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_can_reach_pos_pre[hIndex].func; - retVal___ = preHookFunc(bl, &x, &y, &easy); + retVal___ = preHookFunc(&bl, &x, &y, &easy); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78541,10 +78786,10 @@ bool HP_unit_can_reach_pos(struct block_list *bl, int x, int y, int easy) { retVal___ = HPMHooks.source.unit.can_reach_pos(bl, x, y, easy); } if( HPMHooks.count.HP_unit_can_reach_pos_post ) { - bool (*postHookFunc) (bool retVal___, struct block_list *bl, int *x, int *y, int *easy); + bool (*postHookFunc) (bool retVal___, struct block_list *bl, int x, int y, int easy); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_can_reach_pos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &x, &y, &easy); + retVal___ = postHookFunc(retVal___, bl, x, y, easy); } } return retVal___; @@ -78553,11 +78798,11 @@ bool HP_unit_can_reach_bl(struct block_list *bl, struct block_list *tbl, int ran int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_unit_can_reach_bl_pre ) { - bool (*preHookFunc) (struct block_list *bl, struct block_list *tbl, int *range, int *easy, short *x, short *y); + bool (*preHookFunc) (struct block_list **bl, struct block_list **tbl, int *range, int *easy, short **x, short **y); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_bl_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_can_reach_bl_pre[hIndex].func; - retVal___ = preHookFunc(bl, tbl, &range, &easy, x, y); + retVal___ = preHookFunc(&bl, &tbl, &range, &easy, &x, &y); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78568,10 +78813,10 @@ bool HP_unit_can_reach_bl(struct block_list *bl, struct block_list *tbl, int ran retVal___ = HPMHooks.source.unit.can_reach_bl(bl, tbl, range, easy, x, y); } if( HPMHooks.count.HP_unit_can_reach_bl_post ) { - bool (*postHookFunc) (bool retVal___, struct block_list *bl, struct block_list *tbl, int *range, int *easy, short *x, short *y); + bool (*postHookFunc) (bool retVal___, struct block_list *bl, struct block_list *tbl, int range, int easy, short *x, short *y); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_bl_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_can_reach_bl_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, tbl, &range, &easy, x, y); + retVal___ = postHookFunc(retVal___, bl, tbl, range, easy, x, y); } } return retVal___; @@ -78580,11 +78825,11 @@ int HP_unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_calc_pos_pre ) { - int (*preHookFunc) (struct block_list *bl, int *tx, int *ty, uint8 *dir); + int (*preHookFunc) (struct block_list **bl, int *tx, int *ty, uint8 *dir); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_calc_pos_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_calc_pos_pre[hIndex].func; - retVal___ = preHookFunc(bl, &tx, &ty, &dir); + retVal___ = preHookFunc(&bl, &tx, &ty, &dir); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78595,10 +78840,10 @@ int HP_unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir) { retVal___ = HPMHooks.source.unit.calc_pos(bl, tx, ty, dir); } if( HPMHooks.count.HP_unit_calc_pos_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *tx, int *ty, uint8 *dir); + int (*postHookFunc) (int retVal___, struct block_list *bl, int tx, int ty, uint8 dir); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_calc_pos_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_calc_pos_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &tx, &ty, &dir); + retVal___ = postHookFunc(retVal___, bl, tx, ty, dir); } } return retVal___; @@ -78607,11 +78852,11 @@ int HP_unit_attack_timer_sub(struct block_list *src, int tid, int64 tick) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_attack_timer_sub_pre ) { - int (*preHookFunc) (struct block_list *src, int *tid, int64 *tick); + int (*preHookFunc) (struct block_list **src, int *tid, int64 *tick); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_timer_sub_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_attack_timer_sub_pre[hIndex].func; - retVal___ = preHookFunc(src, &tid, &tick); + retVal___ = preHookFunc(&src, &tid, &tick); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78622,10 +78867,10 @@ int HP_unit_attack_timer_sub(struct block_list *src, int tid, int64 tick) { retVal___ = HPMHooks.source.unit.attack_timer_sub(src, tid, tick); } if( HPMHooks.count.HP_unit_attack_timer_sub_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, int *tid, int64 *tick); + int (*postHookFunc) (int retVal___, struct block_list *src, int tid, int64 tick); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_timer_sub_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_attack_timer_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, &tid, &tick); + retVal___ = postHookFunc(retVal___, src, tid, tick); } } return retVal___; @@ -78634,11 +78879,11 @@ int HP_unit_skillcastcancel(struct block_list *bl, int type) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_skillcastcancel_pre ) { - int (*preHookFunc) (struct block_list *bl, int *type); + int (*preHookFunc) (struct block_list **bl, int *type); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skillcastcancel_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_skillcastcancel_pre[hIndex].func; - retVal___ = preHookFunc(bl, &type); + retVal___ = preHookFunc(&bl, &type); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78649,10 +78894,10 @@ int HP_unit_skillcastcancel(struct block_list *bl, int type) { retVal___ = HPMHooks.source.unit.skillcastcancel(bl, type); } if( HPMHooks.count.HP_unit_skillcastcancel_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, int *type); + int (*postHookFunc) (int retVal___, struct block_list *bl, int type); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skillcastcancel_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_skillcastcancel_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &type); + retVal___ = postHookFunc(retVal___, bl, type); } } return retVal___; @@ -78660,11 +78905,11 @@ int HP_unit_skillcastcancel(struct block_list *bl, int type) { void HP_unit_dataset(struct block_list *bl) { int hIndex = 0; if( HPMHooks.count.HP_unit_dataset_pre ) { - void (*preHookFunc) (struct block_list *bl); + void (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_dataset_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_dataset_pre[hIndex].func; - preHookFunc(bl); + preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78687,11 +78932,11 @@ int HP_unit_counttargeted(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_counttargeted_pre ) { - int (*preHookFunc) (struct block_list *bl); + int (*preHookFunc) (struct block_list **bl); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_counttargeted_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_counttargeted_pre[hIndex].func; - retVal___ = preHookFunc(bl); + retVal___ = preHookFunc(&bl); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78714,11 +78959,11 @@ int HP_unit_fixdamage(struct block_list *src, struct block_list *target, int sde int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_fixdamage_pre ) { - int (*preHookFunc) (struct block_list *src, struct block_list *target, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); + int (*preHookFunc) (struct block_list **src, struct block_list **target, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_fixdamage_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_fixdamage_pre[hIndex].func; - retVal___ = preHookFunc(src, target, &sdelay, &ddelay, &damage, &div, &type, &damage2); + retVal___ = preHookFunc(&src, &target, &sdelay, &ddelay, &damage, &div, &type, &damage2); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78729,10 +78974,10 @@ int HP_unit_fixdamage(struct block_list *src, struct block_list *target, int sde retVal___ = HPMHooks.source.unit.fixdamage(src, target, sdelay, ddelay, damage, div, type, damage2); } if( HPMHooks.count.HP_unit_fixdamage_post ) { - int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int *sdelay, int *ddelay, int64 *damage, short *div, unsigned char *type, int64 *damage2); + int (*postHookFunc) (int retVal___, struct block_list *src, struct block_list *target, int sdelay, int ddelay, int64 damage, short div, unsigned char type, int64 damage2); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_fixdamage_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_fixdamage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, src, target, &sdelay, &ddelay, &damage, &div, &type, &damage2); + retVal___ = postHookFunc(retVal___, src, target, sdelay, ddelay, damage, div, type, damage2); } } return retVal___; @@ -78741,11 +78986,11 @@ int HP_unit_changeviewsize(struct block_list *bl, short size) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_changeviewsize_pre ) { - int (*preHookFunc) (struct block_list *bl, short *size); + int (*preHookFunc) (struct block_list **bl, short *size); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_changeviewsize_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_changeviewsize_pre[hIndex].func; - retVal___ = preHookFunc(bl, &size); + retVal___ = preHookFunc(&bl, &size); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78756,10 +79001,10 @@ int HP_unit_changeviewsize(struct block_list *bl, short size) { retVal___ = HPMHooks.source.unit.changeviewsize(bl, size); } if( HPMHooks.count.HP_unit_changeviewsize_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, short *size); + int (*postHookFunc) (int retVal___, struct block_list *bl, short size); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_changeviewsize_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_changeviewsize_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &size); + retVal___ = postHookFunc(retVal___, bl, size); } } return retVal___; @@ -78768,11 +79013,11 @@ int HP_unit_remove_map(struct block_list *bl, clr_type clrtype, const char *file int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_remove_map_pre ) { - int (*preHookFunc) (struct block_list *bl, clr_type *clrtype, const char *file, int *line, const char *func); + int (*preHookFunc) (struct block_list **bl, clr_type *clrtype, const char **file, int *line, const char **func); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_remove_map_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_remove_map_pre[hIndex].func; - retVal___ = preHookFunc(bl, &clrtype, file, &line, func); + retVal___ = preHookFunc(&bl, &clrtype, &file, &line, &func); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78783,10 +79028,10 @@ int HP_unit_remove_map(struct block_list *bl, clr_type clrtype, const char *file retVal___ = HPMHooks.source.unit.remove_map(bl, clrtype, file, line, func); } if( HPMHooks.count.HP_unit_remove_map_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, clr_type *clrtype, const char *file, int *line, const char *func); + int (*postHookFunc) (int retVal___, struct block_list *bl, clr_type clrtype, const char *file, int line, const char *func); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_remove_map_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_remove_map_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &clrtype, file, &line, func); + retVal___ = postHookFunc(retVal___, bl, clrtype, file, line, func); } } return retVal___; @@ -78794,11 +79039,11 @@ int HP_unit_remove_map(struct block_list *bl, clr_type clrtype, const char *file void HP_unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype) { int hIndex = 0; if( HPMHooks.count.HP_unit_remove_map_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd, clr_type *clrtype); + void (*preHookFunc) (struct map_session_data **sd, clr_type *clrtype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_remove_map_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_remove_map_pc_pre[hIndex].func; - preHookFunc(sd, &clrtype); + preHookFunc(&sd, &clrtype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78809,10 +79054,10 @@ void HP_unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype) { HPMHooks.source.unit.remove_map_pc(sd, clrtype); } if( HPMHooks.count.HP_unit_remove_map_pc_post ) { - void (*postHookFunc) (struct map_session_data *sd, clr_type *clrtype); + void (*postHookFunc) (struct map_session_data *sd, clr_type clrtype); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_remove_map_pc_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_remove_map_pc_post[hIndex].func; - postHookFunc(sd, &clrtype); + postHookFunc(sd, clrtype); } } return; @@ -78820,11 +79065,11 @@ void HP_unit_remove_map_pc(struct map_session_data *sd, clr_type clrtype) { void HP_unit_free_pc(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_unit_free_pc_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_free_pc_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_free_pc_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78847,11 +79092,11 @@ int HP_unit_free(struct block_list *bl, clr_type clrtype) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_unit_free_pre ) { - int (*preHookFunc) (struct block_list *bl, clr_type *clrtype); + int (*preHookFunc) (struct block_list **bl, clr_type *clrtype); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_free_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_unit_free_pre[hIndex].func; - retVal___ = preHookFunc(bl, &clrtype); + retVal___ = preHookFunc(&bl, &clrtype); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78862,15 +79107,15 @@ int HP_unit_free(struct block_list *bl, clr_type clrtype) { retVal___ = HPMHooks.source.unit.free(bl, clrtype); } if( HPMHooks.count.HP_unit_free_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, clr_type *clrtype); + int (*postHookFunc) (int retVal___, struct block_list *bl, clr_type clrtype); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_free_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_free_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, &clrtype); + retVal___ = postHookFunc(retVal___, bl, clrtype); } } return retVal___; } -/* vending */ +/* vending_interface */ void HP_vending_init(bool minimal) { int hIndex = 0; if( HPMHooks.count.HP_vending_init_pre ) { @@ -78889,10 +79134,10 @@ void HP_vending_init(bool minimal) { HPMHooks.source.vending.init(minimal); } if( HPMHooks.count.HP_vending_init_post ) { - void (*postHookFunc) (bool *minimal); + void (*postHookFunc) (bool minimal); for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_init_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_vending_init_post[hIndex].func; - postHookFunc(&minimal); + postHookFunc(minimal); } } return; @@ -78926,11 +79171,11 @@ void HP_vending_final(void) { void HP_vending_close(struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_vending_close_pre ) { - void (*preHookFunc) (struct map_session_data *sd); + void (*preHookFunc) (struct map_session_data **sd); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_close_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_close_pre[hIndex].func; - preHookFunc(sd); + preHookFunc(&sd); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78952,11 +79197,11 @@ void HP_vending_close(struct map_session_data *sd) { void HP_vending_open(struct map_session_data *sd, const char *message, const uint8 *data, int count) { int hIndex = 0; if( HPMHooks.count.HP_vending_open_pre ) { - void (*preHookFunc) (struct map_session_data *sd, const char *message, const uint8 *data, int *count); + void (*preHookFunc) (struct map_session_data **sd, const char **message, const uint8 **data, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_open_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_open_pre[hIndex].func; - preHookFunc(sd, message, data, &count); + preHookFunc(&sd, &message, &data, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78967,10 +79212,10 @@ void HP_vending_open(struct map_session_data *sd, const char *message, const uin HPMHooks.source.vending.open(sd, message, data, count); } if( HPMHooks.count.HP_vending_open_post ) { - void (*postHookFunc) (struct map_session_data *sd, const char *message, const uint8 *data, int *count); + void (*postHookFunc) (struct map_session_data *sd, const char *message, const uint8 *data, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_open_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_vending_open_post[hIndex].func; - postHookFunc(sd, message, data, &count); + postHookFunc(sd, message, data, count); } } return; @@ -78978,11 +79223,11 @@ void HP_vending_open(struct map_session_data *sd, const char *message, const uin void HP_vending_list(struct map_session_data *sd, unsigned int id) { int hIndex = 0; if( HPMHooks.count.HP_vending_list_pre ) { - void (*preHookFunc) (struct map_session_data *sd, unsigned int *id); + void (*preHookFunc) (struct map_session_data **sd, unsigned int *id); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_list_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_list_pre[hIndex].func; - preHookFunc(sd, &id); + preHookFunc(&sd, &id); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -78993,10 +79238,10 @@ void HP_vending_list(struct map_session_data *sd, unsigned int id) { HPMHooks.source.vending.list(sd, id); } if( HPMHooks.count.HP_vending_list_post ) { - void (*postHookFunc) (struct map_session_data *sd, unsigned int *id); + void (*postHookFunc) (struct map_session_data *sd, unsigned int id); for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_list_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_vending_list_post[hIndex].func; - postHookFunc(sd, &id); + postHookFunc(sd, id); } } return; @@ -79004,11 +79249,11 @@ void HP_vending_list(struct map_session_data *sd, unsigned int id) { void HP_vending_purchase(struct map_session_data *sd, int aid, unsigned int uid, const uint8 *data, int count) { int hIndex = 0; if( HPMHooks.count.HP_vending_purchase_pre ) { - void (*preHookFunc) (struct map_session_data *sd, int *aid, unsigned int *uid, const uint8 *data, int *count); + void (*preHookFunc) (struct map_session_data **sd, int *aid, unsigned int *uid, const uint8 **data, int *count); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_purchase_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_purchase_pre[hIndex].func; - preHookFunc(sd, &aid, &uid, data, &count); + preHookFunc(&sd, &aid, &uid, &data, &count); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -79019,10 +79264,10 @@ void HP_vending_purchase(struct map_session_data *sd, int aid, unsigned int uid, HPMHooks.source.vending.purchase(sd, aid, uid, data, count); } if( HPMHooks.count.HP_vending_purchase_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *aid, unsigned int *uid, const uint8 *data, int *count); + void (*postHookFunc) (struct map_session_data *sd, int aid, unsigned int uid, const uint8 *data, int count); for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_purchase_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_vending_purchase_post[hIndex].func; - postHookFunc(sd, &aid, &uid, data, &count); + postHookFunc(sd, aid, uid, data, count); } } return; @@ -79031,11 +79276,11 @@ bool HP_vending_search(struct map_session_data *sd, unsigned short nameid) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_vending_search_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid); + bool (*preHookFunc) (struct map_session_data **sd, unsigned short *nameid); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_search_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_search_pre[hIndex].func; - retVal___ = preHookFunc(sd, &nameid); + retVal___ = preHookFunc(&sd, &nameid); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -79046,10 +79291,10 @@ bool HP_vending_search(struct map_session_data *sd, unsigned short nameid) { retVal___ = HPMHooks.source.vending.search(sd, nameid); } if( HPMHooks.count.HP_vending_search_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned short *nameid); + bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, unsigned short nameid); for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_search_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_vending_search_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &nameid); + retVal___ = postHookFunc(retVal___, sd, nameid); } } return retVal___; @@ -79058,11 +79303,11 @@ bool HP_vending_searchall(struct map_session_data *sd, const struct s_search_sto int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_vending_searchall_pre ) { - bool (*preHookFunc) (struct map_session_data *sd, const struct s_search_store_search *s); + bool (*preHookFunc) (struct map_session_data **sd, const struct s_search_store_search **s); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_searchall_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_vending_searchall_pre[hIndex].func; - retVal___ = preHookFunc(sd, s); + retVal___ = preHookFunc(&sd, &s); } if( *HPMforce_return ) { *HPMforce_return = false; |