Index: C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/config/other.properties =================================================================== --- C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/config/other.properties (revision 903) +++ C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/config/other.properties (working copy) @@ -158,3 +158,11 @@ JailIsPvp = True # Disable all chat in jail (except normal one) JailDisableChat = True + +#--------------------------------- +# Dances Config +#--------------------------------- +# +DanceMod = True +# +DanceMultiplicator = 2.5 \ No newline at end of file Index: C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/Config.java =================================================================== --- C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/Config.java (revision 903) +++ C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/Config.java (working copy) @@ -505,7 +505,13 @@ public static boolean JAIL_IS_PVP; public static boolean JAIL_DISABLE_CHAT; + /** Dance config **/ + public static boolean DANCE_MOD; + public static float DANCE_MULTIPLICATOR; + + + /** Enumeration describing values for Allowing the use of L2Walker client */ public static enum L2WalkerAllowed { @@ -1471,6 +1477,9 @@ JAIL_IS_PVP = Boolean.valueOf(otherSettings.getProperty("JailIsPvp", "True")); JAIL_DISABLE_CHAT = Boolean.valueOf(otherSettings.getProperty("JailDisableChat", "True")); + + DANCE_MOD = Boolean.valueOf(otherSettings.getProperty("DanceMod", "False")); + DANCE_MULTIPLICATOR = Float.valueOf(otherSettings.getProperty("DanceMultiplicator", "1")); } catch (Exception e) { Index: C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Skill.java =================================================================== --- C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Skill.java (revision 903) +++ C:/Documents and Settings/Administrador/Mis documentos/WORKSPACE/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Skill.java (working copy) @@ -472,7 +472,7 @@ _skillInterruptTime = set.getInteger("skillTime", _skillTime / 2); _hitTime = set.getInteger("hitTime", 0); _reuseDelay = set.getInteger("reuseDelay", 0); - _buffDuration = set.getInteger("buffDuration", 0); + _skillRadius = set.getInteger("skillRadius", 80); @@ -527,6 +527,14 @@ _directHpDmg = set.getBool("dmgDirectlyToHp",false); _isDance = set.getBool("isDance",false); + + // This Can Be Commited :P - Custom Dance Duration. + if(_isDance && Config.DANCE_MOD){ + _buffDuration = (int) (set.getInteger("buffDuration", 0) * Config.DANCE_MULTIPLICATOR); + }else{ + _buffDuration = set.getInteger("buffDuration", 0); + } + _nextDanceCost = set.getInteger("nextDanceCost", 0); String canLearn = set.getString("canLearn", null);