summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-01-01 04:05:58 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-01-01 04:05:58 +0100
commit3bda07c3983ad715009717695702ff8e799e54d7 (patch)
tree5a222e72851803c88428e2db39e7c62d6e4b3723 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parentc2f6086b1969f542459a1b685552d58a4d631f4b (diff)
downloadhercules-3bda07c3983ad715009717695702ff8e799e54d7.tar.gz
hercules-3bda07c3983ad715009717695702ff8e799e54d7.tar.bz2
hercules-3bda07c3983ad715009717695702ff8e799e54d7.tar.xz
hercules-3bda07c3983ad715009717695702ff8e799e54d7.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.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 715c88095..e5aa3bd4a 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -43314,6 +43314,31 @@ void HP_npc_market_delfromsql(struct npc_data *nd, unsigned short index) {
}
return;
}
+void HP_npc_market_delfromsql_sub(const char *npcname, unsigned short index) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_npc_market_delfromsql_sub_pre ) {
+ void (*preHookFunc) (const char *npcname, unsigned short *index);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_sub_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_npc_market_delfromsql_sub_pre[hIndex].func;
+ preHookFunc(npcname, &index);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.npc.market_delfromsql_sub(npcname, index);
+ }
+ if( HPMHooks.count.HP_npc_market_delfromsql_sub_post ) {
+ void (*postHookFunc) (const char *npcname, unsigned short *index);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_market_delfromsql_sub_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_npc_market_delfromsql_sub_post[hIndex].func;
+ postHookFunc(npcname, &index);
+ }
+ }
+ return;
+}
int HP_npc_secure_timeout_timer(int tid, int64 tick, int id, intptr_t data) {
int hIndex = 0;
int retVal___ = 0;