Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Restricciones del chat por nivel

Iniciado por Swarlog, Jul 26, 2025, 11:43 PM

Tema anterior - Siguiente tema

Swarlog

Cambiamos el valor "45" por el deseado y todos aquellos personajes que no alcancen dicho nive no podran utilizar los canales del chat indicados en el código.

Index: com/l2jserver/gameserver/network/clientpackets/Say2.java
===================================================================
--- com/l2jserver/gameserver/network/clientpackets/Say2.java	(revision 10603)
+++ com/l2jserver/gameserver/network/clientpackets/Say2.java	(working copy)
@@ -275,6 +307,12 @@
 		if (Config.USE_SAY_FILTER)
 		{
 			checkText();
+        
+        if ((activeChar.getLevel() < 45) && (_type == TRADE || _type == SHOUT || _type == HERO_VOICE))
+        {
+            activeChar.sendMessage("Shout, trade and hero chatting cannot be used until level 60.");
+            return;
+        }
 		}