Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Restricciones del chat por nivel

Iniciado por Swarlog, Ago 19, 2022, 01:40 AM

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;
+        }
  }