kyeme 71 Posted July 4, 2013 (edited) Please implement the anti flood system Thank youuuuuuuuuuuuu (The code is not working @latest so please re-code) Credits:Ai4rei/Mirei Index: conf/battle/client.conf===================================================================--- conf/battle/client.conf (revision 14729)+++ conf/battle/client.conf (working copy)@@ -120,6 +120,12 @@ // Clients from 2009 onward support this display_status_timers: yes+// Duration of client's self mute in minutes.+// Note: Do not enable this, if you enabled commands for players,+// because the client sees multiple commands in succession as spam.+// Default: 0 (means disabled)+client_accept_chatdori: 0+ // Randomizes the dice emoticon server-side, to prevent clients from forging // packets for the desired number. (Note 1) client_reshuffle_dice: noIndex: src/map/battle.c===================================================================--- src/map/battle.c (revision 14729)+++ src/map/battle.c (working copy)@@ -4003,6 +4003,7 @@ { "eq_single_target_reflectable", &battle_config.eq_single_target_reflectable, 1, 0, 1, }, { "invincible.nodamage", &battle_config.invincible_nodamage, 0, 0, 1, }, { "mob_slave_keep_target", &battle_config.mob_slave_keep_target, 0, 0, 1, },+ { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX }, { "autospell_check_range", &battle_config.autospell_check_range, 0, 0, 1, }, { "client_reshuffle_dice", &battle_config.client_reshuffle_dice, 0, 0, 1, }, { "client_sort_storage", &battle_config.client_sort_storage, 0, 0, 1, },Index: src/map/battle.h===================================================================--- src/map/battle.h (revision 14729)+++ src/map/battle.h (working copy)@@ -477,6 +477,7 @@ int eq_single_target_reflectable; int invincible_nodamage; int mob_slave_keep_target;+ int client_accept_chatdori; int autospell_check_range; //Enable range check for autospell bonus. [L0ne_W0lf] int client_reshuffle_dice; // Reshuffle /dice int client_sort_storage;Index: src/map/clif.c===================================================================--- src/map/clif.c (revision 14729)+++ src/map/clif.c (working copy)@@ -11545,16 +11545,27 @@ if( type == 0 ) value = 0 - value;- //If type is 2 and the ids don't match, this is a crafted hacked packet!- //Disabled because clients keep self-muting when you give players public @ commands... [Skotlex]- if (type == 2 /* && (pc_isGM(sd) > 0 || sd->bl.id != id)*/)- return;+ if( type == 2 )+ {+ if( !battle_config.client_accept_chatdori )+ {+ return;+ }+ if( pc_isGM(sd) > 0 || sd->bl.id != id )+ {//If type is 2 and the ids don't match, this is a crafted hacked packet!+ return;+ }+ value = battle_config.client_accept_chatdori;+ dstsd = sd;+ }+ else+ {+ dstsd = map_id2sd(id);+ if( dstsd == NULL )+ return;+ }- dstsd = map_id2sd(id);- if( dstsd == NULL )- return;-- if( (level = pc_isGM(sd)) > pc_isGM(dstsd) && level >= get_atcommand_level(atcommand_mute) )+ if( type == 2 || ( (level = pc_isGM(sd)) > pc_isGM(dstsd) && level >= get_atcommand_level(atcommand_mute) ) ) { clif_manner_message(sd, 0); clif_manner_message(dstsd, 5); Edited July 4, 2013 by kyeme Quote Share this post Link to post Share on other sites
hemagx 69 Posted July 4, 2013 Exits in Aegis but in Aegis i don't know how Aegis Falter the flood. Quote Share this post Link to post Share on other sites
Beret 50 Posted July 4, 2013 In iro they did such a system see. https://docs.google.com/document/pub?id=1mCdn2rg2QEZ_t3CrdsFDDpg4K_Imw8TYjdSHSfl-8Ts&pli=1 Quote Share this post Link to post Share on other sites
Napster 5 Posted July 4, 2013 try thishttps://www.dropbox.com/s/n0smooucjg4xubc/client_accept_chatdori.diff 1 kyeme reacted to this Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 4, 2013 (edited) try this https://www.dropbox.com/s/n0smooucjg4xubc/client_accept_chatdori.diff I will try, THANK YOU! Working! Thanks! Edited July 4, 2013 by kyeme Quote Share this post Link to post Share on other sites
mkbu95 34 Posted July 4, 2013 I've seen this somewhere. Is this diff made by Ai4rei? Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 4, 2013 I've seen this somewhere. Is this diff made by Ai4rei? Hmm i dont know xD I just copy the credits from rathena QQfoolsorellina, on 08 Jan 2012 - 15:52, said:I downloaded the diff from EA forum before Credits: Ai4rei/Mirei Quote Share this post Link to post Share on other sites
mkbu95 34 Posted July 4, 2013 Implemented at da064c030d22c0920f74b345ca3118c9204dae2b. 1 kyeme reacted to this Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 5, 2013 Implemented at da064c030d22c0920f74b345ca3118c9204dae2b. Wow so fastttttttttttttttt thank you! btw can you not include commands (valid commands) in auto mute? Possible? Thanks in advance Quote Share this post Link to post Share on other sites
mkbu95 34 Posted July 5, 2013 I prefer to wait for other people to input if they would like it too. But I'd rather not, to keep it official, but we'll know. Quote Share this post Link to post Share on other sites
kyeme 71 Posted July 5, 2013 (edited) I prefer to wait for other people to input if they would like it too. But I'd rather not, to keep it official, but we'll know. Alright It would be nice if we have a settings like group_accept_chatdori: <group_lvl> Edited July 5, 2013 by kyeme Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted July 5, 2013 Implemented at da064c030d22c0920f74b345ca3118c9204dae2b. Do you forgot this line? value = battle_config.client_accept_chatdori; ? Quote Share this post Link to post Share on other sites
Ai4rei 321 Posted July 5, 2013 btw can you not include commands (valid commands) in auto mute? Possible? Thanks in advance Note that the one, who decides the mute, is not the server but your own client. Stuff starting with / is exempted from the filter. 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
mkbu95 34 Posted July 5, 2013 Angelmelody, on 05 Jul 2013 - 01:04, said: mkbu95, on 04 Jul 2013 - 19:37, said: Implemented at da064c030d22c0920f74b345ca3118c9204dae2b. Do you forgot this line? value = battle_config.client_accept_chatdori; ? Fixed, thanks Quote Share this post Link to post Share on other sites
Napster 5 Posted July 5, 2013 Angelmelody, on 05 Jul 2013 - 01:04, said: mkbu95, on 04 Jul 2013 - 19:37, said: Implemented at da064c030d22c0920f74b345ca3118c9204dae2b. Do you forgot this line? value = battle_config.client_accept_chatdori; ? Fixed, thanks and this 1 -> INT_MAX { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX }, Quote Share this post Link to post Share on other sites
kyeme 71 Posted October 30, 2013 I will move this topic in Approved Section since this is already implemented in da064c030d22c0920f74b345ca3118c9204dae2b Thanks to Master mkbu95 and Ai4rei Quote Share this post Link to post Share on other sites