Jump to content

Recommended Posts

Posted

Hello..read the code and you will understand what is it

 

 go to 

net.sf.l2j.gameserver.model.actor.instance.Player.java

find this

find final boolean hadHero

and put this 

private int spreeKill = 0;
	private int spreeKills = 0;
	private int KILL_STEAK = 0;

it will look like that

find final boolean hadHero	
private int spreeKill = 0;
	private int spreeKills = 0;
	private int KILL_STEAK = 0;

now find this 

setPvpKills(getPvpKills() + 1);

and put this 

KILL_STEAK++;
				switch (KILL_STEAK)
				{
					case 20:
						sendMessage("You are almost on a killing spree 5 more kills");
						break;
					
					case 25:
						
						Broadcast.announceToOnlinePlayers(getName() + " is on a killing spree!!");
						startAbnormalEffect(AbnormalEffect.SLEEP); //SLEEP = VITALITY EFFECT
						setHero(true);
						PlaySound _snd25 = new PlaySound(1, "killing spree");
						sendPacket(_snd25);
						break;
					
				}

spreeKill++;
				switch (spreeKill)
				{
					case 1:
						sendPacket(new CreatureSay(0, 0, "PvP", getName() + " just got a First Blood!!"));
						break;
					
					case 2:
						sendPacket(new CreatureSay(0, 2, "PvP", getName() + " just got a Double Kill!!"));
						break;
					
					case 3:
						sendPacket(new CreatureSay(0, 3, "PvP", getName() + " just got a Triple Kill!!"));
						break;
					
					case 4:
						sendPacket(new CreatureSay(0, 4, "PvP", getName() + " has a Quadra kill!!!"));
						break;
					
					case 5:
						sendPacket(new CreatureSay(0, 0, "PvP", getName() + " has a Penta Kill!!"));
						break;
					
					case 6:
						sendPacket(new CreatureSay(0, 2, "PvP", getName() + " just got a Legendary!!"));
						break;
					
				}
				
				spreeKills++;
				
				switch (spreeKills)
				{
					
					case 1:
						PlaySound _snd1 = new PlaySound(1, "firstblood");
						sendPacket(_snd1);
						
						break;
					
					case 2:
						PlaySound _snd2 = new PlaySound(1, "doublekill");
						sendPacket(_snd2);
						
						break;
					
					case 3:
						PlaySound _snd3 = new PlaySound(1, "triplekill");
						sendPacket(_snd3);
						
						break;
					
					case 4:
						PlaySound _snd4 = new PlaySound(1, "quadrakill");
						sendPacket(_snd4);
						
						break;
					
					case 5:
						PlaySound _snd5 = new PlaySound(1, "pentakill");
						sendPacket(_snd5);
						
						break;
					
					case 6:
						PlaySound _snd6 = new PlaySound(1, "legendary");
						sendPacket(_snd6);
						
						break;
					
					default:
				}

find this 

public boolean doDie(Creature killer)

and put this

if (KILL_STEAK > 0)
		{
			if (KILL_STEAK > 24)
				Broadcast.announceToOnlinePlayers(killer.getName() + " has stopped " + getName() + "'s killing spree of " + KILL_STEAK + " kills!!");
			if (!hadHero)
				setHero(false);
			stopAbnormalEffect(AbnormalEffect.SLEEP);
	  	spreeKill = 0;
		spreeKills = 0;
		KILL_STEAK = 0;
		}

Download this file Vitality Effect Interlude

 

Download this file League of Legends Sounds (PUT THEM IN THE Music folder in you Lineage II)

 

And you are done.

Posted
19 minutes ago, Crytek ™ said:

have to open name.uax files? any kind of program>?

 

unreal editor, sound browser.

 

uax is basically wav mono pcm low freq audio files packed in unreal container.

 

https://wiki.beyondunreal.com/Legacy:Importing_Sounds

Posted
On 1/24/2018 at 3:20 PM, .Elfocrash said:

Wow this one is not mine. This is even worse than mine which i thought impossible.

u jealous cause you never thought of coding it this way

  • 4 months later...
Posted

More convenient way to make this would be sending SystemMessageId from server while on client that SystemMessageId would have an sound assigned (like picking up Adena gives sound), also import sounds to some sound texture using UnrealEd - that's how I done that saving lots of code lines and decreasing system patch files count.

  • 1 year later...
Posted
On 1/23/2018 at 7:18 PM, ThelwHelpRePaidia said:

Hello..read the code and you will understand what is it

 

 go to 


net.sf.l2j.gameserver.model.actor.instance.Player.java

find this


find final boolean hadHero

and put this 


private int spreeKill = 0;
	private int spreeKills = 0;
	private int KILL_STEAK = 0;

it will look like that


find final boolean hadHero	
private int spreeKill = 0;
	private int spreeKills = 0;
	private int KILL_STEAK = 0;

