From d214e16b4875f2be40c817f609d940a6ff5ef088 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 3 Mar 2006 14:38:13 +0000 Subject: - 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 --- src/map/atcommand.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/atcommand.c') 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: "); -- cgit v1.2.3-60-g2f50