summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-11-15 06:35:42 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-11-15 06:35:42 +0100
commit0e48eab94453b0778b1e5778dc7ebd8b8f81362a (patch)
treeb2aafe2f7d1635ebf8a18258012beee9c97df02b /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parent1f5161a2bd3c7934373146d8cac3c131536758ba (diff)
downloadhercules-0e48eab94453b0778b1e5778dc7ebd8b8f81362a.tar.gz
hercules-0e48eab94453b0778b1e5778dc7ebd8b8f81362a.tar.bz2
hercules-0e48eab94453b0778b1e5778dc7ebd8b8f81362a.tar.xz
hercules-0e48eab94453b0778b1e5778dc7ebd8b8f81362a.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 b6793f48f..d8b8d65ae 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -16273,6 +16273,31 @@ void HP_clif_show_modifiers(struct map_session_data *sd) {
}
return;
}
+void HP_clif_notify_bounditem(struct map_session_data *sd, unsigned short index) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_clif_notify_bounditem_pre ) {
+ void (*preHookFunc) (struct map_session_data *sd, unsigned short *index);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_bounditem_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_clif_notify_bounditem_pre[hIndex].func;
+ preHookFunc(sd, &index);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.notify_bounditem(sd, index);
+ }
+ if( HPMHooks.count.HP_clif_notify_bounditem_post ) {
+ void (*postHookFunc) (struct map_session_data *sd, unsigned short *index);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_notify_bounditem_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_clif_notify_bounditem_post[hIndex].func;
+ postHookFunc(sd, &index);
+ }
+ }
+ return;
+}
void HP_clif_pWantToConnection(int fd, struct map_session_data *sd) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_pWantToConnection_pre ) {