diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2020-03-08 05:18:26 +0800 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-02-14 15:40:16 -0300 |
commit | 46e3a24ef647e5be1e10ae448d6572c93fa6ddf8 (patch) | |
tree | 9ac5a1739187063859bb303fb20ffe988bd84238 /src/map/npc.c | |
parent | 121af65aca1025ef69bbbb1b41a84f500ca815c6 (diff) | |
download | hercules-46e3a24ef647e5be1e10ae448d6572c93fa6ddf8.tar.gz hercules-46e3a24ef647e5be1e10ae448d6572c93fa6ddf8.tar.bz2 hercules-46e3a24ef647e5be1e10ae448d6572c93fa6ddf8.tar.xz hercules-46e3a24ef647e5be1e10ae448d6572c93fa6ddf8.zip |
[TMW2 CHERRYPICK] Add NoPet mapflag
- allow to set nopet mapflag at any maps.
- mapflag to disable pet, and force return to egg.
Original commit d3c24f7d9ae
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 00207a745..d6b18ec9e 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -4810,6 +4810,8 @@ static const char *npc_parse_mapflag(const char *w1, const char *w2, const char 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 if (strcmpi(w3, "nopet") == 0) { + map->list[m].flag.nopet = (state != 0) ? 1 : 0; } else { npc->parse_unknown_mapflag(mapname, w3, w4, start, buffer, filepath, retval); } |