summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-27 18:07:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-27 18:07:52 +0300
commit454c1448e30fe9d8cc2e6bc535921b2f7efd58e2 (patch)
treef3b7e3cf2da964ed5ffd3ebb093de5b7cc002077 /src/emap/init.c
parent828bececcd905903535b1e543a5b1dc1581c250d (diff)
downloadevol-hercules-454c1448e30fe9d8cc2e6bc535921b2f7efd58e2.tar.gz
evol-hercules-454c1448e30fe9d8cc2e6bc535921b2f7efd58e2.tar.bz2
evol-hercules-454c1448e30fe9d8cc2e6bc535921b2f7efd58e2.tar.xz
evol-hercules-454c1448e30fe9d8cc2e6bc535921b2f7efd58e2.zip
Add .lang variable to npc for storing language.
Also add hooks to set/get vars.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 4119702..624a7b8 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -169,6 +169,9 @@ HPExport void plugin_init (void)
addHookPre("unit->can_move", eunit_can_move);
addHookPre("unit->walktoxy", eunit_walktoxy);
addHookPre("mail->invalid_operation", email_invalid_operation);
+ addHookPre("script->set_reg_npc_num", escript_set_reg_npc_num);
+ addHookPre("script->get_val_npc_num", escript_get_val_npcscope_num);
+ addHookPre("script->get_val_ref_num", escript_get_val_npcscope_num);
addHookPre("status->calc_pc_additional", estatus_calc_pc_additional);
addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post);