Jump to content
  • 0

Blow Skills' Success Sound Effect


Question

Posted

on offmod when a character land a blow skill (deadly, mortal, lethal etc..) successfully it has a critical strike effect, but on l2j it has the same effect for both success and fail. I never saw it working properly on l2j. why?

 

here is a video about it.

 

Recommended Posts

  • 0
Posted

My first guess, because its NPC, some packs block dmg on NPC, therefore they get no damage and make no sound/effect/stance etc.

  • 0
Posted

My first guess, because its NPC, some packs block dmg on NPC, therefore they get no damage and make no sound/effect/stance etc.

Its the same on npc and mobs, so its something else

  • 0
Posted (edited)

My first guess, because its NPC, some packs block dmg on NPC, therefore they get no damage and make no sound/effect/stance etc.

Sound effect is not linking with npcs block or what ever with 'targets'.. its clearly about the attacker and his conditions

 

so which pack has it right? I tested it on acis btw

 

acis havent implemented this one as i know. i dont know where you can find it completed .. im working with my own so .. :/

Edited by melron
  • 0
Posted (edited)

Since we are speaking for effect nothing to do with damage..

Should work normally..

Test it here l2centos.com

Edited by Reborn12
  • 0
Posted (edited)

My first guess, because its NPC, some packs block dmg on NPC, therefore they get no damage and make no sound/effect/stance etc.

L2j Developer ? wtf ? what is this ? just tell me what are you going there ?

 

they show on video how work on  official and ask how can fix it on l2j and you talk about packs ? wtf ?

 

one Moderator can get this membership from this new " java dev " ( it is ridiculous )

 

[OnTopic]

 

package net.sf.l2j.gameserver.handler.skillhandlers;

Blow.java

 

on success send packet sound

Edited by pirama
  • 0
Posted (edited)

how can I do that exactly?

 

find this

if (activeChar instanceof L2PcInstance)
        ((L2PcInstance) activeChar).sendDamageMessage(target, (int) damage, false, true, false);

and make it

if (activeChar instanceof L2PcInstance)
{
	((L2PcInstance) activeChar).sendDamageMessage(target, (int) damage, false, crit, false);
	activeChar.sendPacket(new PlaySound("skillsound.critical_hit_02"));
}
Edited by pirama
  • 0
Posted

 

find this

if (activeChar instanceof L2PcInstance)
        ((L2PcInstance) activeChar).sendDamageMessage(target, (int) damage, false, true, false);

and make it

if (activeChar instanceof L2PcInstance)
{
	((L2PcInstance) activeChar).sendDamageMessage(target, (int) damage, false, crit, false);
	activeChar.sendPacket(new PlaySound("skillsound.critical_hit_02"));
}

It says playsound cannot be resolved to a type after I edit the code. sry for being a nab Im new at this

  • 0
Posted (edited)

It says playsound cannot be resolved to a type after I edit the code. sry for being a nab Im new at this

you mean this (new PlaySound ...... )   ?

 

you have add the import ?

 

import net.sf.l2j.gameserver.network.serverpackets.PlaySound;

 

your pack is ?

 

go the mouse on error and get print screen

Edited by pirama
  • 0
Posted (edited)

you mean this (new PlaySound ...... )   ?

 

your pack is ?

 

go the mouse on error and get print screen

 

here u go

 

GAlOVon.png

Edited by showma
Guest
This topic is now closed to further replies.
×
×
  • Create New...