diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-03 14:38:13 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-03 14:38:13 +0000 |
commit | d214e16b4875f2be40c817f609d940a6ff5ef088 (patch) | |
tree | 52cd02c0d0d6c90dd74d26db0755223f3dc818c9 /src/map/atcommand.c | |
parent | ecfd2c2ae5e714347dd86eba90d2ad051d84e447 (diff) | |
download | hercules-d214e16b4875f2be40c817f609d940a6ff5ef088.tar.gz hercules-d214e16b4875f2be40c817f609d940a6ff5ef088.tar.bz2 hercules-d214e16b4875f2be40c817f609d940a6ff5ef088.tar.xz hercules-d214e16b4875f2be40c817f609d940a6ff5ef088.zip |
- Trick dead now ends on logout
- Added mapflag nocommand which blocks @/# commands unless your gm level is above gm_skill_unconditional's level.
- Fixed weapon scripts not being executed unless the weapon was forged.
- gm_skill_unconditional is now a no/gm-level setting instead of yes/no
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5446 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 782c822ad..95d1efc54 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -767,6 +767,13 @@ 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)
+ { //Command not allowed on this map.
+ sprintf(atcmd_output, msg_table[143]);
+ clif_displaymessage(fd, atcmd_output);
+ return AtCommand_None;
+ }
type = atcommand(sd, gmlvl > 0 ? gmlvl : pc_isGM(sd), str, &info);
if (type != AtCommand_None) {
char command[100];
@@ -5675,6 +5682,9 @@ int atcommand_mapinfo( strcat(atcmd_output, "NoSkill | ");
if (map[m_id].flag.noicewall)
strcat(atcmd_output, "NoIcewall | ");
+ if (map[m_id].flag.nocommand)
+ strcat(atcmd_output, "NoCommand | ");
+
clif_displaymessage(fd, atcmd_output);
strcpy(atcmd_output,"Other Flags: ");
|