summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-09 22:05:22 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-09 22:05:22 +0300
commitc95ac0d7e312aade368f7213eafa6476ef2cd3fe (patch)
tree6391aad9062c784f989d126938a4d9710865e3a4 /src/emap/init.c
parentb5c56b1147e6ec93d948c9e5eedcd5d68618b308 (diff)
downloadevol-hercules-c95ac0d7e312aade368f7213eafa6476ef2cd3fe.tar.gz
evol-hercules-c95ac0d7e312aade368f7213eafa6476ef2cd3fe.tar.bz2
evol-hercules-c95ac0d7e312aade368f7213eafa6476ef2cd3fe.tar.xz
evol-hercules-c95ac0d7e312aade368f7213eafa6476ef2cd3fe.zip
Add support for different use actions for items.s20170810
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index ccdc25c..404b0bb 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -206,6 +206,7 @@ HPExport void plugin_init (void)
addPacket(0xb13, -1, map_parse_homun_say, hpClif_Parse);
addPacket(0xb14, 3, map_parse_homun_emote, hpClif_Parse);
addPacket(0xb15, 9, map_parse_homun_dir, hpClif_Parse);
+ addPacket(0xb26, 6, map_clif_parse_useitem2, hpClif_Parse);
addHookPre(atcommand, msgfd, eatcommand_msgfd_pre);
addHookPre(atcommand, msgsd, eatcommand_msgsd_pre);
@@ -275,6 +276,7 @@ HPExport void plugin_init (void)
addHookPre(script, load_translations, escript_load_translations_pre);
addHookPre(script, load_parameters, escript_load_parameters_pre);
addHookPre(script, hardcoded_constants, escript_hardcoded_constants_pre);
+ addHookPre(script, run_use_script, escript_run_use_script_pre);
addHookPre(status, calc_pc_additional, estatus_calc_pc_additional_pre);
addHookPre(status, set_viewdata, estatus_set_viewdata_pre);
addHookPre(homun, gainexp, ehomunculus_gainexp_pre);