summaryrefslogtreecommitdiff
path: root/src/map/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-28 12:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-28 12:55:55 +0300
commitb3bed3c6c764cae9706be429ea0222cad38e2e43 (patch)
treed8dbdd8595fd1c42f3e388385b0430b0a40fb8a1 /src/map/init.c
parent833e59fee3e6538863ef7277d7b679fb9f2fe750 (diff)
downloadevol-hercules-b3bed3c6c764cae9706be429ea0222cad38e2e43.tar.gz
evol-hercules-b3bed3c6c764cae9706be429ea0222cad38e2e43.tar.bz2
evol-hercules-b3bed3c6c764cae9706be429ea0222cad38e2e43.tar.xz
evol-hercules-b3bed3c6c764cae9706be429ea0222cad38e2e43.zip
add map mask and script functions for manipulate with it.
New script functions: setmapmask - set new map mask. addmapmask - add new map mask to current mask. removemapmask - remove new mask from current mask. getmapmask - return current map mask.
Diffstat (limited to 'src/map/init.c')
-rw-r--r--src/map/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/init.c b/src/map/init.c
index cd0a5ed..019f53c 100644
--- a/src/map/init.c
+++ b/src/map/init.c
@@ -74,6 +74,10 @@ HPExport void plugin_init (void)
addScriptCommand("rif", "is*", rif);
addScriptCommand("countitemcolor", "v*", countItemColor);
addScriptCommand("misceffect", "i*", miscEffect);
+ addScriptCommand("setmapmask", "si", setMapMask);
+ addScriptCommand("addmapmask", "si", addMapMask);
+ addScriptCommand("removemapmask", "si", removeMapMask);
+ addScriptCommand("getmapmask", "s", getMapMask);
do_init_langs();