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/atcommand.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/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 10b226257..9ac6d6862 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -807,8 +807,8 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message, int if (!*str)
return AtCommand_None;
- if (map[sd->bl.m].flag.nocommand &&
- (gmlvl > 0? gmlvl:pc_isGM(sd)) < battle_config.gm_skilluncond)
+ if (map[sd->bl.m].nocommand &&
+ (gmlvl > 0? gmlvl:pc_isGM(sd)) < map[sd->bl.m].nocommand)
{ //Command not allowed on this map.
sprintf(atcmd_output, msg_txt(143));
clif_displaymessage(fd, atcmd_output);
@@ -5820,7 +5820,7 @@ int atcommand_mapinfo( clif_displaymessage(fd, atcmd_output);
strcpy(atcmd_output,"Other Flags: ");
- if (map[m_id].flag.nocommand)
+ if (map[m_id].nocommand)
strcat(atcmd_output, "NoCommand | ");
if (map[m_id].flag.nobaseexp)
strcat(atcmd_output, "NoBaseEXP | ");
|