Skip to content

Killing Spree (L2JFree)

Featured Replies

Some1 pmed me for that and i made it ^.^

 

Is not huge code will not crach your server T.T

 

You can add configs or w/e you want is just an example how it works.

 

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

@@ -5271,14 +5296,62 @@
	 * Increase the pvp kills count and send the info to the player
	 *
	 */
+	private int impro = 0;
	public void increasePvpKills()
	{
+		impro++;
+		        
+		       switch(impro){
+		       
+		                case 5:
+   				ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);
+   				activeChar.sendPacket(case5);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");
+   				break;
+   				
+				case 10:
+   				ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 killing spree!", 10000);
+   				activeChar.sendPacket(case10);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 10 kill in a row!");
+   				break;
+   				
+				case 15:
+   				ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 killing spree!", 10000);
+   				activeChar.sendPacket(case15);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 15 kill in a row!");
+   				break;
+   				
+				case 20:
+   				ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 killing spree!", 10000);
+   				activeChar.sendPacket(case20);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 20 kill in a row!");
+   				break;
+   				
+				case 25:
+   				ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 killing spree!", 10000);
+   				activeChar.sendPacket(case25);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 25 kill in a row!");
+   				break;
+   				
+				case 30:
+   				ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 killing spree!", 10000);
+   				activeChar.sendPacket(case30);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 30 kill in a row!");
+   				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())
		{

 

Have fun with it.

 

  • Author

LoL!

Really good!

But it could be better if it was like dota!

 

Thanks ;]

 

Give me some info... so i could make it ^.^

 

I never play dota ;$

Thanks ;]

 

Give me some info... so i could make it ^.^

 

I never play dota ;$

he means to put sound,btw vago has made it with sounds so you can mix them

  • Author

he means to put sound,btw vago has made it with sounds so you can mix them

 

aham i'll try it xD

hum interesting

cool

Thanks for sharing your knowledge

can u also make something like if player reach 30 pvps, he get skill and if he get 50 he get hero glow?

hum interesting

cool

thanks for your knowledge compratilhar

  • Author

can u also make something like if player reach 30 pvps, he get skill and if he get 50 he get hero glow?

 

Ill rework it as soon as i can cuz im a bit bussy.

hum interesting

cool

thanks for your knowledge compratilhar

 

copy my post, and also copy wrong ¬¬

 

 

:S on l2jserver pack i cant add this lines:

+  ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 killing spree!", 10000);

+  activeChar.sendPacket(case25);

:S on l2jserver pack i cant add this lines:

+  ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 killing spree!", 10000);

+  activeChar.sendPacket(case25);

 

If you are using Interlude then it's because it doesn't provide the ExShowScreenMessage.java serverpacket.

Take it from Epilogue. I suppose that you will just need to change the imports.

Some1 pmed me for that and i made it ^.^

 

Is not huge code will not crach your server T.T

 

You can add configs or w/e you want is just an example how it works.

 

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

@@ -5271,14 +5296,62 @@
	 * Increase the pvp kills count and send the info to the player
	 *
	 */
+	private int impro = 0;
	public void increasePvpKills()
	{
+		impro++;
+		        
+		       switch(impro){
+		       
+		                case 5:
+   				ExShowScreenMessage case5 = new ExShowScreenMessage("You reached 5 killing spree!", 10000);
+   				activeChar.sendPacket(case5);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 5 kill in a row!");
+   				break;
+   				
+				case 10:
+   				ExShowScreenMessage case10 = new ExShowScreenMessage("You reached 10 killing spree!", 10000);
+   				activeChar.sendPacket(case10);
+				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 10 kill in a row!");
+   				break;
+   				
+				case 15:
+   				ExShowScreenMessage case15 = new ExShowScreenMessage("You reached 15 killing spree!", 10000);
+   				activeChar.sendPacket(case15);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 15 kill in a row!");
+   				break;
+   				
+				case 20:
+   				ExShowScreenMessage case20 = new ExShowScreenMessage("You reached 20 killing spree!", 10000);
+   				activeChar.sendPacket(case20);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 20 kill in a row!");
+   				break;
+   				
+				case 25:
+   				ExShowScreenMessage case25 = new ExShowScreenMessage("You reached 25 killing spree!", 10000);
+   				activeChar.sendPacket(case25);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 25 kill in a row!");
+   				break;
+   				
+				case 30:
+   				ExShowScreenMessage case30 = new ExShowScreenMessage("You reached 30 killing spree!", 10000);
+   				activeChar.sendPacket(case30);
+   				Announcements.getInstance().announceToAll("Player: " + getName() + " :reached 30 kill in a row!");
+   				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())
		{

 

Have fun with it.

 

 

in this thing im newbie help me.where can i add it?

tested on l2jequal and l2jfree and it works

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.