summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-17 23:26:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-17 23:26:43 +0300
commit7966264fdf4271c8b247d572c2eadef88dcaf4b4 (patch)
treefd05e7c449d5ff883c19283f66a8e8e088a14fec /src/map/init.c
parent83a2ec502bbe1a8a86ef6361eaf98f38f5d2a653 (diff)
downloadevol-hercules-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.gz
evol-hercules-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.bz2
evol-hercules-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.xz
evol-hercules-7966264fdf4271c8b247d572c2eadef88dcaf4b4.zip
Allow continue npc script execution if distance to npc bigger than limit.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 52c5f58..795a331 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -35,6 +35,7 @@
#include "common/interfaces.h"
#include "map/dummy.h"
+#include "map/npc.h"
#include "map/parse.h"
#include "map/script.h"
#include "map/pc.h"
@@ -121,6 +122,7 @@ HPExport void plugin_init (void)
addPacket(0x7530, 22, map_parse_version, hpClif_Parse);
addHookPre("pc->readparam", epc_readparam_pre);
addHookPre("pc->setregistry", epc_setregistry);
+ addHookPre("npc->checknear", enpc_checknear);
langScriptId = script->add_str("Lang");
}