showma Posted July 10, 2017 Posted July 10, 2017 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.
0 l2-scripts Posted July 10, 2017 Posted July 10, 2017 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 showma Posted July 10, 2017 Author Posted July 10, 2017 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 showma Posted July 10, 2017 Author Posted July 10, 2017 simply missing from your packs.... so which pack has it right? I tested it on acis btw
0 melron Posted July 10, 2017 Posted July 10, 2017 (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 July 10, 2017 by melron
0 Reborn12 Posted July 10, 2017 Posted July 10, 2017 (edited) Since we are speaking for effect nothing to do with damage.. Should work normally.. Test it here l2centos.com Edited July 10, 2017 by Reborn12
0 pirama Posted July 10, 2017 Posted July 10, 2017 (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 July 10, 2017 by pirama
0 showma Posted July 10, 2017 Author Posted July 10, 2017 package net.sf.l2j.gameserver.handler.skillhandlers; Blow.java on success send packet sound how can I do that exactly?
0 pirama Posted July 10, 2017 Posted July 10, 2017 (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 July 10, 2017 by pirama
0 showma Posted July 10, 2017 Author Posted July 10, 2017 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 pirama Posted July 10, 2017 Posted July 10, 2017 (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 July 10, 2017 by pirama
0 showma Posted July 10, 2017 Author Posted July 10, 2017 (edited) you mean this (new PlaySound ...... ) ? your pack is ? go the mouse on error and get print screen here u go Edited July 10, 2017 by showma
0 pirama Posted July 10, 2017 Posted July 10, 2017 (edited) go your mouse on the red line and touch this http://imgur.com/a/TfGCM or press ctrl + shift + o Edited July 10, 2017 by pirama
0 showma Posted July 10, 2017 Author Posted July 10, 2017 go your mouse on the red line and touch this http://imgur.com/a/TfGCM or press ctrl + shift + o omg its working, thank you very much!
0 'Baggos' Posted July 10, 2017 Posted July 10, 2017 omg its working, thank you very much! Locked then.
Question
showma
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.
16 answers to this question
Recommended Posts