diff options
author | Emistry Haoyan <Equinox1991@gmail.com> | 2017-08-28 01:12:06 +0800 |
---|---|---|
committer | Emistry Haoyan <Equinox1991@gmail.com> | 2017-10-22 00:15:06 +0800 |
commit | 2c2839c6cfb8e788115aa1858ddfbcf31ad3cd2c (patch) | |
tree | 8fc2bf5e0a3915d1adff34efc01517944acfc894 /src/map/npc.c | |
parent | 7c2f6afe542bf42f1c527877bde082274c473f29 (diff) | |
download | hercules-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/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 6beff2b77..ecf7f878f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -4300,6 +4300,8 @@ const char *npc_parse_mapflag(const char *w1, const char *w2, const char *w3, co map->list[m].flag.reset=state; else if (!strcmpi(w3,"notomb")) map->list[m].flag.notomb=state; + else if (!strcmpi(w3, "noautoloot")) + map->list[m].flag.noautoloot = state; else if (!strcmpi(w3,"adjust_unit_duration")) { int skill_id, k; char skill_name[MAP_ZONE_MAPFLAG_LENGTH], modifier[MAP_ZONE_MAPFLAG_LENGTH]; |