summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-14 14:21:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-14 14:21:47 +0000
commitc9d4051012392245ec08e1ee25395bd22555e638 (patch)
tree772d7b672d421ed0e07df450d7904d9174f2eb56 /src/map/script.c
parentaf5a9674dc39e941466fe92502d77f1a6861d0c0 (diff)
downloadhercules-c9d4051012392245ec08e1ee25395bd22555e638.tar.gz
hercules-c9d4051012392245ec08e1ee25395bd22555e638.tar.bz2
hercules-c9d4051012392245ec08e1ee25395bd22555e638.tar.xz
hercules-c9d4051012392245ec08e1ee25395bd22555e638.zip
- Characters with Karma may fight amongst them anywhere.
- Added mapflags partylock and guildlock, which lock the state of the parties/guilds on said maps. partylock blocks user party requests to create/invite/leave/kick, while guildlock blocks user guild requests to create/invite/leave/expel/make alliance/make opposition/delete alliance/delete opposition/break git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9216 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a995b12bb..551e286f1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -176,7 +176,7 @@ enum {
MF_NOTRADE,
MF_NOSKILL,
MF_NOWARP,
- MF_FREE,
+ MF_PARTYLOCK,
MF_NOICEWALL,
MF_SNOW,
MF_FOG,
@@ -206,7 +206,8 @@ enum {
MF_NOVENDING,
MF_LOADEVENT,
MF_NOCHAT,
- MF_NOEXPPENALTY
+ MF_NOEXPPENALTY,
+ MF_GUILDLOCK
};
//Reports on the console the src of an script error.
@@ -8378,6 +8379,13 @@ int buildin_setmapflag(struct script_state *st)
break;
case MF_NOCHAT:
map[m].flag.nochat=1;
+ break;
+ case MF_PARTYLOCK:
+ map[m].flag.partylock=1;
+ break;
+ case MF_GUILDLOCK:
+ map[m].flag.guildlock=1;
+ break;
}
}
@@ -8523,6 +8531,13 @@ int buildin_removemapflag(struct script_state *st)
break;
case MF_NOCHAT:
map[m].flag.nochat=0;
+ break;
+ case MF_PARTYLOCK:
+ map[m].flag.partylock=0;
+ break;
+ case MF_GUILDLOCK:
+ map[m].flag.guildlock=0;
+ break;
}
}