Jump to content
  • 0

Chat Filter


Yaoi

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

how can be excluded when someone is promoting servers?, for example if the user is promoting  yellow- ro, when they type the enter key nothing happends, the messeage doesnt send.

So I would like a script where I can add forbidden words in the normal chat.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  12/05/16
  • Last Seen:  

Ok... so I want to create an installer that will block all swearing... for children.. so that they won't see anyone else swearing .... the manner.txt only blocks what they can/can't say... help please... I wan't it to go by grf reading... so if they have the filter grf ... they won't see swearing... if  they don't they can.... Please help! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

It is useless. If players want to bypass chat filter, they will do it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Yes just like what Functor said, it's useless.

But at least you can reduce it by putting the 'forbidden words' into your manner.txt

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it's possible, but it could be bypass easily if the user want to.

you can try convert it to rathena based on this. I remember back then someone did this already in rathena, but unable to find the topic.

https://github.com/HerculesWS/StaffPlugins/blob/master/shennetsind/manners/manners.c

 

you dont really have a way to block unless you mute everyone of them. O_O

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

thank you all, searching in the forum i found this script, i think it is a little usefull anyway. now im using it,  it works great

 

 

 

prontera,150,180,5    script    restricted_manner    -1,{
OnInit:
    setarray .@bad_word$, "noob", "coward"; // add as your content lol
    .@size_b = getarraysize( .@bad_word$ );
    for( ; .@i < .@size_b; .@i++ )
        defpattern 1, "([^:]+):.*\\s"+ .@bad_word$[.@i] +".$", "warning";
    activatepset 1;
    end;
warning:
    @warning++;
    if ( @warning == 3 ) {
        @warning = 0;
        deltimer strnpcinfo(0) +"::OnDelay";
        atcommand "@mute 5 "+ strcharinfo(0);
    }
    else {
        deltimer strnpcinfo(0) +"::OnDelay";
        addtimer 300000, strnpcinfo(0) +"::OnDelay";
        message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3";
    }
    end;
OnDelay:
    @warning = 0;
    end;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...