summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 14:24:26 +0000
committerKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 14:24:26 +0000
commitf1375b9ae3116eb408a962d9b03a5f64df6747f3 (patch)
tree1d604d92fcd06a02203f313d7fed46eb3f2f4da4 /src/map/npc.c
parent66e4865ef4398014c67057e851456df1261c3c66 (diff)
downloadhercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.gz
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.bz2
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.tar.xz
hercules-f1375b9ae3116eb408a962d9b03a5f64df6747f3.zip
* Added 'restricted' mapflag, based on lordalfa patch
- you can set restriction zone on map (see mapflag/restricted.txt) - you can turn off item usage on certain restricted map in item_noequip.txt - you can turn off skill usage on certain restricted map in skill_nocast_db.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5115 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 7042ea9aa..86b4c823c 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2478,6 +2478,11 @@ static int npc_parse_mapflag (char *w1, char *w2, char *w3, char *w4)
else if (strcmpi(w3,"nomvploot")==0) { // Lorky
map[m].flag.nomvploot=1;
}
+ else if (strcmpi(w3,"restricted")==0) { // Komurka
+ map[m].flag.restricted=1;
+ sscanf(w4, "%d", &map[m].zone);
+ map[m].zone = pow(2,map[m].zone+1);
+ }
return 0;
}