Jump to content
  • 0

[Help] Quak System Alternative...


Question

Posted

Hello everyone i seach a quake ssytem update.

 

For example when i kill X player on speer i get this in the chat

 

+        	case 4:
+        		 Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");
+        		 break;

 

I want a alternative.

 

When i dead in the chat i can see this

 

THE PLAYER (Player Kill me) stoped the rampage to (my character name) with (number kill i get before dead)

 

### Eclipse Workspace Patch 1.0
#P L2J_CT3
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 3433)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -35,6 +35,7 @@
import javolution.util.FastMap;
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.GmListTable;
@@ -543,9 +544,13 @@
	/** 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;
-
+  
+	
	/** The L2FolkInstance corresponding to the last Folk wich one the player talked. */
	private L2Npc _lastFolkNpc = null;

@@ -5410,6 +5415,7 @@
		{
			reviveRequest(this, null, false);
		}
+		quakeSystem = 0;
		return true;
	}

@@ -5621,6 +5627,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));

 

Thanks you

Recommended Posts

  • 0
Posted

this is wring right :/ cause i get error

quakeSystem++;
        for (L2PcInstance player : L2World.getInstance().getAllPlayers())
        {
            if(target.getSpreeKills() > 4)
               player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills()));

        switch(quakeSystem) {

  • 0
Posted

alright i made it look like this:

quakeSystem++;
              for (L2PcInstance player : L2World.getInstance().getAllPlayers())
              {
                  if(target.getSpreeKills() > 4)
                     player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills()));

        switch(quakeSystem) {
        case 4:
            Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");

                            if(target.getSpreeKills() > 4)
                               player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills()));

but i think i forgot smth cause i still get error :/

  • 0
Posted

Create the method getSpreeKills

public int getSpreeKills()

{

return spreeKills;

}

@@

spreeKills++;

for (L2PcInstance player : L2World.getInstance().getAllPlayers())

{

+ if(target.getSpreeKills() > 4)

+ player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills()));

 

switch(spreeKills)

{

 

 

brb :D I have to go.

Maybe you forgot something

  • 0
Posted

so it should be like this?:

Create the method getSpreeKills
             public int getSpreeKills()
             {
                return spreeKills;
             }
          @@
             quakeSystem++;
             for (L2PcInstance player : L2World.getInstance().getAllPlayers())
             {
                 if(target.getSpreeKills() > 4)
                    player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills()));

       switch(quakeSystem) {
       case 4:
           Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");

                           if(target.getSpreeKills() > 4)
                              player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills()));

afff i'm rly pain in the -beep- :S

  • 0
Posted

com`on dud, use your brain

 

              public int getSpreeKills()

              {

                return quakeSystem;

              }

  • 0
Posted

/offtopic wish it was so easy :/ i ordered a book to learn java. i think its gonna take me some time untill i learn the basics.

 

/ontopic

public int getSpreeKills()
              {
                 return quakeSystem;
              }
              
              quakeSystem++;
              for (L2PcInstance player : L2World.getInstance().getAllPlayers())
              {
                  if(target.getSpreeKills() > 4)
                     player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the rampage to "+target.getName()+" with "+target.getSpreeKills()));

        switch(quakeSystem) {
        case 4:
            Announcements.getInstance().announceToAll("" + this.getName()+ " is Dominating!");

                            if(target.getSpreeKills() > 4)
                               player.sendPacket(new CreatureSay(0, Say2.PARTYROOM_COMMANDER, "", "The player "+getName()+ "stoped the domination to "+target.getName()+" with "+target.getSpreeKills()));

:-\

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 📢 ¡ATENCIÓN JUGADORES DE LINEAGE 2! 📢   ¡L2 Crest Converter ha llegado! El programa creado por PulserX para obtener crests de clan (banderas) que realmente funciona, programado y distribuido de manera gratuita a todo el mundo por su humilde servidor.   ¿Cansado de que el viejo CrestMaker falle y arruine tus imágenes en Windows 10/11? Hemos creado una solución actualizada.   ✅ Optimizado para Windows 10/11 ✅ Convierte PNG/JPG perfectamente ✅ Adiós a las imágenes cuadriculadas   L2 Crest Converter es la herramienta que garantiza que tu crest se vea tal como la diseñaste. Descárgalo y velo en acción aquí: 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE    
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • Dear users! We are happy to announce a major update of our bot! What’s new: Long-term number rental You can now rent virtual numbers for a long period (hours, days, or months)! This is perfect for those who need constant access to a number to receive SMS from various services. Number history A new feature allows you to view all your rented numbers in one place! You can: • See the full history of all numbers (instant and long-term) • View all received SMS codes • Return to active numbers to receive additional SMS • See the status of each number Gift coupon system You can now activate gift coupons directly in the bot! Just go to your profile and click “Activate gift coupon” — your balance will be topped up automatically! Chinese language Full support for the Chinese language has been added! The bot is now available in three languages: Russian, English, and Chinese. Switching languages has become even more convenient. Improved rental process Before purchasing a number, detailed service information is now displayed: • Service name • Ability to receive repeated SMS • Rental duration • Cost This will help you make a more informed decision before renting. Quick rental The “Virtual numbers (SMS)” button has now been renamed to “Quick rental” for greater clarity and convenience. Go to the SMS service
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock