summaryrefslogtreecommitdiff
path: root/src/plugins
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
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')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc25
3 files changed, 30 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
index ebc69aae4..0f9dd1e9a 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -1281,6 +1281,8 @@ struct {
struct HPMHookPoint *HP_clif_bank_withdraw_post;
struct HPMHookPoint *HP_clif_show_modifiers_pre;
struct HPMHookPoint *HP_clif_show_modifiers_post;
+ struct HPMHookPoint *HP_clif_notify_bounditem_pre;
+ struct HPMHookPoint *HP_clif_notify_bounditem_post;
struct HPMHookPoint *HP_clif_pWantToConnection_pre;
struct HPMHookPoint *HP_clif_pWantToConnection_post;
struct HPMHookPoint *HP_clif_pLoadEndAck_pre;
@@ -6232,6 +6234,8 @@ struct {
int HP_clif_bank_withdraw_post;
int HP_clif_show_modifiers_pre;
int HP_clif_show_modifiers_post;
+ int HP_clif_notify_bounditem_pre;
+ int HP_clif_notify_bounditem_post;
int HP_clif_pWantToConnection_pre;
int HP_clif_pWantToConnection_post;
int HP_clif_pLoadEndAck_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index 6cd3d4702..f22ed6b32 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -650,6 +650,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(clif->bank_deposit, HP_clif_bank_deposit) },
{ HP_POP(clif->bank_withdraw, HP_clif_bank_withdraw) },
{ HP_POP(clif->show_modifiers, HP_clif_show_modifiers) },
+ { HP_POP(clif->notify_bounditem, HP_clif_notify_bounditem) },
{ HP_POP(clif->pWantToConnection, HP_clif_pWantToConnection) },
{ HP_POP(clif->pLoadEndAck, HP_clif_pLoadEndAck) },
{ HP_POP(clif->pTickSend, HP_clif_pTickSend) },
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 ) {