Jump to content

Recommended Posts

Posted

=====================================================================
Index: net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
=====================================================================

public final void sendDamageMessage(L2Character target, int damage, boolean mcrit, boolean pcrit, boolean miss)
{
	// Check if hit is missed
	if (miss)
	{
		sendPacket(new SystemMessage(SystemMessageId.MISSED_TARGET));
		return;
	}

	// check if hit is critical
	if (pcrit)
+              {
		sendPacket(new SystemMessage(SystemMessageId.CRITICAL_HIT));
+			PlaySound CRITICAL_HIT_SOUND = new PlaySound(1, "CRITICAL_HIT_SOUND", 0, 0, 0, 0, 0);
+			this.sendPacket(CRITICAL_HIT_SOUND);
+			this.broadcastPacket(CRITICAL_HIT_SOUND); //Can hear and those around you
+              }

	if (mcrit)
+              {
		sendPacket(new SystemMessage(SystemMessageId.CRITICAL_HIT_MAGIC));
+			PlaySound MAGICAL_HIT_SOUND = new PlaySound(1, "MAGICAL_HIT_SOUND", 0, 0, 0, 0, 0);
+			this.sendPacket(MAGICAL_HIT_SOUND);
+			this.broadcastPacket(MAGICAL_HIT_SOUND); //Can hear and those around you
+              }

	SystemMessage sm = new SystemMessage(SystemMessageId.YOU_DID_S1_DMG);
	sm.addNumber(damage);
	sendPacket(sm);
}

 

 

Thanks LauQ

I will make some soon, and post them here, and if xAddytzu could add them to the first post then ^^

Btw: to prevent hearing two sounds at a normal crit (pcrit) (as you also have the default client side critical hit sound), you could edit ALAudio.int, which is inside your Lineage 2/system folder, with L2FileEdit. There you can find this:

[EtcSound]
CriticalSound=SkillSound.Critical_Hit_02
CriticalSound_Vol=250.0
CriticalSound_Radius=50.0

And you could set CriticalSound_Vol=0.0 or something, so you don't hear two sounds at the same time if you want ^^

Posted

xAddytzu,

Correct your message:

_log.warning("this.isBack");

makes no sense since this refers to the class and you're using it inside a string lool.

So should be:

_log.warning(this.getName() + "isBack"); ^^

Posted

xAddytzu,

Correct your message:

_log.warning("this.isBack");

makes no sense since this refers to the class and you're using it inside a string lool.

So should be:

_log.warning(this.getName() + "isBack"); ^^

I wanted in a row

Posted

Very nice share, thanks

 

Yep, but you must add sounds in game (format ogg)

 

Sounds are inside .uax packs, which you can make easily with UnrealED (import .wav's)

 

mayby anybody have any sound for critical / magic critical and can share it?

 

I will make some soon, and post them here, and if xAddytzu could add them to the first post then ^^

 

Btw: to prevent hearing two sounds at a normal crit (pcrit) (as you also have the default client side critical hit sound), you could edit ALAudio.int, which is inside your Lineage 2/system folder, with L2FileEdit. There you can find this:

 

[EtcSound]

CriticalSound=SkillSound.Critical_Hit_02

CriticalSound_Vol=250.0

CriticalSound_Radius=50.0

 

And you could set CriticalSound_Vol=0.0 or something, so you don't hear two sounds at the same time if you want ^^

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Thank you for your fast reply.   Thank you for your fast reply.
    • https://prnt.sc/PhKlAFkpfod8   https://tronscan.org/address/TKdTFSDUunB83zxiHNAzsSimdXqXkyw8Wr/transfers The crypto address he gave me is TKdTFSDUunB83zxiHNAzsSimdXqXkyw8Wr. I sent him 359 USDT, but he's stalling me; he stole my money 🙂 Tronscan : https://tronscan.org/transaction/f9f39661151a8de0bf6065a537b2db9a74d3b4b6b8f2708708e6e53990c7f37c/overviewö Screenshot: 1.https://prnt.sc/S_FnnfXo4Swh 2.https://prnt.sc/fJ3CY5tqzPjp 3.https://prnt.sc/Y6rHXCxyZ5WO 4.https://prnt.sc/Y7MD7eryDfUW 5.https://prnt.sc/91zyOzPnTRGC 6.https://prnt.sc/vq0DirKYj5PH 7.https://prnt.sc/Q_i95ESkRhJG 8.https://prnt.sc/W5i2tk9HS2gR 9.https://prnt.sc/4caCg6XJfr3d 10.https://prnt.sc/HX6H8PLRq3ps 11.https://prnt.sc/LtJ_C3A2mU1H
    • ⚔️ L2Origins – Season 1 High Five Classic Welcome to L2Origins, a project built for players who miss the authentic High Five experience while enjoying carefully designed quality-of-life improvements that preserve the original gameplay. Every system has been created with one goal in mind: long-term progression, balanced PvP, and a competitive community. Server Highlights ⚔️ High Five Classic Gameplay 📈 Rates: x5 Adena / x5 Drop & Spoil / x15 Skill EXP 👥 Up to 3 game clients per PC 🏰 Siege & Territory War Rewards ⚔️ Party and Solo Instances 🏆 Advanced Ranking System 🎯 Global Teleport & NPC Buffer 🛡️ Active Anti-Bot Protection 💬 All-In-One Community Board 🎁 Daily Login Rewards 🌎 English Project with an international community. Exclusive L2Origins Systems 🏆 Achievement Skills Unlock permanent passive skills by progressing through: PvP Achievements Olympiad Participation Achievements Every milestone rewards your character with unique passive bonuses, encouraging long-term progression. ⚔️ Faction System Choose one of 7 unique factions, each offering its own permanent bonuses and balanced penalties. 🛡️ The Knights ⚔️ Dark Legion 🔮 Arcane Council 🏹 Hunters Guild 💰 Merchants Union 🗡️ Shadow Assassins 🌿 Guardians of Nature Your choice defines your playstyle and creates a new layer of PvP strategy. 👕 DressMe System Customize your character with classic High Five armor appearances. Each DressMe appearance also grants its own exclusive passive bonuses, allowing players to personalize both their look and combat style. 🏅 Olympiad & PvP Olympiad Participation Rewards PvP Ranking Faction Ranking Event Ranking Arena Ranking Compete against other players and climb multiple leaderboards throughout the season. Why L2Origins? Our philosophy is simple: Preserve the original High Five feeling. Introduce meaningful progression instead of power creep. Keep PvP competitive and rewarding. Deliver unique custom content without losing the Lineage II identity. If you're looking for a fresh High Five server that respects the classic experience while introducing exclusive systems built from the ground up, L2Origins is ready for you. 🌐 Website: https://l2origins.org/ See you on the battlefield!  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..