Yeah, you're right*, I forgot about spreeKills = 0; in doDie() :P
Here you go fixed code:
### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 224)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -35,6 +35,7 @@
import javolution.util.FastSet;
import net.sf.l2j.Config;
import net.sf.l2j.L2DatabaseFactory;
+import net.sf.l2j.gameserver.Announcements;
import net.sf.l2j.gameserver.GameTimeController;
import net.sf.l2j.gameserver.GeoData;
import net.sf.l2j.gameserver.ItemsAutoDestroy;
@@ -4525,6 +4526,8 @@
if (is-beep-ted())
stopFeed();
+ spreeKills = 0;
+
synchronized (this)
{
if (isFakeDeath())
@@ -4783,8 +4786,38 @@
* Increase the pvp kills count and send the info to the player
*
*/
+ private int spreeKills = 0;
+
public void increasePvpKills()
{
+ spreeKills++;
+
+ switch(spreeKills)
+ {
+ case 1:
+ Announcements.getInstance().announceToAll("" + this.getName()+ " has drawn the first blood!");
+ break;
+
+ case 2:
+ Announcements.getInstance().announceToAll("" + this.getName()+ " has scored a double kill!");
+ break;
+
+ case 3:
+ Announcements.getInstance().announceToAll("" + this.getName()+ " has scored a triple kill!");
+ break;
+
+ default:
+ ;
+ }
+
// Add karma to attacker and increase its PK counter
setPvpKills(getPvpKills() + 1);
* - like always, damn Falcon's eye :D