How to tune chat filter - level limit and forbid offensive language

Тема в разделе "[EN] Guides for Lucera2", создана пользователем Deazer, 6 май 2017.

  1. Deazer

    Deazer Разработчик Команда форума

    Path:
    gameserver\config\chatfilters.xml

    Reset of rules without restart of the server (in a game by GM) - //admin > Server > Components - Reload Chat Filter

    2.
    In fact, there are already described all the rules for the minimum level and bad words, etc. But the part is commented out - as an example we take:

    Prohibited for Niewbies chat, limit level, send Warning
    Код:
      <!--
       <ChatFilter>
        <Channels>SHOUT,TRADE,L2FRIEND</Channels>
        <Level>20</Level>
        <Action>WarnMsg</Action>
        <WarnMsg>common.ChattingProhibitedForNiewbies</WarnMsg>
       </ChatFilter>
        -->
    
    What at us has to it will turn out at the exit if we want to establish these rules
    Код:
    <ChatFilter>
      <Channels>SHOUT,TRADE,L2FRIEND</Channels>
      <Level>20</Level>
      <Action>WarnMsg</Action>
      <WarnMsg>common.ChattingProhibitedForNiewbies</WarnMsg>
    </ChatFilter>
    

    Warning message placed <WarnMsg>common.ChattingProhibitedForNiewbies</WarnMsg>

    Path: data/strings/strings_en.properties