diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-13 16:11:22 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-13 16:11:22 +0000 |
commit | 8f2296100ab52e631b0bf4e00ed6018d6596bcc0 (patch) | |
tree | 253975de68417dbde54062a3be4511f7c6609de1 /src/map/script.c | |
parent | a73bf03c82495f4ff0fe7c2f757ef20415f9ede5 (diff) | |
download | hercules-8f2296100ab52e631b0bf4e00ed6018d6596bcc0.tar.gz hercules-8f2296100ab52e631b0bf4e00ed6018d6596bcc0.tar.bz2 hercules-8f2296100ab52e631b0bf4e00ed6018d6596bcc0.tar.xz hercules-8f2296100ab52e631b0bf4e00ed6018d6596bcc0.zip |
- Modified the nocommand mapflag so you can specify the GM range that is blocked from using commands (eg: "prontera.gat mapflag nocommand 40" disables commands to characters in the GM range 0~39)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8733 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 4bd8d4186..73bf0d7d0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8317,7 +8317,7 @@ int buildin_setmapflag(struct script_state *st) map[m].flag.restricted=1; break; case MF_NOCOMMAND: - map[m].flag.nocommand=1; + map[m].nocommand = (!val || atoi(val) <= 0) ? 100 : atoi(val); break; case MF_JEXP: map[m].jexp = (!val || atoi(val) < 0) ? 100 : atoi(val); @@ -8461,7 +8461,7 @@ int buildin_removemapflag(struct script_state *st) map[m].flag.restricted=0; break; case MF_NOCOMMAND: - map[m].flag.nocommand=0; + map[m].nocommand=0; break; case MF_JEXP: map[m].jexp=100; |