diff options
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc | 4 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc | 1 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 27 |
3 files changed, 0 insertions, 32 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc index 89bb847ce..7210920e5 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc @@ -62,8 +62,6 @@ struct { 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_gender_pre; struct HPMHookPoint *HP_chr_mmo_gender_post; struct HPMHookPoint *HP_chr_mmo_chars_fromsql_pre; @@ -1469,8 +1467,6 @@ struct { 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_gender_pre; int HP_chr_mmo_gender_post; int HP_chr_mmo_chars_fromsql_pre; diff --git a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc index f579fb301..fbf332ffb 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc @@ -44,7 +44,6 @@ struct HookingPointData HookingPoints[] = { { 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_gender, HP_chr_mmo_gender) }, { HP_POP(chr->mmo_chars_fromsql, HP_chr_mmo_chars_fromsql) }, { HP_POP(chr->mmo_char_fromsql, HP_chr_mmo_char_fromsql) }, 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; |