diff options
Diffstat (limited to 'src/plugins')
20 files changed, 17211 insertions, 422 deletions
diff --git a/src/plugins/HPMHooking.c b/src/plugins/HPMHooking.c index 46792b268..d1b267cf1 100644 --- a/src/plugins/HPMHooking.c +++ b/src/plugins/HPMHooking.c @@ -11,6 +11,45 @@ #include "../common/malloc.h" #include "../common/mmo.h" #include "../common/socket.h" + +#if defined (HPMHOOKING_LOGIN) +#define HPM_SERVER_TYPE SERVER_TYPE_LOGIN +#define HPM_CORE_INCLUDE "../plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc" +#define HPM_SYMBOL_INCLUDE "../plugins/HPMHooking/HPMHooking_login.GetSymbol.inc" +#define HPM_HOOKS_INCLUDE "../plugins/HPMHooking/HPMHooking_login.Hooks.inc" +#define HPM_POINTS_INCLUDE "../plugins/HPMHooking/HPMHooking_login.HookingPoints.inc" +#define HPM_SOURCES_INCLUDE "../plugins/HPMHooking/HPMHooking_login.sources.inc" +#include "../login/login.h" +#elif defined (HPMHOOKING_CHAR) +#define HPM_SERVER_TYPE SERVER_TYPE_CHAR +#define HPM_CORE_INCLUDE "../plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc" +#define HPM_SYMBOL_INCLUDE "../plugins/HPMHooking/HPMHooking_char.GetSymbol.inc" +#define HPM_HOOKS_INCLUDE "../plugins/HPMHooking/HPMHooking_char.Hooks.inc" +#define HPM_POINTS_INCLUDE "../plugins/HPMHooking/HPMHooking_char.HookingPoints.inc" +#define HPM_SOURCES_INCLUDE "../plugins/HPMHooking/HPMHooking_char.sources.inc" +#include "../char/char.h" +#include "../char/geoip.h" +#include "../char/int_auction.h" +#include "../char/int_elemental.h" +#include "../char/int_guild.h" +#include "../char/int_homun.h" +#include "../char/int_mail.h" +#include "../char/int_mercenary.h" +#include "../char/int_party.h" +#include "../char/int_pet.h" +#include "../char/int_quest.h" +#include "../char/int_storage.h" +#include "../char/inter.h" +#include "../char/loginif.h" +#include "../char/mapif.h" +#include "../char/pincode.h" +#elif defined (HPMHOOKING_MAP) +#define HPM_SERVER_TYPE SERVER_TYPE_MAP +#define HPM_CORE_INCLUDE "../plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc" +#define HPM_SYMBOL_INCLUDE "../plugins/HPMHooking/HPMHooking_map.GetSymbol.inc" +#define HPM_HOOKS_INCLUDE "../plugins/HPMHooking/HPMHooking_map.Hooks.inc" +#define HPM_POINTS_INCLUDE "../plugins/HPMHooking/HPMHooking_map.HookingPoints.inc" +#define HPM_SOURCES_INCLUDE "../plugins/HPMHooking/HPMHooking_map.sources.inc" #include "../map/atcommand.h" #include "../map/battle.h" #include "../map/battleground.h" @@ -44,13 +83,22 @@ #include "../map/storage.h" #include "../map/trade.h" #include "../map/unit.h" +#else +#define HPM_SERVER_TYPE SERVER_TYPE_UNKNOWN +#define HPM_CORE_INCLUDE "../plugins/HPMHooking/HPMHooking.HPMHooksCore.inc" +#define HPM_SYMBOL_INCLUDE "../plugins/HPMHooking/HPMHooking.GetSymbol.inc" +#define HPM_HOOKS_INCLUDE "../plugins/HPMHooking/HPMHooking.Hooks.inc" +#define HPM_POINTS_INCLUDE "../plugins/HPMHooking/HPMHooking.HookingPoints.inc" +#define HPM_SOURCES_INCLUDE "../plugins/HPMHooking/HPMHooking.sources.inc" +#error HPMHooking plugin needs to be compiled for a specific server type. Please make sure your Makefiles are up to date. +#endif #include "../common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "HPMHooking", // Plugin name - SERVER_TYPE_MAP,// Which server types this plugin works with? - "0.1", // Plugin version + HPM_SERVER_TYPE,// Which server types this plugin works with? + "0.2", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated) }; @@ -70,7 +118,7 @@ struct HPMHookPoint { }; struct HPMHooksCore { - #include "../plugins/HPMHooking/HPMHooking.HPMHooksCore.inc" + #include HPM_CORE_INCLUDE struct { int total; } data; @@ -89,7 +137,7 @@ HPExport bool Hooked (bool *fr) { HPMforce_return = fr; DB = GET_SYMBOL("DB"); iMalloc = GET_SYMBOL("iMalloc"); -#include "../plugins/HPMHooking/HPMHooking.GetSymbol.inc" +#include HPM_SYMBOL_INCLUDE HPM_HP_load(); return true; } @@ -97,11 +145,11 @@ HPExport bool Hooked (bool *fr) { HPExport bool HPM_Plugin_AddHook(enum HPluginHookType type, const char *target, void *hook, unsigned int pID) { struct HookingPointData *hpd; - + if( hp_db && (hpd = strdb_get(hp_db,target)) ) { struct HPMHookPoint **hp = NULL; int *count = NULL; - + if( type == HOOK_TYPE_PRE ) { hp = (struct HPMHookPoint **)((char *)&HPMHooks.list + (sizeof(struct HPMHookPoint *)*hpd->idx)); count = (int *)((char *)&HPMHooks.count + (sizeof(int)*hpd->idx)); @@ -109,68 +157,67 @@ HPExport bool HPM_Plugin_AddHook(enum HPluginHookType type, const char *target, hp = (struct HPMHookPoint **)((char *)&HPMHooks.list + (sizeof(struct HPMHookPoint *)*(hpd->idx+1))); count = (int *)((char *)&HPMHooks.count + (sizeof(int)*(hpd->idx+1))); } - + if( hp ) { *count += 1; - + RECREATE(*hp, struct HPMHookPoint, *count); - + (*hp)[*count - 1].func = hook; (*hp)[*count - 1].pID = pID; - + *(hpd->sref) = hpd->tref; - + return true; } } - + return false; } -#include "../plugins/HPMHooking/HPMHooking.Hooks.inc" +#include HPM_HOOKS_INCLUDE void HPM_HP_final(void) { int i, len = HPMHooks.data.total * 2; - + if( hp_db ) db_destroy(hp_db); - + for(i = 0; i < len; i++) { int *count = (int *)((char *)&HPMHooks.count + (sizeof(int)*(i))); - + if( count && *count ) { struct HPMHookPoint **hp = (struct HPMHookPoint **)((char *)&HPMHooks.list + (sizeof(struct HPMHookPoint *)*(i))); - + if( hp && *hp ) aFree(*hp); } } - } void HPM_HP_load(void) { - #include "../plugins/HPMHooking/HPMHooking.HookingPoints.inc" + #include HPM_POINTS_INCLUDE int i, len = ARRAYLENGTH(HookingPoints), idx = 0; - + memset(&HPMHooks,0,sizeof(struct HPMHooksCore)); - + hp_db = strdb_alloc(DB_OPT_BASE|DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, HookingPointsLenMax); - + for(i = 0; i < len; i++) { struct HookingPointData *hpd = NULL; - + CREATE(hpd, struct HookingPointData, 1); - + memcpy(hpd, &HookingPoints[i], sizeof(struct HookingPointData)); - + hpd->idx = idx; idx += 2; - + strdb_put(hp_db, HookingPoints[i].name, hpd); - + HPMHooks.data.total++; } - - #include "../plugins/HPMHooking/HPMHooking.sources.inc" + + #include HPM_SOURCES_INCLUDE } diff --git a/src/plugins/HPMHooking/HPMHooking_char.GetSymbol.inc b/src/plugins/HPMHooking/HPMHooking_char.GetSymbol.inc new file mode 100644 index 000000000..6d6db24ae --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_char.GetSymbol.inc @@ -0,0 +1,22 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +if( !(chr = GET_SYMBOL("chr") ) ) return false; +if( !(geoip = GET_SYMBOL("geoip") ) ) return false; +if( !(inter_auction = GET_SYMBOL("inter_auction") ) ) return false; +if( !(inter_elemental = GET_SYMBOL("inter_elemental") ) ) return false; +if( !(inter_guild = GET_SYMBOL("inter_guild") ) ) return false; +if( !(inter_homunculus = GET_SYMBOL("inter_homunculus") ) ) return false; +if( !(inter = GET_SYMBOL("inter") ) ) return false; +if( !(inter_mail = GET_SYMBOL("inter_mail") ) ) return false; +if( !(inter_mercenary = GET_SYMBOL("inter_mercenary") ) ) return false; +if( !(inter_party = GET_SYMBOL("inter_party") ) ) return false; +if( !(inter_pet = GET_SYMBOL("inter_pet") ) ) return false; +if( !(inter_quest = GET_SYMBOL("inter_quest") ) ) return false; +if( !(inter_storage = GET_SYMBOL("inter_storage") ) ) return false; +if( !(loginif = GET_SYMBOL("loginif") ) ) return false; +if( !(mapif = GET_SYMBOL("mapif") ) ) return false; +if( !(pincode = GET_SYMBOL("pincode") ) ) return false; diff --git a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc new file mode 100644 index 000000000..e2838b610 --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc @@ -0,0 +1,1814 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +struct { + struct HPMHookPoint *HP_chr_waiting_disconnect_pre; + struct HPMHookPoint *HP_chr_waiting_disconnect_post; + struct HPMHookPoint *HP_chr_delete_char_sql_pre; + struct HPMHookPoint *HP_chr_delete_char_sql_post; + struct HPMHookPoint *HP_chr_create_online_char_data_pre; + struct HPMHookPoint *HP_chr_create_online_char_data_post; + struct HPMHookPoint *HP_chr_set_account_online_pre; + struct HPMHookPoint *HP_chr_set_account_online_post; + struct HPMHookPoint *HP_chr_set_account_offline_pre; + struct HPMHookPoint *HP_chr_set_account_offline_post; + struct HPMHookPoint *HP_chr_set_char_charselect_pre; + struct HPMHookPoint *HP_chr_set_char_charselect_post; + struct HPMHookPoint *HP_chr_set_char_online_pre; + struct HPMHookPoint *HP_chr_set_char_online_post; + struct HPMHookPoint *HP_chr_set_char_offline_pre; + struct HPMHookPoint *HP_chr_set_char_offline_post; + struct HPMHookPoint *HP_chr_db_setoffline_pre; + struct HPMHookPoint *HP_chr_db_setoffline_post; + struct HPMHookPoint *HP_chr_db_kickoffline_pre; + struct HPMHookPoint *HP_chr_db_kickoffline_post; + struct HPMHookPoint *HP_chr_set_login_all_offline_pre; + struct HPMHookPoint *HP_chr_set_login_all_offline_post; + struct HPMHookPoint *HP_chr_set_all_offline_pre; + struct HPMHookPoint *HP_chr_set_all_offline_post; + struct HPMHookPoint *HP_chr_set_all_offline_sql_pre; + struct HPMHookPoint *HP_chr_set_all_offline_sql_post; + struct HPMHookPoint *HP_chr_create_charstatus_pre; + struct HPMHookPoint *HP_chr_create_charstatus_post; + struct HPMHookPoint *HP_chr_mmo_char_tosql_pre; + struct HPMHookPoint *HP_chr_mmo_char_tosql_post; + struct HPMHookPoint *HP_chr_memitemdata_to_sql_pre; + struct HPMHookPoint *HP_chr_memitemdata_to_sql_post; + struct HPMHookPoint *HP_chr_inventory_to_sql_pre; + struct HPMHookPoint *HP_chr_inventory_to_sql_post; + struct HPMHookPoint *HP_chr_mmo_chars_fromsql_pre; + struct HPMHookPoint *HP_chr_mmo_chars_fromsql_post; + struct HPMHookPoint *HP_chr_mmo_char_fromsql_pre; + struct HPMHookPoint *HP_chr_mmo_char_fromsql_post; + struct HPMHookPoint *HP_chr_mmo_char_sql_init_pre; + struct HPMHookPoint *HP_chr_mmo_char_sql_init_post; + struct HPMHookPoint *HP_chr_char_slotchange_pre; + struct HPMHookPoint *HP_chr_char_slotchange_post; + struct HPMHookPoint *HP_chr_rename_char_sql_pre; + struct HPMHookPoint *HP_chr_rename_char_sql_post; + struct HPMHookPoint *HP_chr_check_char_name_pre; + struct HPMHookPoint *HP_chr_check_char_name_post; + struct HPMHookPoint *HP_chr_make_new_char_sql_pre; + struct HPMHookPoint *HP_chr_make_new_char_sql_post; + struct HPMHookPoint *HP_chr_divorce_char_sql_pre; + struct HPMHookPoint *HP_chr_divorce_char_sql_post; + struct HPMHookPoint *HP_chr_count_users_pre; + struct HPMHookPoint *HP_chr_count_users_post; + struct HPMHookPoint *HP_chr_mmo_char_tobuf_pre; + struct HPMHookPoint *HP_chr_mmo_char_tobuf_post; + struct HPMHookPoint *HP_chr_mmo_char_send099d_pre; + struct HPMHookPoint *HP_chr_mmo_char_send099d_post; + struct HPMHookPoint *HP_chr_mmo_char_send_ban_list_pre; + struct HPMHookPoint *HP_chr_mmo_char_send_ban_list_post; + struct HPMHookPoint *HP_chr_mmo_char_send_slots_info_pre; + struct HPMHookPoint *HP_chr_mmo_char_send_slots_info_post; + struct HPMHookPoint *HP_chr_mmo_char_send_characters_pre; + struct HPMHookPoint *HP_chr_mmo_char_send_characters_post; + struct HPMHookPoint *HP_chr_char_married_pre; + struct HPMHookPoint *HP_chr_char_married_post; + struct HPMHookPoint *HP_chr_char_child_pre; + struct HPMHookPoint *HP_chr_char_child_post; + struct HPMHookPoint *HP_chr_char_family_pre; + struct HPMHookPoint *HP_chr_char_family_post; + struct HPMHookPoint *HP_chr_disconnect_player_pre; + struct HPMHookPoint *HP_chr_disconnect_player_post; + struct HPMHookPoint *HP_chr_authfail_fd_pre; + struct HPMHookPoint *HP_chr_authfail_fd_post; + struct HPMHookPoint *HP_chr_request_account_data_pre; + struct HPMHookPoint *HP_chr_request_account_data_post; + struct HPMHookPoint *HP_chr_auth_ok_pre; + struct HPMHookPoint *HP_chr_auth_ok_post; + struct HPMHookPoint *HP_chr_ping_login_server_pre; + struct HPMHookPoint *HP_chr_ping_login_server_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_connection_state_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_connection_state_post; + struct HPMHookPoint *HP_chr_auth_error_pre; + struct HPMHookPoint *HP_chr_auth_error_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_auth_state_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_auth_state_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_account_data_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_account_data_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_login_pong_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_login_pong_post; + struct HPMHookPoint *HP_chr_changesex_pre; + struct HPMHookPoint *HP_chr_changesex_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_changesex_reply_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_changesex_reply_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_account_reg2_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_account_reg2_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_ban_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_ban_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_kick_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_kick_post; + struct HPMHookPoint *HP_chr_update_ip_pre; + struct HPMHookPoint *HP_chr_update_ip_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_update_ip_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_update_ip_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_accinfo2_failed_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_accinfo2_failed_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_accinfo2_ok_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_accinfo2_ok_post; + struct HPMHookPoint *HP_chr_parse_fromlogin_pre; + struct HPMHookPoint *HP_chr_parse_fromlogin_post; + struct HPMHookPoint *HP_chr_request_accreg2_pre; + struct HPMHookPoint *HP_chr_request_accreg2_post; + struct HPMHookPoint *HP_chr_global_accreg_to_login_start_pre; + struct HPMHookPoint *HP_chr_global_accreg_to_login_start_post; + struct HPMHookPoint *HP_chr_global_accreg_to_login_send_pre; + struct HPMHookPoint *HP_chr_global_accreg_to_login_send_post; + struct HPMHookPoint *HP_chr_global_accreg_to_login_add_pre; + struct HPMHookPoint *HP_chr_global_accreg_to_login_add_post; + struct HPMHookPoint *HP_chr_read_fame_list_pre; + struct HPMHookPoint *HP_chr_read_fame_list_post; + struct HPMHookPoint *HP_chr_send_fame_list_pre; + struct HPMHookPoint *HP_chr_send_fame_list_post; + struct HPMHookPoint *HP_chr_update_fame_list_pre; + struct HPMHookPoint *HP_chr_update_fame_list_post; + struct HPMHookPoint *HP_chr_loadName_pre; + struct HPMHookPoint *HP_chr_loadName_post; + struct HPMHookPoint *HP_chr_parse_frommap_datasync_pre; + struct HPMHookPoint *HP_chr_parse_frommap_datasync_post; + struct HPMHookPoint *HP_chr_parse_frommap_skillid2idx_pre; + struct HPMHookPoint *HP_chr_parse_frommap_skillid2idx_post; + struct HPMHookPoint *HP_chr_map_received_ok_pre; + struct HPMHookPoint *HP_chr_map_received_ok_post; + struct HPMHookPoint *HP_chr_send_maps_pre; + struct HPMHookPoint *HP_chr_send_maps_post; + struct HPMHookPoint *HP_chr_parse_frommap_map_names_pre; + struct HPMHookPoint *HP_chr_parse_frommap_map_names_post; + struct HPMHookPoint *HP_chr_send_scdata_pre; + struct HPMHookPoint *HP_chr_send_scdata_post; + struct HPMHookPoint *HP_chr_parse_frommap_request_scdata_pre; + struct HPMHookPoint *HP_chr_parse_frommap_request_scdata_post; + struct HPMHookPoint *HP_chr_parse_frommap_set_users_count_pre; + struct HPMHookPoint *HP_chr_parse_frommap_set_users_count_post; + struct HPMHookPoint *HP_chr_parse_frommap_set_users_pre; + struct HPMHookPoint *HP_chr_parse_frommap_set_users_post; + struct HPMHookPoint *HP_chr_save_character_ack_pre; + struct HPMHookPoint *HP_chr_save_character_ack_post; + struct HPMHookPoint *HP_chr_parse_frommap_save_character_pre; + struct HPMHookPoint *HP_chr_parse_frommap_save_character_post; + struct HPMHookPoint *HP_chr_select_ack_pre; + struct HPMHookPoint *HP_chr_select_ack_post; + struct HPMHookPoint *HP_chr_parse_frommap_char_select_req_pre; + struct HPMHookPoint *HP_chr_parse_frommap_char_select_req_post; + struct HPMHookPoint *HP_chr_change_map_server_ack_pre; + struct HPMHookPoint *HP_chr_change_map_server_ack_post; + struct HPMHookPoint *HP_chr_parse_frommap_change_map_server_pre; + struct HPMHookPoint *HP_chr_parse_frommap_change_map_server_post; + struct HPMHookPoint *HP_chr_parse_frommap_remove_friend_pre; + struct HPMHookPoint *HP_chr_parse_frommap_remove_friend_post; + struct HPMHookPoint *HP_chr_char_name_ack_pre; + struct HPMHookPoint *HP_chr_char_name_ack_post; + struct HPMHookPoint *HP_chr_parse_frommap_char_name_request_pre; + struct HPMHookPoint *HP_chr_parse_frommap_char_name_request_post; + struct HPMHookPoint *HP_chr_parse_frommap_change_email_pre; + struct HPMHookPoint *HP_chr_parse_frommap_change_email_post; + struct HPMHookPoint *HP_chr_ban_pre; + struct HPMHookPoint *HP_chr_ban_post; + struct HPMHookPoint *HP_chr_unban_pre; + struct HPMHookPoint *HP_chr_unban_post; + struct HPMHookPoint *HP_chr_ask_name_ack_pre; + struct HPMHookPoint *HP_chr_ask_name_ack_post; + struct HPMHookPoint *HP_chr_parse_frommap_change_account_pre; + struct HPMHookPoint *HP_chr_parse_frommap_change_account_post; + struct HPMHookPoint *HP_chr_parse_frommap_fame_list_pre; + struct HPMHookPoint *HP_chr_parse_frommap_fame_list_post; + struct HPMHookPoint *HP_chr_parse_frommap_divorce_char_pre; + struct HPMHookPoint *HP_chr_parse_frommap_divorce_char_post; + struct HPMHookPoint *HP_chr_parse_frommap_ragsrvinfo_pre; + struct HPMHookPoint *HP_chr_parse_frommap_ragsrvinfo_post; + struct HPMHookPoint *HP_chr_parse_frommap_set_char_offline_pre; + struct HPMHookPoint *HP_chr_parse_frommap_set_char_offline_post; + struct HPMHookPoint *HP_chr_parse_frommap_set_all_offline_pre; + struct HPMHookPoint *HP_chr_parse_frommap_set_all_offline_post; + struct HPMHookPoint *HP_chr_parse_frommap_set_char_online_pre; + struct HPMHookPoint *HP_chr_parse_frommap_set_char_online_post; + struct HPMHookPoint *HP_chr_parse_frommap_build_fame_list_pre; + struct HPMHookPoint *HP_chr_parse_frommap_build_fame_list_post; + struct HPMHookPoint *HP_chr_parse_frommap_save_status_change_data_pre; + struct HPMHookPoint *HP_chr_parse_frommap_save_status_change_data_post; + struct HPMHookPoint *HP_chr_send_pong_pre; + struct HPMHookPoint *HP_chr_send_pong_post; + struct HPMHookPoint *HP_chr_parse_frommap_ping_pre; + struct HPMHookPoint *HP_chr_parse_frommap_ping_post; + struct HPMHookPoint *HP_chr_map_auth_ok_pre; + struct HPMHookPoint *HP_chr_map_auth_ok_post; + struct HPMHookPoint *HP_chr_map_auth_failed_pre; + struct HPMHookPoint *HP_chr_map_auth_failed_post; + struct HPMHookPoint *HP_chr_parse_frommap_auth_request_pre; + struct HPMHookPoint *HP_chr_parse_frommap_auth_request_post; + struct HPMHookPoint *HP_chr_parse_frommap_update_ip_pre; + struct HPMHookPoint *HP_chr_parse_frommap_update_ip_post; + struct HPMHookPoint *HP_chr_parse_frommap_request_stats_report_pre; + struct HPMHookPoint *HP_chr_parse_frommap_request_stats_report_post; + struct HPMHookPoint *HP_chr_parse_frommap_scdata_update_pre; + struct HPMHookPoint *HP_chr_parse_frommap_scdata_update_post; + struct HPMHookPoint *HP_chr_parse_frommap_scdata_delete_pre; + struct HPMHookPoint *HP_chr_parse_frommap_scdata_delete_post; + struct HPMHookPoint *HP_chr_parse_frommap_pre; + struct HPMHookPoint *HP_chr_parse_frommap_post; + struct HPMHookPoint *HP_chr_search_mapserver_pre; + struct HPMHookPoint *HP_chr_search_mapserver_post; + struct HPMHookPoint *HP_chr_mapif_init_pre; + struct HPMHookPoint *HP_chr_mapif_init_post; + struct HPMHookPoint *HP_chr_lan_subnetcheck_pre; + struct HPMHookPoint *HP_chr_lan_subnetcheck_post; + struct HPMHookPoint *HP_chr_delete2_ack_pre; + struct HPMHookPoint *HP_chr_delete2_ack_post; + struct HPMHookPoint *HP_chr_delete2_accept_actual_ack_pre; + struct HPMHookPoint *HP_chr_delete2_accept_actual_ack_post; + struct HPMHookPoint *HP_chr_delete2_accept_ack_pre; + struct HPMHookPoint *HP_chr_delete2_accept_ack_post; + struct HPMHookPoint *HP_chr_delete2_cancel_ack_pre; + struct HPMHookPoint *HP_chr_delete2_cancel_ack_post; + struct HPMHookPoint *HP_chr_delete2_req_pre; + struct HPMHookPoint *HP_chr_delete2_req_post; + struct HPMHookPoint *HP_chr_delete2_accept_pre; + struct HPMHookPoint *HP_chr_delete2_accept_post; + struct HPMHookPoint *HP_chr_delete2_cancel_pre; + struct HPMHookPoint *HP_chr_delete2_cancel_post; + struct HPMHookPoint *HP_chr_send_account_id_pre; + struct HPMHookPoint *HP_chr_send_account_id_post; + struct HPMHookPoint *HP_chr_parse_char_connect_pre; + struct HPMHookPoint *HP_chr_parse_char_connect_post; + struct HPMHookPoint *HP_chr_send_map_info_pre; + struct HPMHookPoint *HP_chr_send_map_info_post; + struct HPMHookPoint *HP_chr_send_wait_char_server_pre; + struct HPMHookPoint *HP_chr_send_wait_char_server_post; + struct HPMHookPoint *HP_chr_search_default_maps_mapserver_pre; + struct HPMHookPoint *HP_chr_search_default_maps_mapserver_post; + struct HPMHookPoint *HP_chr_parse_char_select_pre; + struct HPMHookPoint *HP_chr_parse_char_select_post; + struct HPMHookPoint *HP_chr_creation_failed_pre; + struct HPMHookPoint *HP_chr_creation_failed_post; + struct HPMHookPoint *HP_chr_creation_ok_pre; + struct HPMHookPoint *HP_chr_creation_ok_post; + struct HPMHookPoint *HP_chr_parse_char_create_new_char_pre; + struct HPMHookPoint *HP_chr_parse_char_create_new_char_post; + struct HPMHookPoint *HP_chr_delete_char_failed_pre; + struct HPMHookPoint *HP_chr_delete_char_failed_post; + struct HPMHookPoint *HP_chr_delete_char_ok_pre; + struct HPMHookPoint *HP_chr_delete_char_ok_post; + struct HPMHookPoint *HP_chr_parse_char_delete_char_pre; + struct HPMHookPoint *HP_chr_parse_char_delete_char_post; + struct HPMHookPoint *HP_chr_parse_char_ping_pre; + struct HPMHookPoint *HP_chr_parse_char_ping_post; + struct HPMHookPoint *HP_chr_allow_rename_pre; + struct HPMHookPoint *HP_chr_allow_rename_post; + struct HPMHookPoint *HP_chr_parse_char_rename_char_pre; + struct HPMHookPoint *HP_chr_parse_char_rename_char_post; + struct HPMHookPoint *HP_chr_parse_char_rename_char2_pre; + struct HPMHookPoint *HP_chr_parse_char_rename_char2_post; + struct HPMHookPoint *HP_chr_rename_char_ack_pre; + struct HPMHookPoint *HP_chr_rename_char_ack_post; + struct HPMHookPoint *HP_chr_parse_char_rename_char_confirm_pre; + struct HPMHookPoint *HP_chr_parse_char_rename_char_confirm_post; + struct HPMHookPoint *HP_chr_captcha_notsupported_pre; + struct HPMHookPoint *HP_chr_captcha_notsupported_post; + struct HPMHookPoint *HP_chr_parse_char_request_captcha_pre; + struct HPMHookPoint *HP_chr_parse_char_request_captcha_post; + struct HPMHookPoint *HP_chr_parse_char_check_captcha_pre; + struct HPMHookPoint *HP_chr_parse_char_check_captcha_post; + struct HPMHookPoint *HP_chr_parse_char_delete2_req_pre; + struct HPMHookPoint *HP_chr_parse_char_delete2_req_post; + struct HPMHookPoint *HP_chr_parse_char_delete2_accept_pre; + struct HPMHookPoint *HP_chr_parse_char_delete2_accept_post; + struct HPMHookPoint *HP_chr_parse_char_delete2_cancel_pre; + struct HPMHookPoint *HP_chr_parse_char_delete2_cancel_post; + struct HPMHookPoint *HP_chr_login_map_server_ack_pre; + struct HPMHookPoint *HP_chr_login_map_server_ack_post; + struct HPMHookPoint *HP_chr_parse_char_login_map_server_pre; + struct HPMHookPoint *HP_chr_parse_char_login_map_server_post; + struct HPMHookPoint *HP_chr_parse_char_pincode_check_pre; + struct HPMHookPoint *HP_chr_parse_char_pincode_check_post; + struct HPMHookPoint *HP_chr_parse_char_pincode_window_pre; + struct HPMHookPoint *HP_chr_parse_char_pincode_window_post; + struct HPMHookPoint *HP_chr_parse_char_pincode_change_pre; + struct HPMHookPoint *HP_chr_parse_char_pincode_change_post; + struct HPMHookPoint *HP_chr_parse_char_pincode_first_pin_pre; + struct HPMHookPoint *HP_chr_parse_char_pincode_first_pin_post; + struct HPMHookPoint *HP_chr_parse_char_request_chars_pre; + struct HPMHookPoint *HP_chr_parse_char_request_chars_post; + struct HPMHookPoint *HP_chr_change_character_slot_ack_pre; + struct HPMHookPoint *HP_chr_change_character_slot_ack_post; + struct HPMHookPoint *HP_chr_parse_char_move_character_pre; + struct HPMHookPoint *HP_chr_parse_char_move_character_post; + struct HPMHookPoint *HP_chr_parse_char_unknown_packet_pre; + struct HPMHookPoint *HP_chr_parse_char_unknown_packet_post; + struct HPMHookPoint *HP_chr_parse_char_pre; + struct HPMHookPoint *HP_chr_parse_char_post; + struct HPMHookPoint *HP_chr_broadcast_user_count_pre; + struct HPMHookPoint *HP_chr_broadcast_user_count_post; + struct HPMHookPoint *HP_chr_send_accounts_tologin_sub_pre; + struct HPMHookPoint *HP_chr_send_accounts_tologin_sub_post; + struct HPMHookPoint *HP_chr_send_accounts_tologin_pre; + struct HPMHookPoint *HP_chr_send_accounts_tologin_post; + struct HPMHookPoint *HP_chr_check_connect_login_server_pre; + struct HPMHookPoint *HP_chr_check_connect_login_server_post; + struct HPMHookPoint *HP_chr_online_data_cleanup_sub_pre; + struct HPMHookPoint *HP_chr_online_data_cleanup_sub_post; + struct HPMHookPoint *HP_chr_online_data_cleanup_pre; + struct HPMHookPoint *HP_chr_online_data_cleanup_post; + struct HPMHookPoint *HP_chr_lan_config_read_pre; + struct HPMHookPoint *HP_chr_lan_config_read_post; + struct HPMHookPoint *HP_chr_sql_config_read_pre; + struct HPMHookPoint *HP_chr_sql_config_read_post; + struct HPMHookPoint *HP_chr_config_dispatch_pre; + struct HPMHookPoint *HP_chr_config_dispatch_post; + struct HPMHookPoint *HP_chr_config_read_pre; + struct HPMHookPoint *HP_chr_config_read_post; + struct HPMHookPoint *HP_geoip_getcountry_pre; + struct HPMHookPoint *HP_geoip_getcountry_post; + struct HPMHookPoint *HP_geoip_final_pre; + struct HPMHookPoint *HP_geoip_final_post; + struct HPMHookPoint *HP_geoip_init_pre; + struct HPMHookPoint *HP_geoip_init_post; + struct HPMHookPoint *HP_inter_auction_count_pre; + struct HPMHookPoint *HP_inter_auction_count_post; + struct HPMHookPoint *HP_inter_auction_save_pre; + struct HPMHookPoint *HP_inter_auction_save_post; + struct HPMHookPoint *HP_inter_auction_create_pre; + struct HPMHookPoint *HP_inter_auction_create_post; + struct HPMHookPoint *HP_inter_auction_end_timer_pre; + struct HPMHookPoint *HP_inter_auction_end_timer_post; + struct HPMHookPoint *HP_inter_auction_delete__pre; + struct HPMHookPoint *HP_inter_auction_delete__post; + struct HPMHookPoint *HP_inter_auction_fromsql_pre; + struct HPMHookPoint *HP_inter_auction_fromsql_post; + struct HPMHookPoint *HP_inter_auction_parse_frommap_pre; + struct HPMHookPoint *HP_inter_auction_parse_frommap_post; + struct HPMHookPoint *HP_inter_auction_sql_init_pre; + struct HPMHookPoint *HP_inter_auction_sql_init_post; + struct HPMHookPoint *HP_inter_auction_sql_final_pre; + struct HPMHookPoint *HP_inter_auction_sql_final_post; + struct HPMHookPoint *HP_inter_elemental_sql_init_pre; + struct HPMHookPoint *HP_inter_elemental_sql_init_post; + struct HPMHookPoint *HP_inter_elemental_sql_final_pre; + struct HPMHookPoint *HP_inter_elemental_sql_final_post; + struct HPMHookPoint *HP_inter_elemental_parse_frommap_pre; + struct HPMHookPoint *HP_inter_elemental_parse_frommap_post; + struct HPMHookPoint *HP_inter_guild_save_timer_pre; + struct HPMHookPoint *HP_inter_guild_save_timer_post; + struct HPMHookPoint *HP_inter_guild_removemember_tosql_pre; + struct HPMHookPoint *HP_inter_guild_removemember_tosql_post; + struct HPMHookPoint *HP_inter_guild_tosql_pre; + struct HPMHookPoint *HP_inter_guild_tosql_post; + struct HPMHookPoint *HP_inter_guild_fromsql_pre; + struct HPMHookPoint *HP_inter_guild_fromsql_post; + struct HPMHookPoint *HP_inter_guild_castle_tosql_pre; + struct HPMHookPoint *HP_inter_guild_castle_tosql_post; + struct HPMHookPoint *HP_inter_guild_castle_fromsql_pre; + struct HPMHookPoint *HP_inter_guild_castle_fromsql_post; + struct HPMHookPoint *HP_inter_guild_exp_parse_row_pre; + struct HPMHookPoint *HP_inter_guild_exp_parse_row_post; + struct HPMHookPoint *HP_inter_guild_CharOnline_pre; + struct HPMHookPoint *HP_inter_guild_CharOnline_post; + struct HPMHookPoint *HP_inter_guild_CharOffline_pre; + struct HPMHookPoint *HP_inter_guild_CharOffline_post; + struct HPMHookPoint *HP_inter_guild_sql_init_pre; + struct HPMHookPoint *HP_inter_guild_sql_init_post; + struct HPMHookPoint *HP_inter_guild_db_final_pre; + struct HPMHookPoint *HP_inter_guild_db_final_post; + struct HPMHookPoint *HP_inter_guild_sql_final_pre; + struct HPMHookPoint *HP_inter_guild_sql_final_post; + struct HPMHookPoint *HP_inter_guild_search_guildname_pre; + struct HPMHookPoint *HP_inter_guild_search_guildname_post; + struct HPMHookPoint *HP_inter_guild_check_empty_pre; + struct HPMHookPoint *HP_inter_guild_check_empty_post; + struct HPMHookPoint *HP_inter_guild_nextexp_pre; + struct HPMHookPoint *HP_inter_guild_nextexp_post; + struct HPMHookPoint *HP_inter_guild_checkskill_pre; + struct HPMHookPoint *HP_inter_guild_checkskill_post; + struct HPMHookPoint *HP_inter_guild_calcinfo_pre; + struct HPMHookPoint *HP_inter_guild_calcinfo_post; + struct HPMHookPoint *HP_inter_guild_sex_changed_pre; + struct HPMHookPoint *HP_inter_guild_sex_changed_post; + struct HPMHookPoint *HP_inter_guild_charname_changed_pre; + struct HPMHookPoint *HP_inter_guild_charname_changed_post; + struct HPMHookPoint *HP_inter_guild_parse_frommap_pre; + struct HPMHookPoint *HP_inter_guild_parse_frommap_post; + struct HPMHookPoint *HP_inter_guild_leave_pre; + struct HPMHookPoint *HP_inter_guild_leave_post; + struct HPMHookPoint *HP_inter_guild_broken_pre; + struct HPMHookPoint *HP_inter_guild_broken_post; + struct HPMHookPoint *HP_inter_homunculus_sql_init_pre; + struct HPMHookPoint *HP_inter_homunculus_sql_init_post; + struct HPMHookPoint *HP_inter_homunculus_sql_final_pre; + struct HPMHookPoint *HP_inter_homunculus_sql_final_post; + struct HPMHookPoint *HP_inter_homunculus_parse_frommap_pre; + struct HPMHookPoint *HP_inter_homunculus_parse_frommap_post; + struct HPMHookPoint *HP_inter_msg_txt_pre; + struct HPMHookPoint *HP_inter_msg_txt_post; + struct HPMHookPoint *HP_inter_msg_config_read_pre; + struct HPMHookPoint *HP_inter_msg_config_read_post; + struct HPMHookPoint *HP_inter_do_final_msg_pre; + struct HPMHookPoint *HP_inter_do_final_msg_post; + struct HPMHookPoint *HP_inter_job_name_pre; + struct HPMHookPoint *HP_inter_job_name_post; + struct HPMHookPoint *HP_inter_vmsg_to_fd_pre; + struct HPMHookPoint *HP_inter_vmsg_to_fd_post; + struct HPMHookPoint *HP_inter_savereg_pre; + struct HPMHookPoint *HP_inter_savereg_post; + struct HPMHookPoint *HP_inter_accreg_fromsql_pre; + struct HPMHookPoint *HP_inter_accreg_fromsql_post; + struct HPMHookPoint *HP_inter_config_read_pre; + struct HPMHookPoint *HP_inter_config_read_post; + struct HPMHookPoint *HP_inter_vlog_pre; + struct HPMHookPoint *HP_inter_vlog_post; + struct HPMHookPoint *HP_inter_init_sql_pre; + struct HPMHookPoint *HP_inter_init_sql_post; + struct HPMHookPoint *HP_inter_mapif_init_pre; + struct HPMHookPoint *HP_inter_mapif_init_post; + struct HPMHookPoint *HP_inter_check_ttl_wisdata_sub_pre; + struct HPMHookPoint *HP_inter_check_ttl_wisdata_sub_post; + struct HPMHookPoint *HP_inter_check_ttl_wisdata_pre; + struct HPMHookPoint *HP_inter_check_ttl_wisdata_post; + struct HPMHookPoint *HP_inter_check_length_pre; + struct HPMHookPoint *HP_inter_check_length_post; + struct HPMHookPoint *HP_inter_parse_frommap_pre; + struct HPMHookPoint *HP_inter_parse_frommap_post; + struct HPMHookPoint *HP_inter_final_pre; + struct HPMHookPoint *HP_inter_final_post; + struct HPMHookPoint *HP_inter_mail_sql_init_pre; + struct HPMHookPoint *HP_inter_mail_sql_init_post; + struct HPMHookPoint *HP_inter_mail_sql_final_pre; + struct HPMHookPoint *HP_inter_mail_sql_final_post; + struct HPMHookPoint *HP_inter_mail_parse_frommap_pre; + struct HPMHookPoint *HP_inter_mail_parse_frommap_post; + struct HPMHookPoint *HP_inter_mail_fromsql_pre; + struct HPMHookPoint *HP_inter_mail_fromsql_post; + struct HPMHookPoint *HP_inter_mail_savemessage_pre; + struct HPMHookPoint *HP_inter_mail_savemessage_post; + struct HPMHookPoint *HP_inter_mail_loadmessage_pre; + struct HPMHookPoint *HP_inter_mail_loadmessage_post; + struct HPMHookPoint *HP_inter_mail_DeleteAttach_pre; + struct HPMHookPoint *HP_inter_mail_DeleteAttach_post; + struct HPMHookPoint *HP_inter_mail_sendmail_pre; + struct HPMHookPoint *HP_inter_mail_sendmail_post; + struct HPMHookPoint *HP_inter_mercenary_owner_fromsql_pre; + struct HPMHookPoint *HP_inter_mercenary_owner_fromsql_post; + struct HPMHookPoint *HP_inter_mercenary_owner_tosql_pre; + struct HPMHookPoint *HP_inter_mercenary_owner_tosql_post; + struct HPMHookPoint *HP_inter_mercenary_owner_delete_pre; + struct HPMHookPoint *HP_inter_mercenary_owner_delete_post; + struct HPMHookPoint *HP_inter_mercenary_sql_init_pre; + struct HPMHookPoint *HP_inter_mercenary_sql_init_post; + struct HPMHookPoint *HP_inter_mercenary_sql_final_pre; + struct HPMHookPoint *HP_inter_mercenary_sql_final_post; + struct HPMHookPoint *HP_inter_mercenary_parse_frommap_pre; + struct HPMHookPoint *HP_inter_mercenary_parse_frommap_post; + struct HPMHookPoint *HP_inter_party_check_lv_pre; + struct HPMHookPoint *HP_inter_party_check_lv_post; + struct HPMHookPoint *HP_inter_party_calc_state_pre; + struct HPMHookPoint *HP_inter_party_calc_state_post; + struct HPMHookPoint *HP_inter_party_tosql_pre; + struct HPMHookPoint *HP_inter_party_tosql_post; + struct HPMHookPoint *HP_inter_party_fromsql_pre; + struct HPMHookPoint *HP_inter_party_fromsql_post; + struct HPMHookPoint *HP_inter_party_sql_init_pre; + struct HPMHookPoint *HP_inter_party_sql_init_post; + struct HPMHookPoint *HP_inter_party_sql_final_pre; + struct HPMHookPoint *HP_inter_party_sql_final_post; + struct HPMHookPoint *HP_inter_party_search_partyname_pre; + struct HPMHookPoint *HP_inter_party_search_partyname_post; + struct HPMHookPoint *HP_inter_party_check_exp_share_pre; + struct HPMHookPoint *HP_inter_party_check_exp_share_post; + struct HPMHookPoint *HP_inter_party_check_empty_pre; + struct HPMHookPoint *HP_inter_party_check_empty_post; + struct HPMHookPoint *HP_inter_party_parse_frommap_pre; + struct HPMHookPoint *HP_inter_party_parse_frommap_post; + struct HPMHookPoint *HP_inter_party_leave_pre; + struct HPMHookPoint *HP_inter_party_leave_post; + struct HPMHookPoint *HP_inter_party_CharOnline_pre; + struct HPMHookPoint *HP_inter_party_CharOnline_post; + struct HPMHookPoint *HP_inter_party_CharOffline_pre; + struct HPMHookPoint *HP_inter_party_CharOffline_post; + struct HPMHookPoint *HP_inter_pet_tosql_pre; + struct HPMHookPoint *HP_inter_pet_tosql_post; + struct HPMHookPoint *HP_inter_pet_fromsql_pre; + struct HPMHookPoint *HP_inter_pet_fromsql_post; + struct HPMHookPoint *HP_inter_pet_sql_init_pre; + struct HPMHookPoint *HP_inter_pet_sql_init_post; + struct HPMHookPoint *HP_inter_pet_sql_final_pre; + struct HPMHookPoint *HP_inter_pet_sql_final_post; + struct HPMHookPoint *HP_inter_pet_delete__pre; + struct HPMHookPoint *HP_inter_pet_delete__post; + struct HPMHookPoint *HP_inter_pet_parse_frommap_pre; + struct HPMHookPoint *HP_inter_pet_parse_frommap_post; + struct HPMHookPoint *HP_inter_quest_parse_frommap_pre; + struct HPMHookPoint *HP_inter_quest_parse_frommap_post; + struct HPMHookPoint *HP_inter_storage_tosql_pre; + struct HPMHookPoint *HP_inter_storage_tosql_post; + struct HPMHookPoint *HP_inter_storage_fromsql_pre; + struct HPMHookPoint *HP_inter_storage_fromsql_post; + struct HPMHookPoint *HP_inter_storage_guild_storage_tosql_pre; + struct HPMHookPoint *HP_inter_storage_guild_storage_tosql_post; + struct HPMHookPoint *HP_inter_storage_guild_storage_fromsql_pre; + struct HPMHookPoint *HP_inter_storage_guild_storage_fromsql_post; + struct HPMHookPoint *HP_inter_storage_sql_init_pre; + struct HPMHookPoint *HP_inter_storage_sql_init_post; + struct HPMHookPoint *HP_inter_storage_sql_final_pre; + struct HPMHookPoint *HP_inter_storage_sql_final_post; + struct HPMHookPoint *HP_inter_storage_delete__pre; + struct HPMHookPoint *HP_inter_storage_delete__post; + struct HPMHookPoint *HP_inter_storage_guild_storage_delete_pre; + struct HPMHookPoint *HP_inter_storage_guild_storage_delete_post; + struct HPMHookPoint *HP_inter_storage_parse_frommap_pre; + struct HPMHookPoint *HP_inter_storage_parse_frommap_post; + struct HPMHookPoint *HP_loginif_init_pre; + struct HPMHookPoint *HP_loginif_init_post; + struct HPMHookPoint *HP_loginif_final_pre; + struct HPMHookPoint *HP_loginif_final_post; + struct HPMHookPoint *HP_loginif_reset_pre; + struct HPMHookPoint *HP_loginif_reset_post; + struct HPMHookPoint *HP_loginif_check_shutdown_pre; + struct HPMHookPoint *HP_loginif_check_shutdown_post; + struct HPMHookPoint *HP_loginif_on_disconnect_pre; + struct HPMHookPoint *HP_loginif_on_disconnect_post; + struct HPMHookPoint *HP_loginif_on_ready_pre; + struct HPMHookPoint *HP_loginif_on_ready_post; + struct HPMHookPoint *HP_loginif_block_account_pre; + struct HPMHookPoint *HP_loginif_block_account_post; + struct HPMHookPoint *HP_loginif_ban_account_pre; + struct HPMHookPoint *HP_loginif_ban_account_post; + struct HPMHookPoint *HP_loginif_unban_account_pre; + struct HPMHookPoint *HP_loginif_unban_account_post; + struct HPMHookPoint *HP_loginif_changesex_pre; + struct HPMHookPoint *HP_loginif_changesex_post; + struct HPMHookPoint *HP_loginif_auth_pre; + struct HPMHookPoint *HP_loginif_auth_post; + struct HPMHookPoint *HP_loginif_send_users_count_pre; + struct HPMHookPoint *HP_loginif_send_users_count_post; + struct HPMHookPoint *HP_loginif_connect_to_server_pre; + struct HPMHookPoint *HP_loginif_connect_to_server_post; + struct HPMHookPoint *HP_mapif_ban_pre; + struct HPMHookPoint *HP_mapif_ban_post; + struct HPMHookPoint *HP_mapif_server_init_pre; + struct HPMHookPoint *HP_mapif_server_init_post; + struct HPMHookPoint *HP_mapif_server_destroy_pre; + struct HPMHookPoint *HP_mapif_server_destroy_post; + struct HPMHookPoint *HP_mapif_server_reset_pre; + struct HPMHookPoint *HP_mapif_server_reset_post; + struct HPMHookPoint *HP_mapif_on_disconnect_pre; + struct HPMHookPoint *HP_mapif_on_disconnect_post; + struct HPMHookPoint *HP_mapif_on_parse_accinfo_pre; + struct HPMHookPoint *HP_mapif_on_parse_accinfo_post; + struct HPMHookPoint *HP_mapif_char_ban_pre; + struct HPMHookPoint *HP_mapif_char_ban_post; + struct HPMHookPoint *HP_mapif_sendall_pre; + struct HPMHookPoint *HP_mapif_sendall_post; + struct HPMHookPoint *HP_mapif_sendallwos_pre; + struct HPMHookPoint *HP_mapif_sendallwos_post; + struct HPMHookPoint *HP_mapif_send_pre; + struct HPMHookPoint *HP_mapif_send_post; + struct HPMHookPoint *HP_mapif_send_users_count_pre; + struct HPMHookPoint *HP_mapif_send_users_count_post; + struct HPMHookPoint *HP_mapif_auction_message_pre; + struct HPMHookPoint *HP_mapif_auction_message_post; + struct HPMHookPoint *HP_mapif_auction_sendlist_pre; + struct HPMHookPoint *HP_mapif_auction_sendlist_post; + struct HPMHookPoint *HP_mapif_parse_auction_requestlist_pre; + struct HPMHookPoint *HP_mapif_parse_auction_requestlist_post; + struct HPMHookPoint *HP_mapif_auction_register_pre; + struct HPMHookPoint *HP_mapif_auction_register_post; + struct HPMHookPoint *HP_mapif_parse_auction_register_pre; + struct HPMHookPoint *HP_mapif_parse_auction_register_post; + struct HPMHookPoint *HP_mapif_auction_cancel_pre; + struct HPMHookPoint *HP_mapif_auction_cancel_post; + struct HPMHookPoint *HP_mapif_parse_auction_cancel_pre; + struct HPMHookPoint *HP_mapif_parse_auction_cancel_post; + struct HPMHookPoint *HP_mapif_auction_close_pre; + struct HPMHookPoint *HP_mapif_auction_close_post; + struct HPMHookPoint *HP_mapif_parse_auction_close_pre; + struct HPMHookPoint *HP_mapif_parse_auction_close_post; + struct HPMHookPoint *HP_mapif_auction_bid_pre; + struct HPMHookPoint *HP_mapif_auction_bid_post; + struct HPMHookPoint *HP_mapif_parse_auction_bid_pre; + struct HPMHookPoint *HP_mapif_parse_auction_bid_post; + struct HPMHookPoint *HP_mapif_elemental_save_pre; + struct HPMHookPoint *HP_mapif_elemental_save_post; + struct HPMHookPoint *HP_mapif_elemental_load_pre; + struct HPMHookPoint *HP_mapif_elemental_load_post; + struct HPMHookPoint *HP_mapif_elemental_delete_pre; + struct HPMHookPoint *HP_mapif_elemental_delete_post; + struct HPMHookPoint *HP_mapif_elemental_send_pre; + struct HPMHookPoint *HP_mapif_elemental_send_post; + struct HPMHookPoint *HP_mapif_parse_elemental_create_pre; + struct HPMHookPoint *HP_mapif_parse_elemental_create_post; + struct HPMHookPoint *HP_mapif_parse_elemental_load_pre; + struct HPMHookPoint *HP_mapif_parse_elemental_load_post; + struct HPMHookPoint *HP_mapif_elemental_deleted_pre; + struct HPMHookPoint *HP_mapif_elemental_deleted_post; + struct HPMHookPoint *HP_mapif_parse_elemental_delete_pre; + struct HPMHookPoint *HP_mapif_parse_elemental_delete_post; + struct HPMHookPoint *HP_mapif_elemental_saved_pre; + struct HPMHookPoint *HP_mapif_elemental_saved_post; + struct HPMHookPoint *HP_mapif_parse_elemental_save_pre; + struct HPMHookPoint *HP_mapif_parse_elemental_save_post; + struct HPMHookPoint *HP_mapif_guild_created_pre; + struct HPMHookPoint *HP_mapif_guild_created_post; + struct HPMHookPoint *HP_mapif_guild_noinfo_pre; + struct HPMHookPoint *HP_mapif_guild_noinfo_post; + struct HPMHookPoint *HP_mapif_guild_info_pre; + struct HPMHookPoint *HP_mapif_guild_info_post; + struct HPMHookPoint *HP_mapif_guild_memberadded_pre; + struct HPMHookPoint *HP_mapif_guild_memberadded_post; + struct HPMHookPoint *HP_mapif_guild_withdraw_pre; + struct HPMHookPoint *HP_mapif_guild_withdraw_post; + struct HPMHookPoint *HP_mapif_guild_memberinfoshort_pre; + struct HPMHookPoint *HP_mapif_guild_memberinfoshort_post; + struct HPMHookPoint *HP_mapif_guild_broken_pre; + struct HPMHookPoint *HP_mapif_guild_broken_post; + struct HPMHookPoint *HP_mapif_guild_message_pre; + struct HPMHookPoint *HP_mapif_guild_message_post; + struct HPMHookPoint *HP_mapif_guild_basicinfochanged_pre; + struct HPMHookPoint *HP_mapif_guild_basicinfochanged_post; + struct HPMHookPoint *HP_mapif_guild_memberinfochanged_pre; + struct HPMHookPoint *HP_mapif_guild_memberinfochanged_post; + struct HPMHookPoint *HP_mapif_guild_skillupack_pre; + struct HPMHookPoint *HP_mapif_guild_skillupack_post; + struct HPMHookPoint *HP_mapif_guild_alliance_pre; + struct HPMHookPoint *HP_mapif_guild_alliance_post; + struct HPMHookPoint *HP_mapif_guild_position_pre; + struct HPMHookPoint *HP_mapif_guild_position_post; + struct HPMHookPoint *HP_mapif_guild_notice_pre; + struct HPMHookPoint *HP_mapif_guild_notice_post; + struct HPMHookPoint *HP_mapif_guild_emblem_pre; + struct HPMHookPoint *HP_mapif_guild_emblem_post; + struct HPMHookPoint *HP_mapif_guild_master_changed_pre; + struct HPMHookPoint *HP_mapif_guild_master_changed_post; + struct HPMHookPoint *HP_mapif_guild_castle_dataload_pre; + struct HPMHookPoint *HP_mapif_guild_castle_dataload_post; + struct HPMHookPoint *HP_mapif_parse_CreateGuild_pre; + struct HPMHookPoint *HP_mapif_parse_CreateGuild_post; + struct HPMHookPoint *HP_mapif_parse_GuildInfo_pre; + struct HPMHookPoint *HP_mapif_parse_GuildInfo_post; + struct HPMHookPoint *HP_mapif_parse_GuildAddMember_pre; + struct HPMHookPoint *HP_mapif_parse_GuildAddMember_post; + struct HPMHookPoint *HP_mapif_parse_GuildLeave_pre; + struct HPMHookPoint *HP_mapif_parse_GuildLeave_post; + struct HPMHookPoint *HP_mapif_parse_GuildChangeMemberInfoShort_pre; + struct HPMHookPoint *HP_mapif_parse_GuildChangeMemberInfoShort_post; + struct HPMHookPoint *HP_mapif_parse_BreakGuild_pre; + struct HPMHookPoint *HP_mapif_parse_BreakGuild_post; + struct HPMHookPoint *HP_mapif_parse_GuildMessage_pre; + struct HPMHookPoint *HP_mapif_parse_GuildMessage_post; + struct HPMHookPoint *HP_mapif_parse_GuildBasicInfoChange_pre; + struct HPMHookPoint *HP_mapif_parse_GuildBasicInfoChange_post; + struct HPMHookPoint *HP_mapif_parse_GuildMemberInfoChange_pre; + struct HPMHookPoint *HP_mapif_parse_GuildMemberInfoChange_post; + struct HPMHookPoint *HP_mapif_parse_GuildPosition_pre; + struct HPMHookPoint *HP_mapif_parse_GuildPosition_post; + struct HPMHookPoint *HP_mapif_parse_GuildSkillUp_pre; + struct HPMHookPoint *HP_mapif_parse_GuildSkillUp_post; + struct HPMHookPoint *HP_mapif_parse_GuildDeleteAlliance_pre; + struct HPMHookPoint *HP_mapif_parse_GuildDeleteAlliance_post; + struct HPMHookPoint *HP_mapif_parse_GuildAlliance_pre; + struct HPMHookPoint *HP_mapif_parse_GuildAlliance_post; + struct HPMHookPoint *HP_mapif_parse_GuildNotice_pre; + struct HPMHookPoint *HP_mapif_parse_GuildNotice_post; + struct HPMHookPoint *HP_mapif_parse_GuildEmblem_pre; + struct HPMHookPoint *HP_mapif_parse_GuildEmblem_post; + struct HPMHookPoint *HP_mapif_parse_GuildCastleDataLoad_pre; + struct HPMHookPoint *HP_mapif_parse_GuildCastleDataLoad_post; + struct HPMHookPoint *HP_mapif_parse_GuildCastleDataSave_pre; + struct HPMHookPoint *HP_mapif_parse_GuildCastleDataSave_post; + struct HPMHookPoint *HP_mapif_parse_GuildMasterChange_pre; + struct HPMHookPoint *HP_mapif_parse_GuildMasterChange_post; + struct HPMHookPoint *HP_mapif_homunculus_created_pre; + struct HPMHookPoint *HP_mapif_homunculus_created_post; + struct HPMHookPoint *HP_mapif_homunculus_deleted_pre; + struct HPMHookPoint *HP_mapif_homunculus_deleted_post; + struct HPMHookPoint *HP_mapif_homunculus_loaded_pre; + struct HPMHookPoint *HP_mapif_homunculus_loaded_post; + struct HPMHookPoint *HP_mapif_homunculus_saved_pre; + struct HPMHookPoint *HP_mapif_homunculus_saved_post; + struct HPMHookPoint *HP_mapif_homunculus_renamed_pre; + struct HPMHookPoint *HP_mapif_homunculus_renamed_post; + struct HPMHookPoint *HP_mapif_homunculus_save_pre; + struct HPMHookPoint *HP_mapif_homunculus_save_post; + struct HPMHookPoint *HP_mapif_homunculus_load_pre; + struct HPMHookPoint *HP_mapif_homunculus_load_post; + struct HPMHookPoint *HP_mapif_homunculus_delete_pre; + struct HPMHookPoint *HP_mapif_homunculus_delete_post; + struct HPMHookPoint *HP_mapif_homunculus_rename_pre; + struct HPMHookPoint *HP_mapif_homunculus_rename_post; + struct HPMHookPoint *HP_mapif_parse_homunculus_create_pre; + struct HPMHookPoint *HP_mapif_parse_homunculus_create_post; + struct HPMHookPoint *HP_mapif_parse_homunculus_delete_pre; + struct HPMHookPoint *HP_mapif_parse_homunculus_delete_post; + struct HPMHookPoint *HP_mapif_parse_homunculus_load_pre; + struct HPMHookPoint *HP_mapif_parse_homunculus_load_post; + struct HPMHookPoint *HP_mapif_parse_homunculus_save_pre; + struct HPMHookPoint *HP_mapif_parse_homunculus_save_post; + struct HPMHookPoint *HP_mapif_parse_homunculus_rename_pre; + struct HPMHookPoint *HP_mapif_parse_homunculus_rename_post; + struct HPMHookPoint *HP_mapif_mail_sendinbox_pre; + struct HPMHookPoint *HP_mapif_mail_sendinbox_post; + struct HPMHookPoint *HP_mapif_parse_mail_requestinbox_pre; + struct HPMHookPoint *HP_mapif_parse_mail_requestinbox_post; + struct HPMHookPoint *HP_mapif_parse_mail_read_pre; + struct HPMHookPoint *HP_mapif_parse_mail_read_post; + struct HPMHookPoint *HP_mapif_mail_sendattach_pre; + struct HPMHookPoint *HP_mapif_mail_sendattach_post; + struct HPMHookPoint *HP_mapif_mail_getattach_pre; + struct HPMHookPoint *HP_mapif_mail_getattach_post; + struct HPMHookPoint *HP_mapif_parse_mail_getattach_pre; + struct HPMHookPoint *HP_mapif_parse_mail_getattach_post; + struct HPMHookPoint *HP_mapif_mail_delete_pre; + struct HPMHookPoint *HP_mapif_mail_delete_post; + struct HPMHookPoint *HP_mapif_parse_mail_delete_pre; + struct HPMHookPoint *HP_mapif_parse_mail_delete_post; + struct HPMHookPoint *HP_mapif_mail_new_pre; + struct HPMHookPoint *HP_mapif_mail_new_post; + struct HPMHookPoint *HP_mapif_mail_return_pre; + struct HPMHookPoint *HP_mapif_mail_return_post; + struct HPMHookPoint *HP_mapif_parse_mail_return_pre; + struct HPMHookPoint *HP_mapif_parse_mail_return_post; + struct HPMHookPoint *HP_mapif_mail_send_pre; + struct HPMHookPoint *HP_mapif_mail_send_post; + struct HPMHookPoint *HP_mapif_parse_mail_send_pre; + struct HPMHookPoint *HP_mapif_parse_mail_send_post; + struct HPMHookPoint *HP_mapif_mercenary_save_pre; + struct HPMHookPoint *HP_mapif_mercenary_save_post; + struct HPMHookPoint *HP_mapif_mercenary_load_pre; + struct HPMHookPoint *HP_mapif_mercenary_load_post; + struct HPMHookPoint *HP_mapif_mercenary_delete_pre; + struct HPMHookPoint *HP_mapif_mercenary_delete_post; + struct HPMHookPoint *HP_mapif_mercenary_send_pre; + struct HPMHookPoint *HP_mapif_mercenary_send_post; + struct HPMHookPoint *HP_mapif_parse_mercenary_create_pre; + struct HPMHookPoint *HP_mapif_parse_mercenary_create_post; + struct HPMHookPoint *HP_mapif_parse_mercenary_load_pre; + struct HPMHookPoint *HP_mapif_parse_mercenary_load_post; + struct HPMHookPoint *HP_mapif_mercenary_deleted_pre; + struct HPMHookPoint *HP_mapif_mercenary_deleted_post; + struct HPMHookPoint *HP_mapif_parse_mercenary_delete_pre; + struct HPMHookPoint *HP_mapif_parse_mercenary_delete_post; + struct HPMHookPoint *HP_mapif_mercenary_saved_pre; + struct HPMHookPoint *HP_mapif_mercenary_saved_post; + struct HPMHookPoint *HP_mapif_parse_mercenary_save_pre; + struct HPMHookPoint *HP_mapif_parse_mercenary_save_post; + struct HPMHookPoint *HP_mapif_party_created_pre; + struct HPMHookPoint *HP_mapif_party_created_post; + struct HPMHookPoint *HP_mapif_party_noinfo_pre; + struct HPMHookPoint *HP_mapif_party_noinfo_post; + struct HPMHookPoint *HP_mapif_party_info_pre; + struct HPMHookPoint *HP_mapif_party_info_post; + struct HPMHookPoint *HP_mapif_party_memberadded_pre; + struct HPMHookPoint *HP_mapif_party_memberadded_post; + struct HPMHookPoint *HP_mapif_party_optionchanged_pre; + struct HPMHookPoint *HP_mapif_party_optionchanged_post; + struct HPMHookPoint *HP_mapif_party_withdraw_pre; + struct HPMHookPoint *HP_mapif_party_withdraw_post; + struct HPMHookPoint *HP_mapif_party_membermoved_pre; + struct HPMHookPoint *HP_mapif_party_membermoved_post; + struct HPMHookPoint *HP_mapif_party_broken_pre; + struct HPMHookPoint *HP_mapif_party_broken_post; + struct HPMHookPoint *HP_mapif_party_message_pre; + struct HPMHookPoint *HP_mapif_party_message_post; + struct HPMHookPoint *HP_mapif_parse_CreateParty_pre; + struct HPMHookPoint *HP_mapif_parse_CreateParty_post; + struct HPMHookPoint *HP_mapif_parse_PartyInfo_pre; + struct HPMHookPoint *HP_mapif_parse_PartyInfo_post; + struct HPMHookPoint *HP_mapif_parse_PartyAddMember_pre; + struct HPMHookPoint *HP_mapif_parse_PartyAddMember_post; + struct HPMHookPoint *HP_mapif_parse_PartyChangeOption_pre; + struct HPMHookPoint *HP_mapif_parse_PartyChangeOption_post; + struct HPMHookPoint *HP_mapif_parse_PartyLeave_pre; + struct HPMHookPoint *HP_mapif_parse_PartyLeave_post; + struct HPMHookPoint *HP_mapif_parse_PartyChangeMap_pre; + struct HPMHookPoint *HP_mapif_parse_PartyChangeMap_post; + struct HPMHookPoint *HP_mapif_parse_BreakParty_pre; + struct HPMHookPoint *HP_mapif_parse_BreakParty_post; + struct HPMHookPoint *HP_mapif_parse_PartyMessage_pre; + struct HPMHookPoint *HP_mapif_parse_PartyMessage_post; + struct HPMHookPoint *HP_mapif_parse_PartyLeaderChange_pre; + struct HPMHookPoint *HP_mapif_parse_PartyLeaderChange_post; + struct HPMHookPoint *HP_mapif_pet_created_pre; + struct HPMHookPoint *HP_mapif_pet_created_post; + struct HPMHookPoint *HP_mapif_pet_info_pre; + struct HPMHookPoint *HP_mapif_pet_info_post; + struct HPMHookPoint *HP_mapif_pet_noinfo_pre; + struct HPMHookPoint *HP_mapif_pet_noinfo_post; + struct HPMHookPoint *HP_mapif_save_pet_ack_pre; + struct HPMHookPoint *HP_mapif_save_pet_ack_post; + struct HPMHookPoint *HP_mapif_delete_pet_ack_pre; + struct HPMHookPoint *HP_mapif_delete_pet_ack_post; + struct HPMHookPoint *HP_mapif_create_pet_pre; + struct HPMHookPoint *HP_mapif_create_pet_post; + struct HPMHookPoint *HP_mapif_load_pet_pre; + struct HPMHookPoint *HP_mapif_load_pet_post; + struct HPMHookPoint *HP_mapif_save_pet_pre; + struct HPMHookPoint *HP_mapif_save_pet_post; + struct HPMHookPoint *HP_mapif_delete_pet_pre; + struct HPMHookPoint *HP_mapif_delete_pet_post; + struct HPMHookPoint *HP_mapif_parse_CreatePet_pre; + struct HPMHookPoint *HP_mapif_parse_CreatePet_post; + struct HPMHookPoint *HP_mapif_parse_LoadPet_pre; + struct HPMHookPoint *HP_mapif_parse_LoadPet_post; + struct HPMHookPoint *HP_mapif_parse_SavePet_pre; + struct HPMHookPoint *HP_mapif_parse_SavePet_post; + struct HPMHookPoint *HP_mapif_parse_DeletePet_pre; + struct HPMHookPoint *HP_mapif_parse_DeletePet_post; + struct HPMHookPoint *HP_mapif_quests_fromsql_pre; + struct HPMHookPoint *HP_mapif_quests_fromsql_post; + struct HPMHookPoint *HP_mapif_quest_delete_pre; + struct HPMHookPoint *HP_mapif_quest_delete_post; + struct HPMHookPoint *HP_mapif_quest_add_pre; + struct HPMHookPoint *HP_mapif_quest_add_post; + struct HPMHookPoint *HP_mapif_quest_update_pre; + struct HPMHookPoint *HP_mapif_quest_update_post; + struct HPMHookPoint *HP_mapif_quest_save_ack_pre; + struct HPMHookPoint *HP_mapif_quest_save_ack_post; + struct HPMHookPoint *HP_mapif_parse_quest_save_pre; + struct HPMHookPoint *HP_mapif_parse_quest_save_post; + struct HPMHookPoint *HP_mapif_send_quests_pre; + struct HPMHookPoint *HP_mapif_send_quests_post; + struct HPMHookPoint *HP_mapif_parse_quest_load_pre; + struct HPMHookPoint *HP_mapif_parse_quest_load_post; + struct HPMHookPoint *HP_mapif_load_guild_storage_pre; + struct HPMHookPoint *HP_mapif_load_guild_storage_post; + struct HPMHookPoint *HP_mapif_save_guild_storage_ack_pre; + struct HPMHookPoint *HP_mapif_save_guild_storage_ack_post; + struct HPMHookPoint *HP_mapif_parse_LoadGuildStorage_pre; + struct HPMHookPoint *HP_mapif_parse_LoadGuildStorage_post; + struct HPMHookPoint *HP_mapif_parse_SaveGuildStorage_pre; + struct HPMHookPoint *HP_mapif_parse_SaveGuildStorage_post; + struct HPMHookPoint *HP_mapif_itembound_ack_pre; + struct HPMHookPoint *HP_mapif_itembound_ack_post; + struct HPMHookPoint *HP_mapif_parse_ItemBoundRetrieve_sub_pre; + struct HPMHookPoint *HP_mapif_parse_ItemBoundRetrieve_sub_post; + struct HPMHookPoint *HP_mapif_parse_ItemBoundRetrieve_pre; + struct HPMHookPoint *HP_mapif_parse_ItemBoundRetrieve_post; + struct HPMHookPoint *HP_mapif_parse_accinfo_pre; + struct HPMHookPoint *HP_mapif_parse_accinfo_post; + struct HPMHookPoint *HP_mapif_parse_accinfo2_pre; + struct HPMHookPoint *HP_mapif_parse_accinfo2_post; + struct HPMHookPoint *HP_mapif_broadcast_pre; + struct HPMHookPoint *HP_mapif_broadcast_post; + struct HPMHookPoint *HP_mapif_wis_message_pre; + struct HPMHookPoint *HP_mapif_wis_message_post; + struct HPMHookPoint *HP_mapif_wis_response_pre; + struct HPMHookPoint *HP_mapif_wis_response_post; + struct HPMHookPoint *HP_mapif_wis_end_pre; + struct HPMHookPoint *HP_mapif_wis_end_post; + struct HPMHookPoint *HP_mapif_account_reg_reply_pre; + struct HPMHookPoint *HP_mapif_account_reg_reply_post; + struct HPMHookPoint *HP_mapif_disconnectplayer_pre; + struct HPMHookPoint *HP_mapif_disconnectplayer_post; + struct HPMHookPoint *HP_mapif_parse_broadcast_pre; + struct HPMHookPoint *HP_mapif_parse_broadcast_post; + struct HPMHookPoint *HP_mapif_parse_WisRequest_pre; + struct HPMHookPoint *HP_mapif_parse_WisRequest_post; + struct HPMHookPoint *HP_mapif_parse_WisReply_pre; + struct HPMHookPoint *HP_mapif_parse_WisReply_post; + struct HPMHookPoint *HP_mapif_parse_WisToGM_pre; + struct HPMHookPoint *HP_mapif_parse_WisToGM_post; + struct HPMHookPoint *HP_mapif_parse_Registry_pre; + struct HPMHookPoint *HP_mapif_parse_Registry_post; + struct HPMHookPoint *HP_mapif_parse_RegistryRequest_pre; + struct HPMHookPoint *HP_mapif_parse_RegistryRequest_post; + struct HPMHookPoint *HP_mapif_namechange_ack_pre; + struct HPMHookPoint *HP_mapif_namechange_ack_post; + struct HPMHookPoint *HP_mapif_parse_NameChangeRequest_pre; + struct HPMHookPoint *HP_mapif_parse_NameChangeRequest_post; + struct HPMHookPoint *HP_pincode_handle_pre; + struct HPMHookPoint *HP_pincode_handle_post; + struct HPMHookPoint *HP_pincode_decrypt_pre; + struct HPMHookPoint *HP_pincode_decrypt_post; + struct HPMHookPoint *HP_pincode_error_pre; + struct HPMHookPoint *HP_pincode_error_post; + struct HPMHookPoint *HP_pincode_update_pre; + struct HPMHookPoint *HP_pincode_update_post; + struct HPMHookPoint *HP_pincode_sendstate_pre; + struct HPMHookPoint *HP_pincode_sendstate_post; + struct HPMHookPoint *HP_pincode_setnew_pre; + struct HPMHookPoint *HP_pincode_setnew_post; + struct HPMHookPoint *HP_pincode_change_pre; + struct HPMHookPoint *HP_pincode_change_post; + struct HPMHookPoint *HP_pincode_compare_pre; + struct HPMHookPoint *HP_pincode_compare_post; + struct HPMHookPoint *HP_pincode_check_pre; + struct HPMHookPoint *HP_pincode_check_post; + struct HPMHookPoint *HP_pincode_config_read_pre; + struct HPMHookPoint *HP_pincode_config_read_post; +} list; + +struct { + int HP_chr_waiting_disconnect_pre; + int HP_chr_waiting_disconnect_post; + int HP_chr_delete_char_sql_pre; + int HP_chr_delete_char_sql_post; + int HP_chr_create_online_char_data_pre; + int HP_chr_create_online_char_data_post; + int HP_chr_set_account_online_pre; + int HP_chr_set_account_online_post; + int HP_chr_set_account_offline_pre; + int HP_chr_set_account_offline_post; + int HP_chr_set_char_charselect_pre; + int HP_chr_set_char_charselect_post; + int HP_chr_set_char_online_pre; + int HP_chr_set_char_online_post; + int HP_chr_set_char_offline_pre; + int HP_chr_set_char_offline_post; + int HP_chr_db_setoffline_pre; + int HP_chr_db_setoffline_post; + int HP_chr_db_kickoffline_pre; + int HP_chr_db_kickoffline_post; + int HP_chr_set_login_all_offline_pre; + int HP_chr_set_login_all_offline_post; + int HP_chr_set_all_offline_pre; + int HP_chr_set_all_offline_post; + int HP_chr_set_all_offline_sql_pre; + int HP_chr_set_all_offline_sql_post; + int HP_chr_create_charstatus_pre; + int HP_chr_create_charstatus_post; + int HP_chr_mmo_char_tosql_pre; + int HP_chr_mmo_char_tosql_post; + int HP_chr_memitemdata_to_sql_pre; + int HP_chr_memitemdata_to_sql_post; + int HP_chr_inventory_to_sql_pre; + int HP_chr_inventory_to_sql_post; + int HP_chr_mmo_chars_fromsql_pre; + int HP_chr_mmo_chars_fromsql_post; + int HP_chr_mmo_char_fromsql_pre; + int HP_chr_mmo_char_fromsql_post; + int HP_chr_mmo_char_sql_init_pre; + int HP_chr_mmo_char_sql_init_post; + int HP_chr_char_slotchange_pre; + int HP_chr_char_slotchange_post; + int HP_chr_rename_char_sql_pre; + int HP_chr_rename_char_sql_post; + int HP_chr_check_char_name_pre; + int HP_chr_check_char_name_post; + int HP_chr_make_new_char_sql_pre; + int HP_chr_make_new_char_sql_post; + int HP_chr_divorce_char_sql_pre; + int HP_chr_divorce_char_sql_post; + int HP_chr_count_users_pre; + int HP_chr_count_users_post; + int HP_chr_mmo_char_tobuf_pre; + int HP_chr_mmo_char_tobuf_post; + int HP_chr_mmo_char_send099d_pre; + int HP_chr_mmo_char_send099d_post; + int HP_chr_mmo_char_send_ban_list_pre; + int HP_chr_mmo_char_send_ban_list_post; + int HP_chr_mmo_char_send_slots_info_pre; + int HP_chr_mmo_char_send_slots_info_post; + int HP_chr_mmo_char_send_characters_pre; + int HP_chr_mmo_char_send_characters_post; + int HP_chr_char_married_pre; + int HP_chr_char_married_post; + int HP_chr_char_child_pre; + int HP_chr_char_child_post; + int HP_chr_char_family_pre; + int HP_chr_char_family_post; + int HP_chr_disconnect_player_pre; + int HP_chr_disconnect_player_post; + int HP_chr_authfail_fd_pre; + int HP_chr_authfail_fd_post; + int HP_chr_request_account_data_pre; + int HP_chr_request_account_data_post; + int HP_chr_auth_ok_pre; + int HP_chr_auth_ok_post; + int HP_chr_ping_login_server_pre; + int HP_chr_ping_login_server_post; + int HP_chr_parse_fromlogin_connection_state_pre; + int HP_chr_parse_fromlogin_connection_state_post; + int HP_chr_auth_error_pre; + int HP_chr_auth_error_post; + int HP_chr_parse_fromlogin_auth_state_pre; + int HP_chr_parse_fromlogin_auth_state_post; + int HP_chr_parse_fromlogin_account_data_pre; + int HP_chr_parse_fromlogin_account_data_post; + int HP_chr_parse_fromlogin_login_pong_pre; + int HP_chr_parse_fromlogin_login_pong_post; + int HP_chr_changesex_pre; + int HP_chr_changesex_post; + int HP_chr_parse_fromlogin_changesex_reply_pre; + int HP_chr_parse_fromlogin_changesex_reply_post; + int HP_chr_parse_fromlogin_account_reg2_pre; + int HP_chr_parse_fromlogin_account_reg2_post; + int HP_chr_parse_fromlogin_ban_pre; + int HP_chr_parse_fromlogin_ban_post; + int HP_chr_parse_fromlogin_kick_pre; + int HP_chr_parse_fromlogin_kick_post; + int HP_chr_update_ip_pre; + int HP_chr_update_ip_post; + int HP_chr_parse_fromlogin_update_ip_pre; + int HP_chr_parse_fromlogin_update_ip_post; + int HP_chr_parse_fromlogin_accinfo2_failed_pre; + int HP_chr_parse_fromlogin_accinfo2_failed_post; + int HP_chr_parse_fromlogin_accinfo2_ok_pre; + int HP_chr_parse_fromlogin_accinfo2_ok_post; + int HP_chr_parse_fromlogin_pre; + int HP_chr_parse_fromlogin_post; + int HP_chr_request_accreg2_pre; + int HP_chr_request_accreg2_post; + int HP_chr_global_accreg_to_login_start_pre; + int HP_chr_global_accreg_to_login_start_post; + int HP_chr_global_accreg_to_login_send_pre; + int HP_chr_global_accreg_to_login_send_post; + int HP_chr_global_accreg_to_login_add_pre; + int HP_chr_global_accreg_to_login_add_post; + int HP_chr_read_fame_list_pre; + int HP_chr_read_fame_list_post; + int HP_chr_send_fame_list_pre; + int HP_chr_send_fame_list_post; + int HP_chr_update_fame_list_pre; + int HP_chr_update_fame_list_post; + int HP_chr_loadName_pre; + int HP_chr_loadName_post; + int HP_chr_parse_frommap_datasync_pre; + int HP_chr_parse_frommap_datasync_post; + int HP_chr_parse_frommap_skillid2idx_pre; + int HP_chr_parse_frommap_skillid2idx_post; + int HP_chr_map_received_ok_pre; + int HP_chr_map_received_ok_post; + int HP_chr_send_maps_pre; + int HP_chr_send_maps_post; + int HP_chr_parse_frommap_map_names_pre; + int HP_chr_parse_frommap_map_names_post; + int HP_chr_send_scdata_pre; + int HP_chr_send_scdata_post; + int HP_chr_parse_frommap_request_scdata_pre; + int HP_chr_parse_frommap_request_scdata_post; + int HP_chr_parse_frommap_set_users_count_pre; + int HP_chr_parse_frommap_set_users_count_post; + int HP_chr_parse_frommap_set_users_pre; + int HP_chr_parse_frommap_set_users_post; + int HP_chr_save_character_ack_pre; + int HP_chr_save_character_ack_post; + int HP_chr_parse_frommap_save_character_pre; + int HP_chr_parse_frommap_save_character_post; + int HP_chr_select_ack_pre; + int HP_chr_select_ack_post; + int HP_chr_parse_frommap_char_select_req_pre; + int HP_chr_parse_frommap_char_select_req_post; + int HP_chr_change_map_server_ack_pre; + int HP_chr_change_map_server_ack_post; + int HP_chr_parse_frommap_change_map_server_pre; + int HP_chr_parse_frommap_change_map_server_post; + int HP_chr_parse_frommap_remove_friend_pre; + int HP_chr_parse_frommap_remove_friend_post; + int HP_chr_char_name_ack_pre; + int HP_chr_char_name_ack_post; + int HP_chr_parse_frommap_char_name_request_pre; + int HP_chr_parse_frommap_char_name_request_post; + int HP_chr_parse_frommap_change_email_pre; + int HP_chr_parse_frommap_change_email_post; + int HP_chr_ban_pre; + int HP_chr_ban_post; + int HP_chr_unban_pre; + int HP_chr_unban_post; + int HP_chr_ask_name_ack_pre; + int HP_chr_ask_name_ack_post; + int HP_chr_parse_frommap_change_account_pre; + int HP_chr_parse_frommap_change_account_post; + int HP_chr_parse_frommap_fame_list_pre; + int HP_chr_parse_frommap_fame_list_post; + int HP_chr_parse_frommap_divorce_char_pre; + int HP_chr_parse_frommap_divorce_char_post; + int HP_chr_parse_frommap_ragsrvinfo_pre; + int HP_chr_parse_frommap_ragsrvinfo_post; + int HP_chr_parse_frommap_set_char_offline_pre; + int HP_chr_parse_frommap_set_char_offline_post; + int HP_chr_parse_frommap_set_all_offline_pre; + int HP_chr_parse_frommap_set_all_offline_post; + int HP_chr_parse_frommap_set_char_online_pre; + int HP_chr_parse_frommap_set_char_online_post; + int HP_chr_parse_frommap_build_fame_list_pre; + int HP_chr_parse_frommap_build_fame_list_post; + int HP_chr_parse_frommap_save_status_change_data_pre; + int HP_chr_parse_frommap_save_status_change_data_post; + int HP_chr_send_pong_pre; + int HP_chr_send_pong_post; + int HP_chr_parse_frommap_ping_pre; + int HP_chr_parse_frommap_ping_post; + int HP_chr_map_auth_ok_pre; + int HP_chr_map_auth_ok_post; + int HP_chr_map_auth_failed_pre; + int HP_chr_map_auth_failed_post; + int HP_chr_parse_frommap_auth_request_pre; + int HP_chr_parse_frommap_auth_request_post; + int HP_chr_parse_frommap_update_ip_pre; + int HP_chr_parse_frommap_update_ip_post; + int HP_chr_parse_frommap_request_stats_report_pre; + int HP_chr_parse_frommap_request_stats_report_post; + int HP_chr_parse_frommap_scdata_update_pre; + int HP_chr_parse_frommap_scdata_update_post; + int HP_chr_parse_frommap_scdata_delete_pre; + int HP_chr_parse_frommap_scdata_delete_post; + int HP_chr_parse_frommap_pre; + int HP_chr_parse_frommap_post; + int HP_chr_search_mapserver_pre; + int HP_chr_search_mapserver_post; + int HP_chr_mapif_init_pre; + int HP_chr_mapif_init_post; + int HP_chr_lan_subnetcheck_pre; + int HP_chr_lan_subnetcheck_post; + int HP_chr_delete2_ack_pre; + int HP_chr_delete2_ack_post; + int HP_chr_delete2_accept_actual_ack_pre; + int HP_chr_delete2_accept_actual_ack_post; + int HP_chr_delete2_accept_ack_pre; + int HP_chr_delete2_accept_ack_post; + int HP_chr_delete2_cancel_ack_pre; + int HP_chr_delete2_cancel_ack_post; + int HP_chr_delete2_req_pre; + int HP_chr_delete2_req_post; + int HP_chr_delete2_accept_pre; + int HP_chr_delete2_accept_post; + int HP_chr_delete2_cancel_pre; + int HP_chr_delete2_cancel_post; + int HP_chr_send_account_id_pre; + int HP_chr_send_account_id_post; + int HP_chr_parse_char_connect_pre; + int HP_chr_parse_char_connect_post; + int HP_chr_send_map_info_pre; + int HP_chr_send_map_info_post; + int HP_chr_send_wait_char_server_pre; + int HP_chr_send_wait_char_server_post; + int HP_chr_search_default_maps_mapserver_pre; + int HP_chr_search_default_maps_mapserver_post; + int HP_chr_parse_char_select_pre; + int HP_chr_parse_char_select_post; + int HP_chr_creation_failed_pre; + int HP_chr_creation_failed_post; + int HP_chr_creation_ok_pre; + int HP_chr_creation_ok_post; + int HP_chr_parse_char_create_new_char_pre; + int HP_chr_parse_char_create_new_char_post; + int HP_chr_delete_char_failed_pre; + int HP_chr_delete_char_failed_post; + int HP_chr_delete_char_ok_pre; + int HP_chr_delete_char_ok_post; + int HP_chr_parse_char_delete_char_pre; + int HP_chr_parse_char_delete_char_post; + int HP_chr_parse_char_ping_pre; + int HP_chr_parse_char_ping_post; + int HP_chr_allow_rename_pre; + int HP_chr_allow_rename_post; + int HP_chr_parse_char_rename_char_pre; + int HP_chr_parse_char_rename_char_post; + int HP_chr_parse_char_rename_char2_pre; + int HP_chr_parse_char_rename_char2_post; + int HP_chr_rename_char_ack_pre; + int HP_chr_rename_char_ack_post; + int HP_chr_parse_char_rename_char_confirm_pre; + int HP_chr_parse_char_rename_char_confirm_post; + int HP_chr_captcha_notsupported_pre; + int HP_chr_captcha_notsupported_post; + int HP_chr_parse_char_request_captcha_pre; + int HP_chr_parse_char_request_captcha_post; + int HP_chr_parse_char_check_captcha_pre; + int HP_chr_parse_char_check_captcha_post; + int HP_chr_parse_char_delete2_req_pre; + int HP_chr_parse_char_delete2_req_post; + int HP_chr_parse_char_delete2_accept_pre; + int HP_chr_parse_char_delete2_accept_post; + int HP_chr_parse_char_delete2_cancel_pre; + int HP_chr_parse_char_delete2_cancel_post; + int HP_chr_login_map_server_ack_pre; + int HP_chr_login_map_server_ack_post; + int HP_chr_parse_char_login_map_server_pre; + int HP_chr_parse_char_login_map_server_post; + int HP_chr_parse_char_pincode_check_pre; + int HP_chr_parse_char_pincode_check_post; + int HP_chr_parse_char_pincode_window_pre; + int HP_chr_parse_char_pincode_window_post; + int HP_chr_parse_char_pincode_change_pre; + int HP_chr_parse_char_pincode_change_post; + int HP_chr_parse_char_pincode_first_pin_pre; + int HP_chr_parse_char_pincode_first_pin_post; + int HP_chr_parse_char_request_chars_pre; + int HP_chr_parse_char_request_chars_post; + int HP_chr_change_character_slot_ack_pre; + int HP_chr_change_character_slot_ack_post; + int HP_chr_parse_char_move_character_pre; + int HP_chr_parse_char_move_character_post; + int HP_chr_parse_char_unknown_packet_pre; + int HP_chr_parse_char_unknown_packet_post; + int HP_chr_parse_char_pre; + int HP_chr_parse_char_post; + int HP_chr_broadcast_user_count_pre; + int HP_chr_broadcast_user_count_post; + int HP_chr_send_accounts_tologin_sub_pre; + int HP_chr_send_accounts_tologin_sub_post; + int HP_chr_send_accounts_tologin_pre; + int HP_chr_send_accounts_tologin_post; + int HP_chr_check_connect_login_server_pre; + int HP_chr_check_connect_login_server_post; + int HP_chr_online_data_cleanup_sub_pre; + int HP_chr_online_data_cleanup_sub_post; + int HP_chr_online_data_cleanup_pre; + int HP_chr_online_data_cleanup_post; + int HP_chr_lan_config_read_pre; + int HP_chr_lan_config_read_post; + int HP_chr_sql_config_read_pre; + int HP_chr_sql_config_read_post; + int HP_chr_config_dispatch_pre; + int HP_chr_config_dispatch_post; + int HP_chr_config_read_pre; + int HP_chr_config_read_post; + int HP_geoip_getcountry_pre; + int HP_geoip_getcountry_post; + int HP_geoip_final_pre; + int HP_geoip_final_post; + int HP_geoip_init_pre; + int HP_geoip_init_post; + int HP_inter_auction_count_pre; + int HP_inter_auction_count_post; + int HP_inter_auction_save_pre; + int HP_inter_auction_save_post; + int HP_inter_auction_create_pre; + int HP_inter_auction_create_post; + int HP_inter_auction_end_timer_pre; + int HP_inter_auction_end_timer_post; + int HP_inter_auction_delete__pre; + int HP_inter_auction_delete__post; + int HP_inter_auction_fromsql_pre; + int HP_inter_auction_fromsql_post; + int HP_inter_auction_parse_frommap_pre; + int HP_inter_auction_parse_frommap_post; + int HP_inter_auction_sql_init_pre; + int HP_inter_auction_sql_init_post; + int HP_inter_auction_sql_final_pre; + int HP_inter_auction_sql_final_post; + int HP_inter_elemental_sql_init_pre; + int HP_inter_elemental_sql_init_post; + int HP_inter_elemental_sql_final_pre; + int HP_inter_elemental_sql_final_post; + int HP_inter_elemental_parse_frommap_pre; + int HP_inter_elemental_parse_frommap_post; + int HP_inter_guild_save_timer_pre; + int HP_inter_guild_save_timer_post; + int HP_inter_guild_removemember_tosql_pre; + int HP_inter_guild_removemember_tosql_post; + int HP_inter_guild_tosql_pre; + int HP_inter_guild_tosql_post; + int HP_inter_guild_fromsql_pre; + int HP_inter_guild_fromsql_post; + int HP_inter_guild_castle_tosql_pre; + int HP_inter_guild_castle_tosql_post; + int HP_inter_guild_castle_fromsql_pre; + int HP_inter_guild_castle_fromsql_post; + int HP_inter_guild_exp_parse_row_pre; + int HP_inter_guild_exp_parse_row_post; + int HP_inter_guild_CharOnline_pre; + int HP_inter_guild_CharOnline_post; + int HP_inter_guild_CharOffline_pre; + int HP_inter_guild_CharOffline_post; + int HP_inter_guild_sql_init_pre; + int HP_inter_guild_sql_init_post; + int HP_inter_guild_db_final_pre; + int HP_inter_guild_db_final_post; + int HP_inter_guild_sql_final_pre; + int HP_inter_guild_sql_final_post; + int HP_inter_guild_search_guildname_pre; + int HP_inter_guild_search_guildname_post; + int HP_inter_guild_check_empty_pre; + int HP_inter_guild_check_empty_post; + int HP_inter_guild_nextexp_pre; + int HP_inter_guild_nextexp_post; + int HP_inter_guild_checkskill_pre; + int HP_inter_guild_checkskill_post; + int HP_inter_guild_calcinfo_pre; + int HP_inter_guild_calcinfo_post; + int HP_inter_guild_sex_changed_pre; + int HP_inter_guild_sex_changed_post; + int HP_inter_guild_charname_changed_pre; + int HP_inter_guild_charname_changed_post; + int HP_inter_guild_parse_frommap_pre; + int HP_inter_guild_parse_frommap_post; + int HP_inter_guild_leave_pre; + int HP_inter_guild_leave_post; + int HP_inter_guild_broken_pre; + int HP_inter_guild_broken_post; + int HP_inter_homunculus_sql_init_pre; + int HP_inter_homunculus_sql_init_post; + int HP_inter_homunculus_sql_final_pre; + int HP_inter_homunculus_sql_final_post; + int HP_inter_homunculus_parse_frommap_pre; + int HP_inter_homunculus_parse_frommap_post; + int HP_inter_msg_txt_pre; + int HP_inter_msg_txt_post; + int HP_inter_msg_config_read_pre; + int HP_inter_msg_config_read_post; + int HP_inter_do_final_msg_pre; + int HP_inter_do_final_msg_post; + int HP_inter_job_name_pre; + int HP_inter_job_name_post; + int HP_inter_vmsg_to_fd_pre; + int HP_inter_vmsg_to_fd_post; + int HP_inter_savereg_pre; + int HP_inter_savereg_post; + int HP_inter_accreg_fromsql_pre; + int HP_inter_accreg_fromsql_post; + int HP_inter_config_read_pre; + int HP_inter_config_read_post; + int HP_inter_vlog_pre; + int HP_inter_vlog_post; + int HP_inter_init_sql_pre; + int HP_inter_init_sql_post; + int HP_inter_mapif_init_pre; + int HP_inter_mapif_init_post; + int HP_inter_check_ttl_wisdata_sub_pre; + int HP_inter_check_ttl_wisdata_sub_post; + int HP_inter_check_ttl_wisdata_pre; + int HP_inter_check_ttl_wisdata_post; + int HP_inter_check_length_pre; + int HP_inter_check_length_post; + int HP_inter_parse_frommap_pre; + int HP_inter_parse_frommap_post; + int HP_inter_final_pre; + int HP_inter_final_post; + int HP_inter_mail_sql_init_pre; + int HP_inter_mail_sql_init_post; + int HP_inter_mail_sql_final_pre; + int HP_inter_mail_sql_final_post; + int HP_inter_mail_parse_frommap_pre; + int HP_inter_mail_parse_frommap_post; + int HP_inter_mail_fromsql_pre; + int HP_inter_mail_fromsql_post; + int HP_inter_mail_savemessage_pre; + int HP_inter_mail_savemessage_post; + int HP_inter_mail_loadmessage_pre; + int HP_inter_mail_loadmessage_post; + int HP_inter_mail_DeleteAttach_pre; + int HP_inter_mail_DeleteAttach_post; + int HP_inter_mail_sendmail_pre; + int HP_inter_mail_sendmail_post; + int HP_inter_mercenary_owner_fromsql_pre; + int HP_inter_mercenary_owner_fromsql_post; + int HP_inter_mercenary_owner_tosql_pre; + int HP_inter_mercenary_owner_tosql_post; + int HP_inter_mercenary_owner_delete_pre; + int HP_inter_mercenary_owner_delete_post; + int HP_inter_mercenary_sql_init_pre; + int HP_inter_mercenary_sql_init_post; + int HP_inter_mercenary_sql_final_pre; + int HP_inter_mercenary_sql_final_post; + int HP_inter_mercenary_parse_frommap_pre; + int HP_inter_mercenary_parse_frommap_post; + int HP_inter_party_check_lv_pre; + int HP_inter_party_check_lv_post; + int HP_inter_party_calc_state_pre; + int HP_inter_party_calc_state_post; + int HP_inter_party_tosql_pre; + int HP_inter_party_tosql_post; + int HP_inter_party_fromsql_pre; + int HP_inter_party_fromsql_post; + int HP_inter_party_sql_init_pre; + int HP_inter_party_sql_init_post; + int HP_inter_party_sql_final_pre; + int HP_inter_party_sql_final_post; + int HP_inter_party_search_partyname_pre; + int HP_inter_party_search_partyname_post; + int HP_inter_party_check_exp_share_pre; + int HP_inter_party_check_exp_share_post; + int HP_inter_party_check_empty_pre; + int HP_inter_party_check_empty_post; + int HP_inter_party_parse_frommap_pre; + int HP_inter_party_parse_frommap_post; + int HP_inter_party_leave_pre; + int HP_inter_party_leave_post; + int HP_inter_party_CharOnline_pre; + int HP_inter_party_CharOnline_post; + int HP_inter_party_CharOffline_pre; + int HP_inter_party_CharOffline_post; + int HP_inter_pet_tosql_pre; + int HP_inter_pet_tosql_post; + int HP_inter_pet_fromsql_pre; + int HP_inter_pet_fromsql_post; + int HP_inter_pet_sql_init_pre; + int HP_inter_pet_sql_init_post; + int HP_inter_pet_sql_final_pre; + int HP_inter_pet_sql_final_post; + int HP_inter_pet_delete__pre; + int HP_inter_pet_delete__post; + int HP_inter_pet_parse_frommap_pre; + int HP_inter_pet_parse_frommap_post; + int HP_inter_quest_parse_frommap_pre; + int HP_inter_quest_parse_frommap_post; + int HP_inter_storage_tosql_pre; + int HP_inter_storage_tosql_post; + int HP_inter_storage_fromsql_pre; + int HP_inter_storage_fromsql_post; + int HP_inter_storage_guild_storage_tosql_pre; + int HP_inter_storage_guild_storage_tosql_post; + int HP_inter_storage_guild_storage_fromsql_pre; + int HP_inter_storage_guild_storage_fromsql_post; + int HP_inter_storage_sql_init_pre; + int HP_inter_storage_sql_init_post; + int HP_inter_storage_sql_final_pre; + int HP_inter_storage_sql_final_post; + int HP_inter_storage_delete__pre; + int HP_inter_storage_delete__post; + int HP_inter_storage_guild_storage_delete_pre; + int HP_inter_storage_guild_storage_delete_post; + int HP_inter_storage_parse_frommap_pre; + int HP_inter_storage_parse_frommap_post; + int HP_loginif_init_pre; + int HP_loginif_init_post; + int HP_loginif_final_pre; + int HP_loginif_final_post; + int HP_loginif_reset_pre; + int HP_loginif_reset_post; + int HP_loginif_check_shutdown_pre; + int HP_loginif_check_shutdown_post; + int HP_loginif_on_disconnect_pre; + int HP_loginif_on_disconnect_post; + int HP_loginif_on_ready_pre; + int HP_loginif_on_ready_post; + int HP_loginif_block_account_pre; + int HP_loginif_block_account_post; + int HP_loginif_ban_account_pre; + int HP_loginif_ban_account_post; + int HP_loginif_unban_account_pre; + int HP_loginif_unban_account_post; + int HP_loginif_changesex_pre; + int HP_loginif_changesex_post; + int HP_loginif_auth_pre; + int HP_loginif_auth_post; + int HP_loginif_send_users_count_pre; + int HP_loginif_send_users_count_post; + int HP_loginif_connect_to_server_pre; + int HP_loginif_connect_to_server_post; + int HP_mapif_ban_pre; + int HP_mapif_ban_post; + int HP_mapif_server_init_pre; + int HP_mapif_server_init_post; + int HP_mapif_server_destroy_pre; + int HP_mapif_server_destroy_post; + int HP_mapif_server_reset_pre; + int HP_mapif_server_reset_post; + int HP_mapif_on_disconnect_pre; + int HP_mapif_on_disconnect_post; + int HP_mapif_on_parse_accinfo_pre; + int HP_mapif_on_parse_accinfo_post; + int HP_mapif_char_ban_pre; + int HP_mapif_char_ban_post; + int HP_mapif_sendall_pre; + int HP_mapif_sendall_post; + int HP_mapif_sendallwos_pre; + int HP_mapif_sendallwos_post; + int HP_mapif_send_pre; + int HP_mapif_send_post; + int HP_mapif_send_users_count_pre; + int HP_mapif_send_users_count_post; + int HP_mapif_auction_message_pre; + int HP_mapif_auction_message_post; + int HP_mapif_auction_sendlist_pre; + int HP_mapif_auction_sendlist_post; + int HP_mapif_parse_auction_requestlist_pre; + int HP_mapif_parse_auction_requestlist_post; + int HP_mapif_auction_register_pre; + int HP_mapif_auction_register_post; + int HP_mapif_parse_auction_register_pre; + int HP_mapif_parse_auction_register_post; + int HP_mapif_auction_cancel_pre; + int HP_mapif_auction_cancel_post; + int HP_mapif_parse_auction_cancel_pre; + int HP_mapif_parse_auction_cancel_post; + int HP_mapif_auction_close_pre; + int HP_mapif_auction_close_post; + int HP_mapif_parse_auction_close_pre; + int HP_mapif_parse_auction_close_post; + int HP_mapif_auction_bid_pre; + int HP_mapif_auction_bid_post; + int HP_mapif_parse_auction_bid_pre; + int HP_mapif_parse_auction_bid_post; + int HP_mapif_elemental_save_pre; + int HP_mapif_elemental_save_post; + int HP_mapif_elemental_load_pre; + int HP_mapif_elemental_load_post; + int HP_mapif_elemental_delete_pre; + int HP_mapif_elemental_delete_post; + int HP_mapif_elemental_send_pre; + int HP_mapif_elemental_send_post; + int HP_mapif_parse_elemental_create_pre; + int HP_mapif_parse_elemental_create_post; + int HP_mapif_parse_elemental_load_pre; + int HP_mapif_parse_elemental_load_post; + int HP_mapif_elemental_deleted_pre; + int HP_mapif_elemental_deleted_post; + int HP_mapif_parse_elemental_delete_pre; + int HP_mapif_parse_elemental_delete_post; + int HP_mapif_elemental_saved_pre; + int HP_mapif_elemental_saved_post; + int HP_mapif_parse_elemental_save_pre; + int HP_mapif_parse_elemental_save_post; + int HP_mapif_guild_created_pre; + int HP_mapif_guild_created_post; + int HP_mapif_guild_noinfo_pre; + int HP_mapif_guild_noinfo_post; + int HP_mapif_guild_info_pre; + int HP_mapif_guild_info_post; + int HP_mapif_guild_memberadded_pre; + int HP_mapif_guild_memberadded_post; + int HP_mapif_guild_withdraw_pre; + int HP_mapif_guild_withdraw_post; + int HP_mapif_guild_memberinfoshort_pre; + int HP_mapif_guild_memberinfoshort_post; + int HP_mapif_guild_broken_pre; + int HP_mapif_guild_broken_post; + int HP_mapif_guild_message_pre; + int HP_mapif_guild_message_post; + int HP_mapif_guild_basicinfochanged_pre; + int HP_mapif_guild_basicinfochanged_post; + int HP_mapif_guild_memberinfochanged_pre; + int HP_mapif_guild_memberinfochanged_post; + int HP_mapif_guild_skillupack_pre; + int HP_mapif_guild_skillupack_post; + int HP_mapif_guild_alliance_pre; + int HP_mapif_guild_alliance_post; + int HP_mapif_guild_position_pre; + int HP_mapif_guild_position_post; + int HP_mapif_guild_notice_pre; + int HP_mapif_guild_notice_post; + int HP_mapif_guild_emblem_pre; + int HP_mapif_guild_emblem_post; + int HP_mapif_guild_master_changed_pre; + int HP_mapif_guild_master_changed_post; + int HP_mapif_guild_castle_dataload_pre; + int HP_mapif_guild_castle_dataload_post; + int HP_mapif_parse_CreateGuild_pre; + int HP_mapif_parse_CreateGuild_post; + int HP_mapif_parse_GuildInfo_pre; + int HP_mapif_parse_GuildInfo_post; + int HP_mapif_parse_GuildAddMember_pre; + int HP_mapif_parse_GuildAddMember_post; + int HP_mapif_parse_GuildLeave_pre; + int HP_mapif_parse_GuildLeave_post; + int HP_mapif_parse_GuildChangeMemberInfoShort_pre; + int HP_mapif_parse_GuildChangeMemberInfoShort_post; + int HP_mapif_parse_BreakGuild_pre; + int HP_mapif_parse_BreakGuild_post; + int HP_mapif_parse_GuildMessage_pre; + int HP_mapif_parse_GuildMessage_post; + int HP_mapif_parse_GuildBasicInfoChange_pre; + int HP_mapif_parse_GuildBasicInfoChange_post; + int HP_mapif_parse_GuildMemberInfoChange_pre; + int HP_mapif_parse_GuildMemberInfoChange_post; + int HP_mapif_parse_GuildPosition_pre; + int HP_mapif_parse_GuildPosition_post; + int HP_mapif_parse_GuildSkillUp_pre; + int HP_mapif_parse_GuildSkillUp_post; + int HP_mapif_parse_GuildDeleteAlliance_pre; + int HP_mapif_parse_GuildDeleteAlliance_post; + int HP_mapif_parse_GuildAlliance_pre; + int HP_mapif_parse_GuildAlliance_post; + int HP_mapif_parse_GuildNotice_pre; + int HP_mapif_parse_GuildNotice_post; + int HP_mapif_parse_GuildEmblem_pre; + int HP_mapif_parse_GuildEmblem_post; + int HP_mapif_parse_GuildCastleDataLoad_pre; + int HP_mapif_parse_GuildCastleDataLoad_post; + int HP_mapif_parse_GuildCastleDataSave_pre; + int HP_mapif_parse_GuildCastleDataSave_post; + int HP_mapif_parse_GuildMasterChange_pre; + int HP_mapif_parse_GuildMasterChange_post; + int HP_mapif_homunculus_created_pre; + int HP_mapif_homunculus_created_post; + int HP_mapif_homunculus_deleted_pre; + int HP_mapif_homunculus_deleted_post; + int HP_mapif_homunculus_loaded_pre; + int HP_mapif_homunculus_loaded_post; + int HP_mapif_homunculus_saved_pre; + int HP_mapif_homunculus_saved_post; + int HP_mapif_homunculus_renamed_pre; + int HP_mapif_homunculus_renamed_post; + int HP_mapif_homunculus_save_pre; + int HP_mapif_homunculus_save_post; + int HP_mapif_homunculus_load_pre; + int HP_mapif_homunculus_load_post; + int HP_mapif_homunculus_delete_pre; + int HP_mapif_homunculus_delete_post; + int HP_mapif_homunculus_rename_pre; + int HP_mapif_homunculus_rename_post; + int HP_mapif_parse_homunculus_create_pre; + int HP_mapif_parse_homunculus_create_post; + int HP_mapif_parse_homunculus_delete_pre; + int HP_mapif_parse_homunculus_delete_post; + int HP_mapif_parse_homunculus_load_pre; + int HP_mapif_parse_homunculus_load_post; + int HP_mapif_parse_homunculus_save_pre; + int HP_mapif_parse_homunculus_save_post; + int HP_mapif_parse_homunculus_rename_pre; + int HP_mapif_parse_homunculus_rename_post; + int HP_mapif_mail_sendinbox_pre; + int HP_mapif_mail_sendinbox_post; + int HP_mapif_parse_mail_requestinbox_pre; + int HP_mapif_parse_mail_requestinbox_post; + int HP_mapif_parse_mail_read_pre; + int HP_mapif_parse_mail_read_post; + int HP_mapif_mail_sendattach_pre; + int HP_mapif_mail_sendattach_post; + int HP_mapif_mail_getattach_pre; + int HP_mapif_mail_getattach_post; + int HP_mapif_parse_mail_getattach_pre; + int HP_mapif_parse_mail_getattach_post; + int HP_mapif_mail_delete_pre; + int HP_mapif_mail_delete_post; + int HP_mapif_parse_mail_delete_pre; + int HP_mapif_parse_mail_delete_post; + int HP_mapif_mail_new_pre; + int HP_mapif_mail_new_post; + int HP_mapif_mail_return_pre; + int HP_mapif_mail_return_post; + int HP_mapif_parse_mail_return_pre; + int HP_mapif_parse_mail_return_post; + int HP_mapif_mail_send_pre; + int HP_mapif_mail_send_post; + int HP_mapif_parse_mail_send_pre; + int HP_mapif_parse_mail_send_post; + int HP_mapif_mercenary_save_pre; + int HP_mapif_mercenary_save_post; + int HP_mapif_mercenary_load_pre; + int HP_mapif_mercenary_load_post; + int HP_mapif_mercenary_delete_pre; + int HP_mapif_mercenary_delete_post; + int HP_mapif_mercenary_send_pre; + int HP_mapif_mercenary_send_post; + int HP_mapif_parse_mercenary_create_pre; + int HP_mapif_parse_mercenary_create_post; + int HP_mapif_parse_mercenary_load_pre; + int HP_mapif_parse_mercenary_load_post; + int HP_mapif_mercenary_deleted_pre; + int HP_mapif_mercenary_deleted_post; + int HP_mapif_parse_mercenary_delete_pre; + int HP_mapif_parse_mercenary_delete_post; + int HP_mapif_mercenary_saved_pre; + int HP_mapif_mercenary_saved_post; + int HP_mapif_parse_mercenary_save_pre; + int HP_mapif_parse_mercenary_save_post; + int HP_mapif_party_created_pre; + int HP_mapif_party_created_post; + int HP_mapif_party_noinfo_pre; + int HP_mapif_party_noinfo_post; + int HP_mapif_party_info_pre; + int HP_mapif_party_info_post; + int HP_mapif_party_memberadded_pre; + int HP_mapif_party_memberadded_post; + int HP_mapif_party_optionchanged_pre; + int HP_mapif_party_optionchanged_post; + int HP_mapif_party_withdraw_pre; + int HP_mapif_party_withdraw_post; + int HP_mapif_party_membermoved_pre; + int HP_mapif_party_membermoved_post; + int HP_mapif_party_broken_pre; + int HP_mapif_party_broken_post; + int HP_mapif_party_message_pre; + int HP_mapif_party_message_post; + int HP_mapif_parse_CreateParty_pre; + int HP_mapif_parse_CreateParty_post; + int HP_mapif_parse_PartyInfo_pre; + int HP_mapif_parse_PartyInfo_post; + int HP_mapif_parse_PartyAddMember_pre; + int HP_mapif_parse_PartyAddMember_post; + int HP_mapif_parse_PartyChangeOption_pre; + int HP_mapif_parse_PartyChangeOption_post; + int HP_mapif_parse_PartyLeave_pre; + int HP_mapif_parse_PartyLeave_post; + int HP_mapif_parse_PartyChangeMap_pre; + int HP_mapif_parse_PartyChangeMap_post; + int HP_mapif_parse_BreakParty_pre; + int HP_mapif_parse_BreakParty_post; + int HP_mapif_parse_PartyMessage_pre; + int HP_mapif_parse_PartyMessage_post; + int HP_mapif_parse_PartyLeaderChange_pre; + int HP_mapif_parse_PartyLeaderChange_post; + int HP_mapif_pet_created_pre; + int HP_mapif_pet_created_post; + int HP_mapif_pet_info_pre; + int HP_mapif_pet_info_post; + int HP_mapif_pet_noinfo_pre; + int HP_mapif_pet_noinfo_post; + int HP_mapif_save_pet_ack_pre; + int HP_mapif_save_pet_ack_post; + int HP_mapif_delete_pet_ack_pre; + int HP_mapif_delete_pet_ack_post; + int HP_mapif_create_pet_pre; + int HP_mapif_create_pet_post; + int HP_mapif_load_pet_pre; + int HP_mapif_load_pet_post; + int HP_mapif_save_pet_pre; + int HP_mapif_save_pet_post; + int HP_mapif_delete_pet_pre; + int HP_mapif_delete_pet_post; + int HP_mapif_parse_CreatePet_pre; + int HP_mapif_parse_CreatePet_post; + int HP_mapif_parse_LoadPet_pre; + int HP_mapif_parse_LoadPet_post; + int HP_mapif_parse_SavePet_pre; + int HP_mapif_parse_SavePet_post; + int HP_mapif_parse_DeletePet_pre; + int HP_mapif_parse_DeletePet_post; + int HP_mapif_quests_fromsql_pre; + int HP_mapif_quests_fromsql_post; + int HP_mapif_quest_delete_pre; + int HP_mapif_quest_delete_post; + int HP_mapif_quest_add_pre; + int HP_mapif_quest_add_post; + int HP_mapif_quest_update_pre; + int HP_mapif_quest_update_post; + int HP_mapif_quest_save_ack_pre; + int HP_mapif_quest_save_ack_post; + int HP_mapif_parse_quest_save_pre; + int HP_mapif_parse_quest_save_post; + int HP_mapif_send_quests_pre; + int HP_mapif_send_quests_post; + int HP_mapif_parse_quest_load_pre; + int HP_mapif_parse_quest_load_post; + int HP_mapif_load_guild_storage_pre; + int HP_mapif_load_guild_storage_post; + int HP_mapif_save_guild_storage_ack_pre; + int HP_mapif_save_guild_storage_ack_post; + int HP_mapif_parse_LoadGuildStorage_pre; + int HP_mapif_parse_LoadGuildStorage_post; + int HP_mapif_parse_SaveGuildStorage_pre; + int HP_mapif_parse_SaveGuildStorage_post; + int HP_mapif_itembound_ack_pre; + int HP_mapif_itembound_ack_post; + int HP_mapif_parse_ItemBoundRetrieve_sub_pre; + int HP_mapif_parse_ItemBoundRetrieve_sub_post; + int HP_mapif_parse_ItemBoundRetrieve_pre; + int HP_mapif_parse_ItemBoundRetrieve_post; + int HP_mapif_parse_accinfo_pre; + int HP_mapif_parse_accinfo_post; + int HP_mapif_parse_accinfo2_pre; + int HP_mapif_parse_accinfo2_post; + int HP_mapif_broadcast_pre; + int HP_mapif_broadcast_post; + int HP_mapif_wis_message_pre; + int HP_mapif_wis_message_post; + int HP_mapif_wis_response_pre; + int HP_mapif_wis_response_post; + int HP_mapif_wis_end_pre; + int HP_mapif_wis_end_post; + int HP_mapif_account_reg_reply_pre; + int HP_mapif_account_reg_reply_post; + int HP_mapif_disconnectplayer_pre; + int HP_mapif_disconnectplayer_post; + int HP_mapif_parse_broadcast_pre; + int HP_mapif_parse_broadcast_post; + int HP_mapif_parse_WisRequest_pre; + int HP_mapif_parse_WisRequest_post; + int HP_mapif_parse_WisReply_pre; + int HP_mapif_parse_WisReply_post; + int HP_mapif_parse_WisToGM_pre; + int HP_mapif_parse_WisToGM_post; + int HP_mapif_parse_Registry_pre; + int HP_mapif_parse_Registry_post; + int HP_mapif_parse_RegistryRequest_pre; + int HP_mapif_parse_RegistryRequest_post; + int HP_mapif_namechange_ack_pre; + int HP_mapif_namechange_ack_post; + int HP_mapif_parse_NameChangeRequest_pre; + int HP_mapif_parse_NameChangeRequest_post; + int HP_pincode_handle_pre; + int HP_pincode_handle_post; + int HP_pincode_decrypt_pre; + int HP_pincode_decrypt_post; + int HP_pincode_error_pre; + int HP_pincode_error_post; + int HP_pincode_update_pre; + int HP_pincode_update_post; + int HP_pincode_sendstate_pre; + int HP_pincode_sendstate_post; + int HP_pincode_setnew_pre; + int HP_pincode_setnew_post; + int HP_pincode_change_pre; + int HP_pincode_change_post; + int HP_pincode_compare_pre; + int HP_pincode_compare_post; + int HP_pincode_check_pre; + int HP_pincode_check_post; + int HP_pincode_config_read_pre; + int HP_pincode_config_read_post; +} count; + +struct { + struct char_interface chr; + struct geoip_interface geoip; + struct inter_auction_interface inter_auction; + struct inter_elemental_interface inter_elemental; + struct inter_guild_interface inter_guild; + struct inter_homunculus_interface inter_homunculus; + struct inter_interface inter; + struct inter_mail_interface inter_mail; + struct inter_mercenary_interface inter_mercenary; + struct inter_party_interface inter_party; + struct inter_pet_interface inter_pet; + struct inter_quest_interface inter_quest; + struct inter_storage_interface inter_storage; + struct loginif_interface loginif; + struct mapif_interface mapif; + struct pincode_interface pincode; +} source; diff --git a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc new file mode 100644 index 000000000..aa279dbb4 --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc @@ -0,0 +1,472 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +struct HookingPointData HookingPoints[] = { +/* chr */ + { HP_POP(chr->waiting_disconnect, HP_chr_waiting_disconnect) }, + { HP_POP(chr->delete_char_sql, HP_chr_delete_char_sql) }, + { HP_POP(chr->create_online_char_data, HP_chr_create_online_char_data) }, + { HP_POP(chr->set_account_online, HP_chr_set_account_online) }, + { HP_POP(chr->set_account_offline, HP_chr_set_account_offline) }, + { HP_POP(chr->set_char_charselect, HP_chr_set_char_charselect) }, + { HP_POP(chr->set_char_online, HP_chr_set_char_online) }, + { HP_POP(chr->set_char_offline, HP_chr_set_char_offline) }, + { HP_POP(chr->db_setoffline, HP_chr_db_setoffline) }, + { HP_POP(chr->db_kickoffline, HP_chr_db_kickoffline) }, + { HP_POP(chr->set_login_all_offline, HP_chr_set_login_all_offline) }, + { HP_POP(chr->set_all_offline, HP_chr_set_all_offline) }, + { HP_POP(chr->set_all_offline_sql, HP_chr_set_all_offline_sql) }, + { HP_POP(chr->create_charstatus, HP_chr_create_charstatus) }, + { HP_POP(chr->mmo_char_tosql, HP_chr_mmo_char_tosql) }, + { HP_POP(chr->memitemdata_to_sql, HP_chr_memitemdata_to_sql) }, + { HP_POP(chr->inventory_to_sql, HP_chr_inventory_to_sql) }, + { HP_POP(chr->mmo_chars_fromsql, HP_chr_mmo_chars_fromsql) }, + { HP_POP(chr->mmo_char_fromsql, HP_chr_mmo_char_fromsql) }, + { HP_POP(chr->mmo_char_sql_init, HP_chr_mmo_char_sql_init) }, + { HP_POP(chr->char_slotchange, HP_chr_char_slotchange) }, + { HP_POP(chr->rename_char_sql, HP_chr_rename_char_sql) }, + { HP_POP(chr->check_char_name, HP_chr_check_char_name) }, + { HP_POP(chr->make_new_char_sql, HP_chr_make_new_char_sql) }, + { HP_POP(chr->divorce_char_sql, HP_chr_divorce_char_sql) }, + { HP_POP(chr->count_users, HP_chr_count_users) }, + { HP_POP(chr->mmo_char_tobuf, HP_chr_mmo_char_tobuf) }, + { HP_POP(chr->mmo_char_send099d, HP_chr_mmo_char_send099d) }, + { HP_POP(chr->mmo_char_send_ban_list, HP_chr_mmo_char_send_ban_list) }, + { HP_POP(chr->mmo_char_send_slots_info, HP_chr_mmo_char_send_slots_info) }, + { HP_POP(chr->mmo_char_send_characters, HP_chr_mmo_char_send_characters) }, + { HP_POP(chr->char_married, HP_chr_char_married) }, + { HP_POP(chr->char_child, HP_chr_char_child) }, + { HP_POP(chr->char_family, HP_chr_char_family) }, + { HP_POP(chr->disconnect_player, HP_chr_disconnect_player) }, + { HP_POP(chr->authfail_fd, HP_chr_authfail_fd) }, + { HP_POP(chr->request_account_data, HP_chr_request_account_data) }, + { HP_POP(chr->auth_ok, HP_chr_auth_ok) }, + { HP_POP(chr->ping_login_server, HP_chr_ping_login_server) }, + { HP_POP(chr->parse_fromlogin_connection_state, HP_chr_parse_fromlogin_connection_state) }, + { HP_POP(chr->auth_error, HP_chr_auth_error) }, + { HP_POP(chr->parse_fromlogin_auth_state, HP_chr_parse_fromlogin_auth_state) }, + { HP_POP(chr->parse_fromlogin_account_data, HP_chr_parse_fromlogin_account_data) }, + { HP_POP(chr->parse_fromlogin_login_pong, HP_chr_parse_fromlogin_login_pong) }, + { HP_POP(chr->changesex, HP_chr_changesex) }, + { HP_POP(chr->parse_fromlogin_changesex_reply, HP_chr_parse_fromlogin_changesex_reply) }, + { HP_POP(chr->parse_fromlogin_account_reg2, HP_chr_parse_fromlogin_account_reg2) }, + { HP_POP(chr->parse_fromlogin_ban, HP_chr_parse_fromlogin_ban) }, + { HP_POP(chr->parse_fromlogin_kick, HP_chr_parse_fromlogin_kick) }, + { HP_POP(chr->update_ip, HP_chr_update_ip) }, + { HP_POP(chr->parse_fromlogin_update_ip, HP_chr_parse_fromlogin_update_ip) }, + { HP_POP(chr->parse_fromlogin_accinfo2_failed, HP_chr_parse_fromlogin_accinfo2_failed) }, + { HP_POP(chr->parse_fromlogin_accinfo2_ok, HP_chr_parse_fromlogin_accinfo2_ok) }, + { HP_POP(chr->parse_fromlogin, HP_chr_parse_fromlogin) }, + { HP_POP(chr->request_accreg2, HP_chr_request_accreg2) }, + { HP_POP(chr->global_accreg_to_login_start, HP_chr_global_accreg_to_login_start) }, + { HP_POP(chr->global_accreg_to_login_send, HP_chr_global_accreg_to_login_send) }, + { HP_POP(chr->global_accreg_to_login_add, HP_chr_global_accreg_to_login_add) }, + { HP_POP(chr->read_fame_list, HP_chr_read_fame_list) }, + { HP_POP(chr->send_fame_list, HP_chr_send_fame_list) }, + { HP_POP(chr->update_fame_list, HP_chr_update_fame_list) }, + { HP_POP(chr->loadName, HP_chr_loadName) }, + { HP_POP(chr->parse_frommap_datasync, HP_chr_parse_frommap_datasync) }, + { HP_POP(chr->parse_frommap_skillid2idx, HP_chr_parse_frommap_skillid2idx) }, + { HP_POP(chr->map_received_ok, HP_chr_map_received_ok) }, + { HP_POP(chr->send_maps, HP_chr_send_maps) }, + { HP_POP(chr->parse_frommap_map_names, HP_chr_parse_frommap_map_names) }, + { HP_POP(chr->send_scdata, HP_chr_send_scdata) }, + { HP_POP(chr->parse_frommap_request_scdata, HP_chr_parse_frommap_request_scdata) }, + { HP_POP(chr->parse_frommap_set_users_count, HP_chr_parse_frommap_set_users_count) }, + { HP_POP(chr->parse_frommap_set_users, HP_chr_parse_frommap_set_users) }, + { HP_POP(chr->save_character_ack, HP_chr_save_character_ack) }, + { HP_POP(chr->parse_frommap_save_character, HP_chr_parse_frommap_save_character) }, + { HP_POP(chr->select_ack, HP_chr_select_ack) }, + { HP_POP(chr->parse_frommap_char_select_req, HP_chr_parse_frommap_char_select_req) }, + { HP_POP(chr->change_map_server_ack, HP_chr_change_map_server_ack) }, + { HP_POP(chr->parse_frommap_change_map_server, HP_chr_parse_frommap_change_map_server) }, + { HP_POP(chr->parse_frommap_remove_friend, HP_chr_parse_frommap_remove_friend) }, + { HP_POP(chr->char_name_ack, HP_chr_char_name_ack) }, + { HP_POP(chr->parse_frommap_char_name_request, HP_chr_parse_frommap_char_name_request) }, + { HP_POP(chr->parse_frommap_change_email, HP_chr_parse_frommap_change_email) }, + { HP_POP(chr->ban, HP_chr_ban) }, + { HP_POP(chr->unban, HP_chr_unban) }, + { HP_POP(chr->ask_name_ack, HP_chr_ask_name_ack) }, + { HP_POP(chr->parse_frommap_change_account, HP_chr_parse_frommap_change_account) }, + { HP_POP(chr->parse_frommap_fame_list, HP_chr_parse_frommap_fame_list) }, + { HP_POP(chr->parse_frommap_divorce_char, HP_chr_parse_frommap_divorce_char) }, + { HP_POP(chr->parse_frommap_ragsrvinfo, HP_chr_parse_frommap_ragsrvinfo) }, + { HP_POP(chr->parse_frommap_set_char_offline, HP_chr_parse_frommap_set_char_offline) }, + { HP_POP(chr->parse_frommap_set_all_offline, HP_chr_parse_frommap_set_all_offline) }, + { HP_POP(chr->parse_frommap_set_char_online, HP_chr_parse_frommap_set_char_online) }, + { HP_POP(chr->parse_frommap_build_fame_list, HP_chr_parse_frommap_build_fame_list) }, + { HP_POP(chr->parse_frommap_save_status_change_data, HP_chr_parse_frommap_save_status_change_data) }, + { HP_POP(chr->send_pong, HP_chr_send_pong) }, + { HP_POP(chr->parse_frommap_ping, HP_chr_parse_frommap_ping) }, + { HP_POP(chr->map_auth_ok, HP_chr_map_auth_ok) }, + { HP_POP(chr->map_auth_failed, HP_chr_map_auth_failed) }, + { HP_POP(chr->parse_frommap_auth_request, HP_chr_parse_frommap_auth_request) }, + { HP_POP(chr->parse_frommap_update_ip, HP_chr_parse_frommap_update_ip) }, + { HP_POP(chr->parse_frommap_request_stats_report, HP_chr_parse_frommap_request_stats_report) }, + { HP_POP(chr->parse_frommap_scdata_update, HP_chr_parse_frommap_scdata_update) }, + { HP_POP(chr->parse_frommap_scdata_delete, HP_chr_parse_frommap_scdata_delete) }, + { HP_POP(chr->parse_frommap, HP_chr_parse_frommap) }, + { HP_POP(chr->search_mapserver, HP_chr_search_mapserver) }, + { HP_POP(chr->mapif_init, HP_chr_mapif_init) }, + { HP_POP(chr->lan_subnetcheck, HP_chr_lan_subnetcheck) }, + { HP_POP(chr->delete2_ack, HP_chr_delete2_ack) }, + { HP_POP(chr->delete2_accept_actual_ack, HP_chr_delete2_accept_actual_ack) }, + { HP_POP(chr->delete2_accept_ack, HP_chr_delete2_accept_ack) }, + { HP_POP(chr->delete2_cancel_ack, HP_chr_delete2_cancel_ack) }, + { HP_POP(chr->delete2_req, HP_chr_delete2_req) }, + { HP_POP(chr->delete2_accept, HP_chr_delete2_accept) }, + { HP_POP(chr->delete2_cancel, HP_chr_delete2_cancel) }, + { HP_POP(chr->send_account_id, HP_chr_send_account_id) }, + { HP_POP(chr->parse_char_connect, HP_chr_parse_char_connect) }, + { HP_POP(chr->send_map_info, HP_chr_send_map_info) }, + { HP_POP(chr->send_wait_char_server, HP_chr_send_wait_char_server) }, + { HP_POP(chr->search_default_maps_mapserver, HP_chr_search_default_maps_mapserver) }, + { HP_POP(chr->parse_char_select, HP_chr_parse_char_select) }, + { HP_POP(chr->creation_failed, HP_chr_creation_failed) }, + { HP_POP(chr->creation_ok, HP_chr_creation_ok) }, + { HP_POP(chr->parse_char_create_new_char, HP_chr_parse_char_create_new_char) }, + { HP_POP(chr->delete_char_failed, HP_chr_delete_char_failed) }, + { HP_POP(chr->delete_char_ok, HP_chr_delete_char_ok) }, + { HP_POP(chr->parse_char_delete_char, HP_chr_parse_char_delete_char) }, + { HP_POP(chr->parse_char_ping, HP_chr_parse_char_ping) }, + { HP_POP(chr->allow_rename, HP_chr_allow_rename) }, + { HP_POP(chr->parse_char_rename_char, HP_chr_parse_char_rename_char) }, + { HP_POP(chr->parse_char_rename_char2, HP_chr_parse_char_rename_char2) }, + { HP_POP(chr->rename_char_ack, HP_chr_rename_char_ack) }, + { HP_POP(chr->parse_char_rename_char_confirm, HP_chr_parse_char_rename_char_confirm) }, + { HP_POP(chr->captcha_notsupported, HP_chr_captcha_notsupported) }, + { HP_POP(chr->parse_char_request_captcha, HP_chr_parse_char_request_captcha) }, + { HP_POP(chr->parse_char_check_captcha, HP_chr_parse_char_check_captcha) }, + { HP_POP(chr->parse_char_delete2_req, HP_chr_parse_char_delete2_req) }, + { HP_POP(chr->parse_char_delete2_accept, HP_chr_parse_char_delete2_accept) }, + { HP_POP(chr->parse_char_delete2_cancel, HP_chr_parse_char_delete2_cancel) }, + { HP_POP(chr->login_map_server_ack, HP_chr_login_map_server_ack) }, + { HP_POP(chr->parse_char_login_map_server, HP_chr_parse_char_login_map_server) }, + { HP_POP(chr->parse_char_pincode_check, HP_chr_parse_char_pincode_check) }, + { HP_POP(chr->parse_char_pincode_window, HP_chr_parse_char_pincode_window) }, + { HP_POP(chr->parse_char_pincode_change, HP_chr_parse_char_pincode_change) }, + { HP_POP(chr->parse_char_pincode_first_pin, HP_chr_parse_char_pincode_first_pin) }, + { HP_POP(chr->parse_char_request_chars, HP_chr_parse_char_request_chars) }, + { HP_POP(chr->change_character_slot_ack, HP_chr_change_character_slot_ack) }, + { HP_POP(chr->parse_char_move_character, HP_chr_parse_char_move_character) }, + { HP_POP(chr->parse_char_unknown_packet, HP_chr_parse_char_unknown_packet) }, + { HP_POP(chr->parse_char, HP_chr_parse_char) }, + { HP_POP(chr->broadcast_user_count, HP_chr_broadcast_user_count) }, + { HP_POP(chr->send_accounts_tologin_sub, HP_chr_send_accounts_tologin_sub) }, + { HP_POP(chr->send_accounts_tologin, HP_chr_send_accounts_tologin) }, + { HP_POP(chr->check_connect_login_server, HP_chr_check_connect_login_server) }, + { HP_POP(chr->online_data_cleanup_sub, HP_chr_online_data_cleanup_sub) }, + { HP_POP(chr->online_data_cleanup, HP_chr_online_data_cleanup) }, + { HP_POP(chr->lan_config_read, HP_chr_lan_config_read) }, + { HP_POP(chr->sql_config_read, HP_chr_sql_config_read) }, + { HP_POP(chr->config_dispatch, HP_chr_config_dispatch) }, + { HP_POP(chr->config_read, HP_chr_config_read) }, +/* geoip */ + { HP_POP(geoip->getcountry, HP_geoip_getcountry) }, + { HP_POP(geoip->final, HP_geoip_final) }, + { HP_POP(geoip->init, HP_geoip_init) }, +/* inter_auction */ + { HP_POP(inter_auction->count, HP_inter_auction_count) }, + { HP_POP(inter_auction->save, HP_inter_auction_save) }, + { HP_POP(inter_auction->create, HP_inter_auction_create) }, + { HP_POP(inter_auction->end_timer, HP_inter_auction_end_timer) }, + { HP_POP(inter_auction->delete_, HP_inter_auction_delete_) }, + { HP_POP(inter_auction->fromsql, HP_inter_auction_fromsql) }, + { HP_POP(inter_auction->parse_frommap, HP_inter_auction_parse_frommap) }, + { HP_POP(inter_auction->sql_init, HP_inter_auction_sql_init) }, + { HP_POP(inter_auction->sql_final, HP_inter_auction_sql_final) }, +/* inter_elemental */ + { HP_POP(inter_elemental->sql_init, HP_inter_elemental_sql_init) }, + { HP_POP(inter_elemental->sql_final, HP_inter_elemental_sql_final) }, + { HP_POP(inter_elemental->parse_frommap, HP_inter_elemental_parse_frommap) }, +/* inter_guild */ + { HP_POP(inter_guild->save_timer, HP_inter_guild_save_timer) }, + { HP_POP(inter_guild->removemember_tosql, HP_inter_guild_removemember_tosql) }, + { HP_POP(inter_guild->tosql, HP_inter_guild_tosql) }, + { HP_POP(inter_guild->fromsql, HP_inter_guild_fromsql) }, + { HP_POP(inter_guild->castle_tosql, HP_inter_guild_castle_tosql) }, + { HP_POP(inter_guild->castle_fromsql, HP_inter_guild_castle_fromsql) }, + { HP_POP(inter_guild->exp_parse_row, HP_inter_guild_exp_parse_row) }, + { HP_POP(inter_guild->CharOnline, HP_inter_guild_CharOnline) }, + { HP_POP(inter_guild->CharOffline, HP_inter_guild_CharOffline) }, + { HP_POP(inter_guild->sql_init, HP_inter_guild_sql_init) }, + { HP_POP(inter_guild->db_final, HP_inter_guild_db_final) }, + { HP_POP(inter_guild->sql_final, HP_inter_guild_sql_final) }, + { HP_POP(inter_guild->search_guildname, HP_inter_guild_search_guildname) }, + { HP_POP(inter_guild->check_empty, HP_inter_guild_check_empty) }, + { HP_POP(inter_guild->nextexp, HP_inter_guild_nextexp) }, + { HP_POP(inter_guild->checkskill, HP_inter_guild_checkskill) }, + { HP_POP(inter_guild->calcinfo, HP_inter_guild_calcinfo) }, + { HP_POP(inter_guild->sex_changed, HP_inter_guild_sex_changed) }, + { HP_POP(inter_guild->charname_changed, HP_inter_guild_charname_changed) }, + { HP_POP(inter_guild->parse_frommap, HP_inter_guild_parse_frommap) }, + { HP_POP(inter_guild->leave, HP_inter_guild_leave) }, + { HP_POP(inter_guild->broken, HP_inter_guild_broken) }, +/* inter_homunculus */ + { HP_POP(inter_homunculus->sql_init, HP_inter_homunculus_sql_init) }, + { HP_POP(inter_homunculus->sql_final, HP_inter_homunculus_sql_final) }, + { HP_POP(inter_homunculus->parse_frommap, HP_inter_homunculus_parse_frommap) }, +/* inter */ + { HP_POP(inter->msg_txt, HP_inter_msg_txt) }, + { HP_POP(inter->msg_config_read, HP_inter_msg_config_read) }, + { HP_POP(inter->do_final_msg, HP_inter_do_final_msg) }, + { HP_POP(inter->job_name, HP_inter_job_name) }, + { HP_POP(inter->vmsg_to_fd, HP_inter_vmsg_to_fd) }, + { HP_POP(inter->savereg, HP_inter_savereg) }, + { HP_POP(inter->accreg_fromsql, HP_inter_accreg_fromsql) }, + { HP_POP(inter->config_read, HP_inter_config_read) }, + { HP_POP(inter->vlog, HP_inter_vlog) }, + { HP_POP(inter->init_sql, HP_inter_init_sql) }, + { HP_POP(inter->mapif_init, HP_inter_mapif_init) }, + { HP_POP(inter->check_ttl_wisdata_sub, HP_inter_check_ttl_wisdata_sub) }, + { HP_POP(inter->check_ttl_wisdata, HP_inter_check_ttl_wisdata) }, + { HP_POP(inter->check_length, HP_inter_check_length) }, + { HP_POP(inter->parse_frommap, HP_inter_parse_frommap) }, + { HP_POP(inter->final, HP_inter_final) }, +/* inter_mail */ + { HP_POP(inter_mail->sql_init, HP_inter_mail_sql_init) }, + { HP_POP(inter_mail->sql_final, HP_inter_mail_sql_final) }, + { HP_POP(inter_mail->parse_frommap, HP_inter_mail_parse_frommap) }, + { HP_POP(inter_mail->fromsql, HP_inter_mail_fromsql) }, + { HP_POP(inter_mail->savemessage, HP_inter_mail_savemessage) }, + { HP_POP(inter_mail->loadmessage, HP_inter_mail_loadmessage) }, + { HP_POP(inter_mail->DeleteAttach, HP_inter_mail_DeleteAttach) }, + { HP_POP(inter_mail->sendmail, HP_inter_mail_sendmail) }, +/* inter_mercenary */ + { HP_POP(inter_mercenary->owner_fromsql, HP_inter_mercenary_owner_fromsql) }, + { HP_POP(inter_mercenary->owner_tosql, HP_inter_mercenary_owner_tosql) }, + { HP_POP(inter_mercenary->owner_delete, HP_inter_mercenary_owner_delete) }, + { HP_POP(inter_mercenary->sql_init, HP_inter_mercenary_sql_init) }, + { HP_POP(inter_mercenary->sql_final, HP_inter_mercenary_sql_final) }, + { HP_POP(inter_mercenary->parse_frommap, HP_inter_mercenary_parse_frommap) }, +/* inter_party */ + { HP_POP(inter_party->check_lv, HP_inter_party_check_lv) }, + { HP_POP(inter_party->calc_state, HP_inter_party_calc_state) }, + { HP_POP(inter_party->tosql, HP_inter_party_tosql) }, + { HP_POP(inter_party->fromsql, HP_inter_party_fromsql) }, + { HP_POP(inter_party->sql_init, HP_inter_party_sql_init) }, + { HP_POP(inter_party->sql_final, HP_inter_party_sql_final) }, + { HP_POP(inter_party->search_partyname, HP_inter_party_search_partyname) }, + { HP_POP(inter_party->check_exp_share, HP_inter_party_check_exp_share) }, + { HP_POP(inter_party->check_empty, HP_inter_party_check_empty) }, + { HP_POP(inter_party->parse_frommap, HP_inter_party_parse_frommap) }, + { HP_POP(inter_party->leave, HP_inter_party_leave) }, + { HP_POP(inter_party->CharOnline, HP_inter_party_CharOnline) }, + { HP_POP(inter_party->CharOffline, HP_inter_party_CharOffline) }, +/* inter_pet */ + { HP_POP(inter_pet->tosql, HP_inter_pet_tosql) }, + { HP_POP(inter_pet->fromsql, HP_inter_pet_fromsql) }, + { HP_POP(inter_pet->sql_init, HP_inter_pet_sql_init) }, + { HP_POP(inter_pet->sql_final, HP_inter_pet_sql_final) }, + { HP_POP(inter_pet->delete_, HP_inter_pet_delete_) }, + { HP_POP(inter_pet->parse_frommap, HP_inter_pet_parse_frommap) }, +/* inter_quest */ + { HP_POP(inter_quest->parse_frommap, HP_inter_quest_parse_frommap) }, +/* inter_storage */ + { HP_POP(inter_storage->tosql, HP_inter_storage_tosql) }, + { HP_POP(inter_storage->fromsql, HP_inter_storage_fromsql) }, + { HP_POP(inter_storage->guild_storage_tosql, HP_inter_storage_guild_storage_tosql) }, + { HP_POP(inter_storage->guild_storage_fromsql, HP_inter_storage_guild_storage_fromsql) }, + { HP_POP(inter_storage->sql_init, HP_inter_storage_sql_init) }, + { HP_POP(inter_storage->sql_final, HP_inter_storage_sql_final) }, + { HP_POP(inter_storage->delete_, HP_inter_storage_delete_) }, + { HP_POP(inter_storage->guild_storage_delete, HP_inter_storage_guild_storage_delete) }, + { HP_POP(inter_storage->parse_frommap, HP_inter_storage_parse_frommap) }, +/* loginif */ + { HP_POP(loginif->init, HP_loginif_init) }, + { HP_POP(loginif->final, HP_loginif_final) }, + { HP_POP(loginif->reset, HP_loginif_reset) }, + { HP_POP(loginif->check_shutdown, HP_loginif_check_shutdown) }, + { HP_POP(loginif->on_disconnect, HP_loginif_on_disconnect) }, + { HP_POP(loginif->on_ready, HP_loginif_on_ready) }, + { HP_POP(loginif->block_account, HP_loginif_block_account) }, + { HP_POP(loginif->ban_account, HP_loginif_ban_account) }, + { HP_POP(loginif->unban_account, HP_loginif_unban_account) }, + { HP_POP(loginif->changesex, HP_loginif_changesex) }, + { HP_POP(loginif->auth, HP_loginif_auth) }, + { HP_POP(loginif->send_users_count, HP_loginif_send_users_count) }, + { HP_POP(loginif->connect_to_server, HP_loginif_connect_to_server) }, +/* mapif */ + { HP_POP(mapif->ban, HP_mapif_ban) }, + { HP_POP(mapif->server_init, HP_mapif_server_init) }, + { HP_POP(mapif->server_destroy, HP_mapif_server_destroy) }, + { HP_POP(mapif->server_reset, HP_mapif_server_reset) }, + { HP_POP(mapif->on_disconnect, HP_mapif_on_disconnect) }, + { HP_POP(mapif->on_parse_accinfo, HP_mapif_on_parse_accinfo) }, + { HP_POP(mapif->char_ban, HP_mapif_char_ban) }, + { HP_POP(mapif->sendall, HP_mapif_sendall) }, + { HP_POP(mapif->sendallwos, HP_mapif_sendallwos) }, + { HP_POP(mapif->send, HP_mapif_send) }, + { HP_POP(mapif->send_users_count, HP_mapif_send_users_count) }, + { HP_POP(mapif->auction_message, HP_mapif_auction_message) }, + { HP_POP(mapif->auction_sendlist, HP_mapif_auction_sendlist) }, + { HP_POP(mapif->parse_auction_requestlist, HP_mapif_parse_auction_requestlist) }, + { HP_POP(mapif->auction_register, HP_mapif_auction_register) }, + { HP_POP(mapif->parse_auction_register, HP_mapif_parse_auction_register) }, + { HP_POP(mapif->auction_cancel, HP_mapif_auction_cancel) }, + { HP_POP(mapif->parse_auction_cancel, HP_mapif_parse_auction_cancel) }, + { HP_POP(mapif->auction_close, HP_mapif_auction_close) }, + { HP_POP(mapif->parse_auction_close, HP_mapif_parse_auction_close) }, + { HP_POP(mapif->auction_bid, HP_mapif_auction_bid) }, + { HP_POP(mapif->parse_auction_bid, HP_mapif_parse_auction_bid) }, + { HP_POP(mapif->elemental_save, HP_mapif_elemental_save) }, + { HP_POP(mapif->elemental_load, HP_mapif_elemental_load) }, + { HP_POP(mapif->elemental_delete, HP_mapif_elemental_delete) }, + { HP_POP(mapif->elemental_send, HP_mapif_elemental_send) }, + { HP_POP(mapif->parse_elemental_create, HP_mapif_parse_elemental_create) }, + { HP_POP(mapif->parse_elemental_load, HP_mapif_parse_elemental_load) }, + { HP_POP(mapif->elemental_deleted, HP_mapif_elemental_deleted) }, + { HP_POP(mapif->parse_elemental_delete, HP_mapif_parse_elemental_delete) }, + { HP_POP(mapif->elemental_saved, HP_mapif_elemental_saved) }, + { HP_POP(mapif->parse_elemental_save, HP_mapif_parse_elemental_save) }, + { HP_POP(mapif->guild_created, HP_mapif_guild_created) }, + { HP_POP(mapif->guild_noinfo, HP_mapif_guild_noinfo) }, + { HP_POP(mapif->guild_info, HP_mapif_guild_info) }, + { HP_POP(mapif->guild_memberadded, HP_mapif_guild_memberadded) }, + { HP_POP(mapif->guild_withdraw, HP_mapif_guild_withdraw) }, + { HP_POP(mapif->guild_memberinfoshort, HP_mapif_guild_memberinfoshort) }, + { HP_POP(mapif->guild_broken, HP_mapif_guild_broken) }, + { HP_POP(mapif->guild_message, HP_mapif_guild_message) }, + { HP_POP(mapif->guild_basicinfochanged, HP_mapif_guild_basicinfochanged) }, + { HP_POP(mapif->guild_memberinfochanged, HP_mapif_guild_memberinfochanged) }, + { HP_POP(mapif->guild_skillupack, HP_mapif_guild_skillupack) }, + { HP_POP(mapif->guild_alliance, HP_mapif_guild_alliance) }, + { HP_POP(mapif->guild_position, HP_mapif_guild_position) }, + { HP_POP(mapif->guild_notice, HP_mapif_guild_notice) }, + { HP_POP(mapif->guild_emblem, HP_mapif_guild_emblem) }, + { HP_POP(mapif->guild_master_changed, HP_mapif_guild_master_changed) }, + { HP_POP(mapif->guild_castle_dataload, HP_mapif_guild_castle_dataload) }, + { HP_POP(mapif->parse_CreateGuild, HP_mapif_parse_CreateGuild) }, + { HP_POP(mapif->parse_GuildInfo, HP_mapif_parse_GuildInfo) }, + { HP_POP(mapif->parse_GuildAddMember, HP_mapif_parse_GuildAddMember) }, + { HP_POP(mapif->parse_GuildLeave, HP_mapif_parse_GuildLeave) }, + { HP_POP(mapif->parse_GuildChangeMemberInfoShort, HP_mapif_parse_GuildChangeMemberInfoShort) }, + { HP_POP(mapif->parse_BreakGuild, HP_mapif_parse_BreakGuild) }, + { HP_POP(mapif->parse_GuildMessage, HP_mapif_parse_GuildMessage) }, + { HP_POP(mapif->parse_GuildBasicInfoChange, HP_mapif_parse_GuildBasicInfoChange) }, + { HP_POP(mapif->parse_GuildMemberInfoChange, HP_mapif_parse_GuildMemberInfoChange) }, + { HP_POP(mapif->parse_GuildPosition, HP_mapif_parse_GuildPosition) }, + { HP_POP(mapif->parse_GuildSkillUp, HP_mapif_parse_GuildSkillUp) }, + { HP_POP(mapif->parse_GuildDeleteAlliance, HP_mapif_parse_GuildDeleteAlliance) }, + { HP_POP(mapif->parse_GuildAlliance, HP_mapif_parse_GuildAlliance) }, + { HP_POP(mapif->parse_GuildNotice, HP_mapif_parse_GuildNotice) }, + { HP_POP(mapif->parse_GuildEmblem, HP_mapif_parse_GuildEmblem) }, + { HP_POP(mapif->parse_GuildCastleDataLoad, HP_mapif_parse_GuildCastleDataLoad) }, + { HP_POP(mapif->parse_GuildCastleDataSave, HP_mapif_parse_GuildCastleDataSave) }, + { HP_POP(mapif->parse_GuildMasterChange, HP_mapif_parse_GuildMasterChange) }, + { HP_POP(mapif->homunculus_created, HP_mapif_homunculus_created) }, + { HP_POP(mapif->homunculus_deleted, HP_mapif_homunculus_deleted) }, + { HP_POP(mapif->homunculus_loaded, HP_mapif_homunculus_loaded) }, + { HP_POP(mapif->homunculus_saved, HP_mapif_homunculus_saved) }, + { HP_POP(mapif->homunculus_renamed, HP_mapif_homunculus_renamed) }, + { HP_POP(mapif->homunculus_save, HP_mapif_homunculus_save) }, + { HP_POP(mapif->homunculus_load, HP_mapif_homunculus_load) }, + { HP_POP(mapif->homunculus_delete, HP_mapif_homunculus_delete) }, + { HP_POP(mapif->homunculus_rename, HP_mapif_homunculus_rename) }, + { HP_POP(mapif->parse_homunculus_create, HP_mapif_parse_homunculus_create) }, + { HP_POP(mapif->parse_homunculus_delete, HP_mapif_parse_homunculus_delete) }, + { HP_POP(mapif->parse_homunculus_load, HP_mapif_parse_homunculus_load) }, + { HP_POP(mapif->parse_homunculus_save, HP_mapif_parse_homunculus_save) }, + { HP_POP(mapif->parse_homunculus_rename, HP_mapif_parse_homunculus_rename) }, + { HP_POP(mapif->mail_sendinbox, HP_mapif_mail_sendinbox) }, + { HP_POP(mapif->parse_mail_requestinbox, HP_mapif_parse_mail_requestinbox) }, + { HP_POP(mapif->parse_mail_read, HP_mapif_parse_mail_read) }, + { HP_POP(mapif->mail_sendattach, HP_mapif_mail_sendattach) }, + { HP_POP(mapif->mail_getattach, HP_mapif_mail_getattach) }, + { HP_POP(mapif->parse_mail_getattach, HP_mapif_parse_mail_getattach) }, + { HP_POP(mapif->mail_delete, HP_mapif_mail_delete) }, + { HP_POP(mapif->parse_mail_delete, HP_mapif_parse_mail_delete) }, + { HP_POP(mapif->mail_new, HP_mapif_mail_new) }, + { HP_POP(mapif->mail_return, HP_mapif_mail_return) }, + { HP_POP(mapif->parse_mail_return, HP_mapif_parse_mail_return) }, + { HP_POP(mapif->mail_send, HP_mapif_mail_send) }, + { HP_POP(mapif->parse_mail_send, HP_mapif_parse_mail_send) }, + { HP_POP(mapif->mercenary_save, HP_mapif_mercenary_save) }, + { HP_POP(mapif->mercenary_load, HP_mapif_mercenary_load) }, + { HP_POP(mapif->mercenary_delete, HP_mapif_mercenary_delete) }, + { HP_POP(mapif->mercenary_send, HP_mapif_mercenary_send) }, + { HP_POP(mapif->parse_mercenary_create, HP_mapif_parse_mercenary_create) }, + { HP_POP(mapif->parse_mercenary_load, HP_mapif_parse_mercenary_load) }, + { HP_POP(mapif->mercenary_deleted, HP_mapif_mercenary_deleted) }, + { HP_POP(mapif->parse_mercenary_delete, HP_mapif_parse_mercenary_delete) }, + { HP_POP(mapif->mercenary_saved, HP_mapif_mercenary_saved) }, + { HP_POP(mapif->parse_mercenary_save, HP_mapif_parse_mercenary_save) }, + { HP_POP(mapif->party_created, HP_mapif_party_created) }, + { HP_POP(mapif->party_noinfo, HP_mapif_party_noinfo) }, + { HP_POP(mapif->party_info, HP_mapif_party_info) }, + { HP_POP(mapif->party_memberadded, HP_mapif_party_memberadded) }, + { HP_POP(mapif->party_optionchanged, HP_mapif_party_optionchanged) }, + { HP_POP(mapif->party_withdraw, HP_mapif_party_withdraw) }, + { HP_POP(mapif->party_membermoved, HP_mapif_party_membermoved) }, + { HP_POP(mapif->party_broken, HP_mapif_party_broken) }, + { HP_POP(mapif->party_message, HP_mapif_party_message) }, + { HP_POP(mapif->parse_CreateParty, HP_mapif_parse_CreateParty) }, + { HP_POP(mapif->parse_PartyInfo, HP_mapif_parse_PartyInfo) }, + { HP_POP(mapif->parse_PartyAddMember, HP_mapif_parse_PartyAddMember) }, + { HP_POP(mapif->parse_PartyChangeOption, HP_mapif_parse_PartyChangeOption) }, + { HP_POP(mapif->parse_PartyLeave, HP_mapif_parse_PartyLeave) }, + { HP_POP(mapif->parse_PartyChangeMap, HP_mapif_parse_PartyChangeMap) }, + { HP_POP(mapif->parse_BreakParty, HP_mapif_parse_BreakParty) }, + { HP_POP(mapif->parse_PartyMessage, HP_mapif_parse_PartyMessage) }, + { HP_POP(mapif->parse_PartyLeaderChange, HP_mapif_parse_PartyLeaderChange) }, + { HP_POP(mapif->pet_created, HP_mapif_pet_created) }, + { HP_POP(mapif->pet_info, HP_mapif_pet_info) }, + { HP_POP(mapif->pet_noinfo, HP_mapif_pet_noinfo) }, + { HP_POP(mapif->save_pet_ack, HP_mapif_save_pet_ack) }, + { HP_POP(mapif->delete_pet_ack, HP_mapif_delete_pet_ack) }, + { HP_POP(mapif->create_pet, HP_mapif_create_pet) }, + { HP_POP(mapif->load_pet, HP_mapif_load_pet) }, + { HP_POP(mapif->save_pet, HP_mapif_save_pet) }, + { HP_POP(mapif->delete_pet, HP_mapif_delete_pet) }, + { HP_POP(mapif->parse_CreatePet, HP_mapif_parse_CreatePet) }, + { HP_POP(mapif->parse_LoadPet, HP_mapif_parse_LoadPet) }, + { HP_POP(mapif->parse_SavePet, HP_mapif_parse_SavePet) }, + { HP_POP(mapif->parse_DeletePet, HP_mapif_parse_DeletePet) }, + { HP_POP(mapif->quests_fromsql, HP_mapif_quests_fromsql) }, + { HP_POP(mapif->quest_delete, HP_mapif_quest_delete) }, + { HP_POP(mapif->quest_add, HP_mapif_quest_add) }, + { HP_POP(mapif->quest_update, HP_mapif_quest_update) }, + { HP_POP(mapif->quest_save_ack, HP_mapif_quest_save_ack) }, + { HP_POP(mapif->parse_quest_save, HP_mapif_parse_quest_save) }, + { HP_POP(mapif->send_quests, HP_mapif_send_quests) }, + { HP_POP(mapif->parse_quest_load, HP_mapif_parse_quest_load) }, + { HP_POP(mapif->load_guild_storage, HP_mapif_load_guild_storage) }, + { HP_POP(mapif->save_guild_storage_ack, HP_mapif_save_guild_storage_ack) }, + { HP_POP(mapif->parse_LoadGuildStorage, HP_mapif_parse_LoadGuildStorage) }, + { HP_POP(mapif->parse_SaveGuildStorage, HP_mapif_parse_SaveGuildStorage) }, + { HP_POP(mapif->itembound_ack, HP_mapif_itembound_ack) }, + { HP_POP(mapif->parse_ItemBoundRetrieve_sub, HP_mapif_parse_ItemBoundRetrieve_sub) }, + { HP_POP(mapif->parse_ItemBoundRetrieve, HP_mapif_parse_ItemBoundRetrieve) }, + { HP_POP(mapif->parse_accinfo, HP_mapif_parse_accinfo) }, + { HP_POP(mapif->parse_accinfo2, HP_mapif_parse_accinfo2) }, + { HP_POP(mapif->broadcast, HP_mapif_broadcast) }, + { HP_POP(mapif->wis_message, HP_mapif_wis_message) }, + { HP_POP(mapif->wis_response, HP_mapif_wis_response) }, + { HP_POP(mapif->wis_end, HP_mapif_wis_end) }, + { HP_POP(mapif->account_reg_reply, HP_mapif_account_reg_reply) }, + { HP_POP(mapif->disconnectplayer, HP_mapif_disconnectplayer) }, + { HP_POP(mapif->parse_broadcast, HP_mapif_parse_broadcast) }, + { HP_POP(mapif->parse_WisRequest, HP_mapif_parse_WisRequest) }, + { HP_POP(mapif->parse_WisReply, HP_mapif_parse_WisReply) }, + { HP_POP(mapif->parse_WisToGM, HP_mapif_parse_WisToGM) }, + { HP_POP(mapif->parse_Registry, HP_mapif_parse_Registry) }, + { HP_POP(mapif->parse_RegistryRequest, HP_mapif_parse_RegistryRequest) }, + { HP_POP(mapif->namechange_ack, HP_mapif_namechange_ack) }, + { HP_POP(mapif->parse_NameChangeRequest, HP_mapif_parse_NameChangeRequest) }, +/* pincode */ + { HP_POP(pincode->handle, HP_pincode_handle) }, + { HP_POP(pincode->decrypt, HP_pincode_decrypt) }, + { HP_POP(pincode->error, HP_pincode_error) }, + { HP_POP(pincode->update, HP_pincode_update) }, + { HP_POP(pincode->sendstate, HP_pincode_sendstate) }, + { HP_POP(pincode->setnew, HP_pincode_setnew) }, + { HP_POP(pincode->change, HP_pincode_change) }, + { HP_POP(pincode->compare, HP_pincode_compare) }, + { HP_POP(pincode->check, HP_pincode_check) }, + { HP_POP(pincode->config_read, HP_pincode_config_read) }, +}; + +int HookingPointsLenMax = 42; diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc new file mode 100644 index 000000000..ffa2cd7e2 --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -0,0 +1,11904 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +/* chr */ +int HP_chr_waiting_disconnect(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_waiting_disconnect_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_waiting_disconnect_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_waiting_disconnect_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.waiting_disconnect(tid, tick, id, data); + } + if( HPMHooks.count.HP_chr_waiting_disconnect_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_waiting_disconnect_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_waiting_disconnect_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_chr_delete_char_sql(int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_delete_char_sql_pre ) { + int (*preHookFunc) (int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete_char_sql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.delete_char_sql(char_id); + } + if( HPMHooks.count.HP_chr_delete_char_sql_post ) { + int (*postHookFunc) (int retVal___, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete_char_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id); + } + } + return retVal___; +} +DBData HP_chr_create_online_char_data(DBKey key, va_list args) { + int hIndex = 0; + DBData retVal___; + memset(&retVal___, '\0', sizeof(DBData)); + if( HPMHooks.count.HP_chr_create_online_char_data_pre ) { + DBData (*preHookFunc) (DBKey *key, va_list args); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_create_online_char_data_pre; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + preHookFunc = HPMHooks.list.HP_chr_create_online_char_data_pre[hIndex].func; + retVal___ = preHookFunc(&key, args___copy); + va_end(args___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list args___copy; va_copy(args___copy, args); + retVal___ = HPMHooks.source.chr.create_online_char_data(key, args___copy); + va_end(args___copy); + } + if( HPMHooks.count.HP_chr_create_online_char_data_post ) { + DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_create_online_char_data_post; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + postHookFunc = HPMHooks.list.HP_chr_create_online_char_data_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, args___copy); + va_end(args___copy); + } + } + return retVal___; +} +void HP_chr_set_account_online(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_account_online_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_account_online_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_account_online_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_account_online(account_id); + } + if( HPMHooks.count.HP_chr_set_account_online_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_account_online_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_account_online_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_chr_set_account_offline(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_account_offline_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_account_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_account_offline_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_account_offline(account_id); + } + if( HPMHooks.count.HP_chr_set_account_offline_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_account_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_account_offline_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_chr_set_char_charselect(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_char_charselect_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_charselect_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_char_charselect_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_char_charselect(account_id); + } + if( HPMHooks.count.HP_chr_set_char_charselect_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_charselect_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_char_charselect_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_chr_set_char_online(int map_id, int char_id, int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_char_online_pre ) { + void (*preHookFunc) (int *map_id, int *char_id, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_online_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_char_online_pre[hIndex].func; + preHookFunc(&map_id, &char_id, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_char_online(map_id, char_id, account_id); + } + if( HPMHooks.count.HP_chr_set_char_online_post ) { + void (*postHookFunc) (int *map_id, int *char_id, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_online_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_char_online_post[hIndex].func; + postHookFunc(&map_id, &char_id, &account_id); + } + } + return; +} +void HP_chr_set_char_offline(int char_id, int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_char_offline_pre ) { + void (*preHookFunc) (int *char_id, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_char_offline_pre[hIndex].func; + preHookFunc(&char_id, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_char_offline(char_id, account_id); + } + if( HPMHooks.count.HP_chr_set_char_offline_post ) { + void (*postHookFunc) (int *char_id, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_char_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_char_offline_post[hIndex].func; + postHookFunc(&char_id, &account_id); + } + } + return; +} +int HP_chr_db_setoffline(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_db_setoffline_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_db_setoffline_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_chr_db_setoffline_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.chr.db_setoffline(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_chr_db_setoffline_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_db_setoffline_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_chr_db_setoffline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_chr_db_kickoffline(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_db_kickoffline_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_db_kickoffline_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_chr_db_kickoffline_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.chr.db_kickoffline(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_chr_db_kickoffline_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_db_kickoffline_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_chr_db_kickoffline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +void HP_chr_set_login_all_offline(void) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_login_all_offline_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_login_all_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_login_all_offline_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_login_all_offline(); + } + if( HPMHooks.count.HP_chr_set_login_all_offline_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_login_all_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_login_all_offline_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_chr_set_all_offline(int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_all_offline_pre ) { + void (*preHookFunc) (int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_all_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_all_offline_pre[hIndex].func; + preHookFunc(&id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_all_offline(id); + } + if( HPMHooks.count.HP_chr_set_all_offline_post ) { + void (*postHookFunc) (int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_all_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_all_offline_post[hIndex].func; + postHookFunc(&id); + } + } + return; +} +void HP_chr_set_all_offline_sql(void) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_set_all_offline_sql_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_all_offline_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_set_all_offline_sql_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.set_all_offline_sql(); + } + if( HPMHooks.count.HP_chr_set_all_offline_sql_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_set_all_offline_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_set_all_offline_sql_post[hIndex].func; + postHookFunc(); + } + } + return; +} +DBData HP_chr_create_charstatus(DBKey key, va_list args) { + int hIndex = 0; + DBData retVal___; + memset(&retVal___, '\0', sizeof(DBData)); + if( HPMHooks.count.HP_chr_create_charstatus_pre ) { + DBData (*preHookFunc) (DBKey *key, va_list args); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_create_charstatus_pre; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + preHookFunc = HPMHooks.list.HP_chr_create_charstatus_pre[hIndex].func; + retVal___ = preHookFunc(&key, args___copy); + va_end(args___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list args___copy; va_copy(args___copy, args); + retVal___ = HPMHooks.source.chr.create_charstatus(key, args___copy); + va_end(args___copy); + } + if( HPMHooks.count.HP_chr_create_charstatus_post ) { + DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_create_charstatus_post; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + postHookFunc = HPMHooks.list.HP_chr_create_charstatus_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, args___copy); + va_end(args___copy); + } + } + return retVal___; +} +int HP_chr_mmo_char_tosql(int char_id, struct mmo_charstatus *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_char_tosql_pre ) { + int (*preHookFunc) (int *char_id, struct mmo_charstatus *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_char_tosql(char_id, p); + } + if( HPMHooks.count.HP_chr_mmo_char_tosql_post ) { + int (*postHookFunc) (int retVal___, int *char_id, struct mmo_charstatus *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, p); + } + } + return retVal___; +} +int HP_chr_memitemdata_to_sql(const struct item items[], int max, int id, int tableswitch) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_memitemdata_to_sql_pre ) { + int (*preHookFunc) (const struct item *items[], int *max, int *id, int *tableswitch); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_memitemdata_to_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_memitemdata_to_sql_pre[hIndex].func; + retVal___ = preHookFunc(&items, &max, &id, &tableswitch); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.memitemdata_to_sql(items, max, id, tableswitch); + } + if( HPMHooks.count.HP_chr_memitemdata_to_sql_post ) { + int (*postHookFunc) (int retVal___, const struct item *items[], int *max, int *id, int *tableswitch); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_memitemdata_to_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_memitemdata_to_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &items, &max, &id, &tableswitch); + } + } + return retVal___; +} +int HP_chr_inventory_to_sql(const struct item items[], int max, int id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_inventory_to_sql_pre ) { + int (*preHookFunc) (const struct item *items[], int *max, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_inventory_to_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_inventory_to_sql_pre[hIndex].func; + retVal___ = preHookFunc(&items, &max, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.inventory_to_sql(items, max, id); + } + if( HPMHooks.count.HP_chr_inventory_to_sql_post ) { + int (*postHookFunc) (int retVal___, const struct item *items[], int *max, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_inventory_to_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_inventory_to_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &items, &max, &id); + } + } + return retVal___; +} +int HP_chr_mmo_chars_fromsql(struct char_session_data *sd, uint8 *buf) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_chars_fromsql_pre ) { + int (*preHookFunc) (struct char_session_data *sd, uint8 *buf); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_chars_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_chars_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(sd, buf); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_chars_fromsql(sd, buf); + } + if( HPMHooks.count.HP_chr_mmo_chars_fromsql_post ) { + int (*postHookFunc) (int retVal___, struct char_session_data *sd, uint8 *buf); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_chars_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_chars_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, buf); + } + } + return retVal___; +} +int HP_chr_mmo_char_fromsql(int char_id, struct mmo_charstatus *p, bool load_everything) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_char_fromsql_pre ) { + int (*preHookFunc) (int *char_id, struct mmo_charstatus *p, bool *load_everything); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, p, &load_everything); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_char_fromsql(char_id, p, load_everything); + } + if( HPMHooks.count.HP_chr_mmo_char_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *char_id, struct mmo_charstatus *p, bool *load_everything); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, p, &load_everything); + } + } + return retVal___; +} +int HP_chr_mmo_char_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_char_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_char_sql_init(); + } + if( HPMHooks.count.HP_chr_mmo_char_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +bool HP_chr_char_slotchange(struct char_session_data *sd, int fd, unsigned short from, unsigned short to) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_chr_char_slotchange_pre ) { + bool (*preHookFunc) (struct char_session_data *sd, int *fd, unsigned short *from, unsigned short *to); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_slotchange_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_char_slotchange_pre[hIndex].func; + retVal___ = preHookFunc(sd, &fd, &from, &to); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.char_slotchange(sd, fd, from, to); + } + if( HPMHooks.count.HP_chr_char_slotchange_post ) { + bool (*postHookFunc) (bool retVal___, struct char_session_data *sd, int *fd, unsigned short *from, unsigned short *to); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_slotchange_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_char_slotchange_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, &fd, &from, &to); + } + } + return retVal___; +} +int HP_chr_rename_char_sql(struct char_session_data *sd, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_rename_char_sql_pre ) { + int (*preHookFunc) (struct char_session_data *sd, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_rename_char_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_rename_char_sql_pre[hIndex].func; + retVal___ = preHookFunc(sd, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.rename_char_sql(sd, char_id); + } + if( HPMHooks.count.HP_chr_rename_char_sql_post ) { + int (*postHookFunc) (int retVal___, struct char_session_data *sd, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_rename_char_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_rename_char_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, &char_id); + } + } + return retVal___; +} +int HP_chr_check_char_name(char *name, char *esc_name) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_check_char_name_pre ) { + int (*preHookFunc) (char *name, char *esc_name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_check_char_name_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_check_char_name_pre[hIndex].func; + retVal___ = preHookFunc(name, esc_name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.check_char_name(name, esc_name); + } + if( HPMHooks.count.HP_chr_check_char_name_post ) { + int (*postHookFunc) (int retVal___, char *name, char *esc_name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_check_char_name_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_check_char_name_post[hIndex].func; + retVal___ = postHookFunc(retVal___, name, esc_name); + } + } + return retVal___; +} +int HP_chr_make_new_char_sql(struct char_session_data *sd, char *name_, int str, int agi, int vit, int int_, int dex, int luk, int slot, int hair_color, int hair_style) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_make_new_char_sql_pre ) { + int (*preHookFunc) (struct char_session_data *sd, char *name_, int *str, int *agi, int *vit, int *int_, int *dex, int *luk, int *slot, int *hair_color, int *hair_style); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_make_new_char_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_make_new_char_sql_pre[hIndex].func; + retVal___ = preHookFunc(sd, name_, &str, &agi, &vit, &int_, &dex, &luk, &slot, &hair_color, &hair_style); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.make_new_char_sql(sd, name_, str, agi, vit, int_, dex, luk, slot, hair_color, hair_style); + } + if( HPMHooks.count.HP_chr_make_new_char_sql_post ) { + int (*postHookFunc) (int retVal___, struct char_session_data *sd, char *name_, int *str, int *agi, int *vit, int *int_, int *dex, int *luk, int *slot, int *hair_color, int *hair_style); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_make_new_char_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_make_new_char_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, name_, &str, &agi, &vit, &int_, &dex, &luk, &slot, &hair_color, &hair_style); + } + } + return retVal___; +} +int HP_chr_divorce_char_sql(int partner_id1, int partner_id2) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_divorce_char_sql_pre ) { + int (*preHookFunc) (int *partner_id1, int *partner_id2); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_divorce_char_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_divorce_char_sql_pre[hIndex].func; + retVal___ = preHookFunc(&partner_id1, &partner_id2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.divorce_char_sql(partner_id1, partner_id2); + } + if( HPMHooks.count.HP_chr_divorce_char_sql_post ) { + int (*postHookFunc) (int retVal___, int *partner_id1, int *partner_id2); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_divorce_char_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_divorce_char_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &partner_id1, &partner_id2); + } + } + return retVal___; +} +int HP_chr_count_users(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_count_users_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_count_users_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_count_users_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.count_users(); + } + if( HPMHooks.count.HP_chr_count_users_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_count_users_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_count_users_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +int HP_chr_mmo_char_tobuf(uint8 *buffer, struct mmo_charstatus *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_char_tobuf_pre ) { + int (*preHookFunc) (uint8 *buffer, struct mmo_charstatus *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_tobuf_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_tobuf_pre[hIndex].func; + retVal___ = preHookFunc(buffer, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_char_tobuf(buffer, p); + } + if( HPMHooks.count.HP_chr_mmo_char_tobuf_post ) { + int (*postHookFunc) (int retVal___, uint8 *buffer, struct mmo_charstatus *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_tobuf_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_tobuf_post[hIndex].func; + retVal___ = postHookFunc(retVal___, buffer, p); + } + } + return retVal___; +} +void HP_chr_mmo_char_send099d(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_mmo_char_send099d_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send099d_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_send099d_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.mmo_char_send099d(fd, sd); + } + if( HPMHooks.count.HP_chr_mmo_char_send099d_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send099d_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_send099d_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_mmo_char_send_ban_list(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_mmo_char_send_ban_list_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_ban_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_send_ban_list_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.mmo_char_send_ban_list(fd, sd); + } + if( HPMHooks.count.HP_chr_mmo_char_send_ban_list_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_ban_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_send_ban_list_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_mmo_char_send_slots_info(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_mmo_char_send_slots_info_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_slots_info_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_send_slots_info_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.mmo_char_send_slots_info(fd, sd); + } + if( HPMHooks.count.HP_chr_mmo_char_send_slots_info_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_slots_info_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_send_slots_info_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +int HP_chr_mmo_char_send_characters(int fd, struct char_session_data *sd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mmo_char_send_characters_pre ) { + int (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_characters_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mmo_char_send_characters_pre[hIndex].func; + retVal___ = preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mmo_char_send_characters(fd, sd); + } + if( HPMHooks.count.HP_chr_mmo_char_send_characters_post ) { + int (*postHookFunc) (int retVal___, int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mmo_char_send_characters_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mmo_char_send_characters_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, sd); + } + } + return retVal___; +} +int HP_chr_char_married(int pl1, int pl2) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_char_married_pre ) { + int (*preHookFunc) (int *pl1, int *pl2); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_married_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_char_married_pre[hIndex].func; + retVal___ = preHookFunc(&pl1, &pl2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.char_married(pl1, pl2); + } + if( HPMHooks.count.HP_chr_char_married_post ) { + int (*postHookFunc) (int retVal___, int *pl1, int *pl2); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_married_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_char_married_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &pl1, &pl2); + } + } + return retVal___; +} +int HP_chr_char_child(int parent_id, int child_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_char_child_pre ) { + int (*preHookFunc) (int *parent_id, int *child_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_child_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_char_child_pre[hIndex].func; + retVal___ = preHookFunc(&parent_id, &child_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.char_child(parent_id, child_id); + } + if( HPMHooks.count.HP_chr_char_child_post ) { + int (*postHookFunc) (int retVal___, int *parent_id, int *child_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_child_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_char_child_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &parent_id, &child_id); + } + } + return retVal___; +} +int HP_chr_char_family(int cid1, int cid2, int cid3) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_char_family_pre ) { + int (*preHookFunc) (int *cid1, int *cid2, int *cid3); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_family_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_char_family_pre[hIndex].func; + retVal___ = preHookFunc(&cid1, &cid2, &cid3); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.char_family(cid1, cid2, cid3); + } + if( HPMHooks.count.HP_chr_char_family_post ) { + int (*postHookFunc) (int retVal___, int *cid1, int *cid2, int *cid3); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_family_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_char_family_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &cid1, &cid2, &cid3); + } + } + return retVal___; +} +void HP_chr_disconnect_player(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_disconnect_player_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_disconnect_player_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_disconnect_player_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.disconnect_player(account_id); + } + if( HPMHooks.count.HP_chr_disconnect_player_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_disconnect_player_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_disconnect_player_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_chr_authfail_fd(int fd, int type) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_authfail_fd_pre ) { + void (*preHookFunc) (int *fd, int *type); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_authfail_fd_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_authfail_fd_pre[hIndex].func; + preHookFunc(&fd, &type); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.authfail_fd(fd, type); + } + if( HPMHooks.count.HP_chr_authfail_fd_post ) { + void (*postHookFunc) (int *fd, int *type); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_authfail_fd_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_authfail_fd_post[hIndex].func; + postHookFunc(&fd, &type); + } + } + return; +} +void HP_chr_request_account_data(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_request_account_data_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_request_account_data_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_request_account_data_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.request_account_data(account_id); + } + if( HPMHooks.count.HP_chr_request_account_data_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_request_account_data_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_request_account_data_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_chr_auth_ok(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_auth_ok_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_auth_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_auth_ok_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.auth_ok(fd, sd); + } + if( HPMHooks.count.HP_chr_auth_ok_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_auth_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_auth_ok_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_ping_login_server(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_ping_login_server_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ping_login_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_ping_login_server_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.ping_login_server(fd); + } + if( HPMHooks.count.HP_chr_ping_login_server_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ping_login_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_ping_login_server_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +int HP_chr_parse_fromlogin_connection_state(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_connection_state_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_connection_state_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_connection_state_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_fromlogin_connection_state(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_connection_state_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_connection_state_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_connection_state_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_chr_auth_error(int fd, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_auth_error_pre ) { + void (*preHookFunc) (int *fd, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_auth_error_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_auth_error_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.auth_error(fd, flag); + } + if( HPMHooks.count.HP_chr_auth_error_post ) { + void (*postHookFunc) (int *fd, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_auth_error_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_auth_error_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_chr_parse_fromlogin_auth_state(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_auth_state_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_auth_state_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_auth_state_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_auth_state(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_auth_state_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_auth_state_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_auth_state_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_account_data(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_account_data_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_account_data_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_account_data_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_account_data(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_account_data_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_account_data_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_account_data_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_login_pong(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_login_pong_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_login_pong_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_login_pong_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_login_pong(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_login_pong_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_login_pong_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_login_pong_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_changesex(int account_id, int sex) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_changesex_pre ) { + void (*preHookFunc) (int *account_id, int *sex); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_changesex_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_changesex_pre[hIndex].func; + preHookFunc(&account_id, &sex); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.changesex(account_id, sex); + } + if( HPMHooks.count.HP_chr_changesex_post ) { + void (*postHookFunc) (int *account_id, int *sex); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_changesex_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_changesex_post[hIndex].func; + postHookFunc(&account_id, &sex); + } + } + return; +} +int HP_chr_parse_fromlogin_changesex_reply(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_changesex_reply_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_changesex_reply_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_changesex_reply_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_fromlogin_changesex_reply(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_changesex_reply_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_changesex_reply_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_changesex_reply_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_chr_parse_fromlogin_account_reg2(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_account_reg2_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_account_reg2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_account_reg2_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_account_reg2(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_account_reg2_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_account_reg2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_account_reg2_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_ban(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_ban_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_ban_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_ban(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_ban_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_ban_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_kick(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_kick_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_kick_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_kick_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_kick(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_kick_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_kick_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_kick_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_update_ip(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_update_ip_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_update_ip_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_update_ip_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.update_ip(fd); + } + if( HPMHooks.count.HP_chr_update_ip_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_update_ip_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_update_ip_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_update_ip(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_update_ip_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_update_ip_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_update_ip_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_update_ip(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_update_ip_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_update_ip_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_update_ip_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_accinfo2_failed(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_failed_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_failed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_accinfo2_failed_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_accinfo2_failed(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_failed_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_failed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_accinfo2_failed_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_fromlogin_accinfo2_ok(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_ok_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_accinfo2_ok_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_fromlogin_accinfo2_ok(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_ok_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_accinfo2_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_accinfo2_ok_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +int HP_chr_parse_fromlogin(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_fromlogin_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_fromlogin(fd); + } + if( HPMHooks.count.HP_chr_parse_fromlogin_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_fromlogin_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_fromlogin_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_chr_request_accreg2(int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_request_accreg2_pre ) { + int (*preHookFunc) (int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_request_accreg2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_request_accreg2_pre[hIndex].func; + retVal___ = preHookFunc(&account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.request_accreg2(account_id, char_id); + } + if( HPMHooks.count.HP_chr_request_accreg2_post ) { + int (*postHookFunc) (int retVal___, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_request_accreg2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_request_accreg2_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id, &char_id); + } + } + return retVal___; +} +void HP_chr_global_accreg_to_login_start(int account_id, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_global_accreg_to_login_start_pre ) { + void (*preHookFunc) (int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_start_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_start_pre[hIndex].func; + preHookFunc(&account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.global_accreg_to_login_start(account_id, char_id); + } + if( HPMHooks.count.HP_chr_global_accreg_to_login_start_post ) { + void (*postHookFunc) (int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_start_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_start_post[hIndex].func; + postHookFunc(&account_id, &char_id); + } + } + return; +} +void HP_chr_global_accreg_to_login_send(void) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_global_accreg_to_login_send_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_send_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.global_accreg_to_login_send(); + } + if( HPMHooks.count.HP_chr_global_accreg_to_login_send_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_send_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_chr_global_accreg_to_login_add(const char *key, unsigned int index, intptr_t val, bool is_string) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_global_accreg_to_login_add_pre ) { + void (*preHookFunc) (const char *key, unsigned int *index, intptr_t *val, bool *is_string); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_add_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_add_pre[hIndex].func; + preHookFunc(key, &index, &val, &is_string); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.global_accreg_to_login_add(key, index, val, is_string); + } + if( HPMHooks.count.HP_chr_global_accreg_to_login_add_post ) { + void (*postHookFunc) (const char *key, unsigned int *index, intptr_t *val, bool *is_string); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_global_accreg_to_login_add_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_global_accreg_to_login_add_post[hIndex].func; + postHookFunc(key, &index, &val, &is_string); + } + } + return; +} +void HP_chr_read_fame_list(void) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_read_fame_list_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_read_fame_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_read_fame_list_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.read_fame_list(); + } + if( HPMHooks.count.HP_chr_read_fame_list_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_read_fame_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_read_fame_list_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_chr_send_fame_list(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_send_fame_list_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_fame_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_fame_list_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.send_fame_list(fd); + } + if( HPMHooks.count.HP_chr_send_fame_list_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_fame_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_fame_list_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_chr_update_fame_list(int type, int index, int fame) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_update_fame_list_pre ) { + void (*preHookFunc) (int *type, int *index, int *fame); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_update_fame_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_update_fame_list_pre[hIndex].func; + preHookFunc(&type, &index, &fame); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.update_fame_list(type, index, fame); + } + if( HPMHooks.count.HP_chr_update_fame_list_post ) { + void (*postHookFunc) (int *type, int *index, int *fame); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_update_fame_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_update_fame_list_post[hIndex].func; + postHookFunc(&type, &index, &fame); + } + } + return; +} +int HP_chr_loadName(int char_id, char *name) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_loadName_pre ) { + int (*preHookFunc) (int *char_id, char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_loadName_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_loadName_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.loadName(char_id, name); + } + if( HPMHooks.count.HP_chr_loadName_post ) { + int (*postHookFunc) (int retVal___, int *char_id, char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_loadName_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_loadName_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, name); + } + } + return retVal___; +} +void HP_chr_parse_frommap_datasync(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_datasync_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_datasync_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_datasync_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_datasync(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_datasync_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_datasync_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_datasync_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_skillid2idx(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_skillid2idx_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_skillid2idx_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_skillid2idx_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_skillid2idx(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_skillid2idx_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_skillid2idx_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_skillid2idx_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_map_received_ok(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_map_received_ok_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_received_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_map_received_ok_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.map_received_ok(fd); + } + if( HPMHooks.count.HP_chr_map_received_ok_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_received_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_map_received_ok_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_send_maps(int fd, int id, int j) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_maps_pre ) { + void (*preHookFunc) (int *fd, int *id, int *j); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_maps_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_maps_pre[hIndex].func; + preHookFunc(&fd, &id, &j); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_maps(fd, id, j); + } + if( HPMHooks.count.HP_chr_send_maps_post ) { + void (*postHookFunc) (int *fd, int *id, int *j); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_maps_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_maps_post[hIndex].func; + postHookFunc(&fd, &id, &j); + } + } + return; +} +void HP_chr_parse_frommap_map_names(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_map_names_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_map_names_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_map_names_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_map_names(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_map_names_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_map_names_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_map_names_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_send_scdata(int fd, int aid, int cid) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_scdata_pre ) { + void (*preHookFunc) (int *fd, int *aid, int *cid); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_scdata_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_scdata_pre[hIndex].func; + preHookFunc(&fd, &aid, &cid); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_scdata(fd, aid, cid); + } + if( HPMHooks.count.HP_chr_send_scdata_post ) { + void (*postHookFunc) (int *fd, int *aid, int *cid); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_scdata_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_scdata_post[hIndex].func; + postHookFunc(&fd, &aid, &cid); + } + } + return; +} +void HP_chr_parse_frommap_request_scdata(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_request_scdata_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_request_scdata_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_request_scdata_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_request_scdata(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_request_scdata_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_request_scdata_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_request_scdata_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_set_users_count(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_set_users_count_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_users_count_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_users_count_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_set_users_count(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_set_users_count_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_users_count_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_users_count_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_parse_frommap_set_users(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_set_users_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_users_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_users_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_set_users(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_set_users_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_users_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_users_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_save_character_ack(int fd, int aid, int cid) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_save_character_ack_pre ) { + void (*preHookFunc) (int *fd, int *aid, int *cid); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_save_character_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_save_character_ack_pre[hIndex].func; + preHookFunc(&fd, &aid, &cid); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.save_character_ack(fd, aid, cid); + } + if( HPMHooks.count.HP_chr_save_character_ack_post ) { + void (*postHookFunc) (int *fd, int *aid, int *cid); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_save_character_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_save_character_ack_post[hIndex].func; + postHookFunc(&fd, &aid, &cid); + } + } + return; +} +void HP_chr_parse_frommap_save_character(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_save_character_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_save_character_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_save_character_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_save_character(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_save_character_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_save_character_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_save_character_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_select_ack(int fd, int account_id, uint8 flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_select_ack_pre ) { + void (*preHookFunc) (int *fd, int *account_id, uint8 *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_select_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_select_ack_pre[hIndex].func; + preHookFunc(&fd, &account_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.select_ack(fd, account_id, flag); + } + if( HPMHooks.count.HP_chr_select_ack_post ) { + void (*postHookFunc) (int *fd, int *account_id, uint8 *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_select_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_select_ack_post[hIndex].func; + postHookFunc(&fd, &account_id, &flag); + } + } + return; +} +void HP_chr_parse_frommap_char_select_req(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_char_select_req_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_char_select_req_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_char_select_req_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_char_select_req(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_char_select_req_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_char_select_req_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_char_select_req_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_change_map_server_ack(int fd, uint8 *data, bool ok) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_change_map_server_ack_pre ) { + void (*preHookFunc) (int *fd, uint8 *data, bool *ok); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_change_map_server_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_change_map_server_ack_pre[hIndex].func; + preHookFunc(&fd, data, &ok); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.change_map_server_ack(fd, data, ok); + } + if( HPMHooks.count.HP_chr_change_map_server_ack_post ) { + void (*postHookFunc) (int *fd, uint8 *data, bool *ok); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_change_map_server_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_change_map_server_ack_post[hIndex].func; + postHookFunc(&fd, data, &ok); + } + } + return; +} +void HP_chr_parse_frommap_change_map_server(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_change_map_server_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_map_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_map_server_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_change_map_server(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_change_map_server_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_map_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_map_server_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_remove_friend(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_remove_friend_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_remove_friend_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_remove_friend_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_remove_friend(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_remove_friend_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_remove_friend_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_remove_friend_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_char_name_ack(int fd, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_char_name_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_name_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_char_name_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.char_name_ack(fd, char_id); + } + if( HPMHooks.count.HP_chr_char_name_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_char_name_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_char_name_ack_post[hIndex].func; + postHookFunc(&fd, &char_id); + } + } + return; +} +void HP_chr_parse_frommap_char_name_request(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_char_name_request_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_char_name_request_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_char_name_request_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_char_name_request(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_char_name_request_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_char_name_request_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_char_name_request_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_change_email(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_change_email_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_email_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_email_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_change_email(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_change_email_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_email_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_email_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_ban(int account_id, int char_id, time_t *unban_time, short year, short month, short day, short hour, short minute, short second) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_ban_pre ) { + void (*preHookFunc) (int *account_id, int *char_id, time_t *unban_time, short *year, short *month, short *day, short *hour, short *minute, short *second); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_ban_pre[hIndex].func; + preHookFunc(&account_id, &char_id, unban_time, &year, &month, &day, &hour, &minute, &second); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.ban(account_id, char_id, unban_time, year, month, day, hour, minute, second); + } + if( HPMHooks.count.HP_chr_ban_post ) { + void (*postHookFunc) (int *account_id, int *char_id, time_t *unban_time, short *year, short *month, short *day, short *hour, short *minute, short *second); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_ban_post[hIndex].func; + postHookFunc(&account_id, &char_id, unban_time, &year, &month, &day, &hour, &minute, &second); + } + } + return; +} +void HP_chr_unban(int char_id, int *result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_unban_pre ) { + void (*preHookFunc) (int *char_id, int *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_unban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_unban_pre[hIndex].func; + preHookFunc(&char_id, result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.unban(char_id, result); + } + if( HPMHooks.count.HP_chr_unban_post ) { + void (*postHookFunc) (int *char_id, int *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_unban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_unban_post[hIndex].func; + postHookFunc(&char_id, result); + } + } + return; +} +void HP_chr_ask_name_ack(int fd, int acc, const char *name, int type, int result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_ask_name_ack_pre ) { + void (*preHookFunc) (int *fd, int *acc, const char *name, int *type, int *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ask_name_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_ask_name_ack_pre[hIndex].func; + preHookFunc(&fd, &acc, name, &type, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.ask_name_ack(fd, acc, name, type, result); + } + if( HPMHooks.count.HP_chr_ask_name_ack_post ) { + void (*postHookFunc) (int *fd, int *acc, const char *name, int *type, int *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_ask_name_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_ask_name_ack_post[hIndex].func; + postHookFunc(&fd, &acc, name, &type, &result); + } + } + return; +} +void HP_chr_parse_frommap_change_account(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_change_account_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_account_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_account_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_change_account(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_change_account_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_change_account_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_change_account_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_fame_list(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_fame_list_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_fame_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_fame_list_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_fame_list(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_fame_list_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_fame_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_fame_list_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_divorce_char(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_divorce_char_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_divorce_char_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_divorce_char_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_divorce_char(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_divorce_char_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_divorce_char_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_divorce_char_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_ragsrvinfo(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_ragsrvinfo_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_ragsrvinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_ragsrvinfo_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_ragsrvinfo(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_ragsrvinfo_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_ragsrvinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_ragsrvinfo_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_set_char_offline(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_set_char_offline_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_char_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_char_offline_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_set_char_offline(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_set_char_offline_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_char_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_char_offline_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_set_all_offline(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_set_all_offline_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_all_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_all_offline_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_set_all_offline(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_set_all_offline_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_all_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_all_offline_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_parse_frommap_set_char_online(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_set_char_online_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_char_online_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_char_online_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_set_char_online(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_set_char_online_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_set_char_online_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_set_char_online_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_parse_frommap_build_fame_list(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_build_fame_list_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_build_fame_list_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_build_fame_list_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_build_fame_list(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_build_fame_list_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_build_fame_list_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_build_fame_list_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_save_status_change_data(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_save_status_change_data_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_save_status_change_data_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_save_status_change_data_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_save_status_change_data(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_save_status_change_data_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_save_status_change_data_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_save_status_change_data_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_send_pong(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_pong_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_pong_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_pong_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_pong(fd); + } + if( HPMHooks.count.HP_chr_send_pong_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_pong_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_pong_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_ping(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_ping_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_ping_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_ping_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_ping(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_ping_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_ping_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_ping_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_map_auth_ok(int fd, int account_id, struct char_auth_node *node, struct mmo_charstatus *cd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_map_auth_ok_pre ) { + void (*preHookFunc) (int *fd, int *account_id, struct char_auth_node *node, struct mmo_charstatus *cd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_auth_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_map_auth_ok_pre[hIndex].func; + preHookFunc(&fd, &account_id, node, cd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.map_auth_ok(fd, account_id, node, cd); + } + if( HPMHooks.count.HP_chr_map_auth_ok_post ) { + void (*postHookFunc) (int *fd, int *account_id, struct char_auth_node *node, struct mmo_charstatus *cd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_auth_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_map_auth_ok_post[hIndex].func; + postHookFunc(&fd, &account_id, node, cd); + } + } + return; +} +void HP_chr_map_auth_failed(int fd, int account_id, int char_id, int login_id1, char sex, uint32 ip) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_map_auth_failed_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *char_id, int *login_id1, char *sex, uint32 *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_auth_failed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_map_auth_failed_pre[hIndex].func; + preHookFunc(&fd, &account_id, &char_id, &login_id1, &sex, &ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.map_auth_failed(fd, account_id, char_id, login_id1, sex, ip); + } + if( HPMHooks.count.HP_chr_map_auth_failed_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *char_id, int *login_id1, char *sex, uint32 *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_map_auth_failed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_map_auth_failed_post[hIndex].func; + postHookFunc(&fd, &account_id, &char_id, &login_id1, &sex, &ip); + } + } + return; +} +void HP_chr_parse_frommap_auth_request(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_auth_request_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_auth_request_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_auth_request_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_auth_request(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_auth_request_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_auth_request_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_auth_request_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_parse_frommap_update_ip(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_update_ip_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_update_ip_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_update_ip_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_update_ip(fd, id); + } + if( HPMHooks.count.HP_chr_parse_frommap_update_ip_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_update_ip_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_update_ip_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_chr_parse_frommap_request_stats_report(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_request_stats_report_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_request_stats_report_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_request_stats_report_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_request_stats_report(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_request_stats_report_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_request_stats_report_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_request_stats_report_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_scdata_update(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_scdata_update_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_scdata_update_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_scdata_update_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_scdata_update(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_scdata_update_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_scdata_update_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_scdata_update_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_frommap_scdata_delete(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_frommap_scdata_delete_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_scdata_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_scdata_delete_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_frommap_scdata_delete(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_scdata_delete_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_scdata_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_scdata_delete_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +int HP_chr_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_frommap(fd); + } + if( HPMHooks.count.HP_chr_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_chr_search_mapserver(unsigned short map, uint32 ip, uint16 port) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_search_mapserver_pre ) { + int (*preHookFunc) (unsigned short *map, uint32 *ip, uint16 *port); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_search_mapserver_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_search_mapserver_pre[hIndex].func; + retVal___ = preHookFunc(&map, &ip, &port); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.search_mapserver(map, ip, port); + } + if( HPMHooks.count.HP_chr_search_mapserver_post ) { + int (*postHookFunc) (int retVal___, unsigned short *map, uint32 *ip, uint16 *port); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_search_mapserver_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_search_mapserver_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &map, &ip, &port); + } + } + return retVal___; +} +int HP_chr_mapif_init(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_mapif_init_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mapif_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_mapif_init_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.mapif_init(fd); + } + if( HPMHooks.count.HP_chr_mapif_init_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_mapif_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_mapif_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_chr_lan_subnetcheck(uint32 ip) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_lan_subnetcheck_pre ) { + int (*preHookFunc) (uint32 *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_lan_subnetcheck_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_lan_subnetcheck_pre[hIndex].func; + retVal___ = preHookFunc(&ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.lan_subnetcheck(ip); + } + if( HPMHooks.count.HP_chr_lan_subnetcheck_post ) { + int (*postHookFunc) (int retVal___, uint32 *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_lan_subnetcheck_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_lan_subnetcheck_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &ip); + } + } + return retVal___; +} +void HP_chr_delete2_ack(int fd, int char_id, uint32 result, time_t delete_date) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id, uint32 *result, time_t *delete_date); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result, &delete_date); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_ack(fd, char_id, result, delete_date); + } + if( HPMHooks.count.HP_chr_delete2_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id, uint32 *result, time_t *delete_date); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_ack_post[hIndex].func; + postHookFunc(&fd, &char_id, &result, &delete_date); + } + } + return; +} +void HP_chr_delete2_accept_actual_ack(int fd, int char_id, uint32 result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_accept_actual_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id, uint32 *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_actual_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_accept_actual_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_accept_actual_ack(fd, char_id, result); + } + if( HPMHooks.count.HP_chr_delete2_accept_actual_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id, uint32 *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_actual_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_accept_actual_ack_post[hIndex].func; + postHookFunc(&fd, &char_id, &result); + } + } + return; +} +void HP_chr_delete2_accept_ack(int fd, int char_id, uint32 result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_accept_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id, uint32 *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_accept_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_accept_ack(fd, char_id, result); + } + if( HPMHooks.count.HP_chr_delete2_accept_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id, uint32 *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_accept_ack_post[hIndex].func; + postHookFunc(&fd, &char_id, &result); + } + } + return; +} +void HP_chr_delete2_cancel_ack(int fd, int char_id, uint32 result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_cancel_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id, uint32 *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_cancel_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_cancel_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_cancel_ack(fd, char_id, result); + } + if( HPMHooks.count.HP_chr_delete2_cancel_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id, uint32 *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_cancel_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_cancel_ack_post[hIndex].func; + postHookFunc(&fd, &char_id, &result); + } + } + return; +} +void HP_chr_delete2_req(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_req_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_req_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_req_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_req(fd, sd); + } + if( HPMHooks.count.HP_chr_delete2_req_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_req_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_req_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_delete2_accept(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_accept_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_accept_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_accept(fd, sd); + } + if( HPMHooks.count.HP_chr_delete2_accept_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_accept_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_accept_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_delete2_cancel(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete2_cancel_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_cancel_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete2_cancel_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete2_cancel(fd, sd); + } + if( HPMHooks.count.HP_chr_delete2_cancel_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete2_cancel_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete2_cancel_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_send_account_id(int fd, int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_account_id_pre ) { + void (*preHookFunc) (int *fd, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_account_id_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_account_id_pre[hIndex].func; + preHookFunc(&fd, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_account_id(fd, account_id); + } + if( HPMHooks.count.HP_chr_send_account_id_post ) { + void (*postHookFunc) (int *fd, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_account_id_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_account_id_post[hIndex].func; + postHookFunc(&fd, &account_id); + } + } + return; +} +void HP_chr_parse_char_connect(int fd, struct char_session_data *sd, uint32 ipl) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_connect_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_connect_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_connect_pre[hIndex].func; + preHookFunc(&fd, sd, &ipl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_connect(fd, sd, ipl); + } + if( HPMHooks.count.HP_chr_parse_char_connect_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_connect_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_connect_post[hIndex].func; + postHookFunc(&fd, sd, &ipl); + } + } + return; +} +void HP_chr_send_map_info(int fd, int i, uint32 subnet_map_ip, struct mmo_charstatus *cd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_map_info_pre ) { + void (*preHookFunc) (int *fd, int *i, uint32 *subnet_map_ip, struct mmo_charstatus *cd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_map_info_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_map_info_pre[hIndex].func; + preHookFunc(&fd, &i, &subnet_map_ip, cd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_map_info(fd, i, subnet_map_ip, cd); + } + if( HPMHooks.count.HP_chr_send_map_info_post ) { + void (*postHookFunc) (int *fd, int *i, uint32 *subnet_map_ip, struct mmo_charstatus *cd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_map_info_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_map_info_post[hIndex].func; + postHookFunc(&fd, &i, &subnet_map_ip, cd); + } + } + return; +} +void HP_chr_send_wait_char_server(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_send_wait_char_server_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_wait_char_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_wait_char_server_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.send_wait_char_server(fd); + } + if( HPMHooks.count.HP_chr_send_wait_char_server_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_wait_char_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_wait_char_server_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +int HP_chr_search_default_maps_mapserver(struct mmo_charstatus *cd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_search_default_maps_mapserver_pre ) { + int (*preHookFunc) (struct mmo_charstatus *cd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_search_default_maps_mapserver_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_search_default_maps_mapserver_pre[hIndex].func; + retVal___ = preHookFunc(cd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.search_default_maps_mapserver(cd); + } + if( HPMHooks.count.HP_chr_search_default_maps_mapserver_post ) { + int (*postHookFunc) (int retVal___, struct mmo_charstatus *cd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_search_default_maps_mapserver_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_search_default_maps_mapserver_post[hIndex].func; + retVal___ = postHookFunc(retVal___, cd); + } + } + return retVal___; +} +void HP_chr_parse_char_select(int fd, struct char_session_data *sd, uint32 ipl) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_select_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_select_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_select_pre[hIndex].func; + preHookFunc(&fd, sd, &ipl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_select(fd, sd, ipl); + } + if( HPMHooks.count.HP_chr_parse_char_select_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_select_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_select_post[hIndex].func; + postHookFunc(&fd, sd, &ipl); + } + } + return; +} +void HP_chr_creation_failed(int fd, int result) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_creation_failed_pre ) { + void (*preHookFunc) (int *fd, int *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_creation_failed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_creation_failed_pre[hIndex].func; + preHookFunc(&fd, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.creation_failed(fd, result); + } + if( HPMHooks.count.HP_chr_creation_failed_post ) { + void (*postHookFunc) (int *fd, int *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_creation_failed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_creation_failed_post[hIndex].func; + postHookFunc(&fd, &result); + } + } + return; +} +void HP_chr_creation_ok(int fd, struct mmo_charstatus *char_dat) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_creation_ok_pre ) { + void (*preHookFunc) (int *fd, struct mmo_charstatus *char_dat); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_creation_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_creation_ok_pre[hIndex].func; + preHookFunc(&fd, char_dat); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.creation_ok(fd, char_dat); + } + if( HPMHooks.count.HP_chr_creation_ok_post ) { + void (*postHookFunc) (int *fd, struct mmo_charstatus *char_dat); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_creation_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_creation_ok_post[hIndex].func; + postHookFunc(&fd, char_dat); + } + } + return; +} +void HP_chr_parse_char_create_new_char(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_create_new_char_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_create_new_char_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_create_new_char_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_create_new_char(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_create_new_char_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_create_new_char_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_create_new_char_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_delete_char_failed(int fd, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete_char_failed_pre ) { + void (*preHookFunc) (int *fd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_failed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete_char_failed_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete_char_failed(fd, flag); + } + if( HPMHooks.count.HP_chr_delete_char_failed_post ) { + void (*postHookFunc) (int *fd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_failed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete_char_failed_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_chr_delete_char_ok(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_delete_char_ok_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_delete_char_ok_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.delete_char_ok(fd); + } + if( HPMHooks.count.HP_chr_delete_char_ok_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_delete_char_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_delete_char_ok_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_char_delete_char(int fd, struct char_session_data *sd, unsigned short cmd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_delete_char_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd, unsigned short *cmd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete_char_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_delete_char_pre[hIndex].func; + preHookFunc(&fd, sd, &cmd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_delete_char(fd, sd, cmd); + } + if( HPMHooks.count.HP_chr_parse_char_delete_char_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd, unsigned short *cmd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete_char_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_delete_char_post[hIndex].func; + postHookFunc(&fd, sd, &cmd); + } + } + return; +} +void HP_chr_parse_char_ping(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_ping_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_ping_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_ping_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_ping(fd); + } + if( HPMHooks.count.HP_chr_parse_char_ping_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_ping_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_ping_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_allow_rename(int fd, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_allow_rename_pre ) { + void (*preHookFunc) (int *fd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_allow_rename_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_allow_rename_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.allow_rename(fd, flag); + } + if( HPMHooks.count.HP_chr_allow_rename_post ) { + void (*postHookFunc) (int *fd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_allow_rename_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_allow_rename_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_chr_parse_char_rename_char(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_rename_char_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_rename_char(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_rename_char_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_rename_char2(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_rename_char2_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char2_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_rename_char2(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_rename_char2_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char2_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_rename_char_ack(int fd, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_rename_char_ack_pre ) { + void (*preHookFunc) (int *fd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_rename_char_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_rename_char_ack_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.rename_char_ack(fd, flag); + } + if( HPMHooks.count.HP_chr_rename_char_ack_post ) { + void (*postHookFunc) (int *fd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_rename_char_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_rename_char_ack_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_chr_parse_char_rename_char_confirm(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_rename_char_confirm_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char_confirm_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char_confirm_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_rename_char_confirm(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_rename_char_confirm_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_rename_char_confirm_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_rename_char_confirm_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_captcha_notsupported(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_captcha_notsupported_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_captcha_notsupported_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_captcha_notsupported_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.captcha_notsupported(fd); + } + if( HPMHooks.count.HP_chr_captcha_notsupported_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_captcha_notsupported_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_captcha_notsupported_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_char_request_captcha(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_request_captcha_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_request_captcha_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_request_captcha_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_request_captcha(fd); + } + if( HPMHooks.count.HP_chr_parse_char_request_captcha_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_request_captcha_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_request_captcha_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_char_check_captcha(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_check_captcha_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_check_captcha_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_check_captcha_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_check_captcha(fd); + } + if( HPMHooks.count.HP_chr_parse_char_check_captcha_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_check_captcha_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_check_captcha_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_char_delete2_req(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_delete2_req_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_req_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_req_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_delete2_req(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_delete2_req_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_req_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_req_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_delete2_accept(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_delete2_accept_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_accept_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_accept_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_delete2_accept(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_delete2_accept_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_accept_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_accept_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_delete2_cancel(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_delete2_cancel_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_cancel_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_cancel_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_delete2_cancel(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_delete2_cancel_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_delete2_cancel_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_delete2_cancel_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_login_map_server_ack(int fd, uint8 flag) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_login_map_server_ack_pre ) { + void (*preHookFunc) (int *fd, uint8 *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_login_map_server_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_login_map_server_ack_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.login_map_server_ack(fd, flag); + } + if( HPMHooks.count.HP_chr_login_map_server_ack_post ) { + void (*postHookFunc) (int *fd, uint8 *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_login_map_server_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_login_map_server_ack_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_chr_parse_char_login_map_server(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_login_map_server_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_login_map_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_login_map_server_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_login_map_server(fd); + } + if( HPMHooks.count.HP_chr_parse_char_login_map_server_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_login_map_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_login_map_server_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_chr_parse_char_pincode_check(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_pincode_check_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_check_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_check_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_pincode_check(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_pincode_check_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_check_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_check_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_pincode_window(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_pincode_window_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_window_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_window_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_pincode_window(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_pincode_window_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_window_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_window_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_pincode_change(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_pincode_change_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_change_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_change_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_pincode_change(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_pincode_change_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_change_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_change_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_pincode_first_pin(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_pincode_first_pin_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_first_pin_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_first_pin_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_pincode_first_pin(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_pincode_first_pin_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pincode_first_pin_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_pincode_first_pin_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_parse_char_request_chars(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_request_chars_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_request_chars_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_request_chars_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_request_chars(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_request_chars_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_request_chars_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_request_chars_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_chr_change_character_slot_ack(int fd, bool ret) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_change_character_slot_ack_pre ) { + void (*preHookFunc) (int *fd, bool *ret); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_change_character_slot_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_change_character_slot_ack_pre[hIndex].func; + preHookFunc(&fd, &ret); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.change_character_slot_ack(fd, ret); + } + if( HPMHooks.count.HP_chr_change_character_slot_ack_post ) { + void (*postHookFunc) (int *fd, bool *ret); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_change_character_slot_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_change_character_slot_ack_post[hIndex].func; + postHookFunc(&fd, &ret); + } + } + return; +} +void HP_chr_parse_char_move_character(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_parse_char_move_character_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_move_character_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_move_character_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.parse_char_move_character(fd, sd); + } + if( HPMHooks.count.HP_chr_parse_char_move_character_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_move_character_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_move_character_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +int HP_chr_parse_char_unknown_packet(int fd, uint32 ipl) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_char_unknown_packet_pre ) { + int (*preHookFunc) (int *fd, uint32 *ipl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_unknown_packet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_unknown_packet_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &ipl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_char_unknown_packet(fd, ipl); + } + if( HPMHooks.count.HP_chr_parse_char_unknown_packet_post ) { + int (*postHookFunc) (int retVal___, int *fd, uint32 *ipl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_unknown_packet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_unknown_packet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &ipl); + } + } + return retVal___; +} +int HP_chr_parse_char(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_parse_char_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_parse_char_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.parse_char(fd); + } + if( HPMHooks.count.HP_chr_parse_char_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_parse_char_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_parse_char_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_chr_broadcast_user_count(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_broadcast_user_count_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_broadcast_user_count_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_broadcast_user_count_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.broadcast_user_count(tid, tick, id, data); + } + if( HPMHooks.count.HP_chr_broadcast_user_count_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_broadcast_user_count_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_broadcast_user_count_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_chr_send_accounts_tologin_sub(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_send_accounts_tologin_sub_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_accounts_tologin_sub_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_chr_send_accounts_tologin_sub_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.chr.send_accounts_tologin_sub(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_chr_send_accounts_tologin_sub_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_accounts_tologin_sub_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_chr_send_accounts_tologin_sub_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_chr_send_accounts_tologin(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_send_accounts_tologin_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_accounts_tologin_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_send_accounts_tologin_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.send_accounts_tologin(tid, tick, id, data); + } + if( HPMHooks.count.HP_chr_send_accounts_tologin_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_send_accounts_tologin_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_send_accounts_tologin_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_chr_check_connect_login_server(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_check_connect_login_server_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_check_connect_login_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_check_connect_login_server_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.check_connect_login_server(tid, tick, id, data); + } + if( HPMHooks.count.HP_chr_check_connect_login_server_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_check_connect_login_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_check_connect_login_server_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_chr_online_data_cleanup_sub(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_online_data_cleanup_sub_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_online_data_cleanup_sub_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_chr_online_data_cleanup_sub_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.chr.online_data_cleanup_sub(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_chr_online_data_cleanup_sub_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_online_data_cleanup_sub_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_chr_online_data_cleanup_sub_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_chr_online_data_cleanup(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_online_data_cleanup_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_online_data_cleanup_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_online_data_cleanup_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.online_data_cleanup(tid, tick, id, data); + } + if( HPMHooks.count.HP_chr_online_data_cleanup_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_online_data_cleanup_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_online_data_cleanup_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_chr_lan_config_read(const char *lancfgName) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_lan_config_read_pre ) { + int (*preHookFunc) (const char *lancfgName); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_lan_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_lan_config_read_pre[hIndex].func; + retVal___ = preHookFunc(lancfgName); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.lan_config_read(lancfgName); + } + if( HPMHooks.count.HP_chr_lan_config_read_post ) { + int (*postHookFunc) (int retVal___, const char *lancfgName); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_lan_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_lan_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, lancfgName); + } + } + return retVal___; +} +void HP_chr_sql_config_read(const char *cfgName) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_sql_config_read_pre ) { + void (*preHookFunc) (const char *cfgName); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_sql_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_sql_config_read_pre[hIndex].func; + preHookFunc(cfgName); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.sql_config_read(cfgName); + } + if( HPMHooks.count.HP_chr_sql_config_read_post ) { + void (*postHookFunc) (const char *cfgName); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_sql_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_sql_config_read_post[hIndex].func; + postHookFunc(cfgName); + } + } + return; +} +void HP_chr_config_dispatch(char *w1, char *w2) { + int hIndex = 0; + if( HPMHooks.count.HP_chr_config_dispatch_pre ) { + void (*preHookFunc) (char *w1, char *w2); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_config_dispatch_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_config_dispatch_pre[hIndex].func; + preHookFunc(w1, w2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.chr.config_dispatch(w1, w2); + } + if( HPMHooks.count.HP_chr_config_dispatch_post ) { + void (*postHookFunc) (char *w1, char *w2); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_config_dispatch_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_config_dispatch_post[hIndex].func; + postHookFunc(w1, w2); + } + } + return; +} +int HP_chr_config_read(const char *cfgName) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_chr_config_read_pre ) { + int (*preHookFunc) (const char *cfgName); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_chr_config_read_pre[hIndex].func; + retVal___ = preHookFunc(cfgName); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.chr.config_read(cfgName); + } + if( HPMHooks.count.HP_chr_config_read_post ) { + int (*postHookFunc) (int retVal___, const char *cfgName); + for(hIndex = 0; hIndex < HPMHooks.count.HP_chr_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_chr_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, cfgName); + } + } + return retVal___; +} +/* geoip */ +const char* HP_geoip_getcountry(uint32 ipnum) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_geoip_getcountry_pre ) { + const char* (*preHookFunc) (uint32 *ipnum); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_getcountry_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_geoip_getcountry_pre[hIndex].func; + retVal___ = preHookFunc(&ipnum); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.geoip.getcountry(ipnum); + } + if( HPMHooks.count.HP_geoip_getcountry_post ) { + const char* (*postHookFunc) (const char* retVal___, uint32 *ipnum); + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_getcountry_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_geoip_getcountry_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &ipnum); + } + } + return retVal___; +} +void HP_geoip_final(bool shutdown) { + int hIndex = 0; + if( HPMHooks.count.HP_geoip_final_pre ) { + void (*preHookFunc) (bool *shutdown); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_geoip_final_pre[hIndex].func; + preHookFunc(&shutdown); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.geoip.final(shutdown); + } + if( HPMHooks.count.HP_geoip_final_post ) { + void (*postHookFunc) (bool *shutdown); + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_geoip_final_post[hIndex].func; + postHookFunc(&shutdown); + } + } + return; +} +void HP_geoip_init(void) { + int hIndex = 0; + if( HPMHooks.count.HP_geoip_init_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_geoip_init_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.geoip.init(); + } + if( HPMHooks.count.HP_geoip_init_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_geoip_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_geoip_init_post[hIndex].func; + postHookFunc(); + } + } + return; +} +/* inter_auction */ +int HP_inter_auction_count(int char_id, bool buy) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_auction_count_pre ) { + int (*preHookFunc) (int *char_id, bool *buy); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_count_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_count_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &buy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_auction.count(char_id, buy); + } + if( HPMHooks.count.HP_inter_auction_count_post ) { + int (*postHookFunc) (int retVal___, int *char_id, bool *buy); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_count_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_count_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &buy); + } + } + return retVal___; +} +void HP_inter_auction_save(struct auction_data *auction) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_auction_save_pre ) { + void (*preHookFunc) (struct auction_data *auction); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_save_pre[hIndex].func; + preHookFunc(auction); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_auction.save(auction); + } + if( HPMHooks.count.HP_inter_auction_save_post ) { + void (*postHookFunc) (struct auction_data *auction); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_save_post[hIndex].func; + postHookFunc(auction); + } + } + return; +} +unsigned int HP_inter_auction_create(struct auction_data *auction) { + int hIndex = 0; + unsigned int retVal___ = 0; + if( HPMHooks.count.HP_inter_auction_create_pre ) { + unsigned int (*preHookFunc) (struct auction_data *auction); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_create_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_create_pre[hIndex].func; + retVal___ = preHookFunc(auction); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_auction.create(auction); + } + if( HPMHooks.count.HP_inter_auction_create_post ) { + unsigned int (*postHookFunc) (unsigned int retVal___, struct auction_data *auction); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_create_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_create_post[hIndex].func; + retVal___ = postHookFunc(retVal___, auction); + } + } + return retVal___; +} +int HP_inter_auction_end_timer(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_auction_end_timer_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_end_timer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_end_timer_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_auction.end_timer(tid, tick, id, data); + } + if( HPMHooks.count.HP_inter_auction_end_timer_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_end_timer_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_end_timer_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +void HP_inter_auction_delete_(struct auction_data *auction) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_auction_delete__pre ) { + void (*preHookFunc) (struct auction_data *auction); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_delete__pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_delete__pre[hIndex].func; + preHookFunc(auction); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_auction.delete_(auction); + } + if( HPMHooks.count.HP_inter_auction_delete__post ) { + void (*postHookFunc) (struct auction_data *auction); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_delete__post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_delete__post[hIndex].func; + postHookFunc(auction); + } + } + return; +} +void HP_inter_auction_fromsql(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_auction_fromsql_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_fromsql_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_auction.fromsql(); + } + if( HPMHooks.count.HP_inter_auction_fromsql_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_fromsql_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_auction_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_auction_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_auction.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_auction_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_inter_auction_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_auction_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_auction.sql_init(); + } + if( HPMHooks.count.HP_inter_auction_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_auction_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_auction_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_auction_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_auction.sql_final(); + } + if( HPMHooks.count.HP_inter_auction_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_auction_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_auction_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +/* inter_elemental */ +void HP_inter_elemental_sql_init(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_elemental_sql_init_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_elemental_sql_init_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_elemental.sql_init(); + } + if( HPMHooks.count.HP_inter_elemental_sql_init_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_elemental_sql_init_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_inter_elemental_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_elemental_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_elemental_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_elemental.sql_final(); + } + if( HPMHooks.count.HP_inter_elemental_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_elemental_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_elemental_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_elemental_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_elemental_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_elemental.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_elemental_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_elemental_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_elemental_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* inter_guild */ +int HP_inter_guild_save_timer(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_save_timer_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_save_timer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_save_timer_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.save_timer(tid, tick, id, data); + } + if( HPMHooks.count.HP_inter_guild_save_timer_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_save_timer_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_save_timer_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_inter_guild_removemember_tosql(int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_removemember_tosql_pre ) { + int (*preHookFunc) (int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_removemember_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_removemember_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.removemember_tosql(account_id, char_id); + } + if( HPMHooks.count.HP_inter_guild_removemember_tosql_post ) { + int (*postHookFunc) (int retVal___, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_removemember_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_removemember_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id, &char_id); + } + } + return retVal___; +} +int HP_inter_guild_tosql(struct guild *g, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_tosql_pre ) { + int (*preHookFunc) (struct guild *g, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_tosql_pre[hIndex].func; + retVal___ = preHookFunc(g, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.tosql(g, flag); + } + if( HPMHooks.count.HP_inter_guild_tosql_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &flag); + } + } + return retVal___; +} +struct guild* HP_inter_guild_fromsql(int guild_id) { + int hIndex = 0; + struct guild* retVal___ = NULL; + if( HPMHooks.count.HP_inter_guild_fromsql_pre ) { + struct guild* (*preHookFunc) (int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.fromsql(guild_id); + } + if( HPMHooks.count.HP_inter_guild_fromsql_post ) { + struct guild* (*postHookFunc) (struct guild* retVal___, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id); + } + } + return retVal___; +} +int HP_inter_guild_castle_tosql(struct guild_castle *gc) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_castle_tosql_pre ) { + int (*preHookFunc) (struct guild_castle *gc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_castle_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_castle_tosql_pre[hIndex].func; + retVal___ = preHookFunc(gc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.castle_tosql(gc); + } + if( HPMHooks.count.HP_inter_guild_castle_tosql_post ) { + int (*postHookFunc) (int retVal___, struct guild_castle *gc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_castle_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_castle_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, gc); + } + } + return retVal___; +} +struct guild_castle* HP_inter_guild_castle_fromsql(int castle_id) { + int hIndex = 0; + struct guild_castle* retVal___ = NULL; + if( HPMHooks.count.HP_inter_guild_castle_fromsql_pre ) { + struct guild_castle* (*preHookFunc) (int *castle_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_castle_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_castle_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&castle_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.castle_fromsql(castle_id); + } + if( HPMHooks.count.HP_inter_guild_castle_fromsql_post ) { + struct guild_castle* (*postHookFunc) (struct guild_castle* retVal___, int *castle_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_castle_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_castle_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &castle_id); + } + } + return retVal___; +} +bool HP_inter_guild_exp_parse_row(char *split[], int column, int current) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_guild_exp_parse_row_pre ) { + bool (*preHookFunc) (char *split[], int *column, int *current); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_exp_parse_row_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_exp_parse_row_pre[hIndex].func; + retVal___ = preHookFunc(split, &column, ¤t); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.exp_parse_row(split, column, current); + } + if( HPMHooks.count.HP_inter_guild_exp_parse_row_post ) { + bool (*postHookFunc) (bool retVal___, char *split[], int *column, int *current); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_exp_parse_row_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_exp_parse_row_post[hIndex].func; + retVal___ = postHookFunc(retVal___, split, &column, ¤t); + } + } + return retVal___; +} +int HP_inter_guild_CharOnline(int char_id, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_CharOnline_pre ) { + int (*preHookFunc) (int *char_id, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_CharOnline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_CharOnline_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.CharOnline(char_id, guild_id); + } + if( HPMHooks.count.HP_inter_guild_CharOnline_post ) { + int (*postHookFunc) (int retVal___, int *char_id, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_CharOnline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_CharOnline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &guild_id); + } + } + return retVal___; +} +int HP_inter_guild_CharOffline(int char_id, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_CharOffline_pre ) { + int (*preHookFunc) (int *char_id, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_CharOffline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_CharOffline_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.CharOffline(char_id, guild_id); + } + if( HPMHooks.count.HP_inter_guild_CharOffline_post ) { + int (*postHookFunc) (int retVal___, int *char_id, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_CharOffline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_CharOffline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &guild_id); + } + } + return retVal___; +} +int HP_inter_guild_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.sql_init(); + } + if( HPMHooks.count.HP_inter_guild_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +int HP_inter_guild_db_final(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_db_final_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_db_final_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_inter_guild_db_final_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.inter_guild.db_final(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_inter_guild_db_final_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_db_final_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_inter_guild_db_final_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +void HP_inter_guild_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_guild_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_guild.sql_final(); + } + if( HPMHooks.count.HP_inter_guild_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_guild_search_guildname(char *str) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_search_guildname_pre ) { + int (*preHookFunc) (char *str); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_search_guildname_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_search_guildname_pre[hIndex].func; + retVal___ = preHookFunc(str); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.search_guildname(str); + } + if( HPMHooks.count.HP_inter_guild_search_guildname_post ) { + int (*postHookFunc) (int retVal___, char *str); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_search_guildname_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_search_guildname_post[hIndex].func; + retVal___ = postHookFunc(retVal___, str); + } + } + return retVal___; +} +bool HP_inter_guild_check_empty(struct guild *g) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_guild_check_empty_pre ) { + bool (*preHookFunc) (struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_check_empty_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_check_empty_pre[hIndex].func; + retVal___ = preHookFunc(g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.check_empty(g); + } + if( HPMHooks.count.HP_inter_guild_check_empty_post ) { + bool (*postHookFunc) (bool retVal___, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_check_empty_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_check_empty_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g); + } + } + return retVal___; +} +unsigned int HP_inter_guild_nextexp(int level) { + int hIndex = 0; + unsigned int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_nextexp_pre ) { + unsigned int (*preHookFunc) (int *level); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_nextexp_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_nextexp_pre[hIndex].func; + retVal___ = preHookFunc(&level); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.nextexp(level); + } + if( HPMHooks.count.HP_inter_guild_nextexp_post ) { + unsigned int (*postHookFunc) (unsigned int retVal___, int *level); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_nextexp_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_nextexp_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &level); + } + } + return retVal___; +} +int HP_inter_guild_checkskill(struct guild *g, int id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_checkskill_pre ) { + int (*preHookFunc) (struct guild *g, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_checkskill_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_checkskill_pre[hIndex].func; + retVal___ = preHookFunc(g, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.checkskill(g, id); + } + if( HPMHooks.count.HP_inter_guild_checkskill_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_checkskill_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_checkskill_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &id); + } + } + return retVal___; +} +int HP_inter_guild_calcinfo(struct guild *g) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_calcinfo_pre ) { + int (*preHookFunc) (struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_calcinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_calcinfo_pre[hIndex].func; + retVal___ = preHookFunc(g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.calcinfo(g); + } + if( HPMHooks.count.HP_inter_guild_calcinfo_post ) { + int (*postHookFunc) (int retVal___, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_calcinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_calcinfo_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g); + } + } + return retVal___; +} +int HP_inter_guild_sex_changed(int guild_id, int account_id, int char_id, short gender) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_sex_changed_pre ) { + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, short *gender); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sex_changed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_sex_changed_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &gender); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.sex_changed(guild_id, account_id, char_id, gender); + } + if( HPMHooks.count.HP_inter_guild_sex_changed_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, short *gender); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_sex_changed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_sex_changed_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &gender); + } + } + return retVal___; +} +int HP_inter_guild_charname_changed(int guild_id, int account_id, int char_id, char *name) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_charname_changed_pre ) { + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_charname_changed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_charname_changed_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.charname_changed(guild_id, account_id, char_id, name); + } + if( HPMHooks.count.HP_inter_guild_charname_changed_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id, char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_charname_changed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_charname_changed_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, name); + } + } + return retVal___; +} +int HP_inter_guild_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_guild_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_inter_guild_leave(int guild_id, int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_leave_pre ) { + int (*preHookFunc) (int *guild_id, int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_leave_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_leave_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.leave(guild_id, account_id, char_id); + } + if( HPMHooks.count.HP_inter_guild_leave_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_leave_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_leave_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id); + } + } + return retVal___; +} +int HP_inter_guild_broken(int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_guild_broken_pre ) { + int (*preHookFunc) (int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_broken_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_guild_broken_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_guild.broken(guild_id); + } + if( HPMHooks.count.HP_inter_guild_broken_post ) { + int (*postHookFunc) (int retVal___, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_broken_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_guild_broken_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id); + } + } + return retVal___; +} +/* inter_homunculus */ +int HP_inter_homunculus_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_homunculus_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_homunculus_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_homunculus.sql_init(); + } + if( HPMHooks.count.HP_inter_homunculus_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_homunculus_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_homunculus_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_homunculus_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_homunculus_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_homunculus.sql_final(); + } + if( HPMHooks.count.HP_inter_homunculus_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_homunculus_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_homunculus_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_homunculus_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_homunculus_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_homunculus.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_homunculus_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_homunculus_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_homunculus_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* inter */ +const char* HP_inter_msg_txt(int msg_number) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_inter_msg_txt_pre ) { + const char* (*preHookFunc) (int *msg_number); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_msg_txt_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_msg_txt_pre[hIndex].func; + retVal___ = preHookFunc(&msg_number); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.msg_txt(msg_number); + } + if( HPMHooks.count.HP_inter_msg_txt_post ) { + const char* (*postHookFunc) (const char* retVal___, int *msg_number); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_msg_txt_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_msg_txt_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &msg_number); + } + } + return retVal___; +} +bool HP_inter_msg_config_read(const char *cfg_name, bool allow_override) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_msg_config_read_pre ) { + bool (*preHookFunc) (const char *cfg_name, bool *allow_override); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_msg_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_msg_config_read_pre[hIndex].func; + retVal___ = preHookFunc(cfg_name, &allow_override); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.msg_config_read(cfg_name, allow_override); + } + if( HPMHooks.count.HP_inter_msg_config_read_post ) { + bool (*postHookFunc) (bool retVal___, const char *cfg_name, bool *allow_override); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_msg_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_msg_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, cfg_name, &allow_override); + } + } + return retVal___; +} +void HP_inter_do_final_msg(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_do_final_msg_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_do_final_msg_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_do_final_msg_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter.do_final_msg(); + } + if( HPMHooks.count.HP_inter_do_final_msg_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_do_final_msg_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_do_final_msg_post[hIndex].func; + postHookFunc(); + } + } + return; +} +const char* HP_inter_job_name(int class_) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_inter_job_name_pre ) { + const char* (*preHookFunc) (int *class_); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_job_name_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_job_name_pre[hIndex].func; + retVal___ = preHookFunc(&class_); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.job_name(class_); + } + if( HPMHooks.count.HP_inter_job_name_post ) { + const char* (*postHookFunc) (const char* retVal___, int *class_); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_job_name_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_job_name_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &class_); + } + } + return retVal___; +} +void HP_inter_vmsg_to_fd(int fd, int u_fd, int aid, char *msg, va_list ap) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_vmsg_to_fd_pre ) { + void (*preHookFunc) (int *fd, int *u_fd, int *aid, char *msg, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_vmsg_to_fd_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_inter_vmsg_to_fd_pre[hIndex].func; + preHookFunc(&fd, &u_fd, &aid, msg, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + HPMHooks.source.inter.vmsg_to_fd(fd, u_fd, aid, msg, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_inter_vmsg_to_fd_post ) { + void (*postHookFunc) (int *fd, int *u_fd, int *aid, char *msg, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_vmsg_to_fd_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_inter_vmsg_to_fd_post[hIndex].func; + postHookFunc(&fd, &u_fd, &aid, msg, ap___copy); + va_end(ap___copy); + } + } + return; +} +void HP_inter_savereg(int account_id, int char_id, const char *key, unsigned int index, intptr_t val, bool is_string) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_savereg_pre ) { + void (*preHookFunc) (int *account_id, int *char_id, const char *key, unsigned int *index, intptr_t *val, bool *is_string); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_savereg_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_savereg_pre[hIndex].func; + preHookFunc(&account_id, &char_id, key, &index, &val, &is_string); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter.savereg(account_id, char_id, key, index, val, is_string); + } + if( HPMHooks.count.HP_inter_savereg_post ) { + void (*postHookFunc) (int *account_id, int *char_id, const char *key, unsigned int *index, intptr_t *val, bool *is_string); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_savereg_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_savereg_post[hIndex].func; + postHookFunc(&account_id, &char_id, key, &index, &val, &is_string); + } + } + return; +} +int HP_inter_accreg_fromsql(int account_id, int char_id, int fd, int type) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_accreg_fromsql_pre ) { + int (*preHookFunc) (int *account_id, int *char_id, int *fd, int *type); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_accreg_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_accreg_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&account_id, &char_id, &fd, &type); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.accreg_fromsql(account_id, char_id, fd, type); + } + if( HPMHooks.count.HP_inter_accreg_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *account_id, int *char_id, int *fd, int *type); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_accreg_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_accreg_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id, &char_id, &fd, &type); + } + } + return retVal___; +} +int HP_inter_config_read(const char *cfgName) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_config_read_pre ) { + int (*preHookFunc) (const char *cfgName); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_config_read_pre[hIndex].func; + retVal___ = preHookFunc(cfgName); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.config_read(cfgName); + } + if( HPMHooks.count.HP_inter_config_read_post ) { + int (*postHookFunc) (int retVal___, const char *cfgName); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, cfgName); + } + } + return retVal___; +} +int HP_inter_vlog(char *fmt, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_vlog_pre ) { + int (*preHookFunc) (char *fmt, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_vlog_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_inter_vlog_pre[hIndex].func; + retVal___ = preHookFunc(fmt, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.inter.vlog(fmt, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_inter_vlog_post ) { + int (*postHookFunc) (int retVal___, char *fmt, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_vlog_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_inter_vlog_post[hIndex].func; + retVal___ = postHookFunc(retVal___, fmt, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_inter_init_sql(const char *file) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_init_sql_pre ) { + int (*preHookFunc) (const char *file); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_init_sql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_init_sql_pre[hIndex].func; + retVal___ = preHookFunc(file); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.init_sql(file); + } + if( HPMHooks.count.HP_inter_init_sql_post ) { + int (*postHookFunc) (int retVal___, const char *file); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_init_sql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_init_sql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, file); + } + } + return retVal___; +} +int HP_inter_mapif_init(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mapif_init_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mapif_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mapif_init_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.mapif_init(fd); + } + if( HPMHooks.count.HP_inter_mapif_init_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mapif_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mapif_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_inter_check_ttl_wisdata_sub(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_check_ttl_wisdata_sub_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_ttl_wisdata_sub_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_inter_check_ttl_wisdata_sub_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.inter.check_ttl_wisdata_sub(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_inter_check_ttl_wisdata_sub_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_ttl_wisdata_sub_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_inter_check_ttl_wisdata_sub_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_inter_check_ttl_wisdata(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_check_ttl_wisdata_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_ttl_wisdata_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_check_ttl_wisdata_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.check_ttl_wisdata(); + } + if( HPMHooks.count.HP_inter_check_ttl_wisdata_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_ttl_wisdata_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_check_ttl_wisdata_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +int HP_inter_check_length(int fd, int length) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_check_length_pre ) { + int (*preHookFunc) (int *fd, int *length); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_length_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_check_length_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &length); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.check_length(fd, length); + } + if( HPMHooks.count.HP_inter_check_length_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *length); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_check_length_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_check_length_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &length); + } + } + return retVal___; +} +int HP_inter_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_inter_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter.final(); + } + if( HPMHooks.count.HP_inter_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +/* inter_mail */ +int HP_inter_mail_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mail_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.sql_init(); + } + if( HPMHooks.count.HP_inter_mail_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_mail_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_mail_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_mail.sql_final(); + } + if( HPMHooks.count.HP_inter_mail_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_mail_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mail_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_mail_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_inter_mail_fromsql(int char_id, struct mail_data *md) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mail_fromsql_pre ) { + int (*preHookFunc) (int *char_id, struct mail_data *md); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, md); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.fromsql(char_id, md); + } + if( HPMHooks.count.HP_inter_mail_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *char_id, struct mail_data *md); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, md); + } + } + return retVal___; +} +int HP_inter_mail_savemessage(struct mail_message *msg) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mail_savemessage_pre ) { + int (*preHookFunc) (struct mail_message *msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_savemessage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_savemessage_pre[hIndex].func; + retVal___ = preHookFunc(msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.savemessage(msg); + } + if( HPMHooks.count.HP_inter_mail_savemessage_post ) { + int (*postHookFunc) (int retVal___, struct mail_message *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_savemessage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_savemessage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, msg); + } + } + return retVal___; +} +bool HP_inter_mail_loadmessage(int mail_id, struct mail_message *msg) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_mail_loadmessage_pre ) { + bool (*preHookFunc) (int *mail_id, struct mail_message *msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_loadmessage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_loadmessage_pre[hIndex].func; + retVal___ = preHookFunc(&mail_id, msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.loadmessage(mail_id, msg); + } + if( HPMHooks.count.HP_inter_mail_loadmessage_post ) { + bool (*postHookFunc) (bool retVal___, int *mail_id, struct mail_message *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_loadmessage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_loadmessage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &mail_id, msg); + } + } + return retVal___; +} +bool HP_inter_mail_DeleteAttach(int mail_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_mail_DeleteAttach_pre ) { + bool (*preHookFunc) (int *mail_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_DeleteAttach_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_DeleteAttach_pre[hIndex].func; + retVal___ = preHookFunc(&mail_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mail.DeleteAttach(mail_id); + } + if( HPMHooks.count.HP_inter_mail_DeleteAttach_post ) { + bool (*postHookFunc) (bool retVal___, int *mail_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_DeleteAttach_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_DeleteAttach_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &mail_id); + } + } + return retVal___; +} +void HP_inter_mail_sendmail(int send_id, const char *send_name, int dest_id, const char *dest_name, const char *title, const char *body, int zeny, struct item *item) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_mail_sendmail_pre ) { + void (*preHookFunc) (int *send_id, const char *send_name, int *dest_id, const char *dest_name, const char *title, const char *body, int *zeny, struct item *item); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sendmail_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mail_sendmail_pre[hIndex].func; + preHookFunc(&send_id, send_name, &dest_id, dest_name, title, body, &zeny, item); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_mail.sendmail(send_id, send_name, dest_id, dest_name, title, body, zeny, item); + } + if( HPMHooks.count.HP_inter_mail_sendmail_post ) { + void (*postHookFunc) (int *send_id, const char *send_name, int *dest_id, const char *dest_name, const char *title, const char *body, int *zeny, struct item *item); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mail_sendmail_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mail_sendmail_post[hIndex].func; + postHookFunc(&send_id, send_name, &dest_id, dest_name, title, body, &zeny, item); + } + } + return; +} +/* inter_mercenary */ +bool HP_inter_mercenary_owner_fromsql(int char_id, struct mmo_charstatus *status) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_mercenary_owner_fromsql_pre ) { + bool (*preHookFunc) (int *char_id, struct mmo_charstatus *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_owner_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mercenary.owner_fromsql(char_id, status); + } + if( HPMHooks.count.HP_inter_mercenary_owner_fromsql_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id, struct mmo_charstatus *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_owner_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, status); + } + } + return retVal___; +} +bool HP_inter_mercenary_owner_tosql(int char_id, struct mmo_charstatus *status) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_mercenary_owner_tosql_pre ) { + bool (*preHookFunc) (int *char_id, struct mmo_charstatus *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_owner_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mercenary.owner_tosql(char_id, status); + } + if( HPMHooks.count.HP_inter_mercenary_owner_tosql_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id, struct mmo_charstatus *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_owner_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, status); + } + } + return retVal___; +} +bool HP_inter_mercenary_owner_delete(int char_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_mercenary_owner_delete_pre ) { + bool (*preHookFunc) (int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_owner_delete_pre[hIndex].func; + retVal___ = preHookFunc(&char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mercenary.owner_delete(char_id); + } + if( HPMHooks.count.HP_inter_mercenary_owner_delete_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_owner_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_owner_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id); + } + } + return retVal___; +} +int HP_inter_mercenary_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mercenary_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mercenary.sql_init(); + } + if( HPMHooks.count.HP_inter_mercenary_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_mercenary_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_mercenary_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_mercenary.sql_final(); + } + if( HPMHooks.count.HP_inter_mercenary_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_mercenary_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_mercenary_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_mercenary_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_mercenary.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_mercenary_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_mercenary_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_mercenary_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* inter_party */ +int HP_inter_party_check_lv(struct party_data *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_check_lv_pre ) { + int (*preHookFunc) (struct party_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_lv_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_check_lv_pre[hIndex].func; + retVal___ = preHookFunc(p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.check_lv(p); + } + if( HPMHooks.count.HP_inter_party_check_lv_post ) { + int (*postHookFunc) (int retVal___, struct party_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_lv_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_check_lv_post[hIndex].func; + retVal___ = postHookFunc(retVal___, p); + } + } + return retVal___; +} +void HP_inter_party_calc_state(struct party_data *p) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_party_calc_state_pre ) { + void (*preHookFunc) (struct party_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_calc_state_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_calc_state_pre[hIndex].func; + preHookFunc(p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_party.calc_state(p); + } + if( HPMHooks.count.HP_inter_party_calc_state_post ) { + void (*postHookFunc) (struct party_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_calc_state_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_calc_state_post[hIndex].func; + postHookFunc(p); + } + } + return; +} +int HP_inter_party_tosql(struct party *p, int flag, int index) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_tosql_pre ) { + int (*preHookFunc) (struct party *p, int *flag, int *index); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_tosql_pre[hIndex].func; + retVal___ = preHookFunc(p, &flag, &index); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.tosql(p, flag, index); + } + if( HPMHooks.count.HP_inter_party_tosql_post ) { + int (*postHookFunc) (int retVal___, struct party *p, int *flag, int *index); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, p, &flag, &index); + } + } + return retVal___; +} +struct party_data* HP_inter_party_fromsql(int party_id) { + int hIndex = 0; + struct party_data* retVal___ = NULL; + if( HPMHooks.count.HP_inter_party_fromsql_pre ) { + struct party_data* (*preHookFunc) (int *party_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&party_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.fromsql(party_id); + } + if( HPMHooks.count.HP_inter_party_fromsql_post ) { + struct party_data* (*postHookFunc) (struct party_data* retVal___, int *party_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &party_id); + } + } + return retVal___; +} +int HP_inter_party_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.sql_init(); + } + if( HPMHooks.count.HP_inter_party_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_party_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_party_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_party.sql_final(); + } + if( HPMHooks.count.HP_inter_party_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +struct party_data* HP_inter_party_search_partyname(const char *str) { + int hIndex = 0; + struct party_data* retVal___ = NULL; + if( HPMHooks.count.HP_inter_party_search_partyname_pre ) { + struct party_data* (*preHookFunc) (const char *str); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_search_partyname_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_search_partyname_pre[hIndex].func; + retVal___ = preHookFunc(str); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.search_partyname(str); + } + if( HPMHooks.count.HP_inter_party_search_partyname_post ) { + struct party_data* (*postHookFunc) (struct party_data* retVal___, const char *str); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_search_partyname_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_search_partyname_post[hIndex].func; + retVal___ = postHookFunc(retVal___, str); + } + } + return retVal___; +} +int HP_inter_party_check_exp_share(struct party_data *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_check_exp_share_pre ) { + int (*preHookFunc) (struct party_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_exp_share_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_check_exp_share_pre[hIndex].func; + retVal___ = preHookFunc(p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.check_exp_share(p); + } + if( HPMHooks.count.HP_inter_party_check_exp_share_post ) { + int (*postHookFunc) (int retVal___, struct party_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_exp_share_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_check_exp_share_post[hIndex].func; + retVal___ = postHookFunc(retVal___, p); + } + } + return retVal___; +} +int HP_inter_party_check_empty(struct party_data *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_check_empty_pre ) { + int (*preHookFunc) (struct party_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_empty_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_check_empty_pre[hIndex].func; + retVal___ = preHookFunc(p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.check_empty(p); + } + if( HPMHooks.count.HP_inter_party_check_empty_post ) { + int (*postHookFunc) (int retVal___, struct party_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_check_empty_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_check_empty_post[hIndex].func; + retVal___ = postHookFunc(retVal___, p); + } + } + return retVal___; +} +int HP_inter_party_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_party_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_inter_party_leave(int party_id, int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_leave_pre ) { + int (*preHookFunc) (int *party_id, int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_leave_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_leave_pre[hIndex].func; + retVal___ = preHookFunc(&party_id, &account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.leave(party_id, account_id, char_id); + } + if( HPMHooks.count.HP_inter_party_leave_post ) { + int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_leave_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_leave_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + } + } + return retVal___; +} +int HP_inter_party_CharOnline(int char_id, int party_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_CharOnline_pre ) { + int (*preHookFunc) (int *char_id, int *party_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_CharOnline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_CharOnline_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &party_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.CharOnline(char_id, party_id); + } + if( HPMHooks.count.HP_inter_party_CharOnline_post ) { + int (*postHookFunc) (int retVal___, int *char_id, int *party_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_CharOnline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_CharOnline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &party_id); + } + } + return retVal___; +} +int HP_inter_party_CharOffline(int char_id, int party_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_party_CharOffline_pre ) { + int (*preHookFunc) (int *char_id, int *party_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_CharOffline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_party_CharOffline_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &party_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_party.CharOffline(char_id, party_id); + } + if( HPMHooks.count.HP_inter_party_CharOffline_post ) { + int (*postHookFunc) (int retVal___, int *char_id, int *party_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_party_CharOffline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_party_CharOffline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &party_id); + } + } + return retVal___; +} +/* inter_pet */ +int HP_inter_pet_tosql(int pet_id, struct s_pet *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_pet_tosql_pre ) { + int (*preHookFunc) (int *pet_id, struct s_pet *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&pet_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_pet.tosql(pet_id, p); + } + if( HPMHooks.count.HP_inter_pet_tosql_post ) { + int (*postHookFunc) (int retVal___, int *pet_id, struct s_pet *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &pet_id, p); + } + } + return retVal___; +} +int HP_inter_pet_fromsql(int pet_id, struct s_pet *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_pet_fromsql_pre ) { + int (*preHookFunc) (int *pet_id, struct s_pet *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&pet_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_pet.fromsql(pet_id, p); + } + if( HPMHooks.count.HP_inter_pet_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *pet_id, struct s_pet *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &pet_id, p); + } + } + return retVal___; +} +int HP_inter_pet_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_pet_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_pet.sql_init(); + } + if( HPMHooks.count.HP_inter_pet_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_pet_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_pet_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_pet.sql_final(); + } + if( HPMHooks.count.HP_inter_pet_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_pet_delete_(int pet_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_pet_delete__pre ) { + int (*preHookFunc) (int *pet_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_delete__pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_delete__pre[hIndex].func; + retVal___ = preHookFunc(&pet_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_pet.delete_(pet_id); + } + if( HPMHooks.count.HP_inter_pet_delete__post ) { + int (*postHookFunc) (int retVal___, int *pet_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_delete__post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_delete__post[hIndex].func; + retVal___ = postHookFunc(retVal___, &pet_id); + } + } + return retVal___; +} +int HP_inter_pet_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_pet_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_pet_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_pet.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_pet_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_pet_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_pet_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* inter_quest */ +int HP_inter_quest_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_quest_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_quest_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_quest_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_quest.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_quest_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_quest_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_quest_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* inter_storage */ +int HP_inter_storage_tosql(int account_id, struct storage_data *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_tosql_pre ) { + int (*preHookFunc) (int *account_id, struct storage_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&account_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.tosql(account_id, p); + } + if( HPMHooks.count.HP_inter_storage_tosql_post ) { + int (*postHookFunc) (int retVal___, int *account_id, struct storage_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id, p); + } + } + return retVal___; +} +int HP_inter_storage_fromsql(int account_id, struct storage_data *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_fromsql_pre ) { + int (*preHookFunc) (int *account_id, struct storage_data *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&account_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.fromsql(account_id, p); + } + if( HPMHooks.count.HP_inter_storage_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *account_id, struct storage_data *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id, p); + } + } + return retVal___; +} +int HP_inter_storage_guild_storage_tosql(int guild_id, struct guild_storage *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_guild_storage_tosql_pre ) { + int (*preHookFunc) (int *guild_id, struct guild_storage *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_tosql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_tosql_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.guild_storage_tosql(guild_id, p); + } + if( HPMHooks.count.HP_inter_storage_guild_storage_tosql_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, struct guild_storage *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_tosql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_tosql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, p); + } + } + return retVal___; +} +int HP_inter_storage_guild_storage_fromsql(int guild_id, struct guild_storage *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_guild_storage_fromsql_pre ) { + int (*preHookFunc) (int *guild_id, struct guild_storage *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.guild_storage_fromsql(guild_id, p); + } + if( HPMHooks.count.HP_inter_storage_guild_storage_fromsql_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, struct guild_storage *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, p); + } + } + return retVal___; +} +int HP_inter_storage_sql_init(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_sql_init_pre ) { + int (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_sql_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_sql_init_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.sql_init(); + } + if( HPMHooks.count.HP_inter_storage_sql_init_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_sql_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_sql_init_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +void HP_inter_storage_sql_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_inter_storage_sql_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_sql_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_sql_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_storage.sql_final(); + } + if( HPMHooks.count.HP_inter_storage_sql_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_sql_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_sql_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +int HP_inter_storage_delete_(int account_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_delete__pre ) { + int (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_delete__pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_delete__pre[hIndex].func; + retVal___ = preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.delete_(account_id); + } + if( HPMHooks.count.HP_inter_storage_delete__post ) { + int (*postHookFunc) (int retVal___, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_delete__post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_delete__post[hIndex].func; + retVal___ = postHookFunc(retVal___, &account_id); + } + } + return retVal___; +} +int HP_inter_storage_guild_storage_delete(int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_guild_storage_delete_pre ) { + int (*preHookFunc) (int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_delete_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.guild_storage_delete(guild_id); + } + if( HPMHooks.count.HP_inter_storage_guild_storage_delete_post ) { + int (*postHookFunc) (int retVal___, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_guild_storage_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_guild_storage_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id); + } + } + return retVal___; +} +int HP_inter_storage_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_storage_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_storage_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_storage.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_storage_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_storage_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* loginif */ +void HP_loginif_init(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_init_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_init_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.init(); + } + if( HPMHooks.count.HP_loginif_init_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_init_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_final(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_final_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_final_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_final_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.final(); + } + if( HPMHooks.count.HP_loginif_final_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_final_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_final_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_reset(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_reset_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_reset_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_reset_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.reset(); + } + if( HPMHooks.count.HP_loginif_reset_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_reset_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_reset_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_check_shutdown(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_check_shutdown_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_check_shutdown_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_check_shutdown_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.check_shutdown(); + } + if( HPMHooks.count.HP_loginif_check_shutdown_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_check_shutdown_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_check_shutdown_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_on_disconnect(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_on_disconnect_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_on_disconnect_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_on_disconnect_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.on_disconnect(); + } + if( HPMHooks.count.HP_loginif_on_disconnect_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_on_disconnect_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_on_disconnect_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_on_ready(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_on_ready_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_on_ready_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_on_ready_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.on_ready(); + } + if( HPMHooks.count.HP_loginif_on_ready_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_on_ready_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_on_ready_post[hIndex].func; + postHookFunc(); + } + } + return; +} +void HP_loginif_block_account(int account_id, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_block_account_pre ) { + void (*preHookFunc) (int *account_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_block_account_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_block_account_pre[hIndex].func; + preHookFunc(&account_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.block_account(account_id, flag); + } + if( HPMHooks.count.HP_loginif_block_account_post ) { + void (*postHookFunc) (int *account_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_block_account_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_block_account_post[hIndex].func; + postHookFunc(&account_id, &flag); + } + } + return; +} +void HP_loginif_ban_account(int account_id, short year, short month, short day, short hour, short minute, short second) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_ban_account_pre ) { + void (*preHookFunc) (int *account_id, short *year, short *month, short *day, short *hour, short *minute, short *second); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_ban_account_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_ban_account_pre[hIndex].func; + preHookFunc(&account_id, &year, &month, &day, &hour, &minute, &second); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.ban_account(account_id, year, month, day, hour, minute, second); + } + if( HPMHooks.count.HP_loginif_ban_account_post ) { + void (*postHookFunc) (int *account_id, short *year, short *month, short *day, short *hour, short *minute, short *second); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_ban_account_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_ban_account_post[hIndex].func; + postHookFunc(&account_id, &year, &month, &day, &hour, &minute, &second); + } + } + return; +} +void HP_loginif_unban_account(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_unban_account_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_unban_account_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_unban_account_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.unban_account(account_id); + } + if( HPMHooks.count.HP_loginif_unban_account_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_unban_account_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_unban_account_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_loginif_changesex(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_changesex_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_changesex_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_changesex_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.changesex(account_id); + } + if( HPMHooks.count.HP_loginif_changesex_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_changesex_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_changesex_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_loginif_auth(int fd, struct char_session_data *sd, uint32 ipl) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_auth_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_auth_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_auth_pre[hIndex].func; + preHookFunc(&fd, sd, &ipl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.auth(fd, sd, ipl); + } + if( HPMHooks.count.HP_loginif_auth_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd, uint32 *ipl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_auth_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_auth_post[hIndex].func; + postHookFunc(&fd, sd, &ipl); + } + } + return; +} +void HP_loginif_send_users_count(int users) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_send_users_count_pre ) { + void (*preHookFunc) (int *users); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_send_users_count_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_send_users_count_pre[hIndex].func; + preHookFunc(&users); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.send_users_count(users); + } + if( HPMHooks.count.HP_loginif_send_users_count_post ) { + void (*postHookFunc) (int *users); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_send_users_count_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_send_users_count_post[hIndex].func; + postHookFunc(&users); + } + } + return; +} +void HP_loginif_connect_to_server(void) { + int hIndex = 0; + if( HPMHooks.count.HP_loginif_connect_to_server_pre ) { + void (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_connect_to_server_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_loginif_connect_to_server_pre[hIndex].func; + preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.loginif.connect_to_server(); + } + if( HPMHooks.count.HP_loginif_connect_to_server_post ) { + void (*postHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_connect_to_server_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_loginif_connect_to_server_post[hIndex].func; + postHookFunc(); + } + } + return; +} +/* mapif */ +void HP_mapif_ban(int id, unsigned int flag, int status) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_ban_pre ) { + void (*preHookFunc) (int *id, unsigned int *flag, int *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_ban_pre[hIndex].func; + preHookFunc(&id, &flag, &status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.ban(id, flag, status); + } + if( HPMHooks.count.HP_mapif_ban_post ) { + void (*postHookFunc) (int *id, unsigned int *flag, int *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_ban_post[hIndex].func; + postHookFunc(&id, &flag, &status); + } + } + return; +} +void HP_mapif_server_init(int id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_server_init_pre ) { + void (*preHookFunc) (int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_init_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_server_init_pre[hIndex].func; + preHookFunc(&id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.server_init(id); + } + if( HPMHooks.count.HP_mapif_server_init_post ) { + void (*postHookFunc) (int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_init_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_server_init_post[hIndex].func; + postHookFunc(&id); + } + } + return; +} +void HP_mapif_server_destroy(int id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_server_destroy_pre ) { + void (*preHookFunc) (int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_destroy_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_server_destroy_pre[hIndex].func; + preHookFunc(&id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.server_destroy(id); + } + if( HPMHooks.count.HP_mapif_server_destroy_post ) { + void (*postHookFunc) (int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_destroy_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_server_destroy_post[hIndex].func; + postHookFunc(&id); + } + } + return; +} +void HP_mapif_server_reset(int id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_server_reset_pre ) { + void (*preHookFunc) (int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_reset_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_server_reset_pre[hIndex].func; + preHookFunc(&id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.server_reset(id); + } + if( HPMHooks.count.HP_mapif_server_reset_post ) { + void (*postHookFunc) (int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_server_reset_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_server_reset_post[hIndex].func; + postHookFunc(&id); + } + } + return; +} +void HP_mapif_on_disconnect(int id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_on_disconnect_pre ) { + void (*preHookFunc) (int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_on_disconnect_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_on_disconnect_pre[hIndex].func; + preHookFunc(&id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.on_disconnect(id); + } + if( HPMHooks.count.HP_mapif_on_disconnect_post ) { + void (*postHookFunc) (int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_on_disconnect_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_on_disconnect_post[hIndex].func; + postHookFunc(&id); + } + } + return; +} +void HP_mapif_on_parse_accinfo(int account_id, int u_fd, int u_aid, int u_group, int map_fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_on_parse_accinfo_pre ) { + void (*preHookFunc) (int *account_id, int *u_fd, int *u_aid, int *u_group, int *map_fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_on_parse_accinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_on_parse_accinfo_pre[hIndex].func; + preHookFunc(&account_id, &u_fd, &u_aid, &u_group, &map_fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.on_parse_accinfo(account_id, u_fd, u_aid, u_group, map_fd); + } + if( HPMHooks.count.HP_mapif_on_parse_accinfo_post ) { + void (*postHookFunc) (int *account_id, int *u_fd, int *u_aid, int *u_group, int *map_fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_on_parse_accinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_on_parse_accinfo_post[hIndex].func; + postHookFunc(&account_id, &u_fd, &u_aid, &u_group, &map_fd); + } + } + return; +} +void HP_mapif_char_ban(int char_id, time_t timestamp) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_char_ban_pre ) { + void (*preHookFunc) (int *char_id, time_t *timestamp); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_char_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_char_ban_pre[hIndex].func; + preHookFunc(&char_id, ×tamp); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.char_ban(char_id, timestamp); + } + if( HPMHooks.count.HP_mapif_char_ban_post ) { + void (*postHookFunc) (int *char_id, time_t *timestamp); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_char_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_char_ban_post[hIndex].func; + postHookFunc(&char_id, ×tamp); + } + } + return; +} +int HP_mapif_sendall(unsigned char *buf, unsigned int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_sendall_pre ) { + int (*preHookFunc) (unsigned char *buf, unsigned int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sendall_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_sendall_pre[hIndex].func; + retVal___ = preHookFunc(buf, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.sendall(buf, len); + } + if( HPMHooks.count.HP_mapif_sendall_post ) { + int (*postHookFunc) (int retVal___, unsigned char *buf, unsigned int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sendall_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_sendall_post[hIndex].func; + retVal___ = postHookFunc(retVal___, buf, &len); + } + } + return retVal___; +} +int HP_mapif_sendallwos(int sfd, unsigned char *buf, unsigned int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_sendallwos_pre ) { + int (*preHookFunc) (int *sfd, unsigned char *buf, unsigned int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sendallwos_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_sendallwos_pre[hIndex].func; + retVal___ = preHookFunc(&sfd, buf, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.sendallwos(sfd, buf, len); + } + if( HPMHooks.count.HP_mapif_sendallwos_post ) { + int (*postHookFunc) (int retVal___, int *sfd, unsigned char *buf, unsigned int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sendallwos_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_sendallwos_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &sfd, buf, &len); + } + } + return retVal___; +} +int HP_mapif_send(int fd, unsigned char *buf, unsigned int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_send_pre ) { + int (*preHookFunc) (int *fd, unsigned char *buf, unsigned int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_send_pre[hIndex].func; + retVal___ = preHookFunc(&fd, buf, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.send(fd, buf, len); + } + if( HPMHooks.count.HP_mapif_send_post ) { + int (*postHookFunc) (int retVal___, int *fd, unsigned char *buf, unsigned int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_send_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, buf, &len); + } + } + return retVal___; +} +void HP_mapif_send_users_count(int users) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_send_users_count_pre ) { + void (*preHookFunc) (int *users); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_users_count_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_send_users_count_pre[hIndex].func; + preHookFunc(&users); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.send_users_count(users); + } + if( HPMHooks.count.HP_mapif_send_users_count_post ) { + void (*postHookFunc) (int *users); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_users_count_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_send_users_count_post[hIndex].func; + postHookFunc(&users); + } + } + return; +} +void HP_mapif_auction_message(int char_id, unsigned char result) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_message_pre ) { + void (*preHookFunc) (int *char_id, unsigned char *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_message_pre[hIndex].func; + preHookFunc(&char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_message(char_id, result); + } + if( HPMHooks.count.HP_mapif_auction_message_post ) { + void (*postHookFunc) (int *char_id, unsigned char *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_message_post[hIndex].func; + postHookFunc(&char_id, &result); + } + } + return; +} +void HP_mapif_auction_sendlist(int fd, int char_id, short count, short pages, unsigned char *buf) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_sendlist_pre ) { + void (*preHookFunc) (int *fd, int *char_id, short *count, short *pages, unsigned char *buf); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_sendlist_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_sendlist_pre[hIndex].func; + preHookFunc(&fd, &char_id, &count, &pages, buf); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_sendlist(fd, char_id, count, pages, buf); + } + if( HPMHooks.count.HP_mapif_auction_sendlist_post ) { + void (*postHookFunc) (int *fd, int *char_id, short *count, short *pages, unsigned char *buf); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_sendlist_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_sendlist_post[hIndex].func; + postHookFunc(&fd, &char_id, &count, &pages, buf); + } + } + return; +} +void HP_mapif_parse_auction_requestlist(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_auction_requestlist_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_requestlist_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_auction_requestlist_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_auction_requestlist(fd); + } + if( HPMHooks.count.HP_mapif_parse_auction_requestlist_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_requestlist_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_auction_requestlist_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_auction_register(int fd, struct auction_data *auction) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_register_pre ) { + void (*preHookFunc) (int *fd, struct auction_data *auction); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_register_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_register_pre[hIndex].func; + preHookFunc(&fd, auction); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_register(fd, auction); + } + if( HPMHooks.count.HP_mapif_auction_register_post ) { + void (*postHookFunc) (int *fd, struct auction_data *auction); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_register_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_register_post[hIndex].func; + postHookFunc(&fd, auction); + } + } + return; +} +void HP_mapif_parse_auction_register(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_auction_register_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_register_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_auction_register_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_auction_register(fd); + } + if( HPMHooks.count.HP_mapif_parse_auction_register_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_register_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_auction_register_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_auction_cancel(int fd, int char_id, unsigned char result) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_cancel_pre ) { + void (*preHookFunc) (int *fd, int *char_id, unsigned char *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_cancel_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_cancel_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_cancel(fd, char_id, result); + } + if( HPMHooks.count.HP_mapif_auction_cancel_post ) { + void (*postHookFunc) (int *fd, int *char_id, unsigned char *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_cancel_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_cancel_post[hIndex].func; + postHookFunc(&fd, &char_id, &result); + } + } + return; +} +void HP_mapif_parse_auction_cancel(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_auction_cancel_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_cancel_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_auction_cancel_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_auction_cancel(fd); + } + if( HPMHooks.count.HP_mapif_parse_auction_cancel_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_cancel_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_auction_cancel_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_auction_close(int fd, int char_id, unsigned char result) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_close_pre ) { + void (*preHookFunc) (int *fd, int *char_id, unsigned char *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_close_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_close_pre[hIndex].func; + preHookFunc(&fd, &char_id, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_close(fd, char_id, result); + } + if( HPMHooks.count.HP_mapif_auction_close_post ) { + void (*postHookFunc) (int *fd, int *char_id, unsigned char *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_close_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_close_post[hIndex].func; + postHookFunc(&fd, &char_id, &result); + } + } + return; +} +void HP_mapif_parse_auction_close(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_auction_close_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_close_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_auction_close_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_auction_close(fd); + } + if( HPMHooks.count.HP_mapif_parse_auction_close_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_close_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_auction_close_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_auction_bid(int fd, int char_id, int bid, unsigned char result) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_auction_bid_pre ) { + void (*preHookFunc) (int *fd, int *char_id, int *bid, unsigned char *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_bid_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_auction_bid_pre[hIndex].func; + preHookFunc(&fd, &char_id, &bid, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.auction_bid(fd, char_id, bid, result); + } + if( HPMHooks.count.HP_mapif_auction_bid_post ) { + void (*postHookFunc) (int *fd, int *char_id, int *bid, unsigned char *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_auction_bid_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_auction_bid_post[hIndex].func; + postHookFunc(&fd, &char_id, &bid, &result); + } + } + return; +} +void HP_mapif_parse_auction_bid(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_auction_bid_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_bid_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_auction_bid_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_auction_bid(fd); + } + if( HPMHooks.count.HP_mapif_parse_auction_bid_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_auction_bid_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_auction_bid_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +bool HP_mapif_elemental_save(struct s_elemental *ele) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_elemental_save_pre ) { + bool (*preHookFunc) (struct s_elemental *ele); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_save_pre[hIndex].func; + retVal___ = preHookFunc(ele); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.elemental_save(ele); + } + if( HPMHooks.count.HP_mapif_elemental_save_post ) { + bool (*postHookFunc) (bool retVal___, struct s_elemental *ele); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_save_post[hIndex].func; + retVal___ = postHookFunc(retVal___, ele); + } + } + return retVal___; +} +bool HP_mapif_elemental_load(int ele_id, int char_id, struct s_elemental *ele) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_elemental_load_pre ) { + bool (*preHookFunc) (int *ele_id, int *char_id, struct s_elemental *ele); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_load_pre[hIndex].func; + retVal___ = preHookFunc(&ele_id, &char_id, ele); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.elemental_load(ele_id, char_id, ele); + } + if( HPMHooks.count.HP_mapif_elemental_load_post ) { + bool (*postHookFunc) (bool retVal___, int *ele_id, int *char_id, struct s_elemental *ele); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_load_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &ele_id, &char_id, ele); + } + } + return retVal___; +} +bool HP_mapif_elemental_delete(int ele_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_elemental_delete_pre ) { + bool (*preHookFunc) (int *ele_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_delete_pre[hIndex].func; + retVal___ = preHookFunc(&ele_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.elemental_delete(ele_id); + } + if( HPMHooks.count.HP_mapif_elemental_delete_post ) { + bool (*postHookFunc) (bool retVal___, int *ele_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &ele_id); + } + } + return retVal___; +} +void HP_mapif_elemental_send(int fd, struct s_elemental *ele, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_elemental_send_pre ) { + void (*preHookFunc) (int *fd, struct s_elemental *ele, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_send_pre[hIndex].func; + preHookFunc(&fd, ele, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.elemental_send(fd, ele, flag); + } + if( HPMHooks.count.HP_mapif_elemental_send_post ) { + void (*postHookFunc) (int *fd, struct s_elemental *ele, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_send_post[hIndex].func; + postHookFunc(&fd, ele, &flag); + } + } + return; +} +void HP_mapif_parse_elemental_create(int fd, struct s_elemental *ele) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_elemental_create_pre ) { + void (*preHookFunc) (int *fd, struct s_elemental *ele); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_create_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_elemental_create_pre[hIndex].func; + preHookFunc(&fd, ele); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_elemental_create(fd, ele); + } + if( HPMHooks.count.HP_mapif_parse_elemental_create_post ) { + void (*postHookFunc) (int *fd, struct s_elemental *ele); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_create_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_elemental_create_post[hIndex].func; + postHookFunc(&fd, ele); + } + } + return; +} +void HP_mapif_parse_elemental_load(int fd, int ele_id, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_elemental_load_pre ) { + void (*preHookFunc) (int *fd, int *ele_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_elemental_load_pre[hIndex].func; + preHookFunc(&fd, &ele_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_elemental_load(fd, ele_id, char_id); + } + if( HPMHooks.count.HP_mapif_parse_elemental_load_post ) { + void (*postHookFunc) (int *fd, int *ele_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_elemental_load_post[hIndex].func; + postHookFunc(&fd, &ele_id, &char_id); + } + } + return; +} +void HP_mapif_elemental_deleted(int fd, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_elemental_deleted_pre ) { + void (*preHookFunc) (int *fd, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_deleted_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_deleted_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.elemental_deleted(fd, flag); + } + if( HPMHooks.count.HP_mapif_elemental_deleted_post ) { + void (*postHookFunc) (int *fd, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_deleted_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_deleted_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_mapif_parse_elemental_delete(int fd, int ele_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_elemental_delete_pre ) { + void (*preHookFunc) (int *fd, int *ele_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_elemental_delete_pre[hIndex].func; + preHookFunc(&fd, &ele_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_elemental_delete(fd, ele_id); + } + if( HPMHooks.count.HP_mapif_parse_elemental_delete_post ) { + void (*postHookFunc) (int *fd, int *ele_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_elemental_delete_post[hIndex].func; + postHookFunc(&fd, &ele_id); + } + } + return; +} +void HP_mapif_elemental_saved(int fd, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_elemental_saved_pre ) { + void (*preHookFunc) (int *fd, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_saved_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_elemental_saved_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.elemental_saved(fd, flag); + } + if( HPMHooks.count.HP_mapif_elemental_saved_post ) { + void (*postHookFunc) (int *fd, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_elemental_saved_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_elemental_saved_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_mapif_parse_elemental_save(int fd, struct s_elemental *ele) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_elemental_save_pre ) { + void (*preHookFunc) (int *fd, struct s_elemental *ele); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_elemental_save_pre[hIndex].func; + preHookFunc(&fd, ele); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_elemental_save(fd, ele); + } + if( HPMHooks.count.HP_mapif_parse_elemental_save_post ) { + void (*postHookFunc) (int *fd, struct s_elemental *ele); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_elemental_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_elemental_save_post[hIndex].func; + postHookFunc(&fd, ele); + } + } + return; +} +int HP_mapif_guild_created(int fd, int account_id, struct guild *g) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_created_pre ) { + int (*preHookFunc) (int *fd, int *account_id, struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_created_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_created_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_created(fd, account_id, g); + } + if( HPMHooks.count.HP_mapif_guild_created_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_created_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_created_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, g); + } + } + return retVal___; +} +int HP_mapif_guild_noinfo(int fd, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_noinfo_pre ) { + int (*preHookFunc) (int *fd, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_noinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_noinfo_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_noinfo(fd, guild_id); + } + if( HPMHooks.count.HP_mapif_guild_noinfo_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_noinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_noinfo_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id); + } + } + return retVal___; +} +int HP_mapif_guild_info(int fd, struct guild *g) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_info_pre ) { + int (*preHookFunc) (int *fd, struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_info_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_info_pre[hIndex].func; + retVal___ = preHookFunc(&fd, g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_info(fd, g); + } + if( HPMHooks.count.HP_mapif_guild_info_post ) { + int (*postHookFunc) (int retVal___, int *fd, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_info_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_info_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, g); + } + } + return retVal___; +} +int HP_mapif_guild_memberadded(int fd, int guild_id, int account_id, int char_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_memberadded_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *account_id, int *char_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_memberadded_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_memberadded_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &account_id, &char_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_memberadded(fd, guild_id, account_id, char_id, flag); + } + if( HPMHooks.count.HP_mapif_guild_memberadded_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *account_id, int *char_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_memberadded_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_memberadded_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &account_id, &char_id, &flag); + } + } + return retVal___; +} +int HP_mapif_guild_withdraw(int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_withdraw_pre ) { + 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_mapif_guild_withdraw_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_withdraw_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &flag, name, mes); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_withdraw(guild_id, account_id, char_id, flag, name, mes); + } + if( HPMHooks.count.HP_mapif_guild_withdraw_post ) { + 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_mapif_guild_withdraw_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_withdraw_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &flag, name, mes); + } + } + return retVal___; +} +int HP_mapif_guild_memberinfoshort(struct guild *g, int idx) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_memberinfoshort_pre ) { + int (*preHookFunc) (struct guild *g, int *idx); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_memberinfoshort_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_memberinfoshort_pre[hIndex].func; + retVal___ = preHookFunc(g, &idx); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_memberinfoshort(g, idx); + } + if( HPMHooks.count.HP_mapif_guild_memberinfoshort_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *idx); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_memberinfoshort_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_memberinfoshort_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &idx); + } + } + return retVal___; +} +int HP_mapif_guild_broken(int guild_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_broken_pre ) { + int (*preHookFunc) (int *guild_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_broken_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_broken_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_broken(guild_id, flag); + } + if( HPMHooks.count.HP_mapif_guild_broken_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_broken_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_broken_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &flag); + } + } + return retVal___; +} +int HP_mapif_guild_message(int guild_id, int account_id, char *mes, int len, int sfd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_message_pre ) { + int (*preHookFunc) (int *guild_id, int *account_id, char *mes, int *len, int *sfd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_message_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, mes, &len, &sfd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_message(guild_id, account_id, mes, len, sfd); + } + if( HPMHooks.count.HP_mapif_guild_message_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *account_id, char *mes, int *len, int *sfd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, mes, &len, &sfd); + } + } + return retVal___; +} +int HP_mapif_guild_basicinfochanged(int guild_id, int type, const void *data, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_basicinfochanged_pre ) { + int (*preHookFunc) (int *guild_id, int *type, const void *data, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_basicinfochanged_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_basicinfochanged_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &type, data, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_basicinfochanged(guild_id, type, data, len); + } + if( HPMHooks.count.HP_mapif_guild_basicinfochanged_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, int *type, const void *data, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_basicinfochanged_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_basicinfochanged_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &type, data, &len); + } + } + return retVal___; +} +int HP_mapif_guild_memberinfochanged(int guild_id, int account_id, int char_id, int type, const void *data, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_memberinfochanged_pre ) { + 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_mapif_guild_memberinfochanged_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_memberinfochanged_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &account_id, &char_id, &type, data, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_memberinfochanged(guild_id, account_id, char_id, type, data, len); + } + if( HPMHooks.count.HP_mapif_guild_memberinfochanged_post ) { + 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_mapif_guild_memberinfochanged_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_memberinfochanged_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &account_id, &char_id, &type, data, &len); + } + } + return retVal___; +} +int HP_mapif_guild_skillupack(int guild_id, uint16 skill_id, int account_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_skillupack_pre ) { + int (*preHookFunc) (int *guild_id, uint16 *skill_id, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_skillupack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_skillupack_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id, &skill_id, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_skillupack(guild_id, skill_id, account_id); + } + if( HPMHooks.count.HP_mapif_guild_skillupack_post ) { + int (*postHookFunc) (int retVal___, int *guild_id, uint16 *skill_id, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_skillupack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_skillupack_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id, &skill_id, &account_id); + } + } + return retVal___; +} +int HP_mapif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_alliance_pre ) { + 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_mapif_guild_alliance_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_alliance_pre[hIndex].func; + retVal___ = preHookFunc(&guild_id1, &guild_id2, &account_id1, &account_id2, &flag, name1, name2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_alliance(guild_id1, guild_id2, account_id1, account_id2, flag, name1, name2); + } + if( HPMHooks.count.HP_mapif_guild_alliance_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); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_alliance_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_alliance_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &guild_id1, &guild_id2, &account_id1, &account_id2, &flag, name1, name2); + } + } + return retVal___; +} +int HP_mapif_guild_position(struct guild *g, int idx) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_position_pre ) { + int (*preHookFunc) (struct guild *g, int *idx); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_position_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_position_pre[hIndex].func; + retVal___ = preHookFunc(g, &idx); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_position(g, idx); + } + if( HPMHooks.count.HP_mapif_guild_position_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *idx); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_position_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_position_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &idx); + } + } + return retVal___; +} +int HP_mapif_guild_notice(struct guild *g) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_notice_pre ) { + int (*preHookFunc) (struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_notice_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_notice_pre[hIndex].func; + retVal___ = preHookFunc(g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_notice(g); + } + if( HPMHooks.count.HP_mapif_guild_notice_post ) { + int (*postHookFunc) (int retVal___, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_notice_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_notice_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g); + } + } + return retVal___; +} +int HP_mapif_guild_emblem(struct guild *g) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_emblem_pre ) { + int (*preHookFunc) (struct guild *g); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_emblem_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_emblem_pre[hIndex].func; + retVal___ = preHookFunc(g); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_emblem(g); + } + if( HPMHooks.count.HP_mapif_guild_emblem_post ) { + int (*postHookFunc) (int retVal___, struct guild *g); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_emblem_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_emblem_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g); + } + } + return retVal___; +} +int HP_mapif_guild_master_changed(struct guild *g, int aid, int cid) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_master_changed_pre ) { + int (*preHookFunc) (struct guild *g, int *aid, int *cid); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_master_changed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_master_changed_pre[hIndex].func; + retVal___ = preHookFunc(g, &aid, &cid); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_master_changed(g, aid, cid); + } + if( HPMHooks.count.HP_mapif_guild_master_changed_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *aid, int *cid); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_master_changed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_master_changed_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &aid, &cid); + } + } + return retVal___; +} +int HP_mapif_guild_castle_dataload(int fd, int sz, int *castle_ids) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_guild_castle_dataload_pre ) { + int (*preHookFunc) (int *fd, int *sz, int *castle_ids); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_castle_dataload_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_guild_castle_dataload_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &sz, castle_ids); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.guild_castle_dataload(fd, sz, castle_ids); + } + if( HPMHooks.count.HP_mapif_guild_castle_dataload_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *sz, int *castle_ids); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_guild_castle_dataload_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_guild_castle_dataload_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &sz, castle_ids); + } + } + return retVal___; +} +int HP_mapif_parse_CreateGuild(int fd, int account_id, char *name, struct guild_member *master) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_CreateGuild_pre ) { + int (*preHookFunc) (int *fd, int *account_id, char *name, struct guild_member *master); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreateGuild_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_CreateGuild_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, name, master); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_CreateGuild(fd, account_id, name, master); + } + if( HPMHooks.count.HP_mapif_parse_CreateGuild_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, char *name, struct guild_member *master); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreateGuild_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_CreateGuild_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, name, master); + } + } + return retVal___; +} +int HP_mapif_parse_GuildInfo(int fd, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildInfo_pre ) { + int (*preHookFunc) (int *fd, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildInfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildInfo_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildInfo(fd, guild_id); + } + if( HPMHooks.count.HP_mapif_parse_GuildInfo_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildInfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildInfo_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id); + } + } + return retVal___; +} +int HP_mapif_parse_GuildAddMember(int fd, int guild_id, struct guild_member *m) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildAddMember_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, struct guild_member *m); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildAddMember_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildAddMember_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, m); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildAddMember(fd, guild_id, m); + } + if( HPMHooks.count.HP_mapif_parse_GuildAddMember_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, struct guild_member *m); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildAddMember_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildAddMember_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, m); + } + } + return retVal___; +} +int HP_mapif_parse_GuildLeave(int fd, int guild_id, int account_id, int char_id, int flag, const char *mes) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildLeave_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *account_id, int *char_id, int *flag, const char *mes); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildLeave_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildLeave_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &account_id, &char_id, &flag, mes); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildLeave(fd, guild_id, account_id, char_id, flag, mes); + } + if( HPMHooks.count.HP_mapif_parse_GuildLeave_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *account_id, int *char_id, int *flag, const char *mes); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildLeave_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildLeave_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &account_id, &char_id, &flag, mes); + } + } + return retVal___; +} +int HP_mapif_parse_GuildChangeMemberInfoShort(int fd, int guild_id, int account_id, int char_id, int online, int lv, int class_) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildChangeMemberInfoShort_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildChangeMemberInfoShort_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildChangeMemberInfoShort_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &account_id, &char_id, &online, &lv, &class_); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildChangeMemberInfoShort(fd, guild_id, account_id, char_id, online, lv, class_); + } + if( HPMHooks.count.HP_mapif_parse_GuildChangeMemberInfoShort_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildChangeMemberInfoShort_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildChangeMemberInfoShort_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &account_id, &char_id, &online, &lv, &class_); + } + } + return retVal___; +} +int HP_mapif_parse_BreakGuild(int fd, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_BreakGuild_pre ) { + int (*preHookFunc) (int *fd, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_BreakGuild_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_BreakGuild_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_BreakGuild(fd, guild_id); + } + if( HPMHooks.count.HP_mapif_parse_BreakGuild_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_BreakGuild_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_BreakGuild_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id); + } + } + return retVal___; +} +int HP_mapif_parse_GuildMessage(int fd, int guild_id, int account_id, char *mes, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildMessage_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *account_id, char *mes, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMessage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildMessage_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &account_id, mes, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildMessage(fd, guild_id, account_id, mes, len); + } + if( HPMHooks.count.HP_mapif_parse_GuildMessage_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *account_id, char *mes, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMessage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildMessage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &account_id, mes, &len); + } + } + return retVal___; +} +int HP_mapif_parse_GuildBasicInfoChange(int fd, int guild_id, int type, const void *data, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildBasicInfoChange_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *type, const void *data, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildBasicInfoChange_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildBasicInfoChange_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &type, data, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildBasicInfoChange(fd, guild_id, type, data, len); + } + if( HPMHooks.count.HP_mapif_parse_GuildBasicInfoChange_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *type, const void *data, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildBasicInfoChange_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildBasicInfoChange_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &type, data, &len); + } + } + return retVal___; +} +int HP_mapif_parse_GuildMemberInfoChange(int fd, int guild_id, int account_id, int char_id, int type, const char *data, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildMemberInfoChange_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *account_id, int *char_id, int *type, const char *data, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMemberInfoChange_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildMemberInfoChange_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &account_id, &char_id, &type, data, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildMemberInfoChange(fd, guild_id, account_id, char_id, type, data, len); + } + if( HPMHooks.count.HP_mapif_parse_GuildMemberInfoChange_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *account_id, int *char_id, int *type, const char *data, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMemberInfoChange_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildMemberInfoChange_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &account_id, &char_id, &type, data, &len); + } + } + return retVal___; +} +int HP_mapif_parse_GuildPosition(int fd, int guild_id, int idx, struct guild_position *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildPosition_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, int *idx, struct guild_position *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildPosition_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildPosition_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &idx, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildPosition(fd, guild_id, idx, p); + } + if( HPMHooks.count.HP_mapif_parse_GuildPosition_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, int *idx, struct guild_position *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildPosition_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildPosition_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &idx, p); + } + } + return retVal___; +} +int HP_mapif_parse_GuildSkillUp(int fd, int guild_id, uint16 skill_id, int account_id, int max) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildSkillUp_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, uint16 *skill_id, int *account_id, int *max); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildSkillUp_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildSkillUp_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, &skill_id, &account_id, &max); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildSkillUp(fd, guild_id, skill_id, account_id, max); + } + if( HPMHooks.count.HP_mapif_parse_GuildSkillUp_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, uint16 *skill_id, int *account_id, int *max); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildSkillUp_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildSkillUp_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, &skill_id, &account_id, &max); + } + } + return retVal___; +} +int HP_mapif_parse_GuildDeleteAlliance(struct guild *g, int guild_id, int account_id1, int account_id2, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildDeleteAlliance_pre ) { + int (*preHookFunc) (struct guild *g, int *guild_id, int *account_id1, int *account_id2, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildDeleteAlliance_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildDeleteAlliance_pre[hIndex].func; + retVal___ = preHookFunc(g, &guild_id, &account_id1, &account_id2, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildDeleteAlliance(g, guild_id, account_id1, account_id2, flag); + } + if( HPMHooks.count.HP_mapif_parse_GuildDeleteAlliance_post ) { + int (*postHookFunc) (int retVal___, struct guild *g, int *guild_id, int *account_id1, int *account_id2, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildDeleteAlliance_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildDeleteAlliance_post[hIndex].func; + retVal___ = postHookFunc(retVal___, g, &guild_id, &account_id1, &account_id2, &flag); + } + } + return retVal___; +} +int HP_mapif_parse_GuildAlliance(int fd, int guild_id1, int guild_id2, int account_id1, int account_id2, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildAlliance_pre ) { + int (*preHookFunc) (int *fd, int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildAlliance_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildAlliance_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id1, &guild_id2, &account_id1, &account_id2, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildAlliance(fd, guild_id1, guild_id2, account_id1, account_id2, flag); + } + if( HPMHooks.count.HP_mapif_parse_GuildAlliance_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildAlliance_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildAlliance_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id1, &guild_id2, &account_id1, &account_id2, &flag); + } + } + return retVal___; +} +int HP_mapif_parse_GuildNotice(int fd, int guild_id, const char *mes1, const char *mes2) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildNotice_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, const char *mes1, const char *mes2); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildNotice_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildNotice_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, mes1, mes2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildNotice(fd, guild_id, mes1, mes2); + } + if( HPMHooks.count.HP_mapif_parse_GuildNotice_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, const char *mes1, const char *mes2); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildNotice_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildNotice_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, mes1, mes2); + } + } + return retVal___; +} +int HP_mapif_parse_GuildEmblem(int fd, int len, int guild_id, int dummy, const char *data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildEmblem_pre ) { + int (*preHookFunc) (int *fd, int *len, int *guild_id, int *dummy, const char *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildEmblem_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildEmblem_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &len, &guild_id, &dummy, data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildEmblem(fd, len, guild_id, dummy, data); + } + if( HPMHooks.count.HP_mapif_parse_GuildEmblem_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *len, int *guild_id, int *dummy, const char *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildEmblem_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildEmblem_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &len, &guild_id, &dummy, data); + } + } + return retVal___; +} +int HP_mapif_parse_GuildCastleDataLoad(int fd, int len, int *castle_ids) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildCastleDataLoad_pre ) { + int (*preHookFunc) (int *fd, int *len, int *castle_ids); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildCastleDataLoad_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildCastleDataLoad_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &len, castle_ids); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildCastleDataLoad(fd, len, castle_ids); + } + if( HPMHooks.count.HP_mapif_parse_GuildCastleDataLoad_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *len, int *castle_ids); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildCastleDataLoad_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildCastleDataLoad_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &len, castle_ids); + } + } + return retVal___; +} +int HP_mapif_parse_GuildCastleDataSave(int fd, int castle_id, int index, int value) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildCastleDataSave_pre ) { + int (*preHookFunc) (int *fd, int *castle_id, int *index, int *value); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildCastleDataSave_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildCastleDataSave_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &castle_id, &index, &value); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildCastleDataSave(fd, castle_id, index, value); + } + if( HPMHooks.count.HP_mapif_parse_GuildCastleDataSave_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *castle_id, int *index, int *value); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildCastleDataSave_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildCastleDataSave_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &castle_id, &index, &value); + } + } + return retVal___; +} +int HP_mapif_parse_GuildMasterChange(int fd, int guild_id, const char *name, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_GuildMasterChange_pre ) { + int (*preHookFunc) (int *fd, int *guild_id, const char *name, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMasterChange_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_GuildMasterChange_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &guild_id, name, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_GuildMasterChange(fd, guild_id, name, len); + } + if( HPMHooks.count.HP_mapif_parse_GuildMasterChange_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *guild_id, const char *name, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_GuildMasterChange_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_GuildMasterChange_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &guild_id, name, &len); + } + } + return retVal___; +} +void HP_mapif_homunculus_created(int fd, int account_id, struct s_homunculus *sh, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_homunculus_created_pre ) { + void (*preHookFunc) (int *fd, int *account_id, struct s_homunculus *sh, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_created_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_created_pre[hIndex].func; + preHookFunc(&fd, &account_id, sh, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.homunculus_created(fd, account_id, sh, flag); + } + if( HPMHooks.count.HP_mapif_homunculus_created_post ) { + void (*postHookFunc) (int *fd, int *account_id, struct s_homunculus *sh, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_created_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_created_post[hIndex].func; + postHookFunc(&fd, &account_id, sh, &flag); + } + } + return; +} +void HP_mapif_homunculus_deleted(int fd, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_homunculus_deleted_pre ) { + void (*preHookFunc) (int *fd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_deleted_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_deleted_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.homunculus_deleted(fd, flag); + } + if( HPMHooks.count.HP_mapif_homunculus_deleted_post ) { + void (*postHookFunc) (int *fd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_deleted_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_deleted_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_mapif_homunculus_loaded(int fd, int account_id, struct s_homunculus *hd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_homunculus_loaded_pre ) { + void (*preHookFunc) (int *fd, int *account_id, struct s_homunculus *hd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_loaded_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_loaded_pre[hIndex].func; + preHookFunc(&fd, &account_id, hd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.homunculus_loaded(fd, account_id, hd); + } + if( HPMHooks.count.HP_mapif_homunculus_loaded_post ) { + void (*postHookFunc) (int *fd, int *account_id, struct s_homunculus *hd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_loaded_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_loaded_post[hIndex].func; + postHookFunc(&fd, &account_id, hd); + } + } + return; +} +void HP_mapif_homunculus_saved(int fd, int account_id, bool flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_homunculus_saved_pre ) { + void (*preHookFunc) (int *fd, int *account_id, bool *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_saved_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_saved_pre[hIndex].func; + preHookFunc(&fd, &account_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.homunculus_saved(fd, account_id, flag); + } + if( HPMHooks.count.HP_mapif_homunculus_saved_post ) { + void (*postHookFunc) (int *fd, int *account_id, bool *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_saved_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_saved_post[hIndex].func; + postHookFunc(&fd, &account_id, &flag); + } + } + return; +} +void HP_mapif_homunculus_renamed(int fd, int account_id, int char_id, unsigned char flag, char *name) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_homunculus_renamed_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *char_id, unsigned char *flag, char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_renamed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_renamed_pre[hIndex].func; + preHookFunc(&fd, &account_id, &char_id, &flag, name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.homunculus_renamed(fd, account_id, char_id, flag, name); + } + if( HPMHooks.count.HP_mapif_homunculus_renamed_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *char_id, unsigned char *flag, char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_renamed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_renamed_post[hIndex].func; + postHookFunc(&fd, &account_id, &char_id, &flag, name); + } + } + return; +} +bool HP_mapif_homunculus_save(struct s_homunculus *hd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_homunculus_save_pre ) { + bool (*preHookFunc) (struct s_homunculus *hd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_save_pre[hIndex].func; + retVal___ = preHookFunc(hd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.homunculus_save(hd); + } + if( HPMHooks.count.HP_mapif_homunculus_save_post ) { + bool (*postHookFunc) (bool retVal___, struct s_homunculus *hd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_save_post[hIndex].func; + retVal___ = postHookFunc(retVal___, hd); + } + } + return retVal___; +} +bool HP_mapif_homunculus_load(int homun_id, struct s_homunculus *hd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_homunculus_load_pre ) { + bool (*preHookFunc) (int *homun_id, struct s_homunculus *hd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_load_pre[hIndex].func; + retVal___ = preHookFunc(&homun_id, hd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.homunculus_load(homun_id, hd); + } + if( HPMHooks.count.HP_mapif_homunculus_load_post ) { + bool (*postHookFunc) (bool retVal___, int *homun_id, struct s_homunculus *hd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_load_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &homun_id, hd); + } + } + return retVal___; +} +bool HP_mapif_homunculus_delete(int homun_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_homunculus_delete_pre ) { + bool (*preHookFunc) (int *homun_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_delete_pre[hIndex].func; + retVal___ = preHookFunc(&homun_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.homunculus_delete(homun_id); + } + if( HPMHooks.count.HP_mapif_homunculus_delete_post ) { + bool (*postHookFunc) (bool retVal___, int *homun_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &homun_id); + } + } + return retVal___; +} +bool HP_mapif_homunculus_rename(char *name) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_homunculus_rename_pre ) { + bool (*preHookFunc) (char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_rename_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_homunculus_rename_pre[hIndex].func; + retVal___ = preHookFunc(name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.homunculus_rename(name); + } + if( HPMHooks.count.HP_mapif_homunculus_rename_post ) { + bool (*postHookFunc) (bool retVal___, char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_homunculus_rename_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_homunculus_rename_post[hIndex].func; + retVal___ = postHookFunc(retVal___, name); + } + } + return retVal___; +} +void HP_mapif_parse_homunculus_create(int fd, int len, int account_id, struct s_homunculus *phd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_homunculus_create_pre ) { + void (*preHookFunc) (int *fd, int *len, int *account_id, struct s_homunculus *phd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_create_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_create_pre[hIndex].func; + preHookFunc(&fd, &len, &account_id, phd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_homunculus_create(fd, len, account_id, phd); + } + if( HPMHooks.count.HP_mapif_parse_homunculus_create_post ) { + void (*postHookFunc) (int *fd, int *len, int *account_id, struct s_homunculus *phd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_create_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_create_post[hIndex].func; + postHookFunc(&fd, &len, &account_id, phd); + } + } + return; +} +void HP_mapif_parse_homunculus_delete(int fd, int homun_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_homunculus_delete_pre ) { + void (*preHookFunc) (int *fd, int *homun_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_delete_pre[hIndex].func; + preHookFunc(&fd, &homun_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_homunculus_delete(fd, homun_id); + } + if( HPMHooks.count.HP_mapif_parse_homunculus_delete_post ) { + void (*postHookFunc) (int *fd, int *homun_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_delete_post[hIndex].func; + postHookFunc(&fd, &homun_id); + } + } + return; +} +void HP_mapif_parse_homunculus_load(int fd, int account_id, int homun_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_homunculus_load_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *homun_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_load_pre[hIndex].func; + preHookFunc(&fd, &account_id, &homun_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_homunculus_load(fd, account_id, homun_id); + } + if( HPMHooks.count.HP_mapif_parse_homunculus_load_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *homun_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_load_post[hIndex].func; + postHookFunc(&fd, &account_id, &homun_id); + } + } + return; +} +void HP_mapif_parse_homunculus_save(int fd, int len, int account_id, struct s_homunculus *phd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_homunculus_save_pre ) { + void (*preHookFunc) (int *fd, int *len, int *account_id, struct s_homunculus *phd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_save_pre[hIndex].func; + preHookFunc(&fd, &len, &account_id, phd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_homunculus_save(fd, len, account_id, phd); + } + if( HPMHooks.count.HP_mapif_parse_homunculus_save_post ) { + void (*postHookFunc) (int *fd, int *len, int *account_id, struct s_homunculus *phd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_save_post[hIndex].func; + postHookFunc(&fd, &len, &account_id, phd); + } + } + return; +} +void HP_mapif_parse_homunculus_rename(int fd, int account_id, int char_id, char *name) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_homunculus_rename_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *char_id, char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_rename_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_rename_pre[hIndex].func; + preHookFunc(&fd, &account_id, &char_id, name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_homunculus_rename(fd, account_id, char_id, name); + } + if( HPMHooks.count.HP_mapif_parse_homunculus_rename_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *char_id, char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_homunculus_rename_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_homunculus_rename_post[hIndex].func; + postHookFunc(&fd, &account_id, &char_id, name); + } + } + return; +} +void HP_mapif_mail_sendinbox(int fd, int char_id, unsigned char flag, struct mail_data *md) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_sendinbox_pre ) { + void (*preHookFunc) (int *fd, int *char_id, unsigned char *flag, struct mail_data *md); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_sendinbox_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_sendinbox_pre[hIndex].func; + preHookFunc(&fd, &char_id, &flag, md); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_sendinbox(fd, char_id, flag, md); + } + if( HPMHooks.count.HP_mapif_mail_sendinbox_post ) { + void (*postHookFunc) (int *fd, int *char_id, unsigned char *flag, struct mail_data *md); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_sendinbox_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_sendinbox_post[hIndex].func; + postHookFunc(&fd, &char_id, &flag, md); + } + } + return; +} +void HP_mapif_parse_mail_requestinbox(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_requestinbox_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_requestinbox_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_requestinbox_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_requestinbox(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_requestinbox_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_requestinbox_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_requestinbox_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_parse_mail_read(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_read_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_read_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_read(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_read_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_read_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_mail_sendattach(int fd, int char_id, struct mail_message *msg) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_sendattach_pre ) { + void (*preHookFunc) (int *fd, int *char_id, struct mail_message *msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_sendattach_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_sendattach_pre[hIndex].func; + preHookFunc(&fd, &char_id, msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_sendattach(fd, char_id, msg); + } + if( HPMHooks.count.HP_mapif_mail_sendattach_post ) { + void (*postHookFunc) (int *fd, int *char_id, struct mail_message *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_sendattach_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_sendattach_post[hIndex].func; + postHookFunc(&fd, &char_id, msg); + } + } + return; +} +void HP_mapif_mail_getattach(int fd, int char_id, int mail_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_getattach_pre ) { + void (*preHookFunc) (int *fd, int *char_id, int *mail_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_getattach_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_getattach_pre[hIndex].func; + preHookFunc(&fd, &char_id, &mail_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_getattach(fd, char_id, mail_id); + } + if( HPMHooks.count.HP_mapif_mail_getattach_post ) { + void (*postHookFunc) (int *fd, int *char_id, int *mail_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_getattach_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_getattach_post[hIndex].func; + postHookFunc(&fd, &char_id, &mail_id); + } + } + return; +} +void HP_mapif_parse_mail_getattach(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_getattach_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_getattach_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_getattach_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_getattach(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_getattach_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_getattach_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_getattach_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_mail_delete(int fd, int char_id, int mail_id, bool failed) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_delete_pre ) { + void (*preHookFunc) (int *fd, int *char_id, int *mail_id, bool *failed); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_delete_pre[hIndex].func; + preHookFunc(&fd, &char_id, &mail_id, &failed); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_delete(fd, char_id, mail_id, failed); + } + if( HPMHooks.count.HP_mapif_mail_delete_post ) { + void (*postHookFunc) (int *fd, int *char_id, int *mail_id, bool *failed); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_delete_post[hIndex].func; + postHookFunc(&fd, &char_id, &mail_id, &failed); + } + } + return; +} +void HP_mapif_parse_mail_delete(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_delete_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_delete_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_delete(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_delete_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_delete_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_mail_new(struct mail_message *msg) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_new_pre ) { + void (*preHookFunc) (struct mail_message *msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_new_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_new_pre[hIndex].func; + preHookFunc(msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_new(msg); + } + if( HPMHooks.count.HP_mapif_mail_new_post ) { + void (*postHookFunc) (struct mail_message *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_new_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_new_post[hIndex].func; + postHookFunc(msg); + } + } + return; +} +void HP_mapif_mail_return(int fd, int char_id, int mail_id, int new_mail) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_return_pre ) { + void (*preHookFunc) (int *fd, int *char_id, int *mail_id, int *new_mail); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_return_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_return_pre[hIndex].func; + preHookFunc(&fd, &char_id, &mail_id, &new_mail); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_return(fd, char_id, mail_id, new_mail); + } + if( HPMHooks.count.HP_mapif_mail_return_post ) { + void (*postHookFunc) (int *fd, int *char_id, int *mail_id, int *new_mail); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_return_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_return_post[hIndex].func; + postHookFunc(&fd, &char_id, &mail_id, &new_mail); + } + } + return; +} +void HP_mapif_parse_mail_return(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_return_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_return_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_return_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_return(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_return_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_return_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_return_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_mail_send(int fd, struct mail_message *msg) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mail_send_pre ) { + void (*preHookFunc) (int *fd, struct mail_message *msg); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mail_send_pre[hIndex].func; + preHookFunc(&fd, msg); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mail_send(fd, msg); + } + if( HPMHooks.count.HP_mapif_mail_send_post ) { + void (*postHookFunc) (int *fd, struct mail_message *msg); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mail_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mail_send_post[hIndex].func; + postHookFunc(&fd, msg); + } + } + return; +} +void HP_mapif_parse_mail_send(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mail_send_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mail_send_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mail_send(fd); + } + if( HPMHooks.count.HP_mapif_parse_mail_send_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mail_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mail_send_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +bool HP_mapif_mercenary_save(struct s_mercenary *merc) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_mercenary_save_pre ) { + bool (*preHookFunc) (struct s_mercenary *merc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_save_pre[hIndex].func; + retVal___ = preHookFunc(merc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.mercenary_save(merc); + } + if( HPMHooks.count.HP_mapif_mercenary_save_post ) { + bool (*postHookFunc) (bool retVal___, struct s_mercenary *merc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_save_post[hIndex].func; + retVal___ = postHookFunc(retVal___, merc); + } + } + return retVal___; +} +bool HP_mapif_mercenary_load(int merc_id, int char_id, struct s_mercenary *merc) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_mercenary_load_pre ) { + bool (*preHookFunc) (int *merc_id, int *char_id, struct s_mercenary *merc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_load_pre[hIndex].func; + retVal___ = preHookFunc(&merc_id, &char_id, merc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.mercenary_load(merc_id, char_id, merc); + } + if( HPMHooks.count.HP_mapif_mercenary_load_post ) { + bool (*postHookFunc) (bool retVal___, int *merc_id, int *char_id, struct s_mercenary *merc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_load_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &merc_id, &char_id, merc); + } + } + return retVal___; +} +bool HP_mapif_mercenary_delete(int merc_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_mercenary_delete_pre ) { + bool (*preHookFunc) (int *merc_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_delete_pre[hIndex].func; + retVal___ = preHookFunc(&merc_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.mercenary_delete(merc_id); + } + if( HPMHooks.count.HP_mapif_mercenary_delete_post ) { + bool (*postHookFunc) (bool retVal___, int *merc_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &merc_id); + } + } + return retVal___; +} +void HP_mapif_mercenary_send(int fd, struct s_mercenary *merc, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mercenary_send_pre ) { + void (*preHookFunc) (int *fd, struct s_mercenary *merc, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_send_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_send_pre[hIndex].func; + preHookFunc(&fd, merc, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mercenary_send(fd, merc, flag); + } + if( HPMHooks.count.HP_mapif_mercenary_send_post ) { + void (*postHookFunc) (int *fd, struct s_mercenary *merc, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_send_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_send_post[hIndex].func; + postHookFunc(&fd, merc, &flag); + } + } + return; +} +void HP_mapif_parse_mercenary_create(int fd, struct s_mercenary *merc) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mercenary_create_pre ) { + void (*preHookFunc) (int *fd, struct s_mercenary *merc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_create_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_create_pre[hIndex].func; + preHookFunc(&fd, merc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mercenary_create(fd, merc); + } + if( HPMHooks.count.HP_mapif_parse_mercenary_create_post ) { + void (*postHookFunc) (int *fd, struct s_mercenary *merc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_create_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_create_post[hIndex].func; + postHookFunc(&fd, merc); + } + } + return; +} +void HP_mapif_parse_mercenary_load(int fd, int merc_id, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mercenary_load_pre ) { + void (*preHookFunc) (int *fd, int *merc_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_load_pre[hIndex].func; + preHookFunc(&fd, &merc_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mercenary_load(fd, merc_id, char_id); + } + if( HPMHooks.count.HP_mapif_parse_mercenary_load_post ) { + void (*postHookFunc) (int *fd, int *merc_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_load_post[hIndex].func; + postHookFunc(&fd, &merc_id, &char_id); + } + } + return; +} +void HP_mapif_mercenary_deleted(int fd, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mercenary_deleted_pre ) { + void (*preHookFunc) (int *fd, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_deleted_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_deleted_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mercenary_deleted(fd, flag); + } + if( HPMHooks.count.HP_mapif_mercenary_deleted_post ) { + void (*postHookFunc) (int *fd, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_deleted_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_deleted_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_mapif_parse_mercenary_delete(int fd, int merc_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mercenary_delete_pre ) { + void (*preHookFunc) (int *fd, int *merc_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_delete_pre[hIndex].func; + preHookFunc(&fd, &merc_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mercenary_delete(fd, merc_id); + } + if( HPMHooks.count.HP_mapif_parse_mercenary_delete_post ) { + void (*postHookFunc) (int *fd, int *merc_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_delete_post[hIndex].func; + postHookFunc(&fd, &merc_id); + } + } + return; +} +void HP_mapif_mercenary_saved(int fd, unsigned char flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_mercenary_saved_pre ) { + void (*preHookFunc) (int *fd, unsigned char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_saved_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_mercenary_saved_pre[hIndex].func; + preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.mercenary_saved(fd, flag); + } + if( HPMHooks.count.HP_mapif_mercenary_saved_post ) { + void (*postHookFunc) (int *fd, unsigned char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_mercenary_saved_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_mercenary_saved_post[hIndex].func; + postHookFunc(&fd, &flag); + } + } + return; +} +void HP_mapif_parse_mercenary_save(int fd, struct s_mercenary *merc) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_mercenary_save_pre ) { + void (*preHookFunc) (int *fd, struct s_mercenary *merc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_save_pre[hIndex].func; + preHookFunc(&fd, merc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_mercenary_save(fd, merc); + } + if( HPMHooks.count.HP_mapif_parse_mercenary_save_post ) { + void (*postHookFunc) (int *fd, struct s_mercenary *merc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_mercenary_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_mercenary_save_post[hIndex].func; + postHookFunc(&fd, merc); + } + } + return; +} +int HP_mapif_party_created(int fd, int account_id, int char_id, struct party *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_created_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *char_id, struct party *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_created_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_created_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &char_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_created(fd, account_id, char_id, p); + } + if( HPMHooks.count.HP_mapif_party_created_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *char_id, struct party *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_created_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_created_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &char_id, p); + } + } + return retVal___; +} +void HP_mapif_party_noinfo(int fd, int party_id, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_party_noinfo_pre ) { + void (*preHookFunc) (int *fd, int *party_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_noinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_noinfo_pre[hIndex].func; + preHookFunc(&fd, &party_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.party_noinfo(fd, party_id, char_id); + } + if( HPMHooks.count.HP_mapif_party_noinfo_post ) { + void (*postHookFunc) (int *fd, int *party_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_noinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_noinfo_post[hIndex].func; + postHookFunc(&fd, &party_id, &char_id); + } + } + return; +} +void HP_mapif_party_info(int fd, struct party *p, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_party_info_pre ) { + void (*preHookFunc) (int *fd, struct party *p, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_info_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_info_pre[hIndex].func; + preHookFunc(&fd, p, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.party_info(fd, p, char_id); + } + if( HPMHooks.count.HP_mapif_party_info_post ) { + void (*postHookFunc) (int *fd, struct party *p, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_info_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_info_post[hIndex].func; + postHookFunc(&fd, p, &char_id); + } + } + return; +} +int HP_mapif_party_memberadded(int fd, int party_id, int account_id, int char_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_memberadded_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, int *char_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_memberadded_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_memberadded_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, &char_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_memberadded(fd, party_id, account_id, char_id, flag); + } + if( HPMHooks.count.HP_mapif_party_memberadded_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, int *char_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_memberadded_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_memberadded_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, &char_id, &flag); + } + } + return retVal___; +} +int HP_mapif_party_optionchanged(int fd, struct party *p, int account_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_optionchanged_pre ) { + int (*preHookFunc) (int *fd, struct party *p, int *account_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_optionchanged_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_optionchanged_pre[hIndex].func; + retVal___ = preHookFunc(&fd, p, &account_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_optionchanged(fd, p, account_id, flag); + } + if( HPMHooks.count.HP_mapif_party_optionchanged_post ) { + int (*postHookFunc) (int retVal___, int *fd, struct party *p, int *account_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_optionchanged_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_optionchanged_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, p, &account_id, &flag); + } + } + return retVal___; +} +int HP_mapif_party_withdraw(int party_id, int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_withdraw_pre ) { + int (*preHookFunc) (int *party_id, int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_withdraw_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_withdraw_pre[hIndex].func; + retVal___ = preHookFunc(&party_id, &account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_withdraw(party_id, account_id, char_id); + } + if( HPMHooks.count.HP_mapif_party_withdraw_post ) { + int (*postHookFunc) (int retVal___, int *party_id, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_withdraw_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_withdraw_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &party_id, &account_id, &char_id); + } + } + return retVal___; +} +int HP_mapif_party_membermoved(struct party *p, int idx) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_membermoved_pre ) { + int (*preHookFunc) (struct party *p, int *idx); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_membermoved_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_membermoved_pre[hIndex].func; + retVal___ = preHookFunc(p, &idx); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_membermoved(p, idx); + } + if( HPMHooks.count.HP_mapif_party_membermoved_post ) { + int (*postHookFunc) (int retVal___, struct party *p, int *idx); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_membermoved_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_membermoved_post[hIndex].func; + retVal___ = postHookFunc(retVal___, p, &idx); + } + } + return retVal___; +} +int HP_mapif_party_broken(int party_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_broken_pre ) { + int (*preHookFunc) (int *party_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_broken_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_broken_pre[hIndex].func; + retVal___ = preHookFunc(&party_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_broken(party_id, flag); + } + if( HPMHooks.count.HP_mapif_party_broken_post ) { + int (*postHookFunc) (int retVal___, int *party_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_broken_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_broken_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &party_id, &flag); + } + } + return retVal___; +} +int HP_mapif_party_message(int party_id, int account_id, char *mes, int len, int sfd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_party_message_pre ) { + int (*preHookFunc) (int *party_id, int *account_id, char *mes, int *len, int *sfd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_party_message_pre[hIndex].func; + retVal___ = preHookFunc(&party_id, &account_id, mes, &len, &sfd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.party_message(party_id, account_id, mes, len, sfd); + } + if( HPMHooks.count.HP_mapif_party_message_post ) { + int (*postHookFunc) (int retVal___, int *party_id, int *account_id, char *mes, int *len, int *sfd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_party_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_party_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &party_id, &account_id, mes, &len, &sfd); + } + } + return retVal___; +} +int HP_mapif_parse_CreateParty(int fd, char *name, int item, int item2, struct party_member *leader) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_CreateParty_pre ) { + int (*preHookFunc) (int *fd, char *name, int *item, int *item2, struct party_member *leader); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreateParty_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_CreateParty_pre[hIndex].func; + retVal___ = preHookFunc(&fd, name, &item, &item2, leader); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_CreateParty(fd, name, item, item2, leader); + } + if( HPMHooks.count.HP_mapif_parse_CreateParty_post ) { + int (*postHookFunc) (int retVal___, int *fd, char *name, int *item, int *item2, struct party_member *leader); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreateParty_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_CreateParty_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, name, &item, &item2, leader); + } + } + return retVal___; +} +void HP_mapif_parse_PartyInfo(int fd, int party_id, int char_id) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_PartyInfo_pre ) { + void (*preHookFunc) (int *fd, int *party_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyInfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyInfo_pre[hIndex].func; + preHookFunc(&fd, &party_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_PartyInfo(fd, party_id, char_id); + } + if( HPMHooks.count.HP_mapif_parse_PartyInfo_post ) { + void (*postHookFunc) (int *fd, int *party_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyInfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyInfo_post[hIndex].func; + postHookFunc(&fd, &party_id, &char_id); + } + } + return; +} +int HP_mapif_parse_PartyAddMember(int fd, int party_id, struct party_member *member) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyAddMember_pre ) { + int (*preHookFunc) (int *fd, int *party_id, struct party_member *member); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyAddMember_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyAddMember_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, member); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyAddMember(fd, party_id, member); + } + if( HPMHooks.count.HP_mapif_parse_PartyAddMember_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, struct party_member *member); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyAddMember_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyAddMember_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, member); + } + } + return retVal___; +} +int HP_mapif_parse_PartyChangeOption(int fd, int party_id, int account_id, int exp, int item) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyChangeOption_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, int *exp, int *item); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyChangeOption_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyChangeOption_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, &exp, &item); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyChangeOption(fd, party_id, account_id, exp, item); + } + if( HPMHooks.count.HP_mapif_parse_PartyChangeOption_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, int *exp, int *item); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyChangeOption_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyChangeOption_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, &exp, &item); + } + } + return retVal___; +} +int HP_mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyLeave_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyLeave_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyLeave_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyLeave(fd, party_id, account_id, char_id); + } + if( HPMHooks.count.HP_mapif_parse_PartyLeave_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyLeave_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyLeave_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, &char_id); + } + } + return retVal___; +} +int HP_mapif_parse_PartyChangeMap(int fd, int party_id, int account_id, int char_id, unsigned short map, int online, unsigned int lv) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyChangeMap_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, int *char_id, unsigned short *map, int *online, unsigned int *lv); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyChangeMap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyChangeMap_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, &char_id, &map, &online, &lv); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyChangeMap(fd, party_id, account_id, char_id, map, online, lv); + } + if( HPMHooks.count.HP_mapif_parse_PartyChangeMap_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, int *char_id, unsigned short *map, int *online, unsigned int *lv); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyChangeMap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyChangeMap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, &char_id, &map, &online, &lv); + } + } + return retVal___; +} +int HP_mapif_parse_BreakParty(int fd, int party_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_BreakParty_pre ) { + int (*preHookFunc) (int *fd, int *party_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_BreakParty_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_BreakParty_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_BreakParty(fd, party_id); + } + if( HPMHooks.count.HP_mapif_parse_BreakParty_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_BreakParty_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_BreakParty_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id); + } + } + return retVal___; +} +int HP_mapif_parse_PartyMessage(int fd, int party_id, int account_id, char *mes, int len) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyMessage_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, char *mes, int *len); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyMessage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyMessage_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, mes, &len); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyMessage(fd, party_id, account_id, mes, len); + } + if( HPMHooks.count.HP_mapif_parse_PartyMessage_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, char *mes, int *len); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyMessage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyMessage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, mes, &len); + } + } + return retVal___; +} +int HP_mapif_parse_PartyLeaderChange(int fd, int party_id, int account_id, int char_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_PartyLeaderChange_pre ) { + int (*preHookFunc) (int *fd, int *party_id, int *account_id, int *char_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyLeaderChange_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_PartyLeaderChange_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &party_id, &account_id, &char_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_PartyLeaderChange(fd, party_id, account_id, char_id); + } + if( HPMHooks.count.HP_mapif_parse_PartyLeaderChange_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *party_id, int *account_id, int *char_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_PartyLeaderChange_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_PartyLeaderChange_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &party_id, &account_id, &char_id); + } + } + return retVal___; +} +int HP_mapif_pet_created(int fd, int account_id, struct s_pet *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_pet_created_pre ) { + int (*preHookFunc) (int *fd, int *account_id, struct s_pet *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_created_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_pet_created_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.pet_created(fd, account_id, p); + } + if( HPMHooks.count.HP_mapif_pet_created_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, struct s_pet *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_created_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_pet_created_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, p); + } + } + return retVal___; +} +int HP_mapif_pet_info(int fd, int account_id, struct s_pet *p) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_pet_info_pre ) { + int (*preHookFunc) (int *fd, int *account_id, struct s_pet *p); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_info_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_pet_info_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, p); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.pet_info(fd, account_id, p); + } + if( HPMHooks.count.HP_mapif_pet_info_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, struct s_pet *p); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_info_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_pet_info_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, p); + } + } + return retVal___; +} +int HP_mapif_pet_noinfo(int fd, int account_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_pet_noinfo_pre ) { + int (*preHookFunc) (int *fd, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_noinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_pet_noinfo_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.pet_noinfo(fd, account_id); + } + if( HPMHooks.count.HP_mapif_pet_noinfo_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_pet_noinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_pet_noinfo_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id); + } + } + return retVal___; +} +int HP_mapif_save_pet_ack(int fd, int account_id, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_save_pet_ack_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_pet_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_save_pet_ack_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.save_pet_ack(fd, account_id, flag); + } + if( HPMHooks.count.HP_mapif_save_pet_ack_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_pet_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_save_pet_ack_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &flag); + } + } + return retVal___; +} +int HP_mapif_delete_pet_ack(int fd, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_delete_pet_ack_pre ) { + int (*preHookFunc) (int *fd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_delete_pet_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_delete_pet_ack_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.delete_pet_ack(fd, flag); + } + if( HPMHooks.count.HP_mapif_delete_pet_ack_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_delete_pet_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_delete_pet_ack_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &flag); + } + } + return retVal___; +} +int HP_mapif_create_pet(int fd, int account_id, int char_id, short pet_class, short pet_lv, short pet_egg_id, short pet_equip, short intimate, short hungry, char rename_flag, char incubate, char *pet_name) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_create_pet_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *char_id, short *pet_class, 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_mapif_create_pet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_create_pet_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &char_id, &pet_class, &pet_lv, &pet_egg_id, &pet_equip, &intimate, &hungry, &rename_flag, &incubate, pet_name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.create_pet(fd, account_id, char_id, pet_class, pet_lv, pet_egg_id, pet_equip, intimate, hungry, rename_flag, incubate, pet_name); + } + if( HPMHooks.count.HP_mapif_create_pet_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *char_id, short *pet_class, 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_mapif_create_pet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_create_pet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &char_id, &pet_class, &pet_lv, &pet_egg_id, &pet_equip, &intimate, &hungry, &rename_flag, &incubate, pet_name); + } + } + return retVal___; +} +int HP_mapif_load_pet(int fd, int account_id, int char_id, int pet_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_load_pet_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *char_id, int *pet_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_load_pet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_load_pet_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &char_id, &pet_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.load_pet(fd, account_id, char_id, pet_id); + } + if( HPMHooks.count.HP_mapif_load_pet_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *char_id, int *pet_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_load_pet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_load_pet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &char_id, &pet_id); + } + } + return retVal___; +} +int HP_mapif_save_pet(int fd, int account_id, struct s_pet *data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_save_pet_pre ) { + int (*preHookFunc) (int *fd, int *account_id, struct s_pet *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_pet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_save_pet_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.save_pet(fd, account_id, data); + } + if( HPMHooks.count.HP_mapif_save_pet_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, struct s_pet *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_pet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_save_pet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, data); + } + } + return retVal___; +} +int HP_mapif_delete_pet(int fd, int pet_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_delete_pet_pre ) { + int (*preHookFunc) (int *fd, int *pet_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_delete_pet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_delete_pet_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &pet_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.delete_pet(fd, pet_id); + } + if( HPMHooks.count.HP_mapif_delete_pet_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *pet_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_delete_pet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_delete_pet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &pet_id); + } + } + return retVal___; +} +int HP_mapif_parse_CreatePet(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_CreatePet_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreatePet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_CreatePet_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_CreatePet(fd); + } + if( HPMHooks.count.HP_mapif_parse_CreatePet_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_CreatePet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_CreatePet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_LoadPet(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_LoadPet_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_LoadPet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_LoadPet_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_LoadPet(fd); + } + if( HPMHooks.count.HP_mapif_parse_LoadPet_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_LoadPet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_LoadPet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_SavePet(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_SavePet_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_SavePet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_SavePet_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_SavePet(fd); + } + if( HPMHooks.count.HP_mapif_parse_SavePet_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_SavePet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_SavePet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_DeletePet(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_DeletePet_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_DeletePet_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_DeletePet_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_DeletePet(fd); + } + if( HPMHooks.count.HP_mapif_parse_DeletePet_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_DeletePet_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_DeletePet_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +struct quest* HP_mapif_quests_fromsql(int char_id, int *count) { + int hIndex = 0; + struct quest* retVal___ = NULL; + if( HPMHooks.count.HP_mapif_quests_fromsql_pre ) { + struct quest* (*preHookFunc) (int *char_id, int *count); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quests_fromsql_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_quests_fromsql_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, count); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.quests_fromsql(char_id, count); + } + if( HPMHooks.count.HP_mapif_quests_fromsql_post ) { + struct quest* (*postHookFunc) (struct quest* retVal___, int *char_id, int *count); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quests_fromsql_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_quests_fromsql_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, count); + } + } + return retVal___; +} +bool HP_mapif_quest_delete(int char_id, int quest_id) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_quest_delete_pre ) { + bool (*preHookFunc) (int *char_id, int *quest_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_delete_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_quest_delete_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &quest_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.quest_delete(char_id, quest_id); + } + if( HPMHooks.count.HP_mapif_quest_delete_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id, int *quest_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_delete_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_quest_delete_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &quest_id); + } + } + return retVal___; +} +bool HP_mapif_quest_add(int char_id, struct quest qd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_quest_add_pre ) { + bool (*preHookFunc) (int *char_id, struct quest *qd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_add_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_quest_add_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &qd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.quest_add(char_id, qd); + } + if( HPMHooks.count.HP_mapif_quest_add_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id, struct quest *qd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_add_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_quest_add_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &qd); + } + } + return retVal___; +} +bool HP_mapif_quest_update(int char_id, struct quest qd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_mapif_quest_update_pre ) { + bool (*preHookFunc) (int *char_id, struct quest *qd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_update_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_quest_update_pre[hIndex].func; + retVal___ = preHookFunc(&char_id, &qd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.quest_update(char_id, qd); + } + if( HPMHooks.count.HP_mapif_quest_update_post ) { + bool (*postHookFunc) (bool retVal___, int *char_id, struct quest *qd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_update_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_quest_update_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_id, &qd); + } + } + return retVal___; +} +void HP_mapif_quest_save_ack(int fd, int char_id, bool success) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_quest_save_ack_pre ) { + void (*preHookFunc) (int *fd, int *char_id, bool *success); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_save_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_quest_save_ack_pre[hIndex].func; + preHookFunc(&fd, &char_id, &success); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.quest_save_ack(fd, char_id, success); + } + if( HPMHooks.count.HP_mapif_quest_save_ack_post ) { + void (*postHookFunc) (int *fd, int *char_id, bool *success); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_quest_save_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_quest_save_ack_post[hIndex].func; + postHookFunc(&fd, &char_id, &success); + } + } + return; +} +int HP_mapif_parse_quest_save(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_quest_save_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_quest_save_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_quest_save_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_quest_save(fd); + } + if( HPMHooks.count.HP_mapif_parse_quest_save_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_quest_save_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_quest_save_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_mapif_send_quests(int fd, int char_id, struct quest *tmp_questlog, int num_quests) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_send_quests_pre ) { + void (*preHookFunc) (int *fd, int *char_id, struct quest *tmp_questlog, int *num_quests); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_quests_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_send_quests_pre[hIndex].func; + preHookFunc(&fd, &char_id, tmp_questlog, &num_quests); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.send_quests(fd, char_id, tmp_questlog, num_quests); + } + if( HPMHooks.count.HP_mapif_send_quests_post ) { + void (*postHookFunc) (int *fd, int *char_id, struct quest *tmp_questlog, int *num_quests); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_send_quests_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_send_quests_post[hIndex].func; + postHookFunc(&fd, &char_id, tmp_questlog, &num_quests); + } + } + return; +} +int HP_mapif_parse_quest_load(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_quest_load_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_quest_load_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_quest_load_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_quest_load(fd); + } + if( HPMHooks.count.HP_mapif_parse_quest_load_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_quest_load_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_quest_load_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_load_guild_storage(int fd, int account_id, int guild_id, char flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_load_guild_storage_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *guild_id, char *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_load_guild_storage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_load_guild_storage_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &guild_id, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.load_guild_storage(fd, account_id, guild_id, flag); + } + if( HPMHooks.count.HP_mapif_load_guild_storage_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *guild_id, char *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_load_guild_storage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_load_guild_storage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &guild_id, &flag); + } + } + return retVal___; +} +int HP_mapif_save_guild_storage_ack(int fd, int account_id, int guild_id, int fail) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_save_guild_storage_ack_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *guild_id, int *fail); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_guild_storage_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_save_guild_storage_ack_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &guild_id, &fail); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.save_guild_storage_ack(fd, account_id, guild_id, fail); + } + if( HPMHooks.count.HP_mapif_save_guild_storage_ack_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *guild_id, int *fail); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_save_guild_storage_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_save_guild_storage_ack_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &guild_id, &fail); + } + } + return retVal___; +} +int HP_mapif_parse_LoadGuildStorage(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_LoadGuildStorage_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_LoadGuildStorage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_LoadGuildStorage_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_LoadGuildStorage(fd); + } + if( HPMHooks.count.HP_mapif_parse_LoadGuildStorage_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_LoadGuildStorage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_LoadGuildStorage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_SaveGuildStorage(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_SaveGuildStorage_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_SaveGuildStorage_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_SaveGuildStorage_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_SaveGuildStorage(fd); + } + if( HPMHooks.count.HP_mapif_parse_SaveGuildStorage_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_SaveGuildStorage_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_SaveGuildStorage_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_itembound_ack(int fd, int aid, int guild_id) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_itembound_ack_pre ) { + int (*preHookFunc) (int *fd, int *aid, int *guild_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_itembound_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_itembound_ack_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &aid, &guild_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.itembound_ack(fd, aid, guild_id); + } + if( HPMHooks.count.HP_mapif_itembound_ack_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *aid, int *guild_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_itembound_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_itembound_ack_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &aid, &guild_id); + } + } + return retVal___; +} +int HP_mapif_parse_ItemBoundRetrieve_sub(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_sub_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_sub_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_ItemBoundRetrieve_sub_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_ItemBoundRetrieve_sub(fd); + } + if( HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_sub_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_sub_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_ItemBoundRetrieve_sub_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_mapif_parse_ItemBoundRetrieve(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_ItemBoundRetrieve_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_ItemBoundRetrieve(fd); + } + if( HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_ItemBoundRetrieve_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_ItemBoundRetrieve_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_parse_accinfo(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_accinfo_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_accinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_accinfo_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_accinfo(fd); + } + if( HPMHooks.count.HP_mapif_parse_accinfo_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_accinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_accinfo_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_mapif_parse_accinfo2(bool success, int map_fd, int u_fd, int u_aid, int account_id, const char *userid, const char *user_pass, const char *email, const char *last_ip, const char *lastlogin, const char *pin_code, const char *birthdate, int group_id, int logincount, int state) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_parse_accinfo2_pre ) { + void (*preHookFunc) (bool *success, int *map_fd, int *u_fd, int *u_aid, int *account_id, const char *userid, const char *user_pass, const char *email, const char *last_ip, const char *lastlogin, const char *pin_code, const char *birthdate, int *group_id, int *logincount, int *state); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_accinfo2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_accinfo2_pre[hIndex].func; + preHookFunc(&success, &map_fd, &u_fd, &u_aid, &account_id, userid, user_pass, email, last_ip, lastlogin, pin_code, birthdate, &group_id, &logincount, &state); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.parse_accinfo2(success, map_fd, u_fd, u_aid, account_id, userid, user_pass, email, last_ip, lastlogin, pin_code, birthdate, group_id, logincount, state); + } + if( HPMHooks.count.HP_mapif_parse_accinfo2_post ) { + void (*postHookFunc) (bool *success, int *map_fd, int *u_fd, int *u_aid, int *account_id, const char *userid, const char *user_pass, const char *email, const char *last_ip, const char *lastlogin, const char *pin_code, const char *birthdate, int *group_id, int *logincount, int *state); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_accinfo2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_accinfo2_post[hIndex].func; + postHookFunc(&success, &map_fd, &u_fd, &u_aid, &account_id, userid, user_pass, email, last_ip, lastlogin, pin_code, birthdate, &group_id, &logincount, &state); + } + } + return; +} +int HP_mapif_broadcast(unsigned char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY, int sfd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_broadcast_pre ) { + int (*preHookFunc) (unsigned char *mes, int *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY, int *sfd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_broadcast_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_broadcast_pre[hIndex].func; + retVal___ = preHookFunc(mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY, &sfd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.broadcast(mes, len, fontColor, fontType, fontSize, fontAlign, fontY, sfd); + } + if( HPMHooks.count.HP_mapif_broadcast_post ) { + int (*postHookFunc) (int retVal___, unsigned char *mes, int *len, unsigned int *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY, int *sfd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_broadcast_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_broadcast_post[hIndex].func; + retVal___ = postHookFunc(retVal___, mes, &len, &fontColor, &fontType, &fontSize, &fontAlign, &fontY, &sfd); + } + } + return retVal___; +} +int HP_mapif_wis_message(struct WisData *wd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_wis_message_pre ) { + int (*preHookFunc) (struct WisData *wd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_message_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_wis_message_pre[hIndex].func; + retVal___ = preHookFunc(wd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.wis_message(wd); + } + if( HPMHooks.count.HP_mapif_wis_message_post ) { + int (*postHookFunc) (int retVal___, struct WisData *wd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_message_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_wis_message_post[hIndex].func; + retVal___ = postHookFunc(retVal___, wd); + } + } + return retVal___; +} +void HP_mapif_wis_response(int fd, unsigned char *src, int flag) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_wis_response_pre ) { + void (*preHookFunc) (int *fd, unsigned char *src, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_response_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_wis_response_pre[hIndex].func; + preHookFunc(&fd, src, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.wis_response(fd, src, flag); + } + if( HPMHooks.count.HP_mapif_wis_response_post ) { + void (*postHookFunc) (int *fd, unsigned char *src, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_response_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_wis_response_post[hIndex].func; + postHookFunc(&fd, src, &flag); + } + } + return; +} +int HP_mapif_wis_end(struct WisData *wd, int flag) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_wis_end_pre ) { + int (*preHookFunc) (struct WisData *wd, int *flag); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_end_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_wis_end_pre[hIndex].func; + retVal___ = preHookFunc(wd, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.wis_end(wd, flag); + } + if( HPMHooks.count.HP_mapif_wis_end_post ) { + int (*postHookFunc) (int retVal___, struct WisData *wd, int *flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_wis_end_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_wis_end_post[hIndex].func; + retVal___ = postHookFunc(retVal___, wd, &flag); + } + } + return retVal___; +} +int HP_mapif_account_reg_reply(int fd, int account_id, int char_id, int type) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_account_reg_reply_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *char_id, int *type); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_account_reg_reply_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_account_reg_reply_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &char_id, &type); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.account_reg_reply(fd, account_id, char_id, type); + } + if( HPMHooks.count.HP_mapif_account_reg_reply_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *char_id, int *type); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_account_reg_reply_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_account_reg_reply_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &char_id, &type); + } + } + return retVal___; +} +int HP_mapif_disconnectplayer(int fd, int account_id, int char_id, int reason) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_disconnectplayer_pre ) { + int (*preHookFunc) (int *fd, int *account_id, int *char_id, int *reason); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_disconnectplayer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_disconnectplayer_pre[hIndex].func; + retVal___ = preHookFunc(&fd, &account_id, &char_id, &reason); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.disconnectplayer(fd, account_id, char_id, reason); + } + if( HPMHooks.count.HP_mapif_disconnectplayer_post ) { + int (*postHookFunc) (int retVal___, int *fd, int *account_id, int *char_id, int *reason); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_disconnectplayer_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_disconnectplayer_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, &account_id, &char_id, &reason); + } + } + return retVal___; +} +int HP_mapif_parse_broadcast(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_broadcast_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_broadcast_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_broadcast_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_broadcast(fd); + } + if( HPMHooks.count.HP_mapif_parse_broadcast_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_broadcast_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_broadcast_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_WisRequest(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_WisRequest_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisRequest_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_WisRequest_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_WisRequest(fd); + } + if( HPMHooks.count.HP_mapif_parse_WisRequest_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisRequest_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_WisRequest_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_WisReply(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_WisReply_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisReply_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_WisReply_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_WisReply(fd); + } + if( HPMHooks.count.HP_mapif_parse_WisReply_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisReply_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_WisReply_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_WisToGM(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_WisToGM_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisToGM_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_WisToGM_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_WisToGM(fd); + } + if( HPMHooks.count.HP_mapif_parse_WisToGM_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_WisToGM_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_WisToGM_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_Registry(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_Registry_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_Registry_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_Registry_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_Registry(fd); + } + if( HPMHooks.count.HP_mapif_parse_Registry_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_Registry_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_Registry_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +int HP_mapif_parse_RegistryRequest(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_RegistryRequest_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_RegistryRequest_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_RegistryRequest_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_RegistryRequest(fd); + } + if( HPMHooks.count.HP_mapif_parse_RegistryRequest_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_RegistryRequest_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_RegistryRequest_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_mapif_namechange_ack(int fd, int account_id, int char_id, int type, int flag, const char *name) { + int hIndex = 0; + if( HPMHooks.count.HP_mapif_namechange_ack_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *name); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_namechange_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_namechange_ack_pre[hIndex].func; + preHookFunc(&fd, &account_id, &char_id, &type, &flag, name); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mapif.namechange_ack(fd, account_id, char_id, type, flag, name); + } + if( HPMHooks.count.HP_mapif_namechange_ack_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *name); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_namechange_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_namechange_ack_post[hIndex].func; + postHookFunc(&fd, &account_id, &char_id, &type, &flag, name); + } + } + return; +} +int HP_mapif_parse_NameChangeRequest(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_mapif_parse_NameChangeRequest_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_NameChangeRequest_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mapif_parse_NameChangeRequest_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.mapif.parse_NameChangeRequest(fd); + } + if( HPMHooks.count.HP_mapif_parse_NameChangeRequest_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_parse_NameChangeRequest_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_mapif_parse_NameChangeRequest_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +/* pincode */ +void HP_pincode_handle(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_handle_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_handle_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_handle_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.handle(fd, sd); + } + if( HPMHooks.count.HP_pincode_handle_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_handle_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_handle_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_pincode_decrypt(unsigned int userSeed, char *pin) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_decrypt_pre ) { + void (*preHookFunc) (unsigned int *userSeed, char *pin); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_decrypt_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_decrypt_pre[hIndex].func; + preHookFunc(&userSeed, pin); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.decrypt(userSeed, pin); + } + if( HPMHooks.count.HP_pincode_decrypt_post ) { + void (*postHookFunc) (unsigned int *userSeed, char *pin); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_decrypt_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_decrypt_post[hIndex].func; + postHookFunc(&userSeed, pin); + } + } + return; +} +void HP_pincode_error(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_error_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_error_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_error_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.error(account_id); + } + if( HPMHooks.count.HP_pincode_error_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_error_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_error_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +void HP_pincode_update(int account_id, char *pin) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_update_pre ) { + void (*preHookFunc) (int *account_id, char *pin); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_update_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_update_pre[hIndex].func; + preHookFunc(&account_id, pin); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.update(account_id, pin); + } + if( HPMHooks.count.HP_pincode_update_post ) { + void (*postHookFunc) (int *account_id, char *pin); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_update_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_update_post[hIndex].func; + postHookFunc(&account_id, pin); + } + } + return; +} +void HP_pincode_sendstate(int fd, struct char_session_data *sd, uint16 state) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_sendstate_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd, uint16 *state); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_sendstate_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_sendstate_pre[hIndex].func; + preHookFunc(&fd, sd, &state); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.sendstate(fd, sd, state); + } + if( HPMHooks.count.HP_pincode_sendstate_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd, uint16 *state); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_sendstate_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_sendstate_post[hIndex].func; + postHookFunc(&fd, sd, &state); + } + } + return; +} +void HP_pincode_setnew(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_setnew_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_setnew_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_setnew_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.setnew(fd, sd); + } + if( HPMHooks.count.HP_pincode_setnew_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_setnew_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_setnew_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_pincode_change(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_change_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_change_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_change_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.change(fd, sd); + } + if( HPMHooks.count.HP_pincode_change_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_change_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_change_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +int HP_pincode_compare(int fd, struct char_session_data *sd, char *pin) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_pincode_compare_pre ) { + int (*preHookFunc) (int *fd, struct char_session_data *sd, char *pin); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_compare_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_compare_pre[hIndex].func; + retVal___ = preHookFunc(&fd, sd, pin); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.pincode.compare(fd, sd, pin); + } + if( HPMHooks.count.HP_pincode_compare_post ) { + int (*postHookFunc) (int retVal___, int *fd, struct char_session_data *sd, char *pin); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_compare_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_compare_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, sd, pin); + } + } + return retVal___; +} +void HP_pincode_check(int fd, struct char_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_pincode_check_pre ) { + void (*preHookFunc) (int *fd, struct char_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_check_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_check_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pincode.check(fd, sd); + } + if( HPMHooks.count.HP_pincode_check_post ) { + void (*postHookFunc) (int *fd, struct char_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_check_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_check_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +bool HP_pincode_config_read(char *w1, char *w2) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_pincode_config_read_pre ) { + bool (*preHookFunc) (char *w1, char *w2); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pincode_config_read_pre[hIndex].func; + retVal___ = preHookFunc(w1, w2); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.pincode.config_read(w1, w2); + } + if( HPMHooks.count.HP_pincode_config_read_post ) { + bool (*postHookFunc) (bool retVal___, char *w1, char *w2); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pincode_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_pincode_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, w1, w2); + } + } + return retVal___; +} diff --git a/src/plugins/HPMHooking/HPMHooking_char.sources.inc b/src/plugins/HPMHooking/HPMHooking_char.sources.inc new file mode 100644 index 000000000..00700756c --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_char.sources.inc @@ -0,0 +1,22 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +memcpy(&HPMHooks.source.chr, chr, sizeof(struct char_interface)); +memcpy(&HPMHooks.source.geoip, geoip, sizeof(struct geoip_interface)); +memcpy(&HPMHooks.source.inter_auction, inter_auction, sizeof(struct inter_auction_interface)); +memcpy(&HPMHooks.source.inter_elemental, inter_elemental, sizeof(struct inter_elemental_interface)); +memcpy(&HPMHooks.source.inter_guild, inter_guild, sizeof(struct inter_guild_interface)); +memcpy(&HPMHooks.source.inter_homunculus, inter_homunculus, sizeof(struct inter_homunculus_interface)); +memcpy(&HPMHooks.source.inter, inter, sizeof(struct inter_interface)); +memcpy(&HPMHooks.source.inter_mail, inter_mail, sizeof(struct inter_mail_interface)); +memcpy(&HPMHooks.source.inter_mercenary, inter_mercenary, sizeof(struct inter_mercenary_interface)); +memcpy(&HPMHooks.source.inter_party, inter_party, sizeof(struct inter_party_interface)); +memcpy(&HPMHooks.source.inter_pet, inter_pet, sizeof(struct inter_pet_interface)); +memcpy(&HPMHooks.source.inter_quest, inter_quest, sizeof(struct inter_quest_interface)); +memcpy(&HPMHooks.source.inter_storage, inter_storage, sizeof(struct inter_storage_interface)); +memcpy(&HPMHooks.source.loginif, loginif, sizeof(struct loginif_interface)); +memcpy(&HPMHooks.source.mapif, mapif, sizeof(struct mapif_interface)); +memcpy(&HPMHooks.source.pincode, pincode, sizeof(struct pincode_interface)); diff --git a/src/plugins/HPMHooking/HPMHooking_login.GetSymbol.inc b/src/plugins/HPMHooking/HPMHooking_login.GetSymbol.inc new file mode 100644 index 000000000..3348b5cde --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_login.GetSymbol.inc @@ -0,0 +1,7 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +if( !(login = GET_SYMBOL("login") ) ) return false; diff --git a/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc new file mode 100644 index 000000000..af7e7250c --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc @@ -0,0 +1,235 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +struct { + struct HPMHookPoint *HP_login_mmo_auth_pre; + struct HPMHookPoint *HP_login_mmo_auth_post; + struct HPMHookPoint *HP_login_mmo_auth_new_pre; + struct HPMHookPoint *HP_login_mmo_auth_new_post; + struct HPMHookPoint *HP_login_waiting_disconnect_timer_pre; + struct HPMHookPoint *HP_login_waiting_disconnect_timer_post; + struct HPMHookPoint *HP_login_create_online_user_pre; + struct HPMHookPoint *HP_login_create_online_user_post; + struct HPMHookPoint *HP_login_add_online_user_pre; + struct HPMHookPoint *HP_login_add_online_user_post; + struct HPMHookPoint *HP_login_remove_online_user_pre; + struct HPMHookPoint *HP_login_remove_online_user_post; + struct HPMHookPoint *HP_login_online_db_setoffline_pre; + struct HPMHookPoint *HP_login_online_db_setoffline_post; + struct HPMHookPoint *HP_login_online_data_cleanup_sub_pre; + struct HPMHookPoint *HP_login_online_data_cleanup_sub_post; + struct HPMHookPoint *HP_login_online_data_cleanup_pre; + struct HPMHookPoint *HP_login_online_data_cleanup_post; + struct HPMHookPoint *HP_login_sync_ip_addresses_pre; + struct HPMHookPoint *HP_login_sync_ip_addresses_post; + struct HPMHookPoint *HP_login_check_encrypted_pre; + struct HPMHookPoint *HP_login_check_encrypted_post; + struct HPMHookPoint *HP_login_check_password_pre; + struct HPMHookPoint *HP_login_check_password_post; + struct HPMHookPoint *HP_login_lan_subnetcheck_pre; + struct HPMHookPoint *HP_login_lan_subnetcheck_post; + struct HPMHookPoint *HP_login_lan_config_read_pre; + struct HPMHookPoint *HP_login_lan_config_read_post; + struct HPMHookPoint *HP_login_fromchar_accinfo_pre; + struct HPMHookPoint *HP_login_fromchar_accinfo_post; + struct HPMHookPoint *HP_login_fromchar_account_pre; + struct HPMHookPoint *HP_login_fromchar_account_post; + struct HPMHookPoint *HP_login_fromchar_account_update_other_pre; + struct HPMHookPoint *HP_login_fromchar_account_update_other_post; + struct HPMHookPoint *HP_login_fromchar_auth_ack_pre; + struct HPMHookPoint *HP_login_fromchar_auth_ack_post; + struct HPMHookPoint *HP_login_fromchar_ban_pre; + struct HPMHookPoint *HP_login_fromchar_ban_post; + struct HPMHookPoint *HP_login_fromchar_change_sex_other_pre; + struct HPMHookPoint *HP_login_fromchar_change_sex_other_post; + struct HPMHookPoint *HP_login_fromchar_pong_pre; + struct HPMHookPoint *HP_login_fromchar_pong_post; + struct HPMHookPoint *HP_login_fromchar_parse_auth_pre; + struct HPMHookPoint *HP_login_fromchar_parse_auth_post; + struct HPMHookPoint *HP_login_fromchar_parse_update_users_pre; + struct HPMHookPoint *HP_login_fromchar_parse_update_users_post; + struct HPMHookPoint *HP_login_fromchar_parse_request_change_email_pre; + struct HPMHookPoint *HP_login_fromchar_parse_request_change_email_post; + struct HPMHookPoint *HP_login_fromchar_parse_account_data_pre; + struct HPMHookPoint *HP_login_fromchar_parse_account_data_post; + struct HPMHookPoint *HP_login_fromchar_parse_ping_pre; + struct HPMHookPoint *HP_login_fromchar_parse_ping_post; + struct HPMHookPoint *HP_login_fromchar_parse_change_email_pre; + struct HPMHookPoint *HP_login_fromchar_parse_change_email_post; + struct HPMHookPoint *HP_login_fromchar_parse_account_update_pre; + struct HPMHookPoint *HP_login_fromchar_parse_account_update_post; + struct HPMHookPoint *HP_login_fromchar_parse_ban_pre; + struct HPMHookPoint *HP_login_fromchar_parse_ban_post; + struct HPMHookPoint *HP_login_fromchar_parse_change_sex_pre; + struct HPMHookPoint *HP_login_fromchar_parse_change_sex_post; + struct HPMHookPoint *HP_login_fromchar_parse_account_reg2_pre; + struct HPMHookPoint *HP_login_fromchar_parse_account_reg2_post; + struct HPMHookPoint *HP_login_fromchar_parse_unban_pre; + struct HPMHookPoint *HP_login_fromchar_parse_unban_post; + struct HPMHookPoint *HP_login_fromchar_parse_account_online_pre; + struct HPMHookPoint *HP_login_fromchar_parse_account_online_post; + struct HPMHookPoint *HP_login_fromchar_parse_account_offline_pre; + struct HPMHookPoint *HP_login_fromchar_parse_account_offline_post; + struct HPMHookPoint *HP_login_fromchar_parse_online_accounts_pre; + struct HPMHookPoint *HP_login_fromchar_parse_online_accounts_post; + struct HPMHookPoint *HP_login_fromchar_parse_request_account_reg2_pre; + struct HPMHookPoint *HP_login_fromchar_parse_request_account_reg2_post; + struct HPMHookPoint *HP_login_fromchar_parse_update_wan_ip_pre; + struct HPMHookPoint *HP_login_fromchar_parse_update_wan_ip_post; + struct HPMHookPoint *HP_login_fromchar_parse_all_offline_pre; + struct HPMHookPoint *HP_login_fromchar_parse_all_offline_post; + struct HPMHookPoint *HP_login_fromchar_parse_change_pincode_pre; + struct HPMHookPoint *HP_login_fromchar_parse_change_pincode_post; + struct HPMHookPoint *HP_login_fromchar_parse_wrong_pincode_pre; + struct HPMHookPoint *HP_login_fromchar_parse_wrong_pincode_post; + struct HPMHookPoint *HP_login_fromchar_parse_accinfo_pre; + struct HPMHookPoint *HP_login_fromchar_parse_accinfo_post; + struct HPMHookPoint *HP_login_parse_fromchar_pre; + struct HPMHookPoint *HP_login_parse_fromchar_post; + struct HPMHookPoint *HP_login_connection_problem_pre; + struct HPMHookPoint *HP_login_connection_problem_post; + struct HPMHookPoint *HP_login_kick_pre; + struct HPMHookPoint *HP_login_kick_post; + struct HPMHookPoint *HP_login_auth_ok_pre; + struct HPMHookPoint *HP_login_auth_ok_post; + struct HPMHookPoint *HP_login_auth_failed_pre; + struct HPMHookPoint *HP_login_auth_failed_post; + struct HPMHookPoint *HP_login_login_error_pre; + struct HPMHookPoint *HP_login_login_error_post; + struct HPMHookPoint *HP_login_parse_ping_pre; + struct HPMHookPoint *HP_login_parse_ping_post; + struct HPMHookPoint *HP_login_parse_client_md5_pre; + struct HPMHookPoint *HP_login_parse_client_md5_post; + struct HPMHookPoint *HP_login_parse_client_login_pre; + struct HPMHookPoint *HP_login_parse_client_login_post; + struct HPMHookPoint *HP_login_send_coding_key_pre; + struct HPMHookPoint *HP_login_send_coding_key_post; + struct HPMHookPoint *HP_login_parse_request_coding_key_pre; + struct HPMHookPoint *HP_login_parse_request_coding_key_post; + struct HPMHookPoint *HP_login_char_server_connection_status_pre; + struct HPMHookPoint *HP_login_char_server_connection_status_post; + struct HPMHookPoint *HP_login_parse_request_connection_pre; + struct HPMHookPoint *HP_login_parse_request_connection_post; + struct HPMHookPoint *HP_login_parse_login_pre; + struct HPMHookPoint *HP_login_parse_login_post; +} list; + +struct { + int HP_login_mmo_auth_pre; + int HP_login_mmo_auth_post; + int HP_login_mmo_auth_new_pre; + int HP_login_mmo_auth_new_post; + int HP_login_waiting_disconnect_timer_pre; + int HP_login_waiting_disconnect_timer_post; + int HP_login_create_online_user_pre; + int HP_login_create_online_user_post; + int HP_login_add_online_user_pre; + int HP_login_add_online_user_post; + int HP_login_remove_online_user_pre; + int HP_login_remove_online_user_post; + int HP_login_online_db_setoffline_pre; + int HP_login_online_db_setoffline_post; + int HP_login_online_data_cleanup_sub_pre; + int HP_login_online_data_cleanup_sub_post; + int HP_login_online_data_cleanup_pre; + int HP_login_online_data_cleanup_post; + int HP_login_sync_ip_addresses_pre; + int HP_login_sync_ip_addresses_post; + int HP_login_check_encrypted_pre; + int HP_login_check_encrypted_post; + int HP_login_check_password_pre; + int HP_login_check_password_post; + int HP_login_lan_subnetcheck_pre; + int HP_login_lan_subnetcheck_post; + int HP_login_lan_config_read_pre; + int HP_login_lan_config_read_post; + int HP_login_fromchar_accinfo_pre; + int HP_login_fromchar_accinfo_post; + int HP_login_fromchar_account_pre; + int HP_login_fromchar_account_post; + int HP_login_fromchar_account_update_other_pre; + int HP_login_fromchar_account_update_other_post; + int HP_login_fromchar_auth_ack_pre; + int HP_login_fromchar_auth_ack_post; + int HP_login_fromchar_ban_pre; + int HP_login_fromchar_ban_post; + int HP_login_fromchar_change_sex_other_pre; + int HP_login_fromchar_change_sex_other_post; + int HP_login_fromchar_pong_pre; + int HP_login_fromchar_pong_post; + int HP_login_fromchar_parse_auth_pre; + int HP_login_fromchar_parse_auth_post; + int HP_login_fromchar_parse_update_users_pre; + int HP_login_fromchar_parse_update_users_post; + int HP_login_fromchar_parse_request_change_email_pre; + int HP_login_fromchar_parse_request_change_email_post; + int HP_login_fromchar_parse_account_data_pre; + int HP_login_fromchar_parse_account_data_post; + int HP_login_fromchar_parse_ping_pre; + int HP_login_fromchar_parse_ping_post; + int HP_login_fromchar_parse_change_email_pre; + int HP_login_fromchar_parse_change_email_post; + int HP_login_fromchar_parse_account_update_pre; + int HP_login_fromchar_parse_account_update_post; + int HP_login_fromchar_parse_ban_pre; + int HP_login_fromchar_parse_ban_post; + int HP_login_fromchar_parse_change_sex_pre; + int HP_login_fromchar_parse_change_sex_post; + int HP_login_fromchar_parse_account_reg2_pre; + int HP_login_fromchar_parse_account_reg2_post; + int HP_login_fromchar_parse_unban_pre; + int HP_login_fromchar_parse_unban_post; + int HP_login_fromchar_parse_account_online_pre; + int HP_login_fromchar_parse_account_online_post; + int HP_login_fromchar_parse_account_offline_pre; + int HP_login_fromchar_parse_account_offline_post; + int HP_login_fromchar_parse_online_accounts_pre; + int HP_login_fromchar_parse_online_accounts_post; + int HP_login_fromchar_parse_request_account_reg2_pre; + int HP_login_fromchar_parse_request_account_reg2_post; + int HP_login_fromchar_parse_update_wan_ip_pre; + int HP_login_fromchar_parse_update_wan_ip_post; + int HP_login_fromchar_parse_all_offline_pre; + int HP_login_fromchar_parse_all_offline_post; + int HP_login_fromchar_parse_change_pincode_pre; + int HP_login_fromchar_parse_change_pincode_post; + int HP_login_fromchar_parse_wrong_pincode_pre; + int HP_login_fromchar_parse_wrong_pincode_post; + int HP_login_fromchar_parse_accinfo_pre; + int HP_login_fromchar_parse_accinfo_post; + int HP_login_parse_fromchar_pre; + int HP_login_parse_fromchar_post; + int HP_login_connection_problem_pre; + int HP_login_connection_problem_post; + int HP_login_kick_pre; + int HP_login_kick_post; + int HP_login_auth_ok_pre; + int HP_login_auth_ok_post; + int HP_login_auth_failed_pre; + int HP_login_auth_failed_post; + int HP_login_login_error_pre; + int HP_login_login_error_post; + int HP_login_parse_ping_pre; + int HP_login_parse_ping_post; + int HP_login_parse_client_md5_pre; + int HP_login_parse_client_md5_post; + int HP_login_parse_client_login_pre; + int HP_login_parse_client_login_post; + int HP_login_send_coding_key_pre; + int HP_login_send_coding_key_post; + int HP_login_parse_request_coding_key_pre; + int HP_login_parse_request_coding_key_post; + int HP_login_char_server_connection_status_pre; + int HP_login_char_server_connection_status_post; + int HP_login_parse_request_connection_pre; + int HP_login_parse_request_connection_post; + int HP_login_parse_login_pre; + int HP_login_parse_login_post; +} count; + +struct { + struct login_interface login; +} source; diff --git a/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc new file mode 100644 index 000000000..a4a9db119 --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc @@ -0,0 +1,66 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +struct HookingPointData HookingPoints[] = { +/* login */ + { HP_POP(login->mmo_auth, HP_login_mmo_auth) }, + { HP_POP(login->mmo_auth_new, HP_login_mmo_auth_new) }, + { HP_POP(login->waiting_disconnect_timer, HP_login_waiting_disconnect_timer) }, + { HP_POP(login->create_online_user, HP_login_create_online_user) }, + { HP_POP(login->add_online_user, HP_login_add_online_user) }, + { HP_POP(login->remove_online_user, HP_login_remove_online_user) }, + { HP_POP(login->online_db_setoffline, HP_login_online_db_setoffline) }, + { HP_POP(login->online_data_cleanup_sub, HP_login_online_data_cleanup_sub) }, + { HP_POP(login->online_data_cleanup, HP_login_online_data_cleanup) }, + { HP_POP(login->sync_ip_addresses, HP_login_sync_ip_addresses) }, + { HP_POP(login->check_encrypted, HP_login_check_encrypted) }, + { HP_POP(login->check_password, HP_login_check_password) }, + { HP_POP(login->lan_subnetcheck, HP_login_lan_subnetcheck) }, + { HP_POP(login->lan_config_read, HP_login_lan_config_read) }, + { HP_POP(login->fromchar_accinfo, HP_login_fromchar_accinfo) }, + { HP_POP(login->fromchar_account, HP_login_fromchar_account) }, + { HP_POP(login->fromchar_account_update_other, HP_login_fromchar_account_update_other) }, + { HP_POP(login->fromchar_auth_ack, HP_login_fromchar_auth_ack) }, + { HP_POP(login->fromchar_ban, HP_login_fromchar_ban) }, + { HP_POP(login->fromchar_change_sex_other, HP_login_fromchar_change_sex_other) }, + { HP_POP(login->fromchar_pong, HP_login_fromchar_pong) }, + { HP_POP(login->fromchar_parse_auth, HP_login_fromchar_parse_auth) }, + { HP_POP(login->fromchar_parse_update_users, HP_login_fromchar_parse_update_users) }, + { HP_POP(login->fromchar_parse_request_change_email, HP_login_fromchar_parse_request_change_email) }, + { HP_POP(login->fromchar_parse_account_data, HP_login_fromchar_parse_account_data) }, + { HP_POP(login->fromchar_parse_ping, HP_login_fromchar_parse_ping) }, + { HP_POP(login->fromchar_parse_change_email, HP_login_fromchar_parse_change_email) }, + { HP_POP(login->fromchar_parse_account_update, HP_login_fromchar_parse_account_update) }, + { HP_POP(login->fromchar_parse_ban, HP_login_fromchar_parse_ban) }, + { HP_POP(login->fromchar_parse_change_sex, HP_login_fromchar_parse_change_sex) }, + { HP_POP(login->fromchar_parse_account_reg2, HP_login_fromchar_parse_account_reg2) }, + { HP_POP(login->fromchar_parse_unban, HP_login_fromchar_parse_unban) }, + { HP_POP(login->fromchar_parse_account_online, HP_login_fromchar_parse_account_online) }, + { HP_POP(login->fromchar_parse_account_offline, HP_login_fromchar_parse_account_offline) }, + { HP_POP(login->fromchar_parse_online_accounts, HP_login_fromchar_parse_online_accounts) }, + { HP_POP(login->fromchar_parse_request_account_reg2, HP_login_fromchar_parse_request_account_reg2) }, + { HP_POP(login->fromchar_parse_update_wan_ip, HP_login_fromchar_parse_update_wan_ip) }, + { HP_POP(login->fromchar_parse_all_offline, HP_login_fromchar_parse_all_offline) }, + { HP_POP(login->fromchar_parse_change_pincode, HP_login_fromchar_parse_change_pincode) }, + { HP_POP(login->fromchar_parse_wrong_pincode, HP_login_fromchar_parse_wrong_pincode) }, + { HP_POP(login->fromchar_parse_accinfo, HP_login_fromchar_parse_accinfo) }, + { HP_POP(login->parse_fromchar, HP_login_parse_fromchar) }, + { HP_POP(login->connection_problem, HP_login_connection_problem) }, + { HP_POP(login->kick, HP_login_kick) }, + { HP_POP(login->auth_ok, HP_login_auth_ok) }, + { HP_POP(login->auth_failed, HP_login_auth_failed) }, + { HP_POP(login->login_error, HP_login_login_error) }, + { HP_POP(login->parse_ping, HP_login_parse_ping) }, + { HP_POP(login->parse_client_md5, HP_login_parse_client_md5) }, + { HP_POP(login->parse_client_login, HP_login_parse_client_login) }, + { HP_POP(login->send_coding_key, HP_login_send_coding_key) }, + { HP_POP(login->parse_request_coding_key, HP_login_parse_request_coding_key) }, + { HP_POP(login->char_server_connection_status, HP_login_char_server_connection_status) }, + { HP_POP(login->parse_request_connection, HP_login_parse_request_connection) }, + { HP_POP(login->parse_login, HP_login_parse_login) }, +}; + +int HookingPointsLenMax = 42; diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc new file mode 100644 index 000000000..1ebd9fd1a --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc @@ -0,0 +1,1473 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +/* login */ +int HP_login_mmo_auth(struct login_session_data *sd, bool isServer) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_mmo_auth_pre ) { + int (*preHookFunc) (struct login_session_data *sd, bool *isServer); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_mmo_auth_pre[hIndex].func; + retVal___ = preHookFunc(sd, &isServer); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.mmo_auth(sd, isServer); + } + if( HPMHooks.count.HP_login_mmo_auth_post ) { + int (*postHookFunc) (int retVal___, struct login_session_data *sd, bool *isServer); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_mmo_auth_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, &isServer); + } + } + return retVal___; +} +int HP_login_mmo_auth_new(const char *userid, const char *pass, const char sex, const char *last_ip) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_mmo_auth_new_pre ) { + int (*preHookFunc) (const char *userid, const char *pass, const char *sex, const char *last_ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_mmo_auth_new_pre[hIndex].func; + retVal___ = preHookFunc(userid, pass, &sex, last_ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.mmo_auth_new(userid, pass, sex, last_ip); + } + if( HPMHooks.count.HP_login_mmo_auth_new_post ) { + int (*postHookFunc) (int retVal___, const char *userid, const char *pass, const char *sex, const char *last_ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_mmo_auth_new_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_mmo_auth_new_post[hIndex].func; + retVal___ = postHookFunc(retVal___, userid, pass, &sex, last_ip); + } + } + return retVal___; +} +int HP_login_waiting_disconnect_timer(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_waiting_disconnect_timer_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_waiting_disconnect_timer_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.waiting_disconnect_timer(tid, tick, id, data); + } + if( HPMHooks.count.HP_login_waiting_disconnect_timer_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_waiting_disconnect_timer_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_waiting_disconnect_timer_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +DBData HP_login_create_online_user(DBKey key, va_list args) { + int hIndex = 0; + DBData retVal___; + memset(&retVal___, '\0', sizeof(DBData)); + if( HPMHooks.count.HP_login_create_online_user_pre ) { + DBData (*preHookFunc) (DBKey *key, va_list args); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_pre; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + preHookFunc = HPMHooks.list.HP_login_create_online_user_pre[hIndex].func; + retVal___ = preHookFunc(&key, args___copy); + va_end(args___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list args___copy; va_copy(args___copy, args); + retVal___ = HPMHooks.source.login.create_online_user(key, args___copy); + va_end(args___copy); + } + if( HPMHooks.count.HP_login_create_online_user_post ) { + DBData (*postHookFunc) (DBData retVal___, DBKey *key, va_list args); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_create_online_user_post; hIndex++ ) { + va_list args___copy; va_copy(args___copy, args); + postHookFunc = HPMHooks.list.HP_login_create_online_user_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, args___copy); + va_end(args___copy); + } + } + return retVal___; +} +struct online_login_data* HP_login_add_online_user(int char_server, int account_id) { + int hIndex = 0; + struct online_login_data* retVal___ = NULL; + if( HPMHooks.count.HP_login_add_online_user_pre ) { + struct online_login_data* (*preHookFunc) (int *char_server, int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_add_online_user_pre[hIndex].func; + retVal___ = preHookFunc(&char_server, &account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.add_online_user(char_server, account_id); + } + if( HPMHooks.count.HP_login_add_online_user_post ) { + struct online_login_data* (*postHookFunc) (struct online_login_data* retVal___, int *char_server, int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_add_online_user_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_add_online_user_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &char_server, &account_id); + } + } + return retVal___; +} +void HP_login_remove_online_user(int account_id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_remove_online_user_pre ) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_remove_online_user_pre[hIndex].func; + preHookFunc(&account_id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.remove_online_user(account_id); + } + if( HPMHooks.count.HP_login_remove_online_user_post ) { + void (*postHookFunc) (int *account_id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_remove_online_user_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_remove_online_user_post[hIndex].func; + postHookFunc(&account_id); + } + } + return; +} +int HP_login_online_db_setoffline(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_online_db_setoffline_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_login_online_db_setoffline_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.login.online_db_setoffline(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_login_online_db_setoffline_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_db_setoffline_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_login_online_db_setoffline_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_login_online_data_cleanup_sub(DBKey key, DBData *data, va_list ap) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_online_data_cleanup_sub_pre ) { + int (*preHookFunc) (DBKey *key, DBData *data, va_list ap); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_pre; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + preHookFunc = HPMHooks.list.HP_login_online_data_cleanup_sub_pre[hIndex].func; + retVal___ = preHookFunc(&key, data, ap___copy); + va_end(ap___copy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + va_list ap___copy; va_copy(ap___copy, ap); + retVal___ = HPMHooks.source.login.online_data_cleanup_sub(key, data, ap___copy); + va_end(ap___copy); + } + if( HPMHooks.count.HP_login_online_data_cleanup_sub_post ) { + int (*postHookFunc) (int retVal___, DBKey *key, DBData *data, va_list ap); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_sub_post; hIndex++ ) { + va_list ap___copy; va_copy(ap___copy, ap); + postHookFunc = HPMHooks.list.HP_login_online_data_cleanup_sub_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &key, data, ap___copy); + va_end(ap___copy); + } + } + return retVal___; +} +int HP_login_online_data_cleanup(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_online_data_cleanup_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_online_data_cleanup_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.online_data_cleanup(tid, tick, id, data); + } + if( HPMHooks.count.HP_login_online_data_cleanup_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_online_data_cleanup_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_online_data_cleanup_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +int HP_login_sync_ip_addresses(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_sync_ip_addresses_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_sync_ip_addresses_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.sync_ip_addresses(tid, tick, id, data); + } + if( HPMHooks.count.HP_login_sync_ip_addresses_post ) { + int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_sync_ip_addresses_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_sync_ip_addresses_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); + } + } + return retVal___; +} +bool HP_login_check_encrypted(const char *str1, const char *str2, const char *passwd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_login_check_encrypted_pre ) { + bool (*preHookFunc) (const char *str1, const char *str2, const char *passwd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_check_encrypted_pre[hIndex].func; + retVal___ = preHookFunc(str1, str2, passwd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.check_encrypted(str1, str2, passwd); + } + if( HPMHooks.count.HP_login_check_encrypted_post ) { + bool (*postHookFunc) (bool retVal___, const char *str1, const char *str2, const char *passwd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_encrypted_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_check_encrypted_post[hIndex].func; + retVal___ = postHookFunc(retVal___, str1, str2, passwd); + } + } + return retVal___; +} +bool HP_login_check_password(const char *md5key, int passwdenc, const char *passwd, const char *refpass) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_login_check_password_pre ) { + bool (*preHookFunc) (const char *md5key, int *passwdenc, const char *passwd, const char *refpass); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_check_password_pre[hIndex].func; + retVal___ = preHookFunc(md5key, &passwdenc, passwd, refpass); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.check_password(md5key, passwdenc, passwd, refpass); + } + if( HPMHooks.count.HP_login_check_password_post ) { + bool (*postHookFunc) (bool retVal___, const char *md5key, int *passwdenc, const char *passwd, const char *refpass); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_check_password_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_check_password_post[hIndex].func; + retVal___ = postHookFunc(retVal___, md5key, &passwdenc, passwd, refpass); + } + } + return retVal___; +} +int HP_login_lan_subnetcheck(uint32 ip) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_lan_subnetcheck_pre ) { + int (*preHookFunc) (uint32 *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnetcheck_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_lan_subnetcheck_pre[hIndex].func; + retVal___ = preHookFunc(&ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.lan_subnetcheck(ip); + } + if( HPMHooks.count.HP_login_lan_subnetcheck_post ) { + int (*postHookFunc) (int retVal___, uint32 *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_subnetcheck_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_lan_subnetcheck_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &ip); + } + } + return retVal___; +} +int HP_login_lan_config_read(const char *lancfgName) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_lan_config_read_pre ) { + int (*preHookFunc) (const char *lancfgName); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_config_read_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_lan_config_read_pre[hIndex].func; + retVal___ = preHookFunc(lancfgName); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.lan_config_read(lancfgName); + } + if( HPMHooks.count.HP_login_lan_config_read_post ) { + int (*postHookFunc) (int retVal___, const char *lancfgName); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_lan_config_read_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_lan_config_read_post[hIndex].func; + retVal___ = postHookFunc(retVal___, lancfgName); + } + } + return retVal___; +} +void HP_login_fromchar_accinfo(int fd, int account_id, int u_fd, int u_aid, int u_group, int map_fd, struct mmo_account *acc) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_accinfo_pre ) { + void (*preHookFunc) (int *fd, int *account_id, int *u_fd, int *u_aid, int *u_group, int *map_fd, struct mmo_account *acc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_accinfo_pre[hIndex].func; + preHookFunc(&fd, &account_id, &u_fd, &u_aid, &u_group, &map_fd, acc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_accinfo(fd, account_id, u_fd, u_aid, u_group, map_fd, acc); + } + if( HPMHooks.count.HP_login_fromchar_accinfo_post ) { + void (*postHookFunc) (int *fd, int *account_id, int *u_fd, int *u_aid, int *u_group, int *map_fd, struct mmo_account *acc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_accinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_accinfo_post[hIndex].func; + postHookFunc(&fd, &account_id, &u_fd, &u_aid, &u_group, &map_fd, acc); + } + } + return; +} +void HP_login_fromchar_account(int fd, int account_id, struct mmo_account *acc) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_account_pre ) { + void (*preHookFunc) (int *fd, int *account_id, struct mmo_account *acc); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_account_pre[hIndex].func; + preHookFunc(&fd, &account_id, acc); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_account(fd, account_id, acc); + } + if( HPMHooks.count.HP_login_fromchar_account_post ) { + void (*postHookFunc) (int *fd, int *account_id, struct mmo_account *acc); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_account_post[hIndex].func; + postHookFunc(&fd, &account_id, acc); + } + } + return; +} +void HP_login_fromchar_account_update_other(int account_id, unsigned int state) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_account_update_other_pre ) { + void (*preHookFunc) (int *account_id, unsigned int *state); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_account_update_other_pre[hIndex].func; + preHookFunc(&account_id, &state); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_account_update_other(account_id, state); + } + if( HPMHooks.count.HP_login_fromchar_account_update_other_post ) { + void (*postHookFunc) (int *account_id, unsigned int *state); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_account_update_other_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_account_update_other_post[hIndex].func; + postHookFunc(&account_id, &state); + } + } + return; +} +void HP_login_fromchar_auth_ack(int fd, int account_id, uint32 login_id1, uint32 login_id2, uint8 sex, int request_id, struct login_auth_node *node) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_auth_ack_pre ) { + void (*preHookFunc) (int *fd, int *account_id, uint32 *login_id1, uint32 *login_id2, uint8 *sex, int *request_id, struct login_auth_node *node); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_auth_ack_pre[hIndex].func; + preHookFunc(&fd, &account_id, &login_id1, &login_id2, &sex, &request_id, node); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_auth_ack(fd, account_id, login_id1, login_id2, sex, request_id, node); + } + if( HPMHooks.count.HP_login_fromchar_auth_ack_post ) { + void (*postHookFunc) (int *fd, int *account_id, uint32 *login_id1, uint32 *login_id2, uint8 *sex, int *request_id, struct login_auth_node *node); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_auth_ack_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_auth_ack_post[hIndex].func; + postHookFunc(&fd, &account_id, &login_id1, &login_id2, &sex, &request_id, node); + } + } + return; +} +void HP_login_fromchar_ban(int account_id, time_t timestamp) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_ban_pre ) { + void (*preHookFunc) (int *account_id, time_t *timestamp); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_ban_pre[hIndex].func; + preHookFunc(&account_id, ×tamp); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_ban(account_id, timestamp); + } + if( HPMHooks.count.HP_login_fromchar_ban_post ) { + void (*postHookFunc) (int *account_id, time_t *timestamp); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_ban_post[hIndex].func; + postHookFunc(&account_id, ×tamp); + } + } + return; +} +void HP_login_fromchar_change_sex_other(int account_id, char sex) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_change_sex_other_pre ) { + void (*preHookFunc) (int *account_id, char *sex); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_change_sex_other_pre[hIndex].func; + preHookFunc(&account_id, &sex); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_change_sex_other(account_id, sex); + } + if( HPMHooks.count.HP_login_fromchar_change_sex_other_post ) { + void (*postHookFunc) (int *account_id, char *sex); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_change_sex_other_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_change_sex_other_post[hIndex].func; + postHookFunc(&account_id, &sex); + } + } + return; +} +void HP_login_fromchar_pong(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_pong_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_pong_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_pong(fd); + } + if( HPMHooks.count.HP_login_fromchar_pong_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_pong_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_pong_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_login_fromchar_parse_auth(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_auth_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_auth_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_auth(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_auth_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_auth_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_auth_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_update_users(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_update_users_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_users_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_update_users(fd, id); + } + if( HPMHooks.count.HP_login_fromchar_parse_update_users_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_users_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_users_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_login_fromchar_parse_request_change_email(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_change_email_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_request_change_email(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_request_change_email_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_change_email_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_change_email_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_account_data(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_account_data_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_data_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_account_data(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_account_data_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_data_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_data_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_ping(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_ping_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_ping_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_ping(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_ping_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ping_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_ping_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_login_fromchar_parse_change_email(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_change_email_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_email_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_change_email(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_change_email_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_email_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_email_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_account_update(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_account_update_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_update_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_account_update(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_account_update_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_update_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_update_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_ban(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_ban_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_ban_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_ban(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_ban_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_ban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_ban_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_change_sex(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_change_sex_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_sex_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_change_sex(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_change_sex_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_sex_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_sex_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_account_reg2(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_reg2_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_account_reg2(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_account_reg2_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_reg2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_reg2_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_unban(int fd, int id, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_unban_pre ) { + void (*preHookFunc) (int *fd, int *id, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_unban_pre[hIndex].func; + preHookFunc(&fd, &id, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_unban(fd, id, ip); + } + if( HPMHooks.count.HP_login_fromchar_parse_unban_post ) { + void (*postHookFunc) (int *fd, int *id, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_unban_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_unban_post[hIndex].func; + postHookFunc(&fd, &id, ip); + } + } + return; +} +void HP_login_fromchar_parse_account_online(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_account_online_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_online_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_account_online(fd, id); + } + if( HPMHooks.count.HP_login_fromchar_parse_account_online_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_online_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_online_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_login_fromchar_parse_account_offline(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_account_offline_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_offline_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_account_offline(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_account_offline_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_account_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_account_offline_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_login_fromchar_parse_online_accounts(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_online_accounts_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_online_accounts(fd, id); + } + if( HPMHooks.count.HP_login_fromchar_parse_online_accounts_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_online_accounts_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_online_accounts_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_login_fromchar_parse_request_account_reg2(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_account_reg2_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_request_account_reg2(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_request_account_reg2_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_request_account_reg2_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +void HP_login_fromchar_parse_update_wan_ip(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_wan_ip_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_update_wan_ip(fd, id); + } + if( HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_update_wan_ip_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_update_wan_ip_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_login_fromchar_parse_all_offline(int fd, int id) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_all_offline_pre ) { + void (*preHookFunc) (int *fd, int *id); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_all_offline_pre[hIndex].func; + preHookFunc(&fd, &id); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_all_offline(fd, id); + } + if( HPMHooks.count.HP_login_fromchar_parse_all_offline_post ) { + void (*postHookFunc) (int *fd, int *id); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_all_offline_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_all_offline_post[hIndex].func; + postHookFunc(&fd, &id); + } + } + return; +} +void HP_login_fromchar_parse_change_pincode(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_pincode_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_change_pincode(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_change_pincode_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_change_pincode_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_change_pincode_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +bool HP_login_fromchar_parse_wrong_pincode(int fd) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre ) { + bool (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_wrong_pincode_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.fromchar_parse_wrong_pincode(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post ) { + bool (*postHookFunc) (bool retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_wrong_pincode_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_wrong_pincode_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_login_fromchar_parse_accinfo(int fd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_fromchar_parse_accinfo_pre ) { + void (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_fromchar_parse_accinfo_pre[hIndex].func; + preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.fromchar_parse_accinfo(fd); + } + if( HPMHooks.count.HP_login_fromchar_parse_accinfo_post ) { + void (*postHookFunc) (int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_fromchar_parse_accinfo_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_fromchar_parse_accinfo_post[hIndex].func; + postHookFunc(&fd); + } + } + return; +} +int HP_login_parse_fromchar(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_parse_fromchar_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_fromchar_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.parse_fromchar(fd); + } + if( HPMHooks.count.HP_login_parse_fromchar_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_fromchar_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_fromchar_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} +void HP_login_connection_problem(int fd, uint8 status) { + int hIndex = 0; + if( HPMHooks.count.HP_login_connection_problem_pre ) { + void (*preHookFunc) (int *fd, uint8 *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_connection_problem_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_connection_problem_pre[hIndex].func; + preHookFunc(&fd, &status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.connection_problem(fd, status); + } + if( HPMHooks.count.HP_login_connection_problem_post ) { + void (*postHookFunc) (int *fd, uint8 *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_connection_problem_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_connection_problem_post[hIndex].func; + postHookFunc(&fd, &status); + } + } + return; +} +void HP_login_kick(struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_kick_pre ) { + void (*preHookFunc) (struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_kick_pre[hIndex].func; + preHookFunc(sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.kick(sd); + } + if( HPMHooks.count.HP_login_kick_post ) { + void (*postHookFunc) (struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_kick_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_kick_post[hIndex].func; + postHookFunc(sd); + } + } + return; +} +void HP_login_auth_ok(struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_auth_ok_pre ) { + void (*preHookFunc) (struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_auth_ok_pre[hIndex].func; + preHookFunc(sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.auth_ok(sd); + } + if( HPMHooks.count.HP_login_auth_ok_post ) { + void (*postHookFunc) (struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_ok_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_auth_ok_post[hIndex].func; + postHookFunc(sd); + } + } + return; +} +void HP_login_auth_failed(struct login_session_data *sd, int result) { + int hIndex = 0; + if( HPMHooks.count.HP_login_auth_failed_pre ) { + void (*preHookFunc) (struct login_session_data *sd, int *result); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_auth_failed_pre[hIndex].func; + preHookFunc(sd, &result); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.auth_failed(sd, result); + } + if( HPMHooks.count.HP_login_auth_failed_post ) { + void (*postHookFunc) (struct login_session_data *sd, int *result); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_auth_failed_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_auth_failed_post[hIndex].func; + postHookFunc(sd, &result); + } + } + return; +} +void HP_login_login_error(int fd, uint8 status) { + int hIndex = 0; + if( HPMHooks.count.HP_login_login_error_pre ) { + void (*preHookFunc) (int *fd, uint8 *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_login_error_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_login_error_pre[hIndex].func; + preHookFunc(&fd, &status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.login_error(fd, status); + } + if( HPMHooks.count.HP_login_login_error_post ) { + void (*postHookFunc) (int *fd, uint8 *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_login_error_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_login_error_post[hIndex].func; + postHookFunc(&fd, &status); + } + } + return; +} +void HP_login_parse_ping(int fd, struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_parse_ping_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_ping_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_ping_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.parse_ping(fd, sd); + } + if( HPMHooks.count.HP_login_parse_ping_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_ping_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_ping_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_login_parse_client_md5(int fd, struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_parse_client_md5_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_client_md5_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_client_md5_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.parse_client_md5(fd, sd); + } + if( HPMHooks.count.HP_login_parse_client_md5_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_client_md5_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_client_md5_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +bool HP_login_parse_client_login(int fd, struct login_session_data *sd, const char *ip) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_login_parse_client_login_pre ) { + bool (*preHookFunc) (int *fd, struct login_session_data *sd, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_client_login_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_client_login_pre[hIndex].func; + retVal___ = preHookFunc(&fd, sd, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.parse_client_login(fd, sd, ip); + } + if( HPMHooks.count.HP_login_parse_client_login_post ) { + bool (*postHookFunc) (bool retVal___, int *fd, struct login_session_data *sd, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_client_login_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_client_login_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd, sd, ip); + } + } + return retVal___; +} +void HP_login_send_coding_key(int fd, struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_send_coding_key_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_send_coding_key_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_send_coding_key_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.send_coding_key(fd, sd); + } + if( HPMHooks.count.HP_login_send_coding_key_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_send_coding_key_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_send_coding_key_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_login_parse_request_coding_key(int fd, struct login_session_data *sd) { + int hIndex = 0; + if( HPMHooks.count.HP_login_parse_request_coding_key_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_coding_key_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_request_coding_key_pre[hIndex].func; + preHookFunc(&fd, sd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.parse_request_coding_key(fd, sd); + } + if( HPMHooks.count.HP_login_parse_request_coding_key_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_coding_key_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_request_coding_key_post[hIndex].func; + postHookFunc(&fd, sd); + } + } + return; +} +void HP_login_char_server_connection_status(int fd, struct login_session_data *sd, uint8 status) { + int hIndex = 0; + if( HPMHooks.count.HP_login_char_server_connection_status_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd, uint8 *status); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_char_server_connection_status_pre[hIndex].func; + preHookFunc(&fd, sd, &status); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.char_server_connection_status(fd, sd, status); + } + if( HPMHooks.count.HP_login_char_server_connection_status_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd, uint8 *status); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_char_server_connection_status_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_char_server_connection_status_post[hIndex].func; + postHookFunc(&fd, sd, &status); + } + } + return; +} +void HP_login_parse_request_connection(int fd, struct login_session_data *sd, const char *ip) { + int hIndex = 0; + if( HPMHooks.count.HP_login_parse_request_connection_pre ) { + void (*preHookFunc) (int *fd, struct login_session_data *sd, const char *ip); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_request_connection_pre[hIndex].func; + preHookFunc(&fd, sd, ip); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.login.parse_request_connection(fd, sd, ip); + } + if( HPMHooks.count.HP_login_parse_request_connection_post ) { + void (*postHookFunc) (int *fd, struct login_session_data *sd, const char *ip); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_request_connection_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_request_connection_post[hIndex].func; + postHookFunc(&fd, sd, ip); + } + } + return; +} +int HP_login_parse_login(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_login_parse_login_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_login_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_login_parse_login_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.login.parse_login(fd); + } + if( HPMHooks.count.HP_login_parse_login_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_login_parse_login_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_login_parse_login_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} diff --git a/src/plugins/HPMHooking/HPMHooking_login.sources.inc b/src/plugins/HPMHooking/HPMHooking_login.sources.inc new file mode 100644 index 000000000..aa1bb2625 --- /dev/null +++ b/src/plugins/HPMHooking/HPMHooking_login.sources.inc @@ -0,0 +1,7 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// +// NOTE: This file was auto-generated and should never be manually edited, +// as it will get overwritten. + +memcpy(&HPMHooks.source.login, login, sizeof(struct login_interface)); diff --git a/src/plugins/HPMHooking/HPMHooking.GetSymbol.inc b/src/plugins/HPMHooking/HPMHooking_map.GetSymbol.inc index 8482b9f80..8482b9f80 100644 --- a/src/plugins/HPMHooking/HPMHooking.GetSymbol.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.GetSymbol.inc diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc index d73525b70..034b14b79 100644 --- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc @@ -423,6 +423,8 @@ struct { struct HPMHookPoint *HP_clif_send_post; struct HPMHookPoint *HP_clif_send_sub_pre; struct HPMHookPoint *HP_clif_send_sub_post; + struct HPMHookPoint *HP_clif_send_actual_pre; + struct HPMHookPoint *HP_clif_send_actual_post; struct HPMHookPoint *HP_clif_parse_pre; struct HPMHookPoint *HP_clif_parse_post; struct HPMHookPoint *HP_clif_parse_cmd_pre; @@ -505,6 +507,8 @@ struct { struct HPMHookPoint *HP_clif_changetraplook_post; struct HPMHookPoint *HP_clif_refreshlook_pre; struct HPMHookPoint *HP_clif_refreshlook_post; + struct HPMHookPoint *HP_clif_sendlook_pre; + struct HPMHookPoint *HP_clif_sendlook_post; struct HPMHookPoint *HP_clif_class_change_pre; struct HPMHookPoint *HP_clif_class_change_post; struct HPMHookPoint *HP_clif_skill_delunit_pre; @@ -825,8 +829,8 @@ struct { struct HPMHookPoint *HP_clif_specialeffect_value_post; struct HPMHookPoint *HP_clif_millenniumshield_pre; struct HPMHookPoint *HP_clif_millenniumshield_post; - struct HPMHookPoint *HP_clif_charm_pre; - struct HPMHookPoint *HP_clif_charm_post; + struct HPMHookPoint *HP_clif_spiritcharm_pre; + struct HPMHookPoint *HP_clif_spiritcharm_post; struct HPMHookPoint *HP_clif_charm_single_pre; struct HPMHookPoint *HP_clif_charm_single_post; struct HPMHookPoint *HP_clif_snap_pre; @@ -977,6 +981,8 @@ struct { struct HPMHookPoint *HP_clif_party_show_picker_post; struct HPMHookPoint *HP_clif_partyinvitationstate_pre; struct HPMHookPoint *HP_clif_partyinvitationstate_post; + struct HPMHookPoint *HP_clif_PartyLeaderChanged_pre; + struct HPMHookPoint *HP_clif_PartyLeaderChanged_post; struct HPMHookPoint *HP_clif_guild_created_pre; struct HPMHookPoint *HP_clif_guild_created_post; struct HPMHookPoint *HP_clif_guild_belonginfo_pre; @@ -1299,6 +1305,10 @@ struct { struct HPMHookPoint *HP_clif_npc_market_open_post; struct HPMHookPoint *HP_clif_npc_market_purchase_ack_pre; struct HPMHookPoint *HP_clif_npc_market_purchase_ack_post; + struct HPMHookPoint *HP_clif_parse_roulette_db_pre; + struct HPMHookPoint *HP_clif_parse_roulette_db_post; + struct HPMHookPoint *HP_clif_roulette_generate_ack_pre; + struct HPMHookPoint *HP_clif_roulette_generate_ack_post; struct HPMHookPoint *HP_clif_pWantToConnection_pre; struct HPMHookPoint *HP_clif_pWantToConnection_post; struct HPMHookPoint *HP_clif_pLoadEndAck_pre; @@ -1739,6 +1749,16 @@ struct { struct HPMHookPoint *HP_clif_pBankOpen_post; struct HPMHookPoint *HP_clif_pBankClose_pre; struct HPMHookPoint *HP_clif_pBankClose_post; + struct HPMHookPoint *HP_clif_pRouletteOpen_pre; + struct HPMHookPoint *HP_clif_pRouletteOpen_post; + struct HPMHookPoint *HP_clif_pRouletteInfo_pre; + struct HPMHookPoint *HP_clif_pRouletteInfo_post; + struct HPMHookPoint *HP_clif_pRouletteClose_pre; + struct HPMHookPoint *HP_clif_pRouletteClose_post; + struct HPMHookPoint *HP_clif_pRouletteGenerate_pre; + struct HPMHookPoint *HP_clif_pRouletteGenerate_post; + struct HPMHookPoint *HP_clif_pRouletteRecvItem_pre; + struct HPMHookPoint *HP_clif_pRouletteRecvItem_post; struct HPMHookPoint *HP_clif_pNPCShopClosed_pre; struct HPMHookPoint *HP_clif_pNPCShopClosed_post; struct HPMHookPoint *HP_clif_pNPCMarketClosed_pre; @@ -1999,10 +2019,8 @@ struct { struct HPMHookPoint *HP_guild_get_alliance_count_post; struct HPMHookPoint *HP_guild_castle_reconnect_sub_pre; struct HPMHookPoint *HP_guild_castle_reconnect_sub_post; - struct HPMHookPoint *HP_gstorage_id2storage_pre; - struct HPMHookPoint *HP_gstorage_id2storage_post; - struct HPMHookPoint *HP_gstorage_id2storage2_pre; - struct HPMHookPoint *HP_gstorage_id2storage2_post; + struct HPMHookPoint *HP_gstorage_ensure_pre; + struct HPMHookPoint *HP_gstorage_ensure_post; struct HPMHookPoint *HP_gstorage_init_pre; struct HPMHookPoint *HP_gstorage_init_post; struct HPMHookPoint *HP_gstorage_final_pre; @@ -2549,6 +2567,8 @@ struct { struct HPMHookPoint *HP_itemdb_gendercheck_post; struct HPMHookPoint *HP_itemdb_validate_entry_pre; struct HPMHookPoint *HP_itemdb_validate_entry_post; + struct HPMHookPoint *HP_itemdb_readdb_additional_fields_pre; + struct HPMHookPoint *HP_itemdb_readdb_additional_fields_post; struct HPMHookPoint *HP_itemdb_readdb_sql_sub_pre; struct HPMHookPoint *HP_itemdb_readdb_sql_sub_post; struct HPMHookPoint *HP_itemdb_readdb_libconfig_sub_pre; @@ -2569,6 +2589,10 @@ struct { struct HPMHookPoint *HP_itemdb_clear_post; struct HPMHookPoint *HP_itemdb_id2combo_pre; struct HPMHookPoint *HP_itemdb_id2combo_post; + struct HPMHookPoint *HP_itemdb_is_item_usable_pre; + struct HPMHookPoint *HP_itemdb_is_item_usable_post; + struct HPMHookPoint *HP_itemdb_lookup_const_pre; + struct HPMHookPoint *HP_itemdb_lookup_const_post; struct HPMHookPoint *HP_logs_pick_pc_pre; struct HPMHookPoint *HP_logs_pick_pc_post; struct HPMHookPoint *HP_logs_pick_mob_pre; @@ -2673,6 +2697,8 @@ struct { struct HPMHookPoint *HP_map_get_new_object_id_post; struct HPMHookPoint *HP_map_search_freecell_pre; struct HPMHookPoint *HP_map_search_freecell_post; + struct HPMHookPoint *HP_map_closest_freecell_pre; + struct HPMHookPoint *HP_map_closest_freecell_post; struct HPMHookPoint *HP_map_quit_pre; struct HPMHookPoint *HP_map_quit_post; struct HPMHookPoint *HP_map_addnpc_pre; @@ -3169,6 +3195,8 @@ struct { struct HPMHookPoint *HP_mob_load_post; struct HPMHookPoint *HP_mob_clear_spawninfo_pre; struct HPMHookPoint *HP_mob_clear_spawninfo_post; + struct HPMHookPoint *HP_mob_destroy_mob_db_pre; + struct HPMHookPoint *HP_mob_destroy_mob_db_post; struct HPMHookPoint *HP_npc_init_pre; struct HPMHookPoint *HP_npc_init_post; struct HPMHookPoint *HP_npc_final_pre; @@ -3185,6 +3213,8 @@ struct { struct HPMHookPoint *HP_npc_ontouch_event_post; struct HPMHookPoint *HP_npc_ontouch2_event_pre; struct HPMHookPoint *HP_npc_ontouch2_event_post; + struct HPMHookPoint *HP_npc_onuntouch_event_pre; + struct HPMHookPoint *HP_npc_onuntouch_event_post; struct HPMHookPoint *HP_npc_enable_sub_pre; struct HPMHookPoint *HP_npc_enable_sub_post; struct HPMHookPoint *HP_npc_enable_pre; @@ -3233,6 +3263,8 @@ struct { struct HPMHookPoint *HP_npc_touchnext_areanpc_post; struct HPMHookPoint *HP_npc_touch_areanpc_pre; struct HPMHookPoint *HP_npc_touch_areanpc_post; + struct HPMHookPoint *HP_npc_untouch_areanpc_pre; + struct HPMHookPoint *HP_npc_untouch_areanpc_post; struct HPMHookPoint *HP_npc_touch_areanpc2_pre; struct HPMHookPoint *HP_npc_touch_areanpc2_post; struct HPMHookPoint *HP_npc_check_areanpc_pre; @@ -3285,12 +3317,16 @@ struct { struct HPMHookPoint *HP_npc_parseview_post; struct HPMHookPoint *HP_npc_viewisid_pre; struct HPMHookPoint *HP_npc_viewisid_post; + struct HPMHookPoint *HP_npc_create_npc_pre; + struct HPMHookPoint *HP_npc_create_npc_post; struct HPMHookPoint *HP_npc_add_warp_pre; struct HPMHookPoint *HP_npc_add_warp_post; struct HPMHookPoint *HP_npc_parse_warp_pre; struct HPMHookPoint *HP_npc_parse_warp_post; struct HPMHookPoint *HP_npc_parse_shop_pre; struct HPMHookPoint *HP_npc_parse_shop_post; + struct HPMHookPoint *HP_npc_parse_unknown_object_pre; + struct HPMHookPoint *HP_npc_parse_unknown_object_post; struct HPMHookPoint *HP_npc_convertlabel_db_pre; struct HPMHookPoint *HP_npc_convertlabel_db_post; struct HPMHookPoint *HP_npc_skip_script_pre; @@ -3323,6 +3359,8 @@ struct { struct HPMHookPoint *HP_npc_parse_mob_post; struct HPMHookPoint *HP_npc_parse_mapflag_pre; struct HPMHookPoint *HP_npc_parse_mapflag_post; + struct HPMHookPoint *HP_npc_parse_unknown_mapflag_pre; + struct HPMHookPoint *HP_npc_parse_unknown_mapflag_post; struct HPMHookPoint *HP_npc_parsesrcfile_pre; struct HPMHookPoint *HP_npc_parsesrcfile_post; struct HPMHookPoint *HP_npc_script_event_pre; @@ -3471,6 +3509,10 @@ struct { struct HPMHookPoint *HP_path_check_distance_post; struct HPMHookPoint *HP_path_distance_pre; struct HPMHookPoint *HP_path_distance_post; + struct HPMHookPoint *HP_path_check_distance_client_pre; + struct HPMHookPoint *HP_path_check_distance_client_post; + struct HPMHookPoint *HP_path_distance_client_pre; + struct HPMHookPoint *HP_path_distance_client_post; struct HPMHookPoint *HP_pcg_init_pre; struct HPMHookPoint *HP_pcg_init_post; struct HPMHookPoint *HP_pcg_final_pre; @@ -3501,10 +3543,6 @@ struct { struct HPMHookPoint *HP_pc_get_dummy_sd_post; struct HPMHookPoint *HP_pc_class2idx_pre; struct HPMHookPoint *HP_pc_class2idx_post; - struct HPMHookPoint *HP_pc_can_give_items_pre; - struct HPMHookPoint *HP_pc_can_give_items_post; - struct HPMHookPoint *HP_pc_can_give_bound_items_pre; - struct HPMHookPoint *HP_pc_can_give_bound_items_post; struct HPMHookPoint *HP_pc_can_talk_pre; struct HPMHookPoint *HP_pc_can_talk_post; struct HPMHookPoint *HP_pc_can_attack_pre; @@ -3675,8 +3713,12 @@ struct { struct HPMHookPoint *HP_pc_resethate_post; struct HPMHookPoint *HP_pc_equipitem_pre; struct HPMHookPoint *HP_pc_equipitem_post; + struct HPMHookPoint *HP_pc_equipitem_pos_pre; + struct HPMHookPoint *HP_pc_equipitem_pos_post; struct HPMHookPoint *HP_pc_unequipitem_pre; struct HPMHookPoint *HP_pc_unequipitem_post; + struct HPMHookPoint *HP_pc_unequipitem_pos_pre; + struct HPMHookPoint *HP_pc_unequipitem_pos_post; struct HPMHookPoint *HP_pc_checkitem_pre; struct HPMHookPoint *HP_pc_checkitem_post; struct HPMHookPoint *HP_pc_useitem_pre; @@ -3707,10 +3749,14 @@ struct { struct HPMHookPoint *HP_pc_setcart_post; struct HPMHookPoint *HP_pc_setfalcon_pre; struct HPMHookPoint *HP_pc_setfalcon_post; - struct HPMHookPoint *HP_pc_setriding_pre; - struct HPMHookPoint *HP_pc_setriding_post; + struct HPMHookPoint *HP_pc_setridingpeco_pre; + struct HPMHookPoint *HP_pc_setridingpeco_post; struct HPMHookPoint *HP_pc_setmadogear_pre; struct HPMHookPoint *HP_pc_setmadogear_post; + struct HPMHookPoint *HP_pc_setridingdragon_pre; + struct HPMHookPoint *HP_pc_setridingdragon_post; + struct HPMHookPoint *HP_pc_setridingwug_pre; + struct HPMHookPoint *HP_pc_setridingwug_post; struct HPMHookPoint *HP_pc_changelook_pre; struct HPMHookPoint *HP_pc_changelook_post; struct HPMHookPoint *HP_pc_equiplookall_pre; @@ -3975,8 +4021,6 @@ struct { struct HPMHookPoint *HP_pet_skill_bonus_timer_post; struct HPMHookPoint *HP_pet_recovery_timer_pre; struct HPMHookPoint *HP_pet_recovery_timer_post; - struct HPMHookPoint *HP_pet_heal_timer_pre; - struct HPMHookPoint *HP_pet_heal_timer_post; struct HPMHookPoint *HP_pet_skill_support_timer_pre; struct HPMHookPoint *HP_pet_skill_support_timer_post; struct HPMHookPoint *HP_pet_read_db_pre; @@ -4563,8 +4607,6 @@ struct { struct HPMHookPoint *HP_skill_greed_post; struct HPMHookPoint *HP_skill_destroy_trap_pre; struct HPMHookPoint *HP_skill_destroy_trap_post; - struct HPMHookPoint *HP_skill_icewall_block_pre; - struct HPMHookPoint *HP_skill_icewall_block_post; struct HPMHookPoint *HP_skill_unitgrouptickset_search_pre; struct HPMHookPoint *HP_skill_unitgrouptickset_search_post; struct HPMHookPoint *HP_skill_dance_switch_pre; @@ -4973,6 +5015,10 @@ struct { struct HPMHookPoint *HP_unit_stop_walking_post; struct HPMHookPoint *HP_unit_skilluse_id_pre; struct HPMHookPoint *HP_unit_skilluse_id_post; + struct HPMHookPoint *HP_unit_step_timer_pre; + struct HPMHookPoint *HP_unit_step_timer_post; + struct HPMHookPoint *HP_unit_stop_stepaction_pre; + struct HPMHookPoint *HP_unit_stop_stepaction_post; struct HPMHookPoint *HP_unit_is_walking_pre; struct HPMHookPoint *HP_unit_is_walking_post; struct HPMHookPoint *HP_unit_can_move_pre; @@ -5460,6 +5506,8 @@ struct { int HP_clif_send_post; int HP_clif_send_sub_pre; int HP_clif_send_sub_post; + int HP_clif_send_actual_pre; + int HP_clif_send_actual_post; int HP_clif_parse_pre; int HP_clif_parse_post; int HP_clif_parse_cmd_pre; @@ -5542,6 +5590,8 @@ struct { int HP_clif_changetraplook_post; int HP_clif_refreshlook_pre; int HP_clif_refreshlook_post; + int HP_clif_sendlook_pre; + int HP_clif_sendlook_post; int HP_clif_class_change_pre; int HP_clif_class_change_post; int HP_clif_skill_delunit_pre; @@ -5862,8 +5912,8 @@ struct { int HP_clif_specialeffect_value_post; int HP_clif_millenniumshield_pre; int HP_clif_millenniumshield_post; - int HP_clif_charm_pre; - int HP_clif_charm_post; + int HP_clif_spiritcharm_pre; + int HP_clif_spiritcharm_post; int HP_clif_charm_single_pre; int HP_clif_charm_single_post; int HP_clif_snap_pre; @@ -6014,6 +6064,8 @@ struct { int HP_clif_party_show_picker_post; int HP_clif_partyinvitationstate_pre; int HP_clif_partyinvitationstate_post; + int HP_clif_PartyLeaderChanged_pre; + int HP_clif_PartyLeaderChanged_post; int HP_clif_guild_created_pre; int HP_clif_guild_created_post; int HP_clif_guild_belonginfo_pre; @@ -6336,6 +6388,10 @@ struct { int HP_clif_npc_market_open_post; int HP_clif_npc_market_purchase_ack_pre; int HP_clif_npc_market_purchase_ack_post; + int HP_clif_parse_roulette_db_pre; + int HP_clif_parse_roulette_db_post; + int HP_clif_roulette_generate_ack_pre; + int HP_clif_roulette_generate_ack_post; int HP_clif_pWantToConnection_pre; int HP_clif_pWantToConnection_post; int HP_clif_pLoadEndAck_pre; @@ -6776,6 +6832,16 @@ struct { int HP_clif_pBankOpen_post; int HP_clif_pBankClose_pre; int HP_clif_pBankClose_post; + int HP_clif_pRouletteOpen_pre; + int HP_clif_pRouletteOpen_post; + int HP_clif_pRouletteInfo_pre; + int HP_clif_pRouletteInfo_post; + int HP_clif_pRouletteClose_pre; + int HP_clif_pRouletteClose_post; + int HP_clif_pRouletteGenerate_pre; + int HP_clif_pRouletteGenerate_post; + int HP_clif_pRouletteRecvItem_pre; + int HP_clif_pRouletteRecvItem_post; int HP_clif_pNPCShopClosed_pre; int HP_clif_pNPCShopClosed_post; int HP_clif_pNPCMarketClosed_pre; @@ -7036,10 +7102,8 @@ struct { int HP_guild_get_alliance_count_post; int HP_guild_castle_reconnect_sub_pre; int HP_guild_castle_reconnect_sub_post; - int HP_gstorage_id2storage_pre; - int HP_gstorage_id2storage_post; - int HP_gstorage_id2storage2_pre; - int HP_gstorage_id2storage2_post; + int HP_gstorage_ensure_pre; + int HP_gstorage_ensure_post; int HP_gstorage_init_pre; int HP_gstorage_init_post; int HP_gstorage_final_pre; @@ -7586,6 +7650,8 @@ struct { int HP_itemdb_gendercheck_post; int HP_itemdb_validate_entry_pre; int HP_itemdb_validate_entry_post; + int HP_itemdb_readdb_additional_fields_pre; + int HP_itemdb_readdb_additional_fields_post; int HP_itemdb_readdb_sql_sub_pre; int HP_itemdb_readdb_sql_sub_post; int HP_itemdb_readdb_libconfig_sub_pre; @@ -7606,6 +7672,10 @@ struct { int HP_itemdb_clear_post; int HP_itemdb_id2combo_pre; int HP_itemdb_id2combo_post; + int HP_itemdb_is_item_usable_pre; + int HP_itemdb_is_item_usable_post; + int HP_itemdb_lookup_const_pre; + int HP_itemdb_lookup_const_post; int HP_logs_pick_pc_pre; int HP_logs_pick_pc_post; int HP_logs_pick_mob_pre; @@ -7710,6 +7780,8 @@ struct { int HP_map_get_new_object_id_post; int HP_map_search_freecell_pre; int HP_map_search_freecell_post; + int HP_map_closest_freecell_pre; + int HP_map_closest_freecell_post; int HP_map_quit_pre; int HP_map_quit_post; int HP_map_addnpc_pre; @@ -8206,6 +8278,8 @@ struct { int HP_mob_load_post; int HP_mob_clear_spawninfo_pre; int HP_mob_clear_spawninfo_post; + int HP_mob_destroy_mob_db_pre; + int HP_mob_destroy_mob_db_post; int HP_npc_init_pre; int HP_npc_init_post; int HP_npc_final_pre; @@ -8222,6 +8296,8 @@ struct { int HP_npc_ontouch_event_post; int HP_npc_ontouch2_event_pre; int HP_npc_ontouch2_event_post; + int HP_npc_onuntouch_event_pre; + int HP_npc_onuntouch_event_post; int HP_npc_enable_sub_pre; int HP_npc_enable_sub_post; int HP_npc_enable_pre; @@ -8270,6 +8346,8 @@ struct { int HP_npc_touchnext_areanpc_post; int HP_npc_touch_areanpc_pre; int HP_npc_touch_areanpc_post; + int HP_npc_untouch_areanpc_pre; + int HP_npc_untouch_areanpc_post; int HP_npc_touch_areanpc2_pre; int HP_npc_touch_areanpc2_post; int HP_npc_check_areanpc_pre; @@ -8322,12 +8400,16 @@ struct { int HP_npc_parseview_post; int HP_npc_viewisid_pre; int HP_npc_viewisid_post; + int HP_npc_create_npc_pre; + int HP_npc_create_npc_post; int HP_npc_add_warp_pre; int HP_npc_add_warp_post; int HP_npc_parse_warp_pre; int HP_npc_parse_warp_post; int HP_npc_parse_shop_pre; int HP_npc_parse_shop_post; + int HP_npc_parse_unknown_object_pre; + int HP_npc_parse_unknown_object_post; int HP_npc_convertlabel_db_pre; int HP_npc_convertlabel_db_post; int HP_npc_skip_script_pre; @@ -8360,6 +8442,8 @@ struct { int HP_npc_parse_mob_post; int HP_npc_parse_mapflag_pre; int HP_npc_parse_mapflag_post; + int HP_npc_parse_unknown_mapflag_pre; + int HP_npc_parse_unknown_mapflag_post; int HP_npc_parsesrcfile_pre; int HP_npc_parsesrcfile_post; int HP_npc_script_event_pre; @@ -8508,6 +8592,10 @@ struct { int HP_path_check_distance_post; int HP_path_distance_pre; int HP_path_distance_post; + int HP_path_check_distance_client_pre; + int HP_path_check_distance_client_post; + int HP_path_distance_client_pre; + int HP_path_distance_client_post; int HP_pcg_init_pre; int HP_pcg_init_post; int HP_pcg_final_pre; @@ -8538,10 +8626,6 @@ struct { int HP_pc_get_dummy_sd_post; int HP_pc_class2idx_pre; int HP_pc_class2idx_post; - int HP_pc_can_give_items_pre; - int HP_pc_can_give_items_post; - int HP_pc_can_give_bound_items_pre; - int HP_pc_can_give_bound_items_post; int HP_pc_can_talk_pre; int HP_pc_can_talk_post; int HP_pc_can_attack_pre; @@ -8712,8 +8796,12 @@ struct { int HP_pc_resethate_post; int HP_pc_equipitem_pre; int HP_pc_equipitem_post; + int HP_pc_equipitem_pos_pre; + int HP_pc_equipitem_pos_post; int HP_pc_unequipitem_pre; int HP_pc_unequipitem_post; + int HP_pc_unequipitem_pos_pre; + int HP_pc_unequipitem_pos_post; int HP_pc_checkitem_pre; int HP_pc_checkitem_post; int HP_pc_useitem_pre; @@ -8744,10 +8832,14 @@ struct { int HP_pc_setcart_post; int HP_pc_setfalcon_pre; int HP_pc_setfalcon_post; - int HP_pc_setriding_pre; - int HP_pc_setriding_post; + int HP_pc_setridingpeco_pre; + int HP_pc_setridingpeco_post; int HP_pc_setmadogear_pre; int HP_pc_setmadogear_post; + int HP_pc_setridingdragon_pre; + int HP_pc_setridingdragon_post; + int HP_pc_setridingwug_pre; + int HP_pc_setridingwug_post; int HP_pc_changelook_pre; int HP_pc_changelook_post; int HP_pc_equiplookall_pre; @@ -9012,8 +9104,6 @@ struct { int HP_pet_skill_bonus_timer_post; int HP_pet_recovery_timer_pre; int HP_pet_recovery_timer_post; - int HP_pet_heal_timer_pre; - int HP_pet_heal_timer_post; int HP_pet_skill_support_timer_pre; int HP_pet_skill_support_timer_post; int HP_pet_read_db_pre; @@ -9600,8 +9690,6 @@ struct { int HP_skill_greed_post; int HP_skill_destroy_trap_pre; int HP_skill_destroy_trap_post; - int HP_skill_icewall_block_pre; - int HP_skill_icewall_block_post; int HP_skill_unitgrouptickset_search_pre; int HP_skill_unitgrouptickset_search_post; int HP_skill_dance_switch_pre; @@ -10010,6 +10098,10 @@ struct { int HP_unit_stop_walking_post; int HP_unit_skilluse_id_pre; int HP_unit_skilluse_id_post; + int HP_unit_step_timer_pre; + int HP_unit_step_timer_post; + int HP_unit_stop_stepaction_pre; + int HP_unit_stop_stepaction_post; int HP_unit_is_walking_pre; int HP_unit_is_walking_post; int HP_unit_can_move_pre; diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc index 05d484d20..21f48134c 100644 --- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc @@ -221,6 +221,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->refresh_ip, HP_clif_refresh_ip) }, { HP_POP(clif->send, HP_clif_send) }, { HP_POP(clif->send_sub, HP_clif_send_sub) }, + { HP_POP(clif->send_actual, HP_clif_send_actual) }, { HP_POP(clif->parse, HP_clif_parse) }, { HP_POP(clif->parse_cmd, HP_clif_parse_cmd) }, { HP_POP(clif->decrypt_cmd, HP_clif_decrypt_cmd) }, @@ -262,6 +263,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->changelook, HP_clif_changelook) }, { HP_POP(clif->changetraplook, HP_clif_changetraplook) }, { HP_POP(clif->refreshlook, HP_clif_refreshlook) }, + { HP_POP(clif->sendlook, HP_clif_sendlook) }, { HP_POP(clif->class_change, HP_clif_class_change) }, { HP_POP(clif->skill_delunit, HP_clif_skill_delunit) }, { HP_POP(clif->skillunit_update, HP_clif_skillunit_update) }, @@ -422,7 +424,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->specialeffect_single, HP_clif_specialeffect_single) }, { HP_POP(clif->specialeffect_value, HP_clif_specialeffect_value) }, { HP_POP(clif->millenniumshield, HP_clif_millenniumshield) }, - { HP_POP(clif->charm, HP_clif_charm) }, + { HP_POP(clif->spiritcharm, HP_clif_spiritcharm) }, { HP_POP(clif->charm_single, HP_clif_charm_single) }, { HP_POP(clif->snap, HP_clif_snap) }, { HP_POP(clif->weather_check, HP_clif_weather_check) }, @@ -498,6 +500,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->party_xy_remove, HP_clif_party_xy_remove) }, { HP_POP(clif->party_show_picker, HP_clif_party_show_picker) }, { HP_POP(clif->partyinvitationstate, HP_clif_partyinvitationstate) }, + { HP_POP(clif->PartyLeaderChanged, HP_clif_PartyLeaderChanged) }, { HP_POP(clif->guild_created, HP_clif_guild_created) }, { HP_POP(clif->guild_belonginfo, HP_clif_guild_belonginfo) }, { HP_POP(clif->guild_masterormember, HP_clif_guild_masterormember) }, @@ -659,6 +662,8 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->delay_damage_sub, HP_clif_delay_damage_sub) }, { HP_POP(clif->npc_market_open, HP_clif_npc_market_open) }, { HP_POP(clif->npc_market_purchase_ack, HP_clif_npc_market_purchase_ack) }, + { HP_POP(clif->parse_roulette_db, HP_clif_parse_roulette_db) }, + { HP_POP(clif->roulette_generate_ack, HP_clif_roulette_generate_ack) }, { HP_POP(clif->pWantToConnection, HP_clif_pWantToConnection) }, { HP_POP(clif->pLoadEndAck, HP_clif_pLoadEndAck) }, { HP_POP(clif->pTickSend, HP_clif_pTickSend) }, @@ -879,6 +884,11 @@ struct HookingPointData HookingPoints[] = { { HP_POP(clif->pBankCheck, HP_clif_pBankCheck) }, { HP_POP(clif->pBankOpen, HP_clif_pBankOpen) }, { HP_POP(clif->pBankClose, HP_clif_pBankClose) }, + { HP_POP(clif->pRouletteOpen, HP_clif_pRouletteOpen) }, + { HP_POP(clif->pRouletteInfo, HP_clif_pRouletteInfo) }, + { HP_POP(clif->pRouletteClose, HP_clif_pRouletteClose) }, + { HP_POP(clif->pRouletteGenerate, HP_clif_pRouletteGenerate) }, + { HP_POP(clif->pRouletteRecvItem, HP_clif_pRouletteRecvItem) }, { HP_POP(clif->pNPCShopClosed, HP_clif_pNPCShopClosed) }, { HP_POP(clif->pNPCMarketClosed, HP_clif_pNPCMarketClosed) }, { HP_POP(clif->pNPCMarketPurchase, HP_clif_pNPCMarketPurchase) }, @@ -1013,8 +1023,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(guild->get_alliance_count, HP_guild_get_alliance_count) }, { HP_POP(guild->castle_reconnect_sub, HP_guild_castle_reconnect_sub) }, /* gstorage */ - { HP_POP(gstorage->id2storage, HP_gstorage_id2storage) }, - { HP_POP(gstorage->id2storage2, HP_gstorage_id2storage2) }, + { HP_POP(gstorage->ensure, HP_gstorage_ensure) }, { HP_POP(gstorage->init, HP_gstorage_init) }, { HP_POP(gstorage->final, HP_gstorage_final) }, { HP_POP(gstorage->delete, HP_gstorage_delete) }, @@ -1293,6 +1302,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(itemdb->read_combos, HP_itemdb_read_combos) }, { HP_POP(itemdb->gendercheck, HP_itemdb_gendercheck) }, { HP_POP(itemdb->validate_entry, HP_itemdb_validate_entry) }, + { HP_POP(itemdb->readdb_additional_fields, HP_itemdb_readdb_additional_fields) }, { HP_POP(itemdb->readdb_sql_sub, HP_itemdb_readdb_sql_sub) }, { HP_POP(itemdb->readdb_libconfig_sub, HP_itemdb_readdb_libconfig_sub) }, { HP_POP(itemdb->readdb_libconfig, HP_itemdb_readdb_libconfig) }, @@ -1303,6 +1313,8 @@ struct HookingPointData HookingPoints[] = { { HP_POP(itemdb->final_sub, HP_itemdb_final_sub) }, { HP_POP(itemdb->clear, HP_itemdb_clear) }, { HP_POP(itemdb->id2combo, HP_itemdb_id2combo) }, + { HP_POP(itemdb->is_item_usable, HP_itemdb_is_item_usable) }, + { HP_POP(itemdb->lookup_const, HP_itemdb_lookup_const) }, /* logs */ { HP_POP(logs->pick_pc, HP_logs_pick_pc) }, { HP_POP(logs->pick_mob, HP_logs_pick_mob) }, @@ -1358,6 +1370,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(map->find_skill_unit_oncell, HP_map_find_skill_unit_oncell) }, { HP_POP(map->get_new_object_id, HP_map_get_new_object_id) }, { HP_POP(map->search_freecell, HP_map_search_freecell) }, + { HP_POP(map->closest_freecell, HP_map_closest_freecell) }, { HP_POP(map->quit, HP_map_quit) }, { HP_POP(map->addnpc, HP_map_addnpc) }, { HP_POP(map->clearflooritem_timer, HP_map_clearflooritem_timer) }, @@ -1610,6 +1623,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(mob->readdb_itemratio, HP_mob_readdb_itemratio) }, { HP_POP(mob->load, HP_mob_load) }, { HP_POP(mob->clear_spawninfo, HP_mob_clear_spawninfo) }, + { HP_POP(mob->destroy_mob_db, HP_mob_destroy_mob_db) }, /* npc */ { HP_POP(npc->init, HP_npc_init) }, { HP_POP(npc->final, HP_npc_final) }, @@ -1619,6 +1633,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(npc->isnear, HP_npc_isnear) }, { HP_POP(npc->ontouch_event, HP_npc_ontouch_event) }, { HP_POP(npc->ontouch2_event, HP_npc_ontouch2_event) }, + { HP_POP(npc->onuntouch_event, HP_npc_onuntouch_event) }, { HP_POP(npc->enable_sub, HP_npc_enable_sub) }, { HP_POP(npc->enable, HP_npc_enable) }, { HP_POP(npc->name2id, HP_npc_name2id) }, @@ -1643,6 +1658,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(npc->touch_areanpc_sub, HP_npc_touch_areanpc_sub) }, { HP_POP(npc->touchnext_areanpc, HP_npc_touchnext_areanpc) }, { HP_POP(npc->touch_areanpc, HP_npc_touch_areanpc) }, + { HP_POP(npc->untouch_areanpc, HP_npc_untouch_areanpc) }, { HP_POP(npc->touch_areanpc2, HP_npc_touch_areanpc2) }, { HP_POP(npc->check_areanpc, HP_npc_check_areanpc) }, { HP_POP(npc->checknear, HP_npc_checknear) }, @@ -1669,9 +1685,11 @@ struct HookingPointData HookingPoints[] = { { HP_POP(npc->parsename, HP_npc_parsename) }, { HP_POP(npc->parseview, HP_npc_parseview) }, { HP_POP(npc->viewisid, HP_npc_viewisid) }, + { HP_POP(npc->create_npc, HP_npc_create_npc) }, { HP_POP(npc->add_warp, HP_npc_add_warp) }, { HP_POP(npc->parse_warp, HP_npc_parse_warp) }, { HP_POP(npc->parse_shop, HP_npc_parse_shop) }, + { HP_POP(npc->parse_unknown_object, HP_npc_parse_unknown_object) }, { HP_POP(npc->convertlabel_db, HP_npc_convertlabel_db) }, { HP_POP(npc->skip_script, HP_npc_skip_script) }, { HP_POP(npc->parse_script, HP_npc_parse_script) }, @@ -1688,6 +1706,7 @@ struct HookingPointData HookingPoints[] = { { HP_POP(npc->parse_mob2, HP_npc_parse_mob2) }, { HP_POP(npc->parse_mob, HP_npc_parse_mob) }, { HP_POP(npc->parse_mapflag, HP_npc_parse_mapflag) }, + { HP_POP(npc->parse_unknown_mapflag, HP_npc_parse_unknown_mapflag) }, { HP_POP(npc->parsesrcfile, HP_npc_parsesrcfile) }, { HP_POP(npc->script_event, HP_npc_script_event) }, { HP_POP(npc->read_event_script, HP_npc_read_event_script) }, @@ -1764,6 +1783,8 @@ struct HookingPointData HookingPoints[] = { { HP_POP(path->search_long, HP_path_search_long) }, { HP_POP(path->check_distance, HP_path_check_distance) }, { HP_POP(path->distance, HP_path_distance) }, + { HP_POP(path->check_distance_client, HP_path_check_distance_client) }, + { HP_POP(path->distance_client, HP_path_distance_client) }, /* pcg */ { HP_POP(pcg->init, HP_pcg_init) }, { HP_POP(pcg->final, HP_pcg_final) }, @@ -1781,8 +1802,6 @@ struct HookingPointData HookingPoints[] = { { HP_POP(pc->final, HP_pc_final) }, { HP_POP(pc->get_dummy_sd, HP_pc_get_dummy_sd) }, { HP_POP(pc->class2idx, HP_pc_class2idx) }, - { HP_POP(pc->can_give_items, HP_pc_can_give_items) }, - { HP_POP(pc->can_give_bound_items, HP_pc_can_give_bound_items) }, { HP_POP(pc->can_talk, HP_pc_can_talk) }, { HP_POP(pc->can_attack, HP_pc_can_attack) }, { HP_POP(pc->can_use_command, HP_pc_can_use_command) }, @@ -1868,7 +1887,9 @@ struct HookingPointData HookingPoints[] = { { HP_POP(pc->resetfeel, HP_pc_resetfeel) }, { HP_POP(pc->resethate, HP_pc_resethate) }, { HP_POP(pc->equipitem, HP_pc_equipitem) }, + { HP_POP(pc->equipitem_pos, HP_pc_equipitem_pos) }, { HP_POP(pc->unequipitem, HP_pc_unequipitem) }, + { HP_POP(pc->unequipitem_pos, HP_pc_unequipitem_pos) }, { HP_POP(pc->checkitem, HP_pc_checkitem) }, { HP_POP(pc->useitem, HP_pc_useitem) }, { HP_POP(pc->skillatk_bonus, HP_pc_skillatk_bonus) }, @@ -1884,8 +1905,10 @@ struct HookingPointData HookingPoints[] = { { HP_POP(pc->setoption, HP_pc_setoption) }, { HP_POP(pc->setcart, HP_pc_setcart) }, { HP_POP(pc->setfalcon, HP_pc_setfalcon) }, - { HP_POP(pc->setriding, HP_pc_setriding) }, + { HP_POP(pc->setridingpeco, HP_pc_setridingpeco) }, { HP_POP(pc->setmadogear, HP_pc_setmadogear) }, + { HP_POP(pc->setridingdragon, HP_pc_setridingdragon) }, + { HP_POP(pc->setridingwug, HP_pc_setridingwug) }, { HP_POP(pc->changelook, HP_pc_changelook) }, { HP_POP(pc->equiplookall, HP_pc_equiplookall) }, { HP_POP(pc->readparam, HP_pc_readparam) }, @@ -2019,7 +2042,6 @@ struct HookingPointData HookingPoints[] = { { HP_POP(pet->lootitem_drop, HP_pet_lootitem_drop) }, { HP_POP(pet->skill_bonus_timer, HP_pet_skill_bonus_timer) }, { HP_POP(pet->recovery_timer, HP_pet_recovery_timer) }, - { HP_POP(pet->heal_timer, HP_pet_heal_timer) }, { HP_POP(pet->skill_support_timer, HP_pet_skill_support_timer) }, { HP_POP(pet->read_db, HP_pet_read_db) }, /* quest */ @@ -2317,7 +2339,6 @@ struct HookingPointData HookingPoints[] = { { HP_POP(skill->frostjoke_scream, HP_skill_frostjoke_scream) }, { HP_POP(skill->greed, HP_skill_greed) }, { HP_POP(skill->destroy_trap, HP_skill_destroy_trap) }, - { HP_POP(skill->icewall_block, HP_skill_icewall_block) }, { HP_POP(skill->unitgrouptickset_search, HP_skill_unitgrouptickset_search) }, { HP_POP(skill->dance_switch, HP_skill_dance_switch) }, { HP_POP(skill->check_condition_char_sub, HP_skill_check_condition_char_sub) }, @@ -2526,6 +2547,8 @@ struct HookingPointData HookingPoints[] = { { HP_POP(unit->warp, HP_unit_warp) }, { HP_POP(unit->stop_walking, HP_unit_stop_walking) }, { HP_POP(unit->skilluse_id, HP_unit_skilluse_id) }, + { HP_POP(unit->step_timer, HP_unit_step_timer) }, + { HP_POP(unit->stop_stepaction, HP_unit_stop_stepaction) }, { HP_POP(unit->is_walking, HP_unit_is_walking) }, { HP_POP(unit->can_move, HP_unit_can_move) }, { HP_POP(unit->resume_running, HP_unit_resume_running) }, diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index 8f209fe5c..9078efe2e 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -5688,6 +5688,33 @@ int HP_clif_send_sub(struct block_list *bl, va_list ap) { } return retVal___; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + 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); + 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); + } + } + return retVal___; +} int HP_clif_parse(int fd) { int hIndex = 0; int retVal___ = 0; @@ -6757,6 +6784,32 @@ void HP_clif_refreshlook(struct block_list *bl, int id, int type, int val, enum } return; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + 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); + 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); + } + } + return; +} void HP_clif_class_change(struct block_list *bl, int class_, int type) { int hIndex = 0; if( HPMHooks.count.HP_clif_class_change_pre ) { @@ -10959,13 +11012,13 @@ void HP_clif_millenniumshield(struct block_list *bl, short shields) { } return; } -void HP_clif_charm(struct map_session_data *sd, short type) { +void HP_clif_spiritcharm(struct map_session_data *sd, short type) { int hIndex = 0; - if( HPMHooks.count.HP_clif_charm_pre ) { + if( HPMHooks.count.HP_clif_spiritcharm_pre ) { void (*preHookFunc) (struct map_session_data *sd, short *type); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_clif_charm_pre[hIndex].func; + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritcharm_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_spiritcharm_pre[hIndex].func; preHookFunc(sd, &type); } if( *HPMforce_return ) { @@ -10974,12 +11027,12 @@ void HP_clif_charm(struct map_session_data *sd, short type) { } } { - HPMHooks.source.clif.charm(sd, type); + HPMHooks.source.clif.spiritcharm(sd, type); } - if( HPMHooks.count.HP_clif_charm_post ) { + if( HPMHooks.count.HP_clif_spiritcharm_post ) { void (*postHookFunc) (struct map_session_data *sd, short *type); - for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_clif_charm_post[hIndex].func; + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritcharm_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_spiritcharm_post[hIndex].func; postHookFunc(sd, &type); } } @@ -12937,6 +12990,32 @@ void HP_clif_partyinvitationstate(struct map_session_data *sd) { } return; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + 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); + 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); + } + } + return; +} void HP_clif_guild_created(struct map_session_data *sd, int flag) { int hIndex = 0; if( HPMHooks.count.HP_clif_guild_created_pre ) { @@ -17135,6 +17214,59 @@ void HP_clif_npc_market_purchase_ack(struct map_session_data *sd, struct packet_ } return; } +bool HP_clif_parse_roulette_db(void) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_clif_parse_roulette_db_pre ) { + bool (*preHookFunc) (void); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_roulette_db_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_clif_parse_roulette_db_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.clif.parse_roulette_db(); + } + if( HPMHooks.count.HP_clif_parse_roulette_db_post ) { + bool (*postHookFunc) (bool retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_roulette_db_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_clif_parse_roulette_db_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + 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); + 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); + } + } + return; +} void HP_clif_pWantToConnection(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pWantToConnection_pre ) { @@ -22855,6 +22987,136 @@ void HP_clif_pBankClose(int fd, struct map_session_data *sd) { } return; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.pRouletteOpen(fd, sd); + } + if( HPMHooks.count.HP_clif_pRouletteOpen_post ) { + 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); + } + } + return; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.pRouletteInfo(fd, sd); + } + if( HPMHooks.count.HP_clif_pRouletteInfo_post ) { + 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); + } + } + return; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.pRouletteClose(fd, sd); + } + if( HPMHooks.count.HP_clif_pRouletteClose_post ) { + 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); + } + } + return; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.pRouletteGenerate(fd, sd); + } + if( HPMHooks.count.HP_clif_pRouletteGenerate_post ) { + 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); + } + } + return; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.clif.pRouletteRecvItem(fd, sd); + } + if( HPMHooks.count.HP_clif_pRouletteRecvItem_post ) { + 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); + } + } + return; +} void HP_clif_pNPCShopClosed(int fd, struct map_session_data *sd) { int hIndex = 0; if( HPMHooks.count.HP_clif_pNPCShopClosed_pre ) { @@ -26404,41 +26666,14 @@ void HP_guild_castle_reconnect_sub(void *key, void *data, va_list ap) { return; } /* gstorage */ -struct guild_storage* HP_gstorage_id2storage(int guild_id) { - int hIndex = 0; - struct guild_storage* retVal___ = NULL; - if( HPMHooks.count.HP_gstorage_id2storage_pre ) { - struct guild_storage* (*preHookFunc) (int *guild_id); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_id2storage_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_gstorage_id2storage_pre[hIndex].func; - retVal___ = preHookFunc(&guild_id); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.gstorage.id2storage(guild_id); - } - if( HPMHooks.count.HP_gstorage_id2storage_post ) { - struct guild_storage* (*postHookFunc) (struct guild_storage* retVal___, int *guild_id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_id2storage_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_gstorage_id2storage_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &guild_id); - } - } - return retVal___; -} -struct guild_storage* HP_gstorage_id2storage2(int guild_id) { +struct guild_storage* HP_gstorage_ensure(int guild_id) { int hIndex = 0; struct guild_storage* retVal___ = NULL; - if( HPMHooks.count.HP_gstorage_id2storage2_pre ) { + if( HPMHooks.count.HP_gstorage_ensure_pre ) { struct guild_storage* (*preHookFunc) (int *guild_id); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_id2storage2_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_gstorage_id2storage2_pre[hIndex].func; + for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_ensure_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_gstorage_ensure_pre[hIndex].func; retVal___ = preHookFunc(&guild_id); } if( *HPMforce_return ) { @@ -26447,12 +26682,12 @@ struct guild_storage* HP_gstorage_id2storage2(int guild_id) { } } { - retVal___ = HPMHooks.source.gstorage.id2storage2(guild_id); + retVal___ = HPMHooks.source.gstorage.ensure(guild_id); } - if( HPMHooks.count.HP_gstorage_id2storage2_post ) { + if( HPMHooks.count.HP_gstorage_ensure_post ) { struct guild_storage* (*postHookFunc) (struct guild_storage* retVal___, int *guild_id); - for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_id2storage2_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_gstorage_id2storage2_post[hIndex].func; + 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); } } @@ -33756,6 +33991,32 @@ int HP_itemdb_validate_entry(struct item_data *entry, int n, const char *source) } return retVal___; } +void HP_itemdb_readdb_additional_fields(int itemid, 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, 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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.itemdb.readdb_additional_fields(itemid, it, n, source); + } + if( HPMHooks.count.HP_itemdb_readdb_additional_fields_post ) { + void (*postHookFunc) (int *itemid, 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); + } + } + return; +} int HP_itemdb_readdb_sql_sub(Sql *handle, int n, const char *source) { int hIndex = 0; int retVal___ = 0; @@ -34029,6 +34290,60 @@ struct item_combo* HP_itemdb_id2combo(unsigned short id) { } return retVal___; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.itemdb.is_item_usable(item); + } + if( HPMHooks.count.HP_itemdb_is_item_usable_post ) { + bool (*postHookFunc) (bool retVal___, struct item_data *item); + for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_is_item_usable_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_itemdb_is_item_usable_post[hIndex].func; + retVal___ = postHookFunc(retVal___, item); + } + } + return retVal___; +} +bool HP_itemdb_lookup_const(const config_setting_t *it, const char *name, int *value) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_itemdb_lookup_const_pre ) { + bool (*preHookFunc) (const 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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.itemdb.lookup_const(it, name, value); + } + if( HPMHooks.count.HP_itemdb_lookup_const_post ) { + bool (*postHookFunc) (bool retVal___, const config_setting_t *it, const char *name, int *value); + for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_lookup_const_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_itemdb_lookup_const_post[hIndex].func; + retVal___ = postHookFunc(retVal___, it, name, value); + } + } + return retVal___; +} /* logs */ 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; @@ -35299,15 +35614,15 @@ int HP_map_moveblock(struct block_list *bl, int x1, int y1, int64 tick) { } return retVal___; } -int HP_map_count_oncell(int16 m, int16 x, int16 y, int type) { +int HP_map_count_oncell(int16 m, int16 x, int16 y, int type, int flag) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_count_oncell_pre ) { - int (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *type); + int (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *type, int *flag); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_count_oncell_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_count_oncell_pre[hIndex].func; - retVal___ = preHookFunc(&m, &x, &y, &type); + retVal___ = preHookFunc(&m, &x, &y, &type, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -35315,13 +35630,13 @@ int HP_map_count_oncell(int16 m, int16 x, int16 y, int type) { } } { - retVal___ = HPMHooks.source.map.count_oncell(m, x, y, type); + 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 (*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); + retVal___ = postHookFunc(retVal___, &m, &x, &y, &type, &flag); } } return retVal___; @@ -35407,6 +35722,33 @@ int HP_map_search_freecell(struct block_list *src, int16 m, int16 *x, int16 *y, } return retVal___; } +bool HP_map_closest_freecell(int16 m, int16 *x, int16 *y, int type, int flag) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_map_closest_freecell_pre ) { + bool (*preHookFunc) (int16 *m, 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, x, y, &type, &flag); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.map.closest_freecell(m, x, y, type, flag); + } + if( HPMHooks.count.HP_map_closest_freecell_post ) { + bool (*postHookFunc) (bool retVal___, int16 *m, 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, x, y, &type, &flag); + } + } + return retVal___; +} int HP_map_quit(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; @@ -42299,6 +42641,32 @@ void HP_mob_clear_spawninfo(void) { } return; } +void HP_mob_destroy_mob_db(int index) { + int hIndex = 0; + if( HPMHooks.count.HP_mob_destroy_mob_db_pre ) { + void (*preHookFunc) (int *index); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_destroy_mob_db_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_mob_destroy_mob_db_pre[hIndex].func; + preHookFunc(&index); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.mob.destroy_mob_db(index); + } + if( HPMHooks.count.HP_mob_destroy_mob_db_post ) { + 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); + } + } + return; +} /* npc */ int HP_npc_init(bool minimal) { int hIndex = 0; @@ -42522,6 +42890,33 @@ int HP_npc_ontouch2_event(struct map_session_data *sd, struct npc_data *nd) { } return retVal___; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.npc.onuntouch_event(sd, nd); + } + if( HPMHooks.count.HP_npc_onuntouch_event_post ) { + int (*postHookFunc) (int retVal___, struct map_session_data *sd, struct npc_data *nd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_onuntouch_event_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_npc_onuntouch_event_post[hIndex].func; + retVal___ = postHookFunc(retVal___, sd, nd); + } + } + return retVal___; +} int HP_npc_enable_sub(struct block_list *bl, va_list ap) { int hIndex = 0; int retVal___ = 0; @@ -43192,6 +43587,33 @@ int HP_npc_touch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y) } return retVal___; } +int HP_npc_untouch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y) { + 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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + 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); + 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); + } + } + return retVal___; +} int HP_npc_touch_areanpc2(struct mob_data *md) { int hIndex = 0; int retVal___ = 0; @@ -43906,6 +44328,33 @@ bool HP_npc_viewisid(const char *viewid) { } return retVal___; } +struct npc_data* HP_npc_create_npc(int m, int x, int y) { + int hIndex = 0; + struct npc_data* retVal___ = NULL; + if( HPMHooks.count.HP_npc_create_npc_pre ) { + struct npc_data* (*preHookFunc) (int *m, int *x, int *y); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_create_npc_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_npc_create_npc_pre[hIndex].func; + retVal___ = preHookFunc(&m, &x, &y); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.npc.create_npc(m, x, y); + } + if( HPMHooks.count.HP_npc_create_npc_post ) { + struct npc_data* (*postHookFunc) (struct npc_data* retVal___, int *m, int *x, int *y); + 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___, &m, &x, &y); + } + } + return retVal___; +} struct npc_data* HP_npc_add_warp(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) { int hIndex = 0; struct npc_data* retVal___ = NULL; @@ -43987,6 +44436,33 @@ const char* HP_npc_parse_shop(char *w1, char *w2, char *w3, char *w4, const char } return retVal___; } +const char* HP_npc_parse_unknown_object(char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval) { + int hIndex = 0; + const char* retVal___ = NULL; + if( HPMHooks.count.HP_npc_parse_unknown_object_pre ) { + const char* (*preHookFunc) (char *w1, char *w2, char *w3, 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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.npc.parse_unknown_object(w1, w2, w3, w4, start, buffer, filepath, retval); + } + if( HPMHooks.count.HP_npc_parse_unknown_object_post ) { + const char* (*postHookFunc) (const char* retVal___, char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_unknown_object_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_npc_parse_unknown_object_post[hIndex].func; + retVal___ = postHookFunc(retVal___, w1, w2, w3, w4, start, buffer, filepath, retval); + } + } + return retVal___; +} 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 ) { @@ -44418,6 +44894,32 @@ const char* HP_npc_parse_mapflag(char *w1, char *w2, char *w3, char *w4, const c } return retVal___; } +void HP_npc_parse_unknown_mapflag(const char *name, char *w3, 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, char *w3, 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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.npc.parse_unknown_mapflag(name, w3, w4, start, buffer, filepath, retval); + } + if( HPMHooks.count.HP_npc_parse_unknown_mapflag_post ) { + void (*postHookFunc) (const char *name, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int *retval); + for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_parse_unknown_mapflag_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_npc_parse_unknown_mapflag_post[hIndex].func; + postHookFunc(name, w3, w4, start, buffer, filepath, retval); + } + } + return; +} int HP_npc_parsesrcfile(const char *filepath, bool runOnInit) { int hIndex = 0; int retVal___ = 0; @@ -46375,11 +46877,11 @@ bool HP_path_search_long(struct shootpath_data *spd, int16 m, int16 x0, int16 y0 } return retVal___; } -int HP_path_check_distance(int dx, int dy, int distance) { +bool HP_path_check_distance(int dx, int dy, int distance) { int hIndex = 0; - int retVal___ = 0; + bool retVal___ = false; if( HPMHooks.count.HP_path_check_distance_pre ) { - int (*preHookFunc) (int *dx, int *dy, int *distance); + bool (*preHookFunc) (int *dx, int *dy, int *distance); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_path_check_distance_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_path_check_distance_pre[hIndex].func; @@ -46394,7 +46896,7 @@ int 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 ) { - int (*postHookFunc) (int 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); @@ -46429,6 +46931,60 @@ unsigned int HP_path_distance(int dx, int dy) { } return retVal___; } +bool HP_path_check_distance_client(int dx, int dy, int distance) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_path_check_distance_client_pre ) { + bool (*preHookFunc) (int *dx, int *dy, int *distance); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_path_check_distance_client_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_path_check_distance_client_pre[hIndex].func; + retVal___ = preHookFunc(&dx, &dy, &distance); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + 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); + 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); + } + } + return retVal___; +} +int HP_path_distance_client(int dx, int dy) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_path_distance_client_pre ) { + int (*preHookFunc) (int *dx, int *dy); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_path_distance_client_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_path_distance_client_pre[hIndex].func; + retVal___ = preHookFunc(&dx, &dy); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.path.distance_client(dx, dy); + } + if( HPMHooks.count.HP_path_distance_client_post ) { + 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); + } + } + return retVal___; +} /* pcg */ void HP_pcg_init(void) { int hIndex = 0; @@ -46831,60 +47387,6 @@ int HP_pc_class2idx(int class_) { } return retVal___; } -bool HP_pc_can_give_items(struct map_session_data *sd) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_pc_can_give_items_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_give_items_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_pc_can_give_items_pre[hIndex].func; - retVal___ = preHookFunc(sd); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.pc.can_give_items(sd); - } - if( HPMHooks.count.HP_pc_can_give_items_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_give_items_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_pc_can_give_items_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd); - } - } - return retVal___; -} -bool HP_pc_can_give_bound_items(struct map_session_data *sd) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_pc_can_give_bound_items_pre ) { - bool (*preHookFunc) (struct map_session_data *sd); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_give_bound_items_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_pc_can_give_bound_items_pre[hIndex].func; - retVal___ = preHookFunc(sd); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.pc.can_give_bound_items(sd); - } - if( HPMHooks.count.HP_pc_can_give_bound_items_post ) { - bool (*postHookFunc) (bool retVal___, struct map_session_data *sd); - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_give_bound_items_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_pc_can_give_bound_items_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd); - } - } - return retVal___; -} bool HP_pc_can_talk(struct map_session_data *sd) { int hIndex = 0; bool retVal___ = false; @@ -49178,6 +49680,32 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) { } return retVal___; } +void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, 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 *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, &pos); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pc.equipitem_pos(sd, id, pos); + } + if( HPMHooks.count.HP_pc_equipitem_pos_post ) { + void (*postHookFunc) (struct map_session_data *sd, struct item_data *id, 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, &pos); + } + } + return; +} int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) { int hIndex = 0; int retVal___ = 0; @@ -49205,6 +49733,32 @@ int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) { } return retVal___; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + 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); + 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); + } + } + return; +} int HP_pc_checkitem(struct map_session_data *sd) { int hIndex = 0; int retVal___ = 0; @@ -49580,64 +50134,62 @@ int HP_pc_setcart(struct map_session_data *sd, int type) { } return retVal___; } -int HP_pc_setfalcon(struct map_session_data *sd, int flag) { +void HP_pc_setfalcon(struct map_session_data *sd, bool flag) { int hIndex = 0; - int retVal___ = 0; if( HPMHooks.count.HP_pc_setfalcon_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *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; - retVal___ = preHookFunc(sd, &flag); + preHookFunc(sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; - return retVal___; + return; } } { - retVal___ = HPMHooks.source.pc.setfalcon(sd, flag); + HPMHooks.source.pc.setfalcon(sd, flag); } if( HPMHooks.count.HP_pc_setfalcon_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *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; - retVal___ = postHookFunc(retVal___, sd, &flag); + postHookFunc(sd, &flag); } } - return retVal___; + return; } -int HP_pc_setriding(struct map_session_data *sd, int flag) { +void HP_pc_setridingpeco(struct map_session_data *sd, bool flag) { int hIndex = 0; - int retVal___ = 0; - if( HPMHooks.count.HP_pc_setriding_pre ) { - int (*preHookFunc) (struct map_session_data *sd, int *flag); + if( HPMHooks.count.HP_pc_setridingpeco_pre ) { + void (*preHookFunc) (struct map_session_data *sd, bool *flag); *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setriding_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_pc_setriding_pre[hIndex].func; - retVal___ = preHookFunc(sd, &flag); + for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setridingpeco_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_pc_setridingpeco_pre[hIndex].func; + preHookFunc(sd, &flag); } if( *HPMforce_return ) { *HPMforce_return = false; - return retVal___; + return; } } { - retVal___ = HPMHooks.source.pc.setriding(sd, flag); + HPMHooks.source.pc.setridingpeco(sd, flag); } - if( HPMHooks.count.HP_pc_setriding_post ) { - int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *flag); - for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setriding_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_pc_setriding_post[hIndex].func; - retVal___ = postHookFunc(retVal___, sd, &flag); + if( HPMHooks.count.HP_pc_setridingpeco_post ) { + 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); } } - return retVal___; + return; } -void HP_pc_setmadogear(struct map_session_data *sd, int 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, int *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; @@ -49652,7 +50204,7 @@ void HP_pc_setmadogear(struct map_session_data *sd, int flag) { HPMHooks.source.pc.setmadogear(sd, flag); } if( HPMHooks.count.HP_pc_setmadogear_post ) { - void (*postHookFunc) (struct map_session_data *sd, int *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); @@ -49660,6 +50212,58 @@ void HP_pc_setmadogear(struct map_session_data *sd, int flag) { } return; } +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pc.setridingdragon(sd, type); + } + if( HPMHooks.count.HP_pc_setridingdragon_post ) { + 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); + } + } + return; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.pc.setridingwug(sd, flag); + } + if( HPMHooks.count.HP_pc_setridingwug_post ) { + 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); + } + } + return; +} int HP_pc_changelook(struct map_session_data *sd, int type, int val) { int hIndex = 0; int retVal___ = 0; @@ -53233,33 +53837,6 @@ int HP_pet_recovery_timer(int tid, int64 tick, int id, intptr_t data) { } return retVal___; } -int HP_pet_heal_timer(int tid, int64 tick, int id, intptr_t data) { - int hIndex = 0; - int retVal___ = 0; - if( HPMHooks.count.HP_pet_heal_timer_pre ) { - int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_heal_timer_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_pet_heal_timer_pre[hIndex].func; - retVal___ = preHookFunc(&tid, &tick, &id, &data); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.pet.heal_timer(tid, tick, id, data); - } - if( HPMHooks.count.HP_pet_heal_timer_post ) { - int (*postHookFunc) (int retVal___, int *tid, int64 *tick, int *id, intptr_t *data); - for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_heal_timer_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_pet_heal_timer_post[hIndex].func; - retVal___ = postHookFunc(retVal___, &tid, &tick, &id, &data); - } - } - return retVal___; -} int HP_pet_skill_support_timer(int tid, int64 tick, int id, intptr_t data) { int hIndex = 0; int retVal___ = 0; @@ -53960,15 +54537,15 @@ void HP_script_warning(const char *src, const char *file, int start_line, const } return; } -bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_state *st)) { +bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_state *st), bool isDeprecated) { 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 (*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); + retVal___ = preHookFunc(name, args, func, &isDeprecated); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -53976,13 +54553,13 @@ bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_s } } { - retVal___ = HPMHooks.source.script.addScript(name, args, func); + 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 (*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); + retVal___ = postHookFunc(retVal___, name, args, func, &isDeprecated); } } return retVal___; @@ -61331,39 +61908,6 @@ int HP_skill_destroy_trap(struct block_list *bl, va_list ap) { } return retVal___; } -int HP_skill_icewall_block(struct block_list *bl, va_list ap) { - int hIndex = 0; - int retVal___ = 0; - if( HPMHooks.count.HP_skill_icewall_block_pre ) { - int (*preHookFunc) (struct block_list *bl, va_list ap); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_icewall_block_pre; hIndex++ ) { - va_list ap___copy; va_copy(ap___copy, ap); - preHookFunc = HPMHooks.list.HP_skill_icewall_block_pre[hIndex].func; - retVal___ = preHookFunc(bl, ap___copy); - va_end(ap___copy); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - va_list ap___copy; va_copy(ap___copy, ap); - retVal___ = HPMHooks.source.skill.icewall_block(bl, ap___copy); - va_end(ap___copy); - } - if( HPMHooks.count.HP_skill_icewall_block_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl, va_list ap); - for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_icewall_block_post; hIndex++ ) { - va_list ap___copy; va_copy(ap___copy, ap); - postHookFunc = HPMHooks.list.HP_skill_icewall_block_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl, ap___copy); - va_end(ap___copy); - } - } - return retVal___; -} struct skill_unit_group_tickset* HP_skill_unitgrouptickset_search(struct block_list *bl, struct skill_unit_group *group, int64 tick) { int hIndex = 0; struct skill_unit_group_tickset* retVal___ = NULL; @@ -64467,15 +65011,15 @@ unsigned short HP_status_calc_batk(struct block_list *bl, struct status_change * } return retVal___; } -unsigned short HP_status_base_matk(const struct status_data *st, int level) { +unsigned short HP_status_base_matk(struct block_list *bl, const struct status_data *st, int level) { int hIndex = 0; unsigned short retVal___ = 0; if( HPMHooks.count.HP_status_base_matk_pre ) { - unsigned short (*preHookFunc) (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(st, &level); + retVal___ = preHookFunc(bl, st, &level); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -64483,13 +65027,13 @@ unsigned short HP_status_base_matk(const struct status_data *st, int level) { } } { - retVal___ = HPMHooks.source.status.base_matk(st, level); + retVal___ = HPMHooks.source.status.base_matk(bl, st, level); } if( HPMHooks.count.HP_status_base_matk_post ) { - unsigned short (*postHookFunc) (unsigned short retVal___, 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___, st, &level); + retVal___ = postHookFunc(retVal___, bl, st, &level); } } return retVal___; @@ -66920,6 +67464,59 @@ int HP_unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, } return retVal___; } +int HP_unit_step_timer(int tid, int64 tick, int id, intptr_t data) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_unit_step_timer_pre ) { + int (*preHookFunc) (int *tid, int64 *tick, int *id, intptr_t *data); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_step_timer_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_unit_step_timer_pre[hIndex].func; + retVal___ = preHookFunc(&tid, &tick, &id, &data); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + 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); + 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); + } + } + return retVal___; +} +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); + *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); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.unit.stop_stepaction(bl); + } + if( HPMHooks.count.HP_unit_stop_stepaction_post ) { + void (*postHookFunc) (struct block_list *bl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_stepaction_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_unit_stop_stepaction_post[hIndex].func; + postHookFunc(bl); + } + } + return; +} int HP_unit_is_walking(struct block_list *bl) { int hIndex = 0; int retVal___ = 0; @@ -67136,32 +67733,31 @@ int HP_unit_set_target(struct unit_data *ud, int target_id) { } return retVal___; } -int HP_unit_stop_attack(struct block_list *bl) { +void HP_unit_stop_attack(struct block_list *bl) { int hIndex = 0; - int retVal___ = 0; if( HPMHooks.count.HP_unit_stop_attack_pre ) { - int (*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; - retVal___ = preHookFunc(bl); + preHookFunc(bl); } if( *HPMforce_return ) { *HPMforce_return = false; - return retVal___; + return; } } { - retVal___ = HPMHooks.source.unit.stop_attack(bl); + HPMHooks.source.unit.stop_attack(bl); } if( HPMHooks.count.HP_unit_stop_attack_post ) { - int (*postHookFunc) (int retVal___, struct block_list *bl); + void (*postHookFunc) (struct block_list *bl); for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_attack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_unit_stop_attack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, bl); + postHookFunc(bl); } } - return retVal___; + return; } int HP_unit_unattackable(struct block_list *bl) { int hIndex = 0; diff --git a/src/plugins/HPMHooking/HPMHooking.sources.inc b/src/plugins/HPMHooking/HPMHooking_map.sources.inc index 53bb6bcad..53bb6bcad 100644 --- a/src/plugins/HPMHooking/HPMHooking.sources.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.sources.inc diff --git a/src/plugins/Makefile.in b/src/plugins/Makefile.in index 77040d567..802d1015a 100644 --- a/src/plugins/Makefile.in +++ b/src/plugins/Makefile.in @@ -24,10 +24,11 @@ MYPLUGINS = ######### DO NOT EDIT ANYTHING BELOW THIS LINE!!! ################## # All plugins in the src/plugins directory -ALLPLUGINS = $(basename $(wildcard *.c)) +HPMHOOKING = $(addprefix HPMHooking_, login char map) +ALLPLUGINS = $(filter-out HPMHooking, $(basename $(wildcard *.c))) $(HPMHOOKING) # Plugins that will be built through 'make plugins' or 'make all' -PLUGINS = sample db2sql HPMHooking $(MYPLUGINS) +PLUGINS = sample db2sql HPMHooking_char HPMHooking_login HPMHooking_map $(MYPLUGINS) COMMON_D = ../common COMMON_H = $(wildcard $(COMMON_D)/*.h) @@ -46,11 +47,14 @@ CC = @CC@ export CC ##################################################################### -.PHONY: all $(ALLPLUGINS) clean buildclean help +.PHONY: all $(ALLPLUGINS) HPMHooking clean buildclean help all: $(PLUGINS) Makefile $(ALLPLUGINS): %: ../../plugins/%@DLLEXT@ + @echo " PLUGIN $@" + +HPMHooking: $(HPMHOOKING) buildclean: @echo " CLEAN plugins (build temp files)" @@ -80,4 +84,12 @@ Makefile: Makefile.in ../../plugins/%@DLLEXT@: %.c $(ALL_H) $$(shell ls %/* 2>/dev/null) @echo " CC $<" - @$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $< + @$(CC) @PLUGINSTATIC@ @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $< + +../../plugins/HPMHooking_login@DLLEXT@: HPMHOOKINGTYPE = LOGIN +../../plugins/HPMHooking_char@DLLEXT@: HPMHOOKINGTYPE = CHAR +../../plugins/HPMHooking_map@DLLEXT@: HPMHOOKINGTYPE = MAP + +../../plugins/HPMHooking_%@DLLEXT@: HPMHooking.c $(ALL_H) $$(shell ls HPMHooking/*_%* HPMHooking/*_common* 2>/dev/null) + @echo " CC $< ($(HPMHOOKINGTYPE))" + @$(CC) -DHPMHOOKING_$(HPMHOOKINGTYPE) @PLUGINSTATIC@ @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $< diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index 751f4be8a..eda61d026 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -49,7 +49,7 @@ void hstr(const char *str) { } int db2sql(config_setting_t *entry, int n, const char *source) { struct item_data *it = NULL; - + if( (it = itemdb->exists(itemdb_readdb_libconfig_sub(entry,n,source))) ) { char e_name[ITEM_NAME_LENGTH*2+1]; const char *bonus = NULL; @@ -67,7 +67,7 @@ int db2sql(config_setting_t *entry, int n, const char *source) { // name_english SQL->EscapeString(NULL, e_name, it->name); StrBuf->Printf(&buf, "'%s',", e_name); - + // name_japanese SQL->EscapeString(NULL, e_name, it->jname); StrBuf->Printf(&buf, "'%s',", e_name); @@ -200,7 +200,7 @@ int db2sql(config_setting_t *entry, int n, const char *source) { SQL->EscapeString(NULL, tosql.buf[0].p, str); } StrBuf->Printf(&buf, "'%s',", it->script?tosql.buf[0].p:""); - + // equip_script if (it->equip_script) { libconfig->setting_lookup_string(entry, "OnEquipScript", &bonus); @@ -290,56 +290,56 @@ void do_db2sql(void) { ShowInfo("db2sql: this should not be used with 'db_use_sql_item_db' enabled, skipping...\n"); return; } - + /* link */ itemdb_readdb_libconfig_sub = itemdb->readdb_libconfig_sub; itemdb->readdb_libconfig_sub = db2sql; /* */ - + if ((tosql.fp = fopen("sql-files/item_db_re.sql", "wt+")) == NULL) { ShowError("itemdb_tosql: File not found \"%s\".\n", "sql-files/item_db_re.sql"); return; - } - + } + tosql.db_name = map->item_db_re_db; totable(); - + memset(&tosql.buf, 0, sizeof(tosql.buf) ); - + itemdb->clear(false); itemdb->readdb_libconfig("re/item_db.conf"); - + fclose(tosql.fp); - + if ((tosql.fp = fopen("sql-files/item_db.sql", "wt+")) == NULL) { ShowError("itemdb_tosql: File not found \"%s\".\n", "sql-files/item_db.sql"); return; - } - + } + tosql.db_name = map->item_db_db; totable(); - + itemdb->clear(false); itemdb->readdb_libconfig("pre-re/item_db.conf"); - + fclose(tosql.fp); - + if ((tosql.fp = fopen("sql-files/item_db2.sql", "wt+")) == NULL) { ShowError("itemdb_tosql: File not found \"%s\".\n", "sql-files/item_db2.sql"); return; - } - + } + tosql.db_name = map->item_db2_db; totable(); - + itemdb->clear(false); itemdb->readdb_libconfig("item_db2.conf"); - + fclose(tosql.fp); - + /* unlink */ itemdb->readdb_libconfig_sub = itemdb_readdb_libconfig_sub; - + if( tosql.buf[0].p ) aFree(tosql.buf[0].p); if( tosql.buf[1].p ) aFree(tosql.buf[1].p); if( tosql.buf[2].p ) aFree(tosql.buf[2].p); @@ -359,7 +359,7 @@ HPExport void server_preinit (void) { iMalloc = GET_SYMBOL("iMalloc"); libconfig = GET_SYMBOL("libconfig"); StrBuf = GET_SYMBOL("StrBuf"); - + addArg("--db2sql",false,db2sql_arg,NULL); } HPExport void plugin_init (void) { diff --git a/src/plugins/dbghelpplug.c b/src/plugins/dbghelpplug.c index d121e9492..bf43c0b23 100644 --- a/src/plugins/dbghelpplug.c +++ b/src/plugins/dbghelpplug.c @@ -44,65 +44,65 @@ HPExport struct hplugin_info pinfo = { #ifdef _NO_CVCONST_H typedef enum _BasicType { - btNoType = 0, - btVoid = 1, - btChar = 2, - btWChar = 3, - btInt = 6, - btUInt = 7, - btFloat = 8, - btBCD = 9, - btBool = 10, - btLong = 13, - btULong = 14, - btCurrency = 25, - btDate = 26, - btVariant = 27, - btComplex = 28, - btBit = 29, - btBSTR = 30, - btHresult = 31 + btNoType = 0, + btVoid = 1, + btChar = 2, + btWChar = 3, + btInt = 6, + btUInt = 7, + btFloat = 8, + btBCD = 9, + btBool = 10, + btLong = 13, + btULong = 14, + btCurrency = 25, + btDate = 26, + btVariant = 27, + btComplex = 28, + btBit = 29, + btBSTR = 30, + btHresult = 31 } BasicType; typedef enum _UdtKind { - UdtStruct, - UdtClass, - UdtUnion + UdtStruct, + UdtClass, + UdtUnion } UdtKind; /* typedef enum _SymTag { - SymTagNull = 0, - SymTagExe = 1, - SymTagCompiland = 2, - SymTagCompilandDetails = 3, - SymTagCompilandEnv = 4, - SymTagFunction = 5, - SymTagBlock = 6, - SymTagData = 7, - SymTagAnnotation = 8, - SymTagLabel = 9, - SymTagPublicSymbol = 10, - SymTagUDT = 11, - SymTagEnum = 12, - SymTagFunctionType = 13, - SymTagPointerType = 14, - SymTagArrayType = 15, - SymTagBaseType = 16, - SymTagTypedef = 17, - SymTagBaseClass = 18, - SymTagFriend = 19, - SymTagFunctionArgType = 20, - SymTagFuncDebugStart = 21, - SymTagFuncDebugEnd = 22, - SymTagUsingNamespace = 23, - SymTagVTableShape = 24, - SymTagVTable = 25, - SymTagCustom = 26, - SymTagThunk = 27, - SymTagCustomType = 28, - SymTagManagedType = 29, - SymTagDimension = 30 + SymTagNull = 0, + SymTagExe = 1, + SymTagCompiland = 2, + SymTagCompilandDetails = 3, + SymTagCompilandEnv = 4, + SymTagFunction = 5, + SymTagBlock = 6, + SymTagData = 7, + SymTagAnnotation = 8, + SymTagLabel = 9, + SymTagPublicSymbol = 10, + SymTagUDT = 11, + SymTagEnum = 12, + SymTagFunctionType = 13, + SymTagPointerType = 14, + SymTagArrayType = 15, + SymTagBaseType = 16, + SymTagTypedef = 17, + SymTagBaseClass = 18, + SymTagFriend = 19, + SymTagFunctionArgType = 20, + SymTagFuncDebugStart = 21, + SymTagFuncDebugEnd = 22, + SymTagUsingNamespace = 23, + SymTagVTableShape = 24, + SymTagVTable = 25, + SymTagCustom = 26, + SymTagThunk = 27, + SymTagCustomType = 28, + SymTagManagedType = 29, + SymTagDimension = 30 } SymTag; */ #endif /* _NO_CVCONST_H */ @@ -429,17 +429,17 @@ Dhp__PrintProcessInfo( fprintf(log_file, "eip=%08x esp=%08x ebp=%08x iopl=%1x %s %s %s %s %s %s %s %s %s %s\n", context->Eip, context->Esp, context->Ebp, - (context->EFlags >> 12) & 3, // IOPL level value - context->EFlags & 0x00100000 ? "vip" : " ", // VIP (virtual interrupt pending) - context->EFlags & 0x00080000 ? "vif" : " ", // VIF (virtual interrupt flag) - context->EFlags & 0x00000800 ? "ov" : "nv", // VIF (virtual interrupt flag) - context->EFlags & 0x00000400 ? "dn" : "up", // OF (overflow flag) - context->EFlags & 0x00000200 ? "ei" : "di", // IF (interrupt enable flag) - context->EFlags & 0x00000080 ? "ng" : "pl", // SF (sign flag) - context->EFlags & 0x00000040 ? "zr" : "nz", // ZF (zero flag) - context->EFlags & 0x00000010 ? "ac" : "na", // AF (aux carry flag) - context->EFlags & 0x00000004 ? "po" : "pe", // PF (parity flag) - context->EFlags & 0x00000001 ? "cy" : "nc"); // CF (carry flag) + (context->EFlags >> 12) & 3, // IOPL level value + context->EFlags & 0x00100000 ? "vip" : " ", // VIP (virtual interrupt pending) + context->EFlags & 0x00080000 ? "vif" : " ", // VIF (virtual interrupt flag) + context->EFlags & 0x00000800 ? "ov" : "nv", // VIF (virtual interrupt flag) + context->EFlags & 0x00000400 ? "dn" : "up", // OF (overflow flag) + context->EFlags & 0x00000200 ? "ei" : "di", // IF (interrupt enable flag) + context->EFlags & 0x00000080 ? "ng" : "pl", // SF (sign flag) + context->EFlags & 0x00000040 ? "zr" : "nz", // ZF (zero flag) + context->EFlags & 0x00000010 ? "ac" : "na", // AF (aux carry flag) + context->EFlags & 0x00000004 ? "po" : "pe", // PF (parity flag) + context->EFlags & 0x00000001 ? "cy" : "nc"); // CF (carry flag) } if( context->ContextFlags & CONTEXT_SEGMENTS ) { @@ -525,9 +525,9 @@ Dhp__PrintTypeName( case btVoid: fprintf(log_file, "void"); break; case btChar: fprintf(log_file, "char"); break; case btWChar: fprintf(log_file, "wchar"); break; - case btULong: fprintf(log_file, "unsigned "); // next + case btULong: fprintf(log_file, "unsigned "); // next case btLong: fprintf(log_file, "long"); break; - case btUInt: fprintf(log_file, "unsigned "); // next + case btUInt: fprintf(log_file, "unsigned "); // next case btInt: if( length == sizeof(char) ) fprintf(log_file, "char"); else if( length == sizeof(short) ) fprintf(log_file, "short"); @@ -870,7 +870,7 @@ Dhp__PrintValueCWideString( } __except( EXCEPTION_EXECUTE_HANDLER ) { - if( length ) Dhp__PrintValueWideChars(log_file, str, length*sizeof(WCHAR), TRUE); // print readable part + if( length ) Dhp__PrintValueWideChars(log_file, str, length*sizeof(WCHAR), TRUE); // print readable part fprintf(log_file, "<invalid memory>"); return; } @@ -901,7 +901,7 @@ Dhp__PrintValueCString( } __except( EXCEPTION_EXECUTE_HANDLER ) { - if( length ) Dhp__PrintValueChars(log_file, str, length*sizeof(char), TRUE); // print readable part + if( length ) Dhp__PrintValueChars(log_file, str, length*sizeof(char), TRUE); // print readable part fprintf(log_file, "<invalid memory>"); return; } @@ -954,7 +954,7 @@ Dhp__PrintDataValue( ULONG i; BYTE b = 0; for( i = 0; i < length; ++i ) - b += p[i]; // add to make sure it's not optimized out in release mode + b += p[i]; // add to make sure it's not optimized out in release mode // Don't continue if there's no valid data if( b == 0 ) { @@ -1091,7 +1091,7 @@ Dhp__PrintDataValue( DWORD i; // count children - if( !SymGetTypeInfo_(hProcess, modBase, typeIndex, TI_GET_CHILDRENCOUNT, &childCount) + if( !SymGetTypeInfo_(hProcess, modBase, typeIndex, TI_GET_CHILDRENCOUNT, &childCount) || !childCount ) { fprintf(log_file, "<no children found>"); Dhp__PrintValueBytes(log_file, (BYTE*)pVariable, length); @@ -1228,28 +1228,27 @@ Dhp__PrintDataInfo( nr_of_var = pInterData->nr_of_var; // Determine the scope and address of the variable - if( pSymInfo->Flags & SYMFLAG_REGREL ) - { + if( pSymInfo->Flags & SYMFLAG_REGREL ) { pVariable = pStackframe->AddrFrame.Offset; pVariable += (DWORD_PTR)pSymInfo->Address; if( pSymInfo->Flags & SYMFLAG_PARAMETER ) - scope = PARAM; // parameter + scope = PARAM; // parameter else if( pSymInfo->Flags & SYMFLAG_LOCAL ) { - scope = LOCAL; // local + scope = LOCAL; // local #if defined(_M_IX86) - if( (LONG64)pSymInfo->Address > 0) scope = PARAM; // parameter as local (bug in DBGHELP 5.1) + if( (LONG64)pSymInfo->Address > 0) scope = PARAM; // parameter as local (bug in DBGHELP 5.1) #endif } } else if( pSymInfo->Flags & SYMFLAG_REGISTER ) { - scope = ( pSymInfo->Flags & SYMFLAG_PARAMETER ? PARAM : LOCAL ); // register, optimized out(?) + scope = ( pSymInfo->Flags & SYMFLAG_PARAMETER ? PARAM : LOCAL ); // register, optimized out(?) } else { pVariable = (DWORD_PTR)pSymInfo->Address; - scope = GLOBAL; // It must be a global variable + scope = GLOBAL; // It must be a global variable } // check if we should to log the variable @@ -1311,7 +1310,7 @@ Dhp__EnumSymbolsCallback( PVOID pData) { if( pSymInfo == NULL ) - return TRUE; // try other symbols + return TRUE; // try other symbols if( pData == NULL ) { @@ -1345,7 +1344,7 @@ Dhp__PrintSourceLine( assert( log_file != NULL ); // generate search paths - strcpy(path, filename); // original path + strcpy(path, filename); // original path p = strrchr(path, '\\'); if( p ) { @@ -1355,15 +1354,15 @@ Dhp__PrintSourceLine( { while( strstr(p+1, "\\src\\") ) p = strstr(p+1, "\\src\\"); - strcat(path, p+1); // last src folder path + strcat(path, p+1); // last src folder path p = strrchr(path, '\\'); memcpy(p, ";\0", 2); } filename = strrchr(filename, '\\')+1; } else - *path = '\0'; // no path - strcat(path, "."); // current directoy + *path = '\0'; // no path + strcat(path, "."); // current directoy // search for file and line if( SearchPathA(path, filename, NULL, MAX_PATH, pathBuffer, NULL) ) @@ -1668,8 +1667,8 @@ Dhp__CreateFiles( char* out_logFileName, char* out_dmpFileName) { -#define LEN_TIMESTAMP 14 // "YYYYMMDDhhmmss" -#define LEN_EXT 4 // ".rpt" or ".dmp" +#define LEN_TIMESTAMP 14 // "YYYYMMDDhhmmss" +#define LEN_EXT 4 // ".rpt" or ".dmp" char baseFileName[MAX_PATH+1]; char timestamp[LEN_TIMESTAMP+1]; FILE* fp; @@ -1682,7 +1681,7 @@ Dhp__CreateFiles( char* pTerm = strrchr(baseFileName, '\\'); if( pTerm == NULL ) pTerm = baseFileName; pTerm = strrchr(pTerm, '.'); - if( pTerm ) *pTerm = '\0'; // remove extension + if( pTerm ) *pTerm = '\0'; // remove extension } else if( GetTempPathA(MAX_PATH-6-LEN_TIMESTAMP-LEN_EXT, baseFileName) ) {// in temp folder @@ -1700,20 +1699,20 @@ Dhp__CreateFiles( strftime(timestamp, sizeof(timestamp), "%Y%m%d%H%M%S", localtime(&now)); #endif timestamp[LEN_TIMESTAMP] = '\0'; - + sprintf(out_logFileName, "%s%s.rpt", baseFileName, timestamp); fp = fopen(out_logFileName, "w"); if( fp == NULL ) - return FALSE; // failed to create log file + return FALSE; // failed to create log file fclose(fp); sprintf(out_dmpFileName, "%s%s.dmp", baseFileName, timestamp); fp = fopen(out_dmpFileName, "w"); if( fp == NULL) - return FALSE; // failed to create dump file + return FALSE; // failed to create dump file fclose(fp); - return TRUE; // success + return TRUE; // success #undef LEN_EXT #undef LEN_TIMESTAMP } diff --git a/src/plugins/sample.c b/src/plugins/sample.c index 84df88e06..03d32b1f3 100644 --- a/src/plugins/sample.c +++ b/src/plugins/sample.c @@ -18,10 +18,10 @@ #include "../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */ HPExport struct hplugin_info pinfo = { - "Sample", // Plugin name - SERVER_TYPE_MAP,// Which server types this plugin works with? - "0.1", // Plugin version - HPM_VERSION, // HPM Version (don't change, macro is automatically updated) + "Sample", // Plugin name + SERVER_TYPE_CHAR|SERVER_TYPE_LOGIN|SERVER_TYPE_MAP,// Which server types this plugin works with? + "0.1", // Plugin version + HPM_VERSION, // HPM Version (don't change, macro is automatically updated) }; ACMD(sample) {//@sample command - 5 params: const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info printf("I'm being run! message -> '%s' by %s\n",message,sd->status.name); @@ -46,20 +46,20 @@ struct sample_data_struct { void sample_packet0f3(int fd) { struct map_session_data *sd = session[fd]->session_data; struct sample_data_struct *data; - + if( !sd ) return;/* socket didn't fully log-in? this packet shouldn't do anything then! */ - + ShowInfo("sample_packet0f3: Hello World! received 0xf3 for '%s', redirecting!\n",sd->status.name); - + /* sample usage of appending data to a socket_data (session[]) entry */ if( !(data = getFromSession(session[fd],0)) ) { CREATE(data,struct sample_data_struct,1); - + data->lastMSGPosition.map = sd->status.last_point.map; data->lastMSGPosition.x = sd->status.last_point.x; data->lastMSGPosition.y = sd->status.last_point.y; data->someNumber = rand()%777; - + ShowInfo("Created Appended session[] data, %d %d %d %d\n",data->lastMSGPosition.map,data->lastMSGPosition.x,data->lastMSGPosition.y,data->someNumber); addToSession(session[fd],data,0,true); } else { @@ -69,16 +69,16 @@ void sample_packet0f3(int fd) { removeFromSession(session[fd],0); } } - + /* sample usage of appending data to a map_session_data (sd) entry */ if( !(data = getFromMSD(sd,0)) ) { CREATE(data,struct sample_data_struct,1); - + data->lastMSGPosition.map = sd->status.last_point.map; data->lastMSGPosition.x = sd->status.last_point.x; data->lastMSGPosition.y = sd->status.last_point.y; data->someNumber = rand()%777; - + ShowInfo("Created Appended map_session_data data, %d %d %d %d\n",data->lastMSGPosition.map,data->lastMSGPosition.x,data->lastMSGPosition.y,data->someNumber); addToMSD(sd,data,0,true); } else { @@ -89,7 +89,6 @@ void sample_packet0f3(int fd) { } } - clif->pGlobalMessage(fd,sd); } int my_pc_dropitem_storage;/* storage var */ @@ -120,7 +119,7 @@ void parse_my_setting(const char *val) { HPExport void plugin_init (void) { char *server_type; char *server_name; - + /* core vars */ server_type = GET_SYMBOL("SERVER_TYPE"); server_name = GET_SYMBOL("SERVER_NAME"); @@ -138,40 +137,40 @@ HPExport void plugin_init (void) { session = GET_SYMBOL("session"); ShowInfo ("Server type is "); - + switch (*server_type) { case SERVER_TYPE_LOGIN: printf ("Login Server\n"); break; case SERVER_TYPE_CHAR: printf ("Char Server\n"); break; case SERVER_TYPE_MAP: printf ("Map Server\n"); break; } - + ShowInfo ("I'm being run from the '%s' filename\n", server_name); - + /* addAtcommand("command-key",command-function) tells map server to call ACMD(sample) when "sample" command is used */ /* - it will print a warning when used on a non-map-server plugin */ addAtcommand("sample",sample);//link our '@sample' command - + /* addScriptCommand("script-command-name","script-command-params-info",script-function) tells map server to call BUILDIN(sample) for the "sample(i)" command */ /* - it will print a warning when used on a non-map-server plugin */ addScriptCommand("sample","i",sample); - + /* addCPCommand("console-command-name",command-function) tells server to call CPCMD(sample) for the 'this is a sample <optional-args>' console call */ /* in "console-command-name" usage of ':' indicates a category, for example 'this:is:a:sample' translates to 'this is a sample', * therefore 'this -> is -> a -> sample', it can be used to aggregate multiple commands under the same category or to append commands to existing categories * categories inherit the special keyword 'help' which prints the subsequent commands, e.g. 'server help' prints all categories and commands under 'server' * therefore 'this help' would inform about 'is (category) -> a (category) -> sample (command)'*/ addCPCommand("this:is:a:sample",sample); - + /* addPacket(packetID,packetLength,packetFunction,packetIncomingPoint) */ /* adds packetID of packetLength (-1 for dynamic length where length is defined in the packet { packetID (2 Byte) , packetLength (2 Byte) , ... }) * to trigger packetFunction in the packetIncomingPoint section ( available points listed in enum HPluginPacketHookingPoints within src/common/HPMi.h ) */ addPacket(0xf3,-1,sample_packet0f3,hpClif_Parse); - + /* in this sample we add a PreHook to pc->dropitem */ /* to identify whether the item being dropped is on amount higher than 1 */ /* if so, it stores the amount on a variable (my_pc_dropitem_storage) and changes the amount to 1 */ addHookPre("pc->dropitem",my_pc_dropitem_pre); - + /* in this sample we add a PostHook to pc->dropitem */ /* if the original pc->dropitem was successful and the amount stored on my_pc_dropitem_storage is higher than 1, */ /* our posthook will display a message to the user about the cap */ @@ -187,7 +186,6 @@ HPExport void server_preinit (void) { } /* run when server is ready (online) */ HPExport void server_online (void) { - } /* run when server is shutting down */ HPExport void plugin_final (void) { |