diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-05 19:24:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-05 19:24:26 +0300 |
commit | 009f4a01c538c44f15bfec720c6cea2dee249985 (patch) | |
tree | 95191ed4e992499131d262126d840fa1f63e9abc /src/emap/init.c | |
parent | 81a7dd76a7530c46bc2e08977ba6ac5eac81ccb9 (diff) | |
download | plugin-009f4a01c538c44f15bfec720c6cea2dee249985.tar.gz plugin-009f4a01c538c44f15bfec720c6cea2dee249985.tar.bz2 plugin-009f4a01c538c44f15bfec720c6cea2dee249985.tar.xz plugin-009f4a01c538c44f15bfec720c6cea2dee249985.zip |
Allow set get special npc variables from getnpcvariable function.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index f792f0d..3ec6eab 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -181,12 +181,14 @@ HPExport void plugin_init (void) addHookPre("map->gat2cell", emap_gat2cell); addHookPre("map->getcellp", emap_getcellp); addHookPre("map->setgatcell", emap_setgatcell); - addHookPre("script->set_reg_npc_num", eset_reg_npcscope_num); addHookPre("script->get_val_npc_num", eget_val_npcscope_num); addHookPre("script->get_val_ref_num", eget_val_npcscope_num); - addHookPre("script->set_reg_npc_str", eset_reg_npcscope_str); addHookPre("script->get_val_npc_str", eget_val_npcscope_str); addHookPre("script->get_val_ref_str", eget_val_npcscope_str); + addHookPre("script->set_reg_npc_num", eset_reg_npcscope_num); + addHookPre("script->set_reg_ref_num", eset_reg_npcscope_num); + addHookPre("script->set_reg_npc_str", eset_reg_npcscope_str); + addHookPre("script->set_reg_ref_str", eset_reg_npcscope_str); addHookPre("status->calc_pc_additional", estatus_calc_pc_additional); addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post); |