[help]Killing Spree Kills

  • Автор темы Автор темы avatar
  • Дата начала Дата начала

avatar

Путник
Пользователь
Сообщения
6
Розыгрыши
0
Репутация
0
Реакции
1
Баллы
0
Can to help to add this code ?

Код:
### Eclipse Workspace Patch 1.0
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 67)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@-170,6+170,7@@
 import net.sf.l2j.gameserver.network.serverpackets.ChangeWaitType;
 import net.sf.l2j.gameserver.network.serverpackets.CharInfo;
 import net.sf.l2j.gameserver.network.serverpackets.ConfirmDlg;
+import net.sf.l2j.gameserver.network.serverpackets.CreatureSay;
 import net.sf.l2j.gameserver.network.serverpackets.EtcStatusUpdate;
 import net.sf.l2j.gameserver.network.serverpackets.ExAutoSoulShot;
 import net.sf.l2j.gameserver.network.serverpackets.ExDuelUpdateUserInfo;
@@-643,6+644,7@@
  privateint _coupleId =0;
  privateboolean _marryrequest =false;
  privateint _requesterId =0;
+privateintspreeKills =0;

  privatefinalSummonRequest _summonRequest =newSummonRequest();
 
@@-4045,6+4047,8@@
  if(!super.doDie(killer))
  returnfalse;

+spreeKills =0;
+
  Castle castle =null;
  if(getClan()!=null)
  {
@@-4286,6+4290,37@@
  // Add PvP point to attacker.
  setPvpKills(getPvpKills()+1);
 
+                spreeKills++;                        
+                switch(spreeKills)
+                {                  
+                    case2:            
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,0,"[PvP]", getName()+" has scored a DOUBLE KILL!"));
+                    break;
+                        
+                    case3:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,3,"[PvP]", getName()+" has scored a TRIPLE kill!"));
+                    break;
+                      
+                    case5:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,0,"[PvP]", getName()+" has scored a PENTA Kill!"));
+                    break;
+                            
+                    case7:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,3,"[PvP]", getName()+" has scored a MEGA KILL!"));
+                    break;
+                            
+                    case9:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,0,"[PvP]", getName()+" has scored a ULTRA KILL!"));
+                    break;
+                              
+                    case11:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,3,"[PvP]", getName()+" has scored a MONSTER KILL!"));
+                    break;
+                            
+                    case15:
+                       Broadcast.toAllOnlinePlayers(newCreatureSay(0,17,"[PvP]", getName()+" has scored a KILLINGSPREE!"));
+                    break;
+                }
  // Send UserInfo packet to attacker with its Karma and PK Counter
  sendPacket(newUserInfo(this));
  }

me problem is not is code... me problem is where add this code

here ?
protected void doPKPVPManage(Creature killer)


here ?

protected void doPKPVPManage(Creature killer)


where ? can to help plz
 
Назад
Сверху Снизу