summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2017-08-28 01:12:06 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2017-10-22 00:15:06 +0800
commit2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c (patch)
tree8fc2bf5e0a3915d1adff34efc01517944acfc894 /src/map/script.c
parent7c2f6afe542bf42f1c527877bde082274c473f29 (diff)
downloadhercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.gz
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.bz2
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.tar.xz
hercules-2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c.zip
Add NoAutoloot mapflag
- Enable server to disable autoloot settings for certain maps.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 8722fcdbe..d5a05164f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12833,6 +12833,7 @@ BUILDIN(getmapflag)
case MF_RESET: script_pushint(st,map->list[m].flag.reset); break;
case MF_NOTOMB: script_pushint(st,map->list[m].flag.notomb); break;
case MF_NOCASHSHOP: script_pushint(st,map->list[m].flag.nocashshop); break;
+ case MF_NOAUTOLOOT: script_pushint(st, map->list[m].flag.noautoloot); break;
case MF_NOVIEWID: script_pushint(st,map->list[m].flag.noviewid); break;
}
}
@@ -12957,6 +12958,7 @@ BUILDIN(setmapflag) {
case MF_RESET: map->list[m].flag.reset = 1; break;
case MF_NOTOMB: map->list[m].flag.notomb = 1; break;
case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 1; break;
+ case MF_NOAUTOLOOT: map->list[m].flag.noautoloot = 1; break;
case MF_NOVIEWID: map->list[m].flag.noviewid = (val <= 0) ? EQP_NONE : val; break;
}
}
@@ -13044,6 +13046,7 @@ BUILDIN(removemapflag) {
case MF_RESET: map->list[m].flag.reset = 0; break;
case MF_NOTOMB: map->list[m].flag.notomb = 0; break;
case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 0; break;
+ case MF_NOAUTOLOOT: map->list[m].flag.noautoloot = 0; break;
case MF_NOVIEWID: map->list[m].flag.noviewid = EQP_NONE; break;
}
}