From b18a0e350abe20202ba787716feb7b39a23b6de4 Mon Sep 17 00:00:00 2001 From: "Hercules.ws" Date: Thu, 10 Mar 2016 00:38:39 +0100 Subject: HPM Hooks Update Signed-off-by: HerculesWSAPI --- src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 27 ------------------------ 1 file changed, 27 deletions(-) (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc') diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc index 6ede0eb2b..4dcc5dffb 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -555,33 +555,6 @@ int HP_chr_memitemdata_to_sql(const struct item items[], int max, int id, int ta } 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_gender(const struct char_session_data *sd, const struct mmo_charstatus *p, char sex) { int hIndex = 0; int retVal___ = 0; -- cgit v1.2.3-70-g09d2