summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-06-18 05:10:35 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-06-18 05:10:35 +0200
commit76381fade4f45e7b9437966254355920765f74d3 (patch)
tree5a49bfc3295715cefa3b896221229503a4fbc745 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parentc924056673e213847ea2ff9ed04cb5f42ae40104 (diff)
downloadhercules-76381fade4f45e7b9437966254355920765f74d3.tar.gz
hercules-76381fade4f45e7b9437966254355920765f74d3.tar.bz2
hercules-76381fade4f45e7b9437966254355920765f74d3.tar.xz
hercules-76381fade4f45e7b9437966254355920765f74d3.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index f5e4b5cb0..96b9718dc 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -64575,6 +64575,32 @@ int HP_status_get_matk(struct block_list *src, int flag) {
}
return retVal___;
}
+void HP_status_update_matk(struct block_list *bl) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_status_update_matk_pre ) {
+ void (*preHookFunc) (struct block_list *bl);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_status_update_matk_pre[hIndex].func;
+ preHookFunc(bl);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.status.update_matk(bl);
+ }
+ if( HPMHooks.count.HP_status_update_matk_post ) {
+ void (*postHookFunc) (struct block_list *bl);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_status_update_matk_post[hIndex].func;
+ postHookFunc(bl);
+ }
+ }
+ return;
+}
int HP_status_readdb(void) {
int hIndex = 0;
int retVal___ = 0;