Jump to content

Recommended Posts

Posted

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.

 

Posted

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 ;$

Posted

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

Posted

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.

Posted

:S on l2jserver pack i cant add this lines:

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

+  activeChar.sendPacket(case25);

Posted

: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.

Posted

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?
Guest
This topic is now closed to further replies.

×
×
  • Create New...