From 359730d16f0444da91d678302260a903b18be607 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 31 Dec 2014 23:32:06 +0300 Subject: add script function what return current map name. New script function: getmapname --- src/map/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/init.c') diff --git a/src/map/init.c b/src/map/init.c index 94e57b0..8a09c3d 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -92,6 +92,8 @@ HPExport void plugin_init (void) addScriptCommand("clear", "", clear); addScriptCommand("changemusic", "ss", changeMusic); addScriptCommand("setnpcdialogtitle", "s", setNpcDialogTitle); + addScriptCommand("getmapname", "", getMapName); + do_init_langs(); -- cgit v1.2.3-70-g09d2