now find this 


setPvpKills(getPvpKills() + 1);

and put this 


KILL_STEAK++;
				switch (KILL_STEAK)
				{
					case 20:
						sendMessage("You are almost on a killing spree 5 more kills");
						break;
					
					case 25:
						
						Broadcast.announceToOnlinePlayers(getName() + " is on a killing spree!!");
						startAbnormalEffect(AbnormalEffect.SLEEP); //SLEEP = VITALITY EFFECT
						setHero(true);
						PlaySound _snd25 = new PlaySound(1, "killing spree");
						sendPacket(_snd25);
						break;
					
				}

spreeKill++;
				switch (spreeKill)
				{
					case 1:
						sendPacket(new CreatureSay(0, 0, "PvP", getName() + " just got a First Blood!!"));
						break;
					
					case 2:
						sendPacket(new CreatureSay(0, 2, "PvP", getName() + " just got a Double Kill!!"));
						break;
					
					case 3:
						sendPacket(new CreatureSay(0, 3, "PvP", getName() + " just got a Triple Kill!!"));
						break;
					
					case 4:
						sendPacket(new CreatureSay(0, 4, "PvP", getName() + " has a Quadra kill!!!"));
						break;
					
					case 5:
						sendPacket(new CreatureSay(0, 0, "PvP", getName() + " has a Penta Kill!!"));
						break;
					
					case 6:
						sendPacket(new CreatureSay(0, 2, "PvP", getName() + " just got a Legendary!!"));
						break;
					
				}
				
				spreeKills++;
				
				switch (spreeKills)
				{
					
					case 1:
						PlaySound _snd1 = new PlaySound(1, "firstblood");
						sendPacket(_snd1);
						
						break;
					
					case 2:
						PlaySound _snd2 = new PlaySound(1, "doublekill");
						sendPacket(_snd2);
						
						break;
					
					case 3:
						PlaySound _snd3 = new PlaySound(1, "triplekill");
						sendPacket(_snd3);
						
						break;
					
					case 4:
						PlaySound _snd4 = new PlaySound(1, "quadrakill");
						sendPacket(_snd4);
						
						break;
					
					case 5:
						PlaySound _snd5 = new PlaySound(1, "pentakill");
						sendPacket(_snd5);
						
						break;
					
					case 6:
						PlaySound _snd6 = new PlaySound(1, "legendary");
						sendPacket(_snd6);
						
						break;
					
					default:
				}

find this 


public boolean doDie(Creature killer)

and put this


if (KILL_STEAK > 0)
		{
			if (KILL_STEAK > 24)
				Broadcast.announceToOnlinePlayers(killer.getName() + " has stopped " + getName() + "'s killing spree of " + KILL_STEAK + " kills!!");
			if (!hadHero)
				setHero(false);
			stopAbnormalEffect(AbnormalEffect.SLEEP);
	  	spreeKill = 0;
		spreeKills = 0;
		KILL_STEAK = 0;
		}

Download this file Vitality Effect Interlude

 

Download this file League of Legends Sounds (PUT THEM IN THE Music folder in you Lineage II)

 

And you are done.

 

it's possible for someone to have the effects and sounds, links are down.

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • What webhosting are you using? You'll need to talk with administrators of the webhosting to open outgoing connections to port 1433, maybe they won't open it for you, instead, you should get a webhosting for mu online since they always have 1433 port open for outgoing connections. Also, make sure you have your 1433 TCP port open for incoming connections, for security, I suggest you exclusively add the cPanel IP Address to connect to your port 1433 in your firewall, so no one else can try to connect to your database. Let me know if you have any questions, happy to help.
    • He just doesn't answer, I've tried everything, Telegram, his own forum, everything, I don't know what's his deal, but I've tried for months
    • Send direct message to @Maxtor
    • Hello guys , does anyone know what files needed to use those cloaks for H5 client? I’m not using an interface and I don’t want to use one so there are any way to use them without interface? 
    • Closed beta testing starts in early October!        We’re looking for the most active and attentive players to help fine-tune the project before launch. This is your chance to be among the first to try out our new features and directly influence how the server develops.   What beta testers will do: — Check the client and core mechanics — Find bugs, errors, and inconsistencies — Evaluate the convenience and practicality of current solutions — Share detailed, constructive suggestions for improvement      Your feedback will be key to making the project balanced and comfortable for everyone.   Requirements: — Willingness to complete specific tasks — Experience playing on Interlude (PTS, clean client) — Experience with the HF client is a plus   Ready to help? The server launch is planned for early December, so now is the perfect time to join the test and make your contribution. To participate, you must send a direct message (DM) to one of the following: - Send a DM to our Telegram channel - Send a DM to our forum moderators: PrintF or EchØ - Send a DM to our Discord server admin @EchØ
  • 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