Jump to content

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


Flash™
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

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 Disbaled AdBlock