diff options
author | shennetsind <ind@henn.et> | 2013-10-19 16:22:46 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-19 16:22:46 -0300 |
commit | d02f9afab959909398e8ebff6ab50186084c68c5 (patch) | |
tree | 248df5dd7cdd816884abcfde30b64181f6488b6c /src/plugins/HPMHooking/HPMHooking.Hooks.inc | |
parent | 93f61040ac281b84c038af72e322a03f60bc6e03 (diff) | |
parent | 448dce82b996930e361038dd5c94dd94a6deffe7 (diff) | |
download | hercules-d02f9afab959909398e8ebff6ab50186084c68c5.tar.gz hercules-d02f9afab959909398e8ebff6ab50186084c68c5.tar.bz2 hercules-d02f9afab959909398e8ebff6ab50186084c68c5.tar.xz hercules-d02f9afab959909398e8ebff6ab50186084c68c5.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Hooks.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index 3d045ece6..9a34af7b4 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -36471,6 +36471,32 @@ void HP_map_delblcell(struct block_list *bl) { } return; } +int HP_map_get_new_bonus_id(void) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_map_get_new_bonus_id_pre ) { + int (*preHookFunc) (void); + for(hIndex = 0; hIndex < HPMHooks.count.HP_map_get_new_bonus_id_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_map_get_new_bonus_id_pre[hIndex].func; + retVal___ = preHookFunc(); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.map.get_new_bonus_id(); + } + if( HPMHooks.count.HP_map_get_new_bonus_id_post ) { + int (*postHookFunc) (int retVal___); + for(hIndex = 0; hIndex < HPMHooks.count.HP_map_get_new_bonus_id_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_map_get_new_bonus_id_post[hIndex].func; + retVal___ = postHookFunc(retVal___); + } + } + return retVal___; +} /* mapit */ struct s_mapiterator* HP_mapit_alloc(enum e_mapitflags flags, enum bl_type types) { int hIndex = 0; |