diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-17 23:26:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-17 23:26:43 +0300 |
commit | 7966264fdf4271c8b247d572c2eadef88dcaf4b4 (patch) | |
tree | fd05e7c449d5ff883c19283f66a8e8e088a14fec /src/map/init.c | |
parent | 83a2ec502bbe1a8a86ef6361eaf98f38f5d2a653 (diff) | |
download | plugin-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.gz plugin-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.bz2 plugin-7966264fdf4271c8b247d572c2eadef88dcaf4b4.tar.xz plugin-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.c | 2 |
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"); } |