Jump to content

Custom Sound PvP - L2jFrozen


TeodosTv

Recommended Posts

### Eclipse Workspace Patch 1.0

#P L2jFrozen_GameServer

Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 573)

+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy)

@@ -648,6 +648,10 @@

public String _teamNameTvT, _originalTitleTvT;

public int _originalNameColorTvT = 0, _countTvTkills, _countTvTdies, _originalKarmaTvT;

public boolean _inEventTvT = false;



/** CTF Engine parameters */

public String _teamNameCTF,

@@ -666,7 +670,6 @@

_countDMkills,

_originalKarmaDM;

public boolean _inEventDM = false;



public int _correctWord = -1;

public boolean _stopKickBotTask = false;



@@ -900,7 +903,18 @@

private final BlockList _blockList = new BlockList();



private int _team = 0;



/**

* lvl of alliance with ketra orcs or varka silenos, used in quests and aggro checks [-5,-1] varka, 0 neutral, [1,5]

* ketra

@@ -5632,6 +5646,8 @@

// Kill the L2PcInstance

if(!super.doDie(killer))

return false;

+

+ spreeKills = 0;



Castle castle = null;

if(getClan() != null)

@@ -5834,6 +5850,22 @@

boolean isKillerPc = killer instanceof L2PcInstance;

if(isKillerPc && ((L2PcInstance) killer).getClan() != null && getClan() != null && !isAcademyMember() && !((L2PcInstance) killer).isAcademyMember() && _clan.isAtWarWith(((L2PcInstance) killer).getClanId()) && ((L2PcInstance) killer).getClan().isAtWarWith(_clan.getClanId()))

{

+ PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0);

+

+ Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers();

+ for (L2PcInstance onlinePlayer : pls)

+ if (onlinePlayer.isOnline() == 1)

+ {

+ if (onlinePlayer.getClan() != null)

+ {

+ if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk)

+ {

+ onlinePlayer.sendPacket(_snd);

+ }

+ }

+ }

+

+

if(getClan().getReputationScore() > 0)

{

((L2PcInstance) killer).getClan().setReputationScore(((L2PcInstance) killer).getClan().getReputationScore() + 2, true);

@@ -6109,11 +6141,12 @@

{

// check about wars

if(targetPlayer.getClan() != null && getClan() != null)

- {

+ {

if(getClan().isAtWarWith(targetPlayer.getClanId()))

{

if(targetPlayer.getClan().isAtWarWith(getClanId()))

- {

+ {

+

// 'Both way war' -> 'PvP Kill'

increasePvpKills();

if(target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL)

@@ -6296,8 +6329,51 @@

/**

* Increase the pvp kills count and send the info to the player

*/

+ private int spreeKills = 0;

public void increasePvpKills()

{

+ spreeKills++;

+

+ switch(spreeKills){

+

+ case 1:

+ PlaySound _snd1 = new PlaySound(1, "firstblood", 0, 0, 0, 0, 0);

+ sendPacket(_snd1);

+ break;

+

+ case 2:

+ PlaySound _snd2 = new PlaySound(1, "doublekill", 0, 0, 0, 0, 0);

+ sendPacket(_snd2);

+ break;

+

+ case 3:

+ PlaySound _snd3 = new PlaySound(1, "triplekill", 0, 0, 0, 0, 0);

+ sendPacket(_snd3);

+ break;

+

+ case 4:

+ PlaySound _snd4 = new PlaySound(1, "megakill", 0, 0, 0, 0, 0);

+ sendPacket(_snd4);

+ break;

+

+ case 5:

+ PlaySound _snd5 = new PlaySound(1, "ultrakill", 0, 0, 0, 0, 0);

+ sendPacket(_snd5);

+ break;

+

+ case 10:

+ PlaySound _snd10 = new PlaySound(1, "monsterkill", 0, 0, 0, 0, 0);

+ sendPacket(_snd10);

+ break;

+

+ case 15:

+ PlaySound _snd15 = new PlaySound(1, "killingspree", 0, 0, 0, 0, 0);

+ sendPacket(_snd15);

+ break;

+ default:

+ ;

+ }

+

int x,y,z;

x = getX();

y = getY();

@@ -6658,6 +6734,10 @@

{

newKarma = Integer.MAX_VALUE - getKarma();

}

+ PlaySound _snd = new PlaySound(1, "knife", 0, 0, 0, 0, 0);

+ sendPacket(_snd);

+ broadcastPacket(_snd);

+



// Add karma to attacker and increase its PK counter

int x,y,

 

Link to comment
Share on other sites

I don't think there is anyone playing with sound [ON].
If someone good is playing with his clan, he is using Teamspeak ( or w/e ) and has the sound [OFF].
If anyone else is playing, he is listening some good shit gangsta music.

Link to comment
Share on other sites

10 minutes ago, TeodosTv said:

Its Only PvPSounds Like DoubleKill , TripleKill , Rampage

 

I will help some peoples looking something like this!

 

:) :D :) :D

