- 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://svn.code.sf.net/p/rathena/svn/trunk@8733 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-09-13 16:11:22 +00:00
parent c06808095d
commit 84f86fa96e
6 changed files with 18 additions and 9 deletions

View File

@@ -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;