summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-09-21 06:15:44 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-09-21 06:15:44 +0200
commit5f11a4f710216e4abefaf6b4ffb032b3a62bfce1 (patch)
tree4543fe7aba08b0c9330011111833bb89cb6f83de /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parentff787408bcc523ebd4b7919db65423f741351664 (diff)
downloadhercules-5f11a4f710216e4abefaf6b4ffb032b3a62bfce1.tar.gz
hercules-5f11a4f710216e4abefaf6b4ffb032b3a62bfce1.tar.bz2
hercules-5f11a4f710216e4abefaf6b4ffb032b3a62bfce1.tar.xz
hercules-5f11a4f710216e4abefaf6b4ffb032b3a62bfce1.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 8f209fe5c..4cc8bbf18 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -12937,6 +12937,32 @@ void HP_clif_partyinvitationstate(struct map_session_data *sd) {
}
return;
}
+void HP_clif_PartyLeaderChanged(struct map_session_data *sd, int prev_leader_aid, int new_leader_aid) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_clif_PartyLeaderChanged_pre ) {
+ void (*preHookFunc) (struct map_session_data *sd, int *prev_leader_aid, int *new_leader_aid);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyLeaderChanged_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_clif_PartyLeaderChanged_pre[hIndex].func;
+ preHookFunc(sd, &prev_leader_aid, &new_leader_aid);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.clif.PartyLeaderChanged(sd, prev_leader_aid, new_leader_aid);
+ }
+ if( HPMHooks.count.HP_clif_PartyLeaderChanged_post ) {
+ void (*postHookFunc) (struct map_session_data *sd, int *prev_leader_aid, int *new_leader_aid);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_PartyLeaderChanged_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_clif_PartyLeaderChanged_post[hIndex].func;
+ postHookFunc(sd, &prev_leader_aid, &new_leader_aid);
+ }
+ }
+ return;
+}
void HP_clif_guild_created(struct map_session_data *sd, int flag) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_guild_created_pre ) {