Noticias:

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

Menú Principal

Mensajes PvP Kill

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

Tema anterior - Siguiente tema

Swarlog

Index: java/com/l2jserver/Config.java
============================================================
+ public static boolean SHOW_PVP_KILL_MESSAGE;

============================================================
+ SHOW_PVP_KILL_MESSAGE = Boolean.parseBoolean(L2jLivePvPSettings.getProperty("ShowPvPKillMessage", "False"));

Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
============================================================
+import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;

============================================================
  public void onKillUpdatePvPKarma(L2Character target)
  {
+ if (Config.SHOW_PVP_KILL_MESSAGE)
+ {
+ sendPacket(new ExShowScreenMessage("You have Killed: "+ target.getName() + ".", 10000));
+ }
+
============================================================
  public void increasePvpKills(L2Character target)
  {
+ if (Config.SHOW_PVP_KILL_MESSAGE)
+ {
+ sendPacket(new ExShowScreenMessage("You have Killed: "+ target.getName() + ".", 10000));
+ }
+
============================================================
  public void increasePkKillsAndKarma(L2Character target)
  {
+ if (Config.SHOW_PVP_KILL_MESSAGE)
+ {
+ sendPacket(new ExShowScreenMessage("You have Killed: "+ target.getName() + ".", 10000));
+ }
+

Index: java/config/L2jLive/PvP.properties
============================================================
+# Show PvP Kill Message. By K4N4BS @ L2jLive.
+# When a player kill other Player (PvP or PK)
+# He will get a Message: "You have Killed: XXXXX."
+# Default: False
+ShowPvPKillMessage = False