summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-14 22:13:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-14 22:13:01 +0300
commitc5bbc349b176c045dab7e9ddea12cb18eee7a176 (patch)
tree8b2a7e4f0fa2640cfae1971511cf263604de1724 /src/map/init.c
parenta9d772ec217d54879183685b92b4790ba8c5185d (diff)
downloadevol-hercules-c5bbc349b176c045dab7e9ddea12cb18eee7a176.tar.gz
evol-hercules-c5bbc349b176c045dab7e9ddea12cb18eee7a176.tar.bz2
evol-hercules-c5bbc349b176c045dab7e9ddea12cb18eee7a176.tar.xz
evol-hercules-c5bbc349b176c045dab7e9ddea12cb18eee7a176.zip
store character language in script variables.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index cb09ae3..c0eef38 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -21,6 +21,8 @@
#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */
+extern int langScriptId;
+
HPExport struct hplugin_info pinfo =
{
"evol_map",
@@ -62,6 +64,9 @@ HPExport void plugin_init (void)
addPacket(0x7530, 22, map_parse_version, hpClif_Parse);
addHookPre("pc->readparam", epc_readparam_pre);
+ addHookPre("pc->setregistry", epc_setregistry);
+
+ langScriptId = script->add_str("Lang");
}
HPExport void server_preinit (void)