Jump to content

[share]Configurable buff time rate


Guma!

Recommended Posts

easy easy  ;D

 

Index: /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 673)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 674)
@@ -933,4 +933,5 @@
    public static int       DUEL_SPAWN_Y;  
    public static int       DUEL_SPAWN_Z; 
+   public static int       ALT_BUFF_TIME;
    public static int       NOBLE_CUSTOM_ITEM_ID; 
    public static boolean   ALLOW_NOBLE_CUSTOM_ITEM; 
@@ -1282,5 +1283,5 @@
               DUEL_SPAWN_Y    = Integer.parseInt(L2JBrasil.getProperty("PartyDuelSpawnY", "46710"));  
               DUEL_SPAWN_Z    = Integer.parseInt(L2JBrasil.getProperty("PartyDuelSpawnZ", "-3413"));

+              ALT_BUFF_TIME   = Integer.parseInt(L2JBrasil.getProperty("AltBuffTime", "1"));

               ALT_NEW_SPAWN   = Boolean.parseBoolean(L2JBrasil.getProperty("Customspawn", "False"));  
               ALT_NEW_SPAWN_X = Integer.parseInt(L2JBrasil.getProperty("CustomSpawnX", ""));  
Index: /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/L2Skill.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/L2Skill.java (revision 650)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/L2Skill.java (revision 674)
@@ -27,4 +27,6 @@
import javolution.text.TextBuilder;
import javolution.util.FastList;
+
+import com.it.br.Config;
import com.it.br.gameserver.GeoData;
import com.it.br.gameserver.datatables.HeroSkillTable;
@@ -523,5 +525,5 @@
         //_skillInterruptTime = set.getInteger("hitTime", _hitTime / 2);
         _reuseDelay = set.getInteger("reuseDelay", 0);
-        _buffDuration = set.getInteger("buffDuration", 0);
+        _buffDuration = set.getInteger("buffDuration", 0) * Config.ALT_BUFF_TIME;

         _skillRadius = set.getInteger("skillRadius", 80);
Index: /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties
===================================================================
--- /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties (revision 670)
+++ /TrunK/L2JBrasil_CORE/config/L2JBrasil.properties (revision 674)
@@ -46,4 +46,7 @@
# Retail: 300
MaxMCritRate = 300
+
+# Buff time rate
+AltBuffTime = 1

# Heavy Equipment Restriction

 

 

Link to comment
Share on other sites

That would affect any kind of buff-similar skill in l2, which means that things will become unbalanced..

 

also it could be done so much better >.>

Link to comment
Share on other sites

this nice, but

but how about this?

# The factor of time in dance and song

DanceTimeMultiplier = 1

 

# Time multiplier buffs

BuffMultiplier = 1

 

# Time multiplier spirits (buff type COV, POW, POF, etc.)

SpiritMultiplier = 1

Link to comment
Share on other sites

  • 2 months later...

Me too need that, anyone know?

 

# The factor of time in dance and song
DanceTimeMultiplier = 1

# Time multiplier buffs
BuffMultiplier = 1

# Time multiplier spirits (buff type COV, POW, POF, etc.)
SpiritMultiplier = 1

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...