at least is something new, good.

  • Like 1
Link to comment
Share on other sites

Dear god this coding... Use enums better... 

 

public enum Spree
	{
		DOUBLE_KILL(2, "Double Kill"),
		TRIPLE_KILL(3, "Triple Kill"),
		ULTRA_KILL(4, "Ultra Kill");
		
		final int kill;
		final String msg;
		
		private Spree(final int kill, final String msg)
		{
			this.kill = kill;
			this.msg = msg;
		}
		
		public void triggerBroadcast(final L2PcInstance player)
		{
			player.setSpreeKills(player.getSpreeKills() + 1);
			
			for (Spree s : Spree.values())
			{
				if (s.kill == player.getSpreeKills())
				{
					Broadcast.announceToOnlinePlayers("Player " + player.getName() + " got a " + s.msg);
				}
			}
		}
	}

Took me 45 seconds and is 2000% better than 450 lines of code you did...

Edited by Evie Frye
Link to comment
Share on other sites

  • 3 months later...
Guest
This topic is now closed to further replies.


  • Posts

    • abortion pills online in Abu Dhabi +27791653574 Buy Pills now  +27791653574 abortion pills for sale Abu Dhabi Text NowAbortion Clinic Abu Dhabi +27791653574 Pregnancy Termination  clinic around Abu Dhabi Cytotec 200 mcg price in Abu Dhabi +27791653574 contact us now | +27791653574 Breeky Tablets in Abu Dhabi Know price/cost  Abortion pills in Abu Dhabi | +27791653574 WhatsApp Us Now Abortion pills online in Abu Dhabi Breeky tablets for sale in Abu Dhabi Cytotec 200 mcg Misoprostol for sale in Abu Dhabi Whatever your circumstances, its your right to terminate up 24 weeks into the pregnancy. It’s entirely your decision. And if its something you want to do, rest assured that its legal in Abu Dhabi to have an abortion Marina Whatsapp    Remember abortion is legal in Abu Dhabi  so there is no reason to ever visit an illegal service provider. If you have passed the 24 weeks mark, there are other options available to you which we will talk you through and help you to understand.   We are here to support you, whatever choice you make about your pregnancy, so you never have to feel alone, we offer safe abortion ( also called termination of pregnancy TOP) for women who are up to 24 weeks pregnant. Depending on the gestation (stage of the pregnancy), we have two services available the medical process (often called the abortion pill) and the surgical procedure (a minor same day surgical treatment.)   Our nurses and Doctors are accredited professionals and experts in reproductive healthcare. Our work is strictly governed the choice on termination of pregnancy and we adhere to World health Organisation Guidelines.   Safe abortion or termination of pregnancy (TOP) is when a pregnancy is terminated in its early stage before it results into the birth of a child.   Abortion may be performed in two different ways.   Medical Abortion This is when abortion pills will be swallowed to end the pregnancy   Surgical Abortion This is when instruments will be used to remove the foetus. If both abortion procedures are done by a qualified abortion doctor with medical guidance, there is no way it will affect your fertility.   How is a safe abortion done On your first visit to our clinic, counselling will be provided and this is optional.   Safe abortion The doctor will perform a pregnancy test to confirm the weeks and explain to you in detailed how the safe abortion procedure will be done and how to take care of yourself after the abortion.   Side effects of medical safe abortion You will experience cramping like period pains You might vomit Feel Nausea Get a running stomach Experience some bit of fatigue The bleeding might start 2 hours after using the second pills. abortion in Abu Dhabi Yas Island The Corniche Area Saadiyat Island Al Reem Island Al Maryah Island Tourist Club Area Khalifa City Al Khalidiyah Al Reef Mohammed Bin Zayed City Al Raha Al Mushrif Al Karamah
    • abortion pills online in Abu Dhabi +27791653574 Buy Pills now  +27791653574 abortion pills for sale Abu Dhabi Text NowAbortion Clinic Abu Dhabi +27791653574 Pregnancy Termination  clinic around Abu Dhabi Cytotec 200 mcg price in Abu Dhabi +27791653574 contact us now | +27791653574 Breeky Tablets in Abu Dhabi Know price/cost  Abortion pills in Abu Dhabi | +27791653574 WhatsApp Us Now Abortion pills online in Abu Dhabi Breeky tablets for sale in Abu Dhabi Cytotec 200 mcg Misoprostol for sale in Abu Dhabi Whatever your circumstances, its your right to terminate up 24 weeks into the pregnancy. It’s entirely your decision. And if its something you want to do, rest assured that its legal in Abu Dhabi to have an abortion Marina Whatsapp    Remember abortion is legal in Abu Dhabi  so there is no reason to ever visit an illegal service provider. If you have passed the 24 weeks mark, there are other options available to you which we will talk you through and help you to understand.   We are here to support you, whatever choice you make about your pregnancy, so you never have to feel alone, we offer safe abortion ( also called termination of pregnancy TOP) for women who are up to 24 weeks pregnant. Depending on the gestation (stage of the pregnancy), we have two services available the medical process (often called the abortion pill) and the surgical procedure (a minor same day surgical treatment.)   Our nurses and Doctors are accredited professionals and experts in reproductive healthcare. Our work is strictly governed the choice on termination of pregnancy and we adhere to World health Organisation Guidelines.   Safe abortion or termination of pregnancy (TOP) is when a pregnancy is terminated in its early stage before it results into the birth of a child.   Abortion may be performed in two different ways.   Medical Abortion This is when abortion pills will be swallowed to end the pregnancy   Surgical Abortion This is when instruments will be used to remove the foetus. If both abortion procedures are done by a qualified abortion doctor with medical guidance, there is no way it will affect your fertility.   How is a safe abortion done On your first visit to our clinic, counselling will be provided and this is optional.   Safe abortion The doctor will perform a pregnancy test to confirm the weeks and explain to you in detailed how the safe abortion procedure will be done and how to take care of yourself after the abortion.   Side effects of medical safe abortion You will experience cramping like period pains You might vomit Feel Nausea Get a running stomach Experience some bit of fatigue The bleeding might start 2 hours after using the second pills. abortion in Abu Dhabi Yas Island The Corniche Area Saadiyat Island Al Reem Island Al Maryah Island Tourist Club Area Khalifa City Al Khalidiyah Al Reef Mohammed Bin Zayed City Al Raha Al Mushrif Al Karamah
    • abortion pills online in Abu Dhabi +27791653574 Buy Pills now  +27791653574 abortion pills for sale Abu Dhabi Text NowAbortion Clinic Abu Dhabi +27791653574 Pregnancy Termination  clinic around Abu Dhabi Cytotec 200 mcg price in Abu Dhabi +27791653574 contact us now | +27791653574 Breeky Tablets in Abu Dhabi Know price/cost  Abortion pills in Abu Dhabi | +27791653574 WhatsApp Us Now Abortion pills online in Abu Dhabi Breeky tablets for sale in Abu Dhabi Cytotec 200 mcg Misoprostol for sale in Abu Dhabi Whatever your circumstances, its your right to terminate up 24 weeks into the pregnancy. It’s entirely your decision. And if its something you want to do, rest assured that its legal in Abu Dhabi to have an abortion Marina Whatsapp    Remember abortion is legal in Abu Dhabi  so there is no reason to ever visit an illegal service provider. If you have passed the 24 weeks mark, there are other options available to you which we will talk you through and help you to understand.   We are here to support you, whatever choice you make about your pregnancy, so you never have to feel alone, we offer safe abortion ( also called termination of pregnancy TOP) for women who are up to 24 weeks pregnant. Depending on the gestation (stage of the pregnancy), we have two services available the medical process (often called the abortion pill) and the surgical procedure (a minor same day surgical treatment.)   Our nurses and Doctors are accredited professionals and experts in reproductive healthcare. Our work is strictly governed the choice on termination of pregnancy and we adhere to World health Organisation Guidelines.   Safe abortion or termination of pregnancy (TOP) is when a pregnancy is terminated in its early stage before it results into the birth of a child.   Abortion may be performed in two different ways.   Medical Abortion This is when abortion pills will be swallowed to end the pregnancy   Surgical Abortion This is when instruments will be used to remove the foetus. If both abortion procedures are done by a qualified abortion doctor with medical guidance, there is no way it will affect your fertility.   How is a safe abortion done On your first visit to our clinic, counselling will be provided and this is optional.   Safe abortion The doctor will perform a pregnancy test to confirm the weeks and explain to you in detailed how the safe abortion procedure will be done and how to take care of yourself after the abortion.   Side effects of medical safe abortion You will experience cramping like period pains You might vomit Feel Nausea Get a running stomach Experience some bit of fatigue The bleeding might start 2 hours after using the second pills. abortion in Abu Dhabi Yas Island The Corniche Area Saadiyat Island Al Reem Island Al Maryah Island Tourist Club Area Khalifa City Al Khalidiyah Al Reef Mohammed Bin Zayed City Al Raha Al Mushrif Al Karamah
    • abortion pills online in Abu Dhabi +27791653574 Buy Pills now  +27791653574 abortion pills for sale Abu Dhabi Text NowAbortion Clinic Abu Dhabi +27791653574 Pregnancy Termination  clinic around Abu Dhabi Cytotec 200 mcg price in Abu Dhabi +27791653574 contact us now | +27791653574 Breeky Tablets in Abu Dhabi Know price/cost  Abortion pills in Abu Dhabi | +27791653574 WhatsApp Us Now Abortion pills online in Abu Dhabi Breeky tablets for sale in Abu Dhabi Cytotec 200 mcg Misoprostol for sale in Abu Dhabi Whatever your circumstances, its your right to terminate up 24 weeks into the pregnancy. It’s entirely your decision. And if its something you want to do, rest assured that its legal in Abu Dhabi to have an abortion Marina Whatsapp    Remember abortion is legal in Abu Dhabi  so there is no reason to ever visit an illegal service provider. If you have passed the 24 weeks mark, there are other options available to you which we will talk you through and help you to understand.   We are here to support you, whatever choice you make about your pregnancy, so you never have to feel alone, we offer safe abortion ( also called termination of pregnancy TOP) for women who are up to 24 weeks pregnant. Depending on the gestation (stage of the pregnancy), we have two services available the medical process (often called the abortion pill) and the surgical procedure (a minor same day surgical treatment.)   Our nurses and Doctors are accredited professionals and experts in reproductive healthcare. Our work is strictly governed the choice on termination of pregnancy and we adhere to World health Organisation Guidelines.   Safe abortion or termination of pregnancy (TOP) is when a pregnancy is terminated in its early stage before it results into the birth of a child.   Abortion may be performed in two different ways.   Medical Abortion This is when abortion pills will be swallowed to end the pregnancy   Surgical Abortion This is when instruments will be used to remove the foetus. If both abortion procedures are done by a qualified abortion doctor with medical guidance, there is no way it will affect your fertility.   How is a safe abortion done On your first visit to our clinic, counselling will be provided and this is optional.   Safe abortion The doctor will perform a pregnancy test to confirm the weeks and explain to you in detailed how the safe abortion procedure will be done and how to take care of yourself after the abortion.   Side effects of medical safe abortion You will experience cramping like period pains You might vomit Feel Nausea Get a running stomach Experience some bit of fatigue The bleeding might start 2 hours after using the second pills. abortion in Abu Dhabi Yas Island The Corniche Area Saadiyat Island Al Reem Island Al Maryah Island Tourist Club Area Khalifa City Al Khalidiyah Al Reef Mohammed Bin Zayed City Al Raha Al Mushrif Al Karamah
    • abortion pills online in Abu Dhabi +27791653574 Buy Pills now  +27791653574 abortion pills for sale Abu Dhabi Text NowAbortion Clinic Abu Dhabi +27791653574 Pregnancy Termination  clinic around Abu Dhabi Cytotec 200 mcg price in Abu Dhabi +27791653574 contact us now | +27791653574 Breeky Tablets in Abu Dhabi Know price/cost  Abortion pills in Abu Dhabi | +27791653574 WhatsApp Us Now Abortion pills online in Abu Dhabi Breeky tablets for sale in Abu Dhabi Cytotec 200 mcg Misoprostol for sale in Abu Dhabi Whatever your circumstances, its your right to terminate up 24 weeks into the pregnancy. It’s entirely your decision. And if its something you want to do, rest assured that its legal in Abu Dhabi to have an abortion Marina Whatsapp    Remember abortion is legal in Abu Dhabi  so there is no reason to ever visit an illegal service provider. If you have passed the 24 weeks mark, there are other options available to you which we will talk you through and help you to understand.   We are here to support you, whatever choice you make about your pregnancy, so you never have to feel alone, we offer safe abortion ( also called termination of pregnancy TOP) for women who are up to 24 weeks pregnant. Depending on the gestation (stage of the pregnancy), we have two services available the medical process (often called the abortion pill) and the surgical procedure (a minor same day surgical treatment.)   Our nurses and Doctors are accredited professionals and experts in reproductive healthcare. Our work is strictly governed the choice on termination of pregnancy and we adhere to World health Organisation Guidelines.   Safe abortion or termination of pregnancy (TOP) is when a pregnancy is terminated in its early stage before it results into the birth of a child.   Abortion may be performed in two different ways.   Medical Abortion This is when abortion pills will be swallowed to end the pregnancy   Surgical Abortion This is when instruments will be used to remove the foetus. If both abortion procedures are done by a qualified abortion doctor with medical guidance, there is no way it will affect your fertility.   How is a safe abortion done On your first visit to our clinic, counselling will be provided and this is optional.   Safe abortion The doctor will perform a pregnancy test to confirm the weeks and explain to you in detailed how the safe abortion procedure will be done and how to take care of yourself after the abortion.   Side effects of medical safe abortion You will experience cramping like period pains You might vomit Feel Nausea Get a running stomach Experience some bit of fatigue The bleeding might start 2 hours after using the second pills. abortion in Abu Dhabi Yas Island The Corniche Area Saadiyat Island Al Reem Island Al Maryah Island Tourist Club Area Khalifa City Al Khalidiyah Al Reef Mohammed Bin Zayed City Al Raha Al Mushrif Al Karamah
  • Topics

×
×
  • Create New...