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

    • We’re not trying to be “Reborn” or anyone else and you have copy the server concept,the reborn website,the reborn logo,the reborn community board html,lol trash
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • SOCNET is a universal service that combines a digital goods store, an SMM panel, a Telegram bot for purchasing Telegram Stars and a Telegram bot for renting virtual numbers. Here you will find accounts for TikTok, Instagram, Reddit, Twitter, Telegram, Facebook, LinkedIn, WhatsApp, SnapChat, YouTube, Google, Discord, email (Outlook, Hotmail, Gmail, Rambler, Firstmail and others), proxies, virtual servers, advertising accounts, access to ChatGPT 5, gift cards and premium subscriptions to numerous services — and all this at the best prices!   SOCNET STARS is a service that helps you quickly and profitably purchase Telegram Stars and subscribe to Telegram Premium. Using our Telegram bot you can buy Telegram Stars at the lowest prices on the market and use them to pay for gifts, reactions, donations and other features inside Telegram.   Our bot also features a NEW gaming feature — gift slots, where users can win valuable prizes: Telegram gifts, bonuses from our partners and the SOCNET company, stars and premium subscriptions. The game mechanics are completely transparent: no tricks, only real luck decides. You can try it at any time — bets start from just 1 ruble. We also provide the opportunity for a one-time free spin!   Available payment methods: LOLZTEAM, Crypto Bot, Cryptocurrency, Bank cards and SBP ⭐ Our online store ⭐ SOCNET.STORE ⭐ Telegram store ⭐ SOCNET.SHOP ⭐ Our SMM Panel for social media promotion ⭐ SOCNET.PRO ⭐ Our Telegram bot for purchasing Telegram Stars ⭐ SOCNET.CC ⭐ Our SMS Service ⭐ SOCNET.APP ✅ News resources: ➡ Telegram channel ➡ WhatsApp channel ➡ Discord server ✅ Contacts and support: ➡ Telegram support ➡ WhatsApp support ➡ Discord support: socnet_support ➡ Email support: help@socnet.pro We have been operating for a long time and have gathered a huge list of reviews about our work! Our huge list of positive and honest reviews is presented on our website! ⭐We invite you to COOPERATE and EARN with us ⭐ Want to sell your product or service in our stores and make money? Become our partner or suggest mutually beneficial cooperation? You can contact us via the CONTACTS listed in this topic. If you have any questions or problems, our fast customer support is ready to respond to your requests! Refunds for a service that does not fully meet the requirements or quality are issued only if a guarantee and warranty period were specified in the product description. In all other cases, refunds for the service will not be fully processed or issued! By purchasing such a service, you automatically agree to our refund policy for non-provided services! We currently accept Any type of cryptocurrency (Cryptomus, Binance Pay, CryptoBot), any bank cards (VISA, Mastercard, MIR Pay, SBP), LolzTeam Market, Wise, Revolut, Paypal Friends&Families. We value every customer and provide replacements for invalid accounts and services through our contact methods!
    • ⚔️✨ Lineage II Harmony – H5 300x ✨⚔️ A brand-new high-rate experience built for both PvP lovers and hardcore farmers. Join the battlefield and dominate your way to the top! [Website]( https://l2harmony.com/ ) [Discord]( https://discord.com/invite/RwCGKyXY6d ) 📅 Important Dates 🧪 Open Beta: 09.05 🚀 Grand Opening: 16.05 Get ready to test, prepare, and conquer from day one! 🔥 Server Information EXP: x300 SP: x200 Adena: x100 Augmentation Rates: NG Skill: 1% Mid Skill: 2% High Skill: 5% Top Skill: 7% Safe Enchant: +6 Max Enchant: +16 (progressive stages) Interface: Emudev 🏪 Core Features Automatic Donator Items available in Web Shop Free GK / Buffer / GM Shop in all towns + Alt+B Element System: Stage I: Level 4 Stones Stage II+: Level 7 Crystals 100% Element Chance Instant Level 85 on start Advanced Cancel System (buffs return after 10 seconds) ⚔️ PvP & Events TVT (Team vs Team) Capture The Flag Domination Mode Deathmatch Hunting Grounds Unique Balanced PvP Zones 💫 Buff System Buff Slots: 31 + 4 Songs/Dances: 15 Full Buff Profiles via Alt+B (macro support) Auto Skill Learning Auto CP/HP/MP: .acp 🏹 Subclass System Subclass available via NPC Start Subclass Level: 85 Certification via Community System 💰 Economy System Currencies: Adena + PvP Trophy Balanced farming & PvP-driven economy Fame Rate: x1 (dynamic system) Raid Boss Rate: x1.3 (dynamic system) ☠️ Raid Bosses Epic Jewelry Bosses with GM Shop drops Exclusive Epic Boss rewards Chaotic Zones include all Epic Boss spawns ⚔️ Olympiad System Max Enchant: +6 Time: 18:00 – 00:00 (GMT -3) Weekly cycle Updated Olympiad Shop Oly Bind System: 2 characters / week 💎 Advanced Stones System Diamond: HP bonus (200 → 600) Garnet: Resist bonus (2% → 6%) Jade: Atk/Matk Speed (+10 → +90) Pearl: CP bonus (200 → 600) Ruby: P.ATK bonus (50 → 250) Sapphire: M.ATK bonus (75 → 350) ☀️ Harmony Bracelet Increases PvP/Skill/Physical damage by 1–5% per level 🌑 Cloak System Fighter Cloak P.ATK + reuse reduction scaling up to Level 3 Mage Cloak M.ATK + reuse reduction scaling up to Level 3 Support Cloak P.Def / M.Def + reuse reduction Available only for: Cardinal, Hierophant, Eva Saint, Shilien Saint, Dominator, Doomcryer, Judicator ⭐ Premium Account Benefits EXP / SP / Adena: x2 Drop Rate: x2 up to 100% bonus  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..