summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-18 17:52:51 -0300
committershennetsind <ind@henn.et>2013-10-18 17:52:51 -0300
commitcd780e51999c6efa1084e6b41ba0efcaaa347b9e (patch)
tree9dff5abb461621d2176272767fb2a95ffeb72d7d /src/common
parent6053c8d3d8f8fe27e4ab53a29ef20688e2ca62b0 (diff)
downloadhercules-cd780e51999c6efa1084e6b41ba0efcaaa347b9e.tar.gz
hercules-cd780e51999c6efa1084e6b41ba0efcaaa347b9e.tar.bz2
hercules-cd780e51999c6efa1084e6b41ba0efcaaa347b9e.tar.xz
hercules-cd780e51999c6efa1084e6b41ba0efcaaa347b9e.zip
Minor HPM Update
Attempting to hook to a unknown hooking point will now display a message. Added support for item bonuses Check https://github.com/HerculesWS/StaffPlugins/tree/master/shennetsind/bCoolDownRate for a demonstration. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPM.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index 8be9298f9..e7ab94687 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -471,6 +471,9 @@ bool HPM_AddHook(enum HPluginHookType type, const char *target, void *hook, unsi
/* if not check if a sub-hooking list is available (from the server) and run it by */
if( HPM->addhook_sub && HPM->addhook_sub(type,target,hook,pID) )
return true;
+
+ ShowError("HPM:AddHook: unknown Hooking Point '%s'!\n",target);
+
return false;
}
void HPM_HookStop (const char *func, unsigned int pID) {