Noticias:

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

Menú Principal

Jugadores muertos no pueden hablar

Iniciado por Swarlog, Sep 01, 2022, 12:07 AM

Tema anterior - Siguiente tema

Swarlog

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

Despues de:

if (activeChar.isJailed() && Config.JAIL_DISABLE_CHAT)
Añadir:

if (activeChar.isDead())
{
activeChar.sendMessage("Por mucho que hables nadie te escuchara, recuerda que estas muerto!");
return;
}

Y quedaria algo asi:

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/Say2.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/Say2.java (revision 1132)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/Say2.java (working copy)
@@ -161,6 +161,12 @@
  }
  }
 
+ if (activeChar.isDead())
+ {
+ activeChar.sendMessage("Por mucho que hables nadie te escuchara, recuerda que estas muerto!");
+ return;
+ }
+
  if (!getClient().getFloodProtectors().getSayAction().tryPerformAction("Say2"))
  {
  activeChar.sendMessage("You cannot speak too fast.");