Jump to content

[Share]IL Killing Spree Code


Recommended Posts

Index: java/com/l2jhotel/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/com/l2jhotel/gameserver/model/actor/instance/L2PcInstance.java	(revision 5826)
+++java/com/l2jhotel/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -207,6 +207,7 @@
import com.l2jhotel.gameserver.network.serverpackets.TradeStart;
import com.l2jhotel.gameserver.network.serverpackets.UserInfo;
import com.l2jhotel.gameserver.network.serverpackets.ValidateLocation;
+import com.l2jhotel.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jhotel.gameserver.skills.Formulas;
import com.l2jhotel.gameserver.skills.Stats;
import com.l2jhotel.gameserver.skills.effects.EffectForce;

@@ -5271,14 +5296,62 @@
	 * Increase the pvp kills count and send announce
	 *
	 */
+	private int impro = 0;
	public void increasePvpKills()
	{
+		impro++;
+		        
+		       switch(impro){
+		       
+		                case 3:
+   				ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 3 killing spree!", 10000);
+   				activeChar.sendPacket(case5);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 3 without die!");
+   				break;
+   				
+				case 5:
+   				ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);
+   				activeChar.sendPacket(case10);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill without die");
+   				break;
+   				
+				case 10:
+   				ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 10 killing spree!", 10000);
+   				activeChar.sendPacket(case15);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 10 kill without die");
+   				break;
+   				
+				case 15:
+   				ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 15 killing spree!", 10000);
+   				activeChar.sendPacket(case20);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 15 kill without die");
+   				break;
+   				
+				case 20:
+   				ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 20 killing spree!", 10000);
+   				activeChar.sendPacket(case25);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 20 kill without die");
+   				break;
+   				
+				case 25:
+   				ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 25 killing spree!", 10000);
+   				activeChar.sendPacket(case30);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 25 kill without die");
+   				break;
+		          default:
+		           ;
+		        }
+	
+		 
		if ((TvT._started && _inEventTvT) || (DM._started && _inEventDM) || (VIP._started && _inEventVIP) || (CTF._started && _inEventCTF))
			return;

@@ -10379,6 +10573,8 @@
		// temp fix here
		if (isMounted())
			dismount();
+		
+		impro = 0;

		if (isTransformed() && !isCursedWeaponEquipped())
{

Link to comment
Share on other sites

Are y'all for real?

 

"reached 25 kill without die"

 

its the worse announce that i can read, if would join on a server and see such an announce i would exit.

Link to comment
Share on other sites

Are y'all for real?

 

"reached 25 kill without die"

 

its the worse announce that i can read, if would join on a server and see such an announce i would exit.

 

thats true! l2mafia have the same announce :D

its not so hard to change 2 lines..

anyway i will change it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • ??? error   https://ibb.co/Srn4LsX
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
    • Thanks for the detailed info. I also have some ideas in mind but the execution may be hard. Thanks again!
  • Topics

×
×
  • Create New...