summaryrefslogtreecommitdiff
path: root/src/map/script.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/script.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/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a2a3f1a28..9a4c9c0e5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6533,8 +6533,8 @@ enum { MF_NOMEMO,MF_NOTELEPORT,MF_NOSAVE,MF_NOBRANCH,MF_NOPENALTY,MF_NOZENYPENA
MF_PVP,MF_PVP_NOPARTY,MF_PVP_NOGUILD,MF_GVG,MF_GVG_NOPARTY,MF_NOTRADE,MF_NOSKILL,
MF_NOWARP,MF_NOPVP,MF_NOICEWALL,MF_SNOW,MF_FOG,MF_SAKURA,MF_LEAVES,MF_RAIN,
MF_INDOORS,MF_NOGO,MF_CLOUDS,MF_CLOUDS2,MF_FIREWORKS,MF_GVG_CASTLE,MF_GVG_DUNGEON,MF_NIGHTENABLED,
- MF_NOBASEEXP, MF_NOJOBEXP, MF_NOMOBLOOT, MF_NOMVPLOOT, MF_NORETURN, MF_NOWARPTO, MF_NIGHTMAREDROP
- };
+ MF_NOBASEEXP, MF_NOJOBEXP, MF_NOMOBLOOT, MF_NOMVPLOOT, MF_NORETURN, MF_NOWARPTO, MF_NIGHTMAREDROP,
+ MF_RESTRICTED };
int buildin_setmapflagnosave(struct script_state *st)
{
@@ -6674,6 +6674,9 @@ int buildin_setmapflag(struct script_state *st)
case MF_NIGHTMAREDROP:
map[m].flag.pvp_nightmaredrop=1;
break;
+ case MF_RESTRICTED:
+ map[m].flag.restricted=1;
+ break;
}
}
@@ -6795,6 +6798,9 @@ int buildin_removemapflag(struct script_state *st)
case MF_NIGHTMAREDROP:
map[m].flag.pvp_nightmaredrop=0;
break;
+ case MF_RESTRICTED:
+ map[m].flag.restricted=0;
+ break;
}
}