From 7966264fdf4271c8b247d572c2eadef88dcaf4b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Nov 2014 23:26:43 +0300 Subject: Allow continue npc script execution if distance to npc bigger than limit. --- src/map/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/init.c') 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"); } -- cgit v1.2.3-60-g2f50