diff options
author | Haru <haru@dotalux.com> | 2019-06-02 23:52:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-02 23:52:44 +0200 |
commit | eb0faf2b3ecc294d8247ce9afb81198730d516d2 (patch) | |
tree | 15964fe4890d8fab7f1baa39d4344c05a9b698b0 /src/map/npc.c | |
parent | bfc31c33f7311c2a647ada10eaf88190be18a2c5 (diff) | |
parent | 582336dff2bffba506891a54ecd9360e4fbdd65c (diff) | |
download | hercules-eb0faf2b3ecc294d8247ce9afb81198730d516d2.tar.gz hercules-eb0faf2b3ecc294d8247ce9afb81198730d516d2.tar.bz2 hercules-eb0faf2b3ecc294d8247ce9afb81198730d516d2.tar.xz hercules-eb0faf2b3ecc294d8247ce9afb81198730d516d2.zip |
Merge pull request #2221 from carloshenrq/nostorage
Mapflag nostorage and nogstorage
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 77087d6cb..c7fc7e133 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -4797,6 +4797,10 @@ static const char *npc_parse_mapflag(const char *w1, const char *w2, const char map->list[m].flag.pairship_startable = (state) ? 1 : 0; } else if (!strcmpi(w3, "pairship_endable")) { map->list[m].flag.pairship_endable = (state) ? 1 : 0; + } else if (!strcmpi(w3, "nostorage")) { + map->list[m].flag.nostorage = (state) ? cap_value(atoi(w4), 1, 3) : 0; + } else if (!strcmpi(w3, "nogstorage")) { + map->list[m].flag.nogstorage = (state) ? cap_value(atoi(w4), 1, 3) : 0; } else { npc->parse_unknown_mapflag(mapname, w3, w4, start, buffer, filepath, retval); } |