Jump to content

[share] config option for cancel dance/song buffs with alt+click, thx JIV


Recommended Posts

Posted

config option for cancel dance/song buffs with alt+click, thx JIV

 

Index: /trunk/L2_GameServer/java/config/Character.properties
===================================================================
--- /trunk/L2_GameServer/java/config/Character.properties (revision 3431)
+++ /trunk/L2_GameServer/java/config/Character.properties (revision 3475)
@@ -94,4 +94,8 @@
maxdanceamount = 12

+# Allow players to cancel dances/songs via Alt+click on buff icon 
+# Default: False 
+DanceCancelBuff = False
+
# This option allows a player to automatically learn Divine Inspiration.
# This is not included in AutoLearnSkills above.
Index: /trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestDispel.java
===================================================================
--- /trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestDispel.java (revision 2855)
+++ /trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestDispel.java (revision 3475)
@@ -15,4 +15,5 @@
package net.sf.l2j.gameserver.network.clientpackets;

+import net.sf.l2j.Config;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.model.L2Effect;
@@ -60,5 +61,5 @@
		{
			L2Skill skill = SkillTable.getInstance().getInfo(_skillId, _skillLevel);
-			if (skill != null && !skill.isDance() && !skill.isDebuff())
+			if (skill != null && (!skill.isDance() || Config.DANCE_CANCEL_BUFF) && !skill.isDebuff())
			{
				for (L2Effect e : activeChar.getAllEffects())
Index: /trunk/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- /trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 3431)
+++ /trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 3475)
@@ -83,4 +83,5 @@
	public static byte BUFFS_MAX_AMOUNT;
	public static byte DANCES_MAX_AMOUNT;
+	public static boolean DANCE_CANCEL_BUFF;
	public static boolean AUTO_LEARN_DIVINE_INSPIRATION;
	public static boolean ALT_GAME_CANCEL_BOW;
@@ -1125,7 +1126,6 @@
					if (ENABLE_MODIFY_SKILL_DURATION)
					{
-						SKILL_DURATION_LIST = new FastMap<Integer, Integer>();
-						String[] propertySplit;
-						propertySplit = Character.getProperty("SkillDurationList", "").split(";");
+						String[] propertySplit = Character.getProperty("SkillDurationList", "").split(";");
+						SKILL_DURATION_LIST = new FastMap<Integer, Integer>(propertySplit.length);
						for (String skill : propertySplit)
						{
@@ -1153,7 +1153,6 @@
					if (ENABLE_MODIFY_SKILL_REUSE)
					{
-						SKILL_REUSE_LIST = new FastMap<Integer, Integer>();
-						String[] propertySplit;
-						propertySplit = Character.getProperty("SkillReuseList", "").split(";");
+						String[] propertySplit = Character.getProperty("SkillReuseList", "").split(";");
+						SKILL_REUSE_LIST = new FastMap<Integer, Integer>(propertySplit.length);
						for (String skill : propertySplit)
						{
@@ -1180,4 +1179,5 @@
					BUFFS_MAX_AMOUNT = Byte.parseByte(Character.getProperty("maxbuffamount","20"));
					DANCES_MAX_AMOUNT = Byte.parseByte(Character.getProperty("maxdanceamount","12"));
+					DANCE_CANCEL_BUFF = Boolean.parseBoolean(Character.getProperty("DanceCancelBuff", "false"));
					AUTO_LEARN_DIVINE_INSPIRATION = Boolean.parseBoolean(Character.getProperty("AutoLearnDivineInspiration", "false"));
					ALT_GAME_CANCEL_BOW = Character.getProperty("AltGameCancelByHit", "Cast").equalsIgnoreCase("bow") || Character.getProperty("AltGameCancelByHit", "Cast").equalsIgnoreCase("all");
@@ -1906,5 +1906,5 @@
									if (!propertySplit[0].equals(""))
									{
-										TVT_EVENT_FIGHTER_BUFFS = new FastMap<Integer, Integer>();
+										TVT_EVENT_FIGHTER_BUFFS = new FastMap<Integer, Integer>(propertySplit.length);
										for (String skill : propertySplit)
										{
@@ -1930,5 +1930,5 @@
									if (!propertySplit[0].equals(""))
									{
-										TVT_EVENT_MAGE_BUFFS = new FastMap<Integer, Integer>();
+										TVT_EVENT_MAGE_BUFFS = new FastMap<Integer, Integer>(propertySplit.length);
										for (String skill : propertySplit)
										{

 

l2jserver

  • 3 months later...
  • 3 months later...
Posted

thats only for epilogue, and we don't share things already committed to the official l2j svn! wtf !? >.> its gonna get synced by the other forks too. LOCKED

Guest
This topic is now closed to further replies.
  • Posts

    • NEW SEASON START 23.01.2026 Get ready for the ultimate High Five adventure on L2Exoplanet.net!   • The last two previous Seasons are now merged into the Core Server. • The Core Server remains our main long-term world. • All future Seasonal Servers will be merged into Core after they end. • No characters or items will be lost – everything stays safe!     GRAND OPENING:  23.01.2026 at 20:00 GMT+1 BETA TEST:    16.01.2026    Client: High Five Rates: x10   Website: https://l2exoplanet.net Facebook: https://www.facebook.com/L2-Exoplanet-106811564103836 Discord: https://discord.gg/4fzhW7ZSPc         Game Rates    Experience: x10  Skill Points: x10  Adena: x5  Drop: x8  Spoil: x8  Quest: x5  Raid Boss Drop: x5  Fame: x2  Epaulette: x8  Manor: x8      Safe Enchant: +3  Maximum Enchant: +16  Normal Scroll Chance: 60%  Blessed Scroll Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%      Game Settings    Multibox - 3 game clients per HWID  Autoloot  Autolearn Skills Auto Farm  NPC Buffer   Buff Slots (24+4/12)  Buff Duration (2h)  Olympiad Period 7days (new heroes appear every monday)  Seven Signs Period  Class Transfer for Adena  Max Sub-Class 3  Sub-Class Max Level 85  Essence Interface  Champions System  Vote Reward System  Dayli Reward System  PC Points Reward (500PC = 1 Donate Coin)      Epic Bosses Respawn Times     Queen Ant:  24 Hours +/- 4 Hours   Beleth: 3 Days +/- 8 Hours   Baium: 3 Days +/- 8 Hours   Antharas: 4 Days +/- 8 Hours   Valakas:  5 Days +/- 8 Hours     Instance Info     Normal Freya = 6 Players   Hard Freya = 12 Players   Frintezza = 6 Players   Zaken 83 Day = 6 Players   Zaken 60 Day = 6 Players   Zaken Nightly = 9 Players   Tiat = 6 Players   Beleth = 12 Players
    • when did i say something about mobius files besides what i've said on this post? or you're "calling me out" for saying this when someone says mobius is a better interlude alternative than acis? lol  
    • Spreading FUD disguised as "experience," mocking the project publicly, then acting shocked when called out. That's the conduct.
  • 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..

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