diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/init.c | 1 | ||||
-rw-r--r-- | src/map/script.c | 6 | ||||
-rw-r--r-- | src/map/script.h | 1 |
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); |