View difference between Paste ID: ThP4PKXm and MX1GwTQW
SHOW: | | - or go back to the newest paste.
1
Index: D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
2
===================================================================
3
--- D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 3428)
4
+++ D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)
5
@@ -182,6 +182,7 @@
6
 import net.sf.l2j.gameserver.network.serverpackets.ObservationReturn;
7
 import net.sf.l2j.gameserver.network.serverpackets.PartySmallWindowUpdate;
8
 import net.sf.l2j.gameserver.network.serverpackets.PetInventoryUpdate;
9
+import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
10
 import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListDelete;
11
 import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListUpdate;
12
 import net.sf.l2j.gameserver.network.serverpackets.PrivateStoreListBuy;
13
@@ -5289,6 +5305,8 @@
14
       if (!super.doDie(killer))
15
          return false;
16
       
17
+      spreeKills = 0;
18
+      
19
       if (is-beep-ted())
20
          stopFeed();
21
       synchronized (this)
22
@@ -5333,9 +5351,25 @@
23
                      if ((_clan.isAtWarWith(pk.getClanId()) && pk.getClan().isAtWarWith(_clan.getClanId()))
24
                            || (isInSiege() && pk.isInSiege()))
25
                      {
26
+                        PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0);
27
+                        
28
+                        Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
29
+                        for (L2PcInstance onlinePlayer : pls)
30
+                           if (onlinePlayer.isOnline() == 1)
31
+                           {
32
+                              if (onlinePlayer.getClan() != null)
33
+                              {
34
+                                 if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk)
35
+                                 {
36
+                                    onlinePlayer.sendPacket(_snd);
37
+                                 }
38
+                              }
39
+                           }
40
+                        
41
                         //    when your reputation score is 0 or below, the other clan cannot acquire any reputation points
42
-                        if (getClan().getReputationScore() > 0)
43
+                        if (getClan().getReputationScore() > 0){
44
                            pk.getClan().setReputationScore(pk.getClan().getReputationScore() + Config.REPUTATION_SCORE_PER_KILL, true);
45
+                        }
46
                         //    when the opposing sides reputation score is 0 or below, your clans reputation score does not decrease
47
                         if (pk.getClan().getReputationScore() > 0)
48
                            _clan.setReputationScore(_clan.getReputationScore() - Config.REPUTATION_SCORE_PER_KILL, true);
49
@@ -5616,8 +5650,47 @@
50
      * Increase the pvp kills count and send the info to the player
51
      *
52
      */
53
+   private int spreeKills = 0;
54
     public void increasePvpKills()
55
     {
56
+       spreeKills++;
57
+       
58
+      switch(spreeKills){
59
+       
60
+       case 1:
61
+          PlaySound _snd1 = new PlaySound(1, "firstblood", 0, 0, 0, 0, 0);
62
+          sendPacket(_snd1);
63
+       break;
64
+       
65
+       case 2:
66
+          PlaySound _snd2 = new PlaySound(1, "doublekill", 0, 0, 0, 0, 0);
67
+          sendPacket(_snd2);
68
+       break;
69
+       
70
+       case 3:
71
+          PlaySound _snd3 = new PlaySound(1, "triplekill", 0, 0, 0, 0, 0);
72
+          sendPacket(_snd3);
73
+       break;
74
+       
75
+       case 4:
76
+          PlaySound _snd4 = new PlaySound(1, "megakill", 0, 0, 0, 0, 0);
77
+          sendPacket(_snd4);
78
+       break;
79
+       
80
+       case 5:
81
+          PlaySound _snd5 = new PlaySound(1, "ultrakill", 0, 0, 0, 0, 0);
82
+          sendPacket(_snd5);
83
+       break;
84
+       
85
+       case 10:
86
+          PlaySound _snd10 = new PlaySound(1, "monsterkill", 0, 0, 0, 0, 0);
87
+          sendPacket(_snd10);
88
+       break;
89
+       
90
+       case 15:
91
+          PlaySound _snd15 = new PlaySound(1, "killingspree", 0, 0, 0, 0, 0);
92
+          sendPacket(_snd15);
93
+       break;
94
+         default:
95
+          ;
96
+       }
97
+
98
         // Add karma to attacker and increase its PK counter
99
         setPvpKills(getPvpKills() + 1);
100
 
101
@@ -5669,6 +5742,10 @@
102
         if (getKarma() > (Integer.MAX_VALUE - newKarma))
103
             newKarma = Integer.MAX_VALUE - getKarma();
104
 
105
+        PlaySound _snd = new PlaySound(1, "knife", 0, 0, 0, 0, 0);
106
+      sendPacket(_snd);
107
+      broadcastPacket(_snd);
108
+      
109
         // Add karma to attacker and increase its PK counter
110
         setPkKills(getPkKills() + 1);
111
         setKarma(getKarma() + newKarma);