Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revisione 4788)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (copia locale)
@@ -757,6 +757,8 @@
private int _fishy = 0;
private int _fishz = 0;
+ private int consecutiveKillCount = 0;
+ private int consecutivepkCount = 0;
+
private int[] _transformAllowedSkills = {};
private ScheduledFuture<?> _taskRentPet;
private ScheduledFuture<?> _taskWater;
@@ -5318,6 +5320,8 @@
stopFakeDeath(true);
}
+ consecutiveKillCount = 0;
+
if (killer != null)
{
L2PcInstance pk = killer.getActingPlayer();
@@ -5753,6 +5676,14 @@
// Add karma to attacker and increase its PK counter
setPvpKills(getPvpKills() + 1);
updatePvPColor(getPvpKills());
broadcastUserInfo();
+ consecutiveKillCount++;
+ if (consecutiveKillCount == 1)
+ Announcements.getInstance().announceToAll(getName() + " Ah matado a un enemigo!");
+ else if (consecutiveKillCount == 2)
+ Announcements.getInstance().announceToAll(getName() + " Doble Kills!");
+ else if (consecutiveKillCount == 3)
+ Announcements.getInstance().announceToAll(getName() + " Triple Kills!");
+ else if (consecutiveKillCount == 4)
+ Announcements.getInstance().announceToAll(getName() + " Cuadra Kills!");
+ else if (consecutiveKillCount == 5)
+ Announcements.getInstance().announceToAll(getName() + " Penta Kills!");
+ else if (consecutiveKillCount > 5)
+ Announcements.getInstance().announceToAll(getName() + " Is Legendary!");
+
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
sendPacket(new UserInfo(this));
sendPacket(new ExBrExtraUserInfo(this));
@@ -5837 + 5843 @@
if (target instanceof L2PcInstance
&& AntiFeedManager.getInstance().check(this, target))
+ setPkKills(getPkKills() + 1);
+ consecutivepkCount++;
+ if (consecutivepkCount == 1)
+ Announcements.getInstance().announceToAll(getName() + " ha asesinado a un inocente!");
+ else if (consecutivepkCount == 2)
+ Announcements.getInstance().announceToAll(getName() + " esta asesinando a todos a su paso!");
+ else if (consecutivepkCount > 2)
+ Announcements.getInstance().announceToAll(getName() + " esta masacrando con todos!");
Creditos: Kimeraweb, SolidSnake y Fissban