From 6e565a64b6a89e943c95e5b001aadd38727abe01 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Mar 2015 16:08:07 +0300 Subject: map: translate server to client text messages. --- src/map/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/init.c') diff --git a/src/map/init.c b/src/map/init.c index 7635e67..e2834ca 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -36,6 +36,7 @@ #include "common/config.h" #include "common/init.h" +#include "map/atcommand.h" #include "map/clif.h" #include "map/itemdb.h" #include "map/lang.h" @@ -119,6 +120,8 @@ HPExport void plugin_init (void) addPacket(0xb14, 3, map_parse_homun_emote, hpClif_Parse); addPacket(0xb15, 9, map_parse_homun_dir, hpClif_Parse); + addHookPre("atcommand->msgfd", eatcommand_msgfd); + addHookPre("atcommand->msgsd", eatcommand_msgsd); addHookPre("pc->readparam", epc_readparam_pre); addHookPre("pc->setregistry", epc_setregistry); addHookPre("pc->equipitem_pos", epc_equipitem_pos); -- cgit v1.2.3-60-g2f50