summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2016-04-23 17:30:40 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2016-04-23 17:30:40 +0200
commit3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16 (patch)
tree80ec3852cec1b12247360853d38dc7089956f94c /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent242c506676d3a8a42547992241dda7331f982d81 (diff)
downloadhercules-3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16.tar.gz
hercules-3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16.tar.bz2
hercules-3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16.tar.xz
hercules-3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc106
1 files changed, 53 insertions, 53 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index d867c9ed0..ac94bfc4a 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -57863,59 +57863,6 @@ void HP_pc_validate_levels(void) {
}
return;
}
-bool HP_pc_process_chat_message(struct map_session_data *sd, const char *message) {
- int hIndex = 0;
- bool retVal___ = false;
- if( HPMHooks.count.HP_pc_process_chat_message_pre ) {
- bool (*preHookFunc) (struct map_session_data *sd, const char *message);
- *HPMforce_return = false;
- for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_pre; hIndex++ ) {
- preHookFunc = HPMHooks.list.HP_pc_process_chat_message_pre[hIndex].func;
- retVal___ = preHookFunc(sd, message);
- }
- if( *HPMforce_return ) {
- *HPMforce_return = false;
- return retVal___;
- }
- }
- {
- retVal___ = HPMHooks.source.pc.process_chat_message(sd, message);
- }
- if( HPMHooks.count.HP_pc_process_chat_message_post ) {
- bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *message);
- for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_post; hIndex++ ) {
- postHookFunc = HPMHooks.list.HP_pc_process_chat_message_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd, message);
- }
- }
- return retVal___;
-}
-void HP_pc_check_supernovice_call(struct map_session_data *sd, const char *message) {
- int hIndex = 0;
- if( HPMHooks.count.HP_pc_check_supernovice_call_pre ) {
- void (*preHookFunc) (struct map_session_data *sd, const char *message);
- *HPMforce_return = false;
- for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_pre; hIndex++ ) {
- preHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_pre[hIndex].func;
- preHookFunc(sd, message);
- }
- if( *HPMforce_return ) {
- *HPMforce_return = false;
- return;
- }
- }
- {
- HPMHooks.source.pc.check_supernovice_call(sd, message);
- }
- if( HPMHooks.count.HP_pc_check_supernovice_call_post ) {
- void (*postHookFunc) (struct map_session_data *sd, const char *message);
- for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_post; hIndex++ ) {
- postHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_post[hIndex].func;
- postHookFunc(sd, message);
- }
- }
- return;
-}
void HP_pc_autotrade_load(void) {
int hIndex = 0;
if( HPMHooks.count.HP_pc_autotrade_load_pre ) {
@@ -58159,6 +58106,59 @@ int HP_pc_have_magnifier(struct map_session_data *sd) {
}
return retVal___;
}
+bool HP_pc_process_chat_message(struct map_session_data *sd, const char *message) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_pc_process_chat_message_pre ) {
+ bool (*preHookFunc) (struct map_session_data *sd, const char *message);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_pc_process_chat_message_pre[hIndex].func;
+ retVal___ = preHookFunc(sd, message);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.pc.process_chat_message(sd, message);
+ }
+ if( HPMHooks.count.HP_pc_process_chat_message_post ) {
+ bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, const char *message);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_process_chat_message_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_pc_process_chat_message_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, sd, message);
+ }
+ }
+ return retVal___;
+}
+void HP_pc_check_supernovice_call(struct map_session_data *sd, const char *message) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_pc_check_supernovice_call_pre ) {
+ void (*preHookFunc) (struct map_session_data *sd, const char *message);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_pre[hIndex].func;
+ preHookFunc(sd, message);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.pc.check_supernovice_call(sd, message);
+ }
+ if( HPMHooks.count.HP_pc_check_supernovice_call_post ) {
+ void (*postHookFunc) (struct map_session_data *sd, const char *message);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_supernovice_call_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_pc_check_supernovice_call_post[hIndex].func;
+ postHookFunc(sd, message);
+ }
+ }
+ return;
+}
/* pcre_interface */
pcre* HP_libpcre_compile(const char *pattern, int options, const char **errptr, int *erroffset, const unsigned char *tableptr) {
int hIndex = 0;