U3Games

Games | Desarrollo & Soporte => L2 | Sección de Servidores => Lineage => L2 | Implementaciones => Mensaje iniciado por: Swarlog en Jul 27, 2025, 12:04 AM

Título: Proteccion lvl chat
Publicado por: Swarlog en Jul 27, 2025, 12:04 AM
Index: java/com/l2jserver/gameserver/network/clientpackets/Say2.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/Say2.java    (revision 4422)
+++ java/com/l2jserver/gameserver/network/clientpackets/Say2.java    (working copy)
@@ -196,6 +196,13 @@
         if (Config.USE_SAY_FILTER)
             checkText();
         
+       
+        if ((activeChar.getLevel() < 80) && (_type == TRADE || _type == SHOUT || _type == HERO_VOICE))
+        {
+            activeChar.sendMessage("Shout, trade and hero chatting cannot be used until level 80.");
+            return;
+        }
+       
         IChatHandler handler = ChatHandler.getInstance().getChatHandler(_type);
         if (handler != null)
             handler.handleChat(_type, activeChar, _target, _text);