diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-21 16:07:50 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-21 16:07:50 +0000 |
commit | 41f1a34c8593a40b4c5dc4178d7138e7e166eea0 (patch) | |
tree | f033ae8a8fe52be55838a5050ae01cbec32d5ba0 /src/map/status.c | |
parent | 74aac1368dae2d2a8ed5e3897a3cafb0fc5a8984 (diff) | |
download | hercules-41f1a34c8593a40b4c5dc4178d7138e7e166eea0.tar.gz hercules-41f1a34c8593a40b4c5dc4178d7138e7e166eea0.tar.bz2 hercules-41f1a34c8593a40b4c5dc4178d7138e7e166eea0.tar.xz hercules-41f1a34c8593a40b4c5dc4178d7138e7e166eea0.zip |
- 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/map/status.c b/src/map/status.c index aea2a91dd..ec18d8569 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1002,7 +1002,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int (sc->data[SC_VOLCANO].timer != -1 && skill_num == WZ_ICEWALL) || (sc->data[SC_ROKISWEIL].timer != -1 && skill_num != BD_ADAPTATION && !(status->mode&MD_BOSS)) || (sc->data[SC_HERMODE].timer != -1 && skill_get_inf(skill_num) & INF_SUPPORT_SKILL) || - sc->data[SC_NOCHAT].timer != -1 + (sc->data[SC_NOCHAT].timer != -1 && sc->data[SC_NOCHAT].val1&MANNER_NOSKILL) ) return 0; @@ -4709,6 +4709,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val case SC_CLOSECONFINE2: //Can't be re-closed in. case SC_MARIONETTE: case SC_MARIONETTE2: + case SC_NOCHAT: return 0; case SC_DANCING: case SC_DEVOTION: @@ -4941,11 +4942,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val clif_changelook(bl,LOOK_CLOTHES_COLOR,vd->cloth_color); break; case SC_NOCHAT: - if(!battle_config.muting_players) { - sd->status.manner = 0; //Zido - return 0; - } tick = 60000; + val1 = battle_config.manner_system; //Mute filters. if (sd) clif_updatestatus(sd,SP_MANNER); break; @@ -5965,11 +5963,8 @@ int status_change_end( struct block_list* bl , int type,int tid ) status_change_end(bl,SC_LONGING,-1); break; case SC_NOCHAT: - if (sd && battle_config.manner_system) - { - //Why set it to 0? Can't we use good manners for something? [Skotlex] -// if (sd->status.manner >= 0) // weeee ^^ [celest] -// sd->status.manner = 0; + if (sd) { + if (sd->status.manner < 0) sd->status.manner = 0; clif_updatestatus(sd,SP_MANNER); } break; @@ -6555,7 +6550,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data) } break; case SC_NOCHAT: - if(sd && battle_config.manner_system){ + if(sd){ sd->status.manner++; clif_updatestatus(sd,SP_MANNER); if (sd->status.manner < 0) |