summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-21 11:29:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-21 11:29:45 +0300
commite9888028a7356af62133a7e6cb8f6c5ea621de65 (patch)
tree97f6564c9b96703f8ebf8ae16d6f96330ddde408 /src/map
parenta2db08ca3b8fa2392ef5d88d66303b64d6a41ec4 (diff)
downloadevol-hercules-e9888028a7356af62133a7e6cb8f6c5ea621de65.tar.gz
evol-hercules-e9888028a7356af62133a7e6cb8f6c5ea621de65.tar.bz2
evol-hercules-e9888028a7356af62133a7e6cb8f6c5ea621de65.tar.xz
evol-hercules-e9888028a7356af62133a7e6cb8f6c5ea621de65.zip
Impliment lg script function.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/init.c1
-rw-r--r--src/map/script.c6
-rw-r--r--src/map/script.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index 4e945d7..204b0a3 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -66,6 +66,7 @@ HPExport void plugin_init (void)
addScriptCommand("shop", "s", shop);
addScriptCommand("getitemlink", "s", getItemLink);
addScriptCommand("l", "s*", l);
+ addScriptCommand("lg", "s*", lg);
addScriptCommandDeprecated("getlang", "", getLang);
addScriptCommandDeprecated("setlang", "i", setLang);
addScriptCommand("requestlang", "v", requestLang);
diff --git a/src/map/script.c b/src/map/script.c
index 7c53e8e..b1e31f2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -31,6 +31,12 @@ BUILDIN(l)
return true;
}
+BUILDIN(lg)
+{
+ format_sub(st, 2);
+ return true;
+}
+
BUILDIN(getClientVersion)
{
getDataReturn(0);
diff --git a/src/map/script.h b/src/map/script.h
index 79fcdc4..fc63764 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -5,6 +5,7 @@
#define EVOL_MAP_SCRIPT
BUILDIN(l);
+BUILDIN(lg);
BUILDIN(getClientVersion);
BUILDIN(getLang);
BUILDIN(setLang);