summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 19:27:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-30 19:27:14 +0300
commit50a97b0ef2a8365d87a8a57047caccb0c050c56b (patch)
treefb16dc736890604e468ed379786f45989763f4dd /src/map/npc.c
parentc3c009a7e2c3ad40048935de0d0538081cf613be (diff)
downloadevol-hercules-50a97b0ef2a8365d87a8a57047caccb0c050c56b.tar.gz
evol-hercules-50a97b0ef2a8365d87a8a57047caccb0c050c56b.tar.bz2
evol-hercules-50a97b0ef2a8365d87a8a57047caccb0c050c56b.tar.xz
evol-hercules-50a97b0ef2a8365d87a8a57047caccb0c050c56b.zip
add map flag what prevent from attacking mobs.
New map flag: nopve
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 62dccfe..8ad68af 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -85,6 +85,13 @@ void enpc_parse_unknown_mapflag(const char *name, char *w3, char *w4, const char
if (data)
data->mask = atoi(w4);
}
+ else if (!strcmpi(w3, "nopve"))
+ {
+ int16 m = map->mapname2mapid(name);
+ struct MapdExt *data = mapd_get(m);
+ if (data)
+ data->flag.nopve = 1;
+ }
else
{
ShowError("npc_parse_mapflag: unrecognized mapflag '%s' in file '%s', line '%d'.\n", w3, filepath, strline(buffer,start-buffer));