summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-10-27 18:03:42 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-10-27 18:03:42 +0100
commit319a8aab3556c356293e7674ca702cc3adde6171 (patch)
tree4d4c2e5c59e2153b3528cdb02ab1a48c933c58ea
parenta1c3a358aefa46b37e6745f9c54cc6df14ea6ba4 (diff)
downloadhercules-319a8aab3556c356293e7674ca702cc3adde6171.tar.gz
hercules-319a8aab3556c356293e7674ca702cc3adde6171.tar.bz2
hercules-319a8aab3556c356293e7674ca702cc3adde6171.tar.xz
hercules-319a8aab3556c356293e7674ca702cc3adde6171.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 0dc561c4e..e0d71cd52 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -5816,13 +5816,13 @@ void HP_clif_cart_delitem(struct map_session_data *sd, int n, int amount) {
}
return;
}
-void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, int ok) {
+void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, enum e_EQUIP_ITEM_ACK result) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_equipitemack_pre ) {
- void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, int *ok);
+ void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_EQUIP_ITEM_ACK *result);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equipitemack_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_clif_equipitemack_pre[hIndex].func;
- preHookFunc(sd, &n, &pos, &ok);
+ preHookFunc(sd, &n, &pos, &result);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -5830,24 +5830,24 @@ void HP_clif_equipitemack(struct map_session_data *sd, int n, int pos, int ok) {
}
}
{
- HPMHooks.source.clif.equipitemack(sd, n, pos, ok);
+ HPMHooks.source.clif.equipitemack(sd, n, pos, result);
}
if( HPMHooks.count.HP_clif_equipitemack_post ) {
- void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, int *ok);
+ void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_EQUIP_ITEM_ACK *result);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_equipitemack_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_clif_equipitemack_post[hIndex].func;
- postHookFunc(sd, &n, &pos, &ok);
+ postHookFunc(sd, &n, &pos, &result);
}
}
return;
}
-void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, int ok) {
+void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, enum e_UNEQUIP_ITEM_ACK result) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_unequipitemack_pre ) {
- void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, int *ok);
+ void (*preHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_UNEQUIP_ITEM_ACK *result);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_unequipitemack_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_clif_unequipitemack_pre[hIndex].func;
- preHookFunc(sd, &n, &pos, &ok);
+ preHookFunc(sd, &n, &pos, &result);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -5855,13 +5855,13 @@ void HP_clif_unequipitemack(struct map_session_data *sd, int n, int pos, int ok)
}
}
{
- HPMHooks.source.clif.unequipitemack(sd, n, pos, ok);
+ HPMHooks.source.clif.unequipitemack(sd, n, pos, result);
}
if( HPMHooks.count.HP_clif_unequipitemack_post ) {
- void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, int *ok);
+ void (*postHookFunc) (struct map_session_data *sd, int *n, int *pos, enum e_UNEQUIP_ITEM_ACK *result);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_unequipitemack_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_clif_unequipitemack_post[hIndex].func;
- postHookFunc(sd, &n, &pos, &ok);
+ postHookFunc(sd, &n, &pos, &result);
}
}
return;