Noticias:

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

Menú Principal

Quake System PVP

Iniciado por Swarlog, Ago 16, 2022, 02:34 AM

Tema anterior - Siguiente tema

Swarlog

### Eclipse Workspace Patch 1.0
#P l2jserver
Index: L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (revision 4499)
+++ L2J_Server/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
@@ -38,6 +38,7 @@
 
 import com.l2jserver.Config;
 import com.l2jserver.L2DatabaseFactory;
+import com.l2jserver.gameserver.Announcements;
 import com.l2jserver.gameserver.Announcements;
 import com.l2jserver.gameserver.GameTimeController;
 import com.l2jserver.gameserver.GeoData;
@@ -571,6 +572,9 @@
    /** Bitmask used to keep track of one-time/newbie quest rewards*/
    private int _newbie;
   
+    /**Quake System*/
+    private int quakeSystem = 0;   
+   
    private boolean _noble = false;
    private boolean _hero = false;
   
@@ -5485,6 +5489,7 @@
        {
            reviveRequest(this, null, false);
        }
+        quakeSystem = 0;
        return true;
    }
   
@@ -5681,7 +5686,42 @@
        {
            // Add karma to attacker and increase its PK counter
            setPvpKills(getPvpKills() + 1);
-           
+                quakeSystem++;
+               
+                switch(quakeSystem) {
+                    case 4:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");
+                        break;
+                    case 6:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Rampage!");
+                        break;
+                    case 8:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Killing Spree!");
+                        break;
+                    case 10:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Monster Kill!");
+                        break;
+                    case 12:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is Unstoppable!");
+                        break;
+                    case 14:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on an Ultra Kill!");
+                        break;
+                    case 16:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is Godlike");
+                        break;
+                    case 18:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is Wicked Sick!");
+                        break;
+                    case 20:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Ludricrous Kill!");
+                        break;
+                    case 24:
+                        Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit!");
+                        default:
+                            ;
+              }
+             
            // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
            sendPacket(new UserInfo(this));
            sendPacket(new ExBrExtraUserInfo(this));