summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d1ad03c..b07f187 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -15,6 +15,8 @@
#include "map/session.h"
#include "map/sessionext.h"
+int langScriptId;
+
int epc_readparam_pre(struct map_session_data* sd, int *type)
{
if (*type == Const_ClientVersion)
@@ -27,3 +29,17 @@ int epc_readparam_pre(struct map_session_data* sd, int *type)
}
return 0;
}
+
+int epc_setregistry(struct map_session_data *sd, int64 *reg, int *val)
+{
+ if (*reg == langScriptId)
+ {
+ struct SessionExt *data = session_get_bysd(sd);
+ if (!data)
+ return 0;
+
+ data->language = *val;
+ }
+
+ return 0;
+}