From 41f1a34c8593a40b4c5dc4178d7138e7e166eea0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 21 Aug 2006 16:07:50 +0000 Subject: - Removed config setting "muting_players", and expanded the manner_system config to specify how having negative manner (mute) affects a player (see battle/misc.conf). - Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode, if 2 is used, it makes killing players give you a loss of 5 manner points. - Fixed WS_WEAPONREFINE always failing when at less than job 50. - Fixed a compilation warning in char-txt/int_homun.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8402 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 27 ++++++--------------------- src/map/battle.c | 1 - src/map/battle.h | 1 - src/map/clif.c | 40 +++++++++++++++++++--------------------- src/map/mercenary.c | 4 ++-- src/map/pc.c | 7 +++---- src/map/skill.c | 11 ++++++----- src/map/status.c | 17 ++++++----------- src/map/status.h | 7 +++++++ 9 files changed, 49 insertions(+), 66 deletions(-) (limited to 'src/map') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index c18a94425..4e372d633 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -788,8 +788,7 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message, int nullpo_retr(AtCommand_None, sd); - if (!battle_config.allow_atcommand_when_mute && - sd->sc.count && sd->sc.data[SC_NOCHAT].timer != -1) { + if (sd->sc.count && sd->sc.data[SC_NOCHAT].timer != -1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCOMMAND) { return AtCommand_Unknown; } @@ -8473,7 +8472,8 @@ atcommand_pettalk( return -1; if (sd->sc.count && //no "chatting" while muted. - (sd->sc.data[SC_BERSERK].timer!=-1 || sd->sc.data[SC_NOCHAT].timer != -1)) + (sd->sc.data[SC_BERSERK].timer!=-1 || + (sd->sc.data[SC_NOCHAT].timer != -1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT))) return -1; if (sscanf(message, "%99[^\n]", mes) < 1) @@ -8718,17 +8718,11 @@ int atcommand_unmute( struct map_session_data *pl_sd = NULL; nullpo_retr(-1, sd); - if(!battle_config.muting_players) { - clif_displaymessage(fd, "Please enable the muting system before using it."); - return 0; - } - if (!message || !*message) return -1; if((pl_sd=map_nick2sd((char *) message)) != NULL) { if(pl_sd->sc.data[SC_NOCHAT].timer!=-1) { - pl_sd->status.manner = 0; // have to set to 0 first [celest] status_change_end(&pl_sd->bl,SC_NOCHAT,-1); clif_displaymessage(sd->fd,"Player unmuted"); } @@ -8794,11 +8788,6 @@ int atcommand_mute( int manner; nullpo_retr(-1, sd); - if(!battle_config.muting_players) { - clif_displaymessage(fd, "Please enable the muting system before using it."); - return 0; - } - if (!message || !*message || sscanf(message, "%d %23[^\n]", &manner, atcmd_player_name) < 1) { clif_displaymessage(fd, "Usage: @mute