Secret Experience

Secret Experience (https://secretexperience.net/)
-   [Lineage] Java Mods (https://secretexperience.net/lineage-java-mods/)
-   -   [L2JServer] [share]buff time rate (https://secretexperience.net/lineage-java-mods/20370-share-buff-time-rate.html)

Guma 07-04-2010 03:10 PM

[share]buff time rate
 
Código:

Index: /TrunK/L2J_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/Config.java (revision 673)
+++ /TrunK/L2J_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(L2J.getProperty("PartyDuelSpawnY", "46710")); 
              DUEL_SPAWN_Z    = Integer.parseInt(L2J.getProperty("PartyDuelSpawnZ", "-3413"));

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

              ALT_NEW_SPAWN  = Boolean.parseBoolean(L2J.getProperty("Customspawn", "False")); 
              ALT_NEW_SPAWN_X = Integer.parseInt(L2J.getProperty("CustomSpawnX", "")); 
Index: /TrunK/L2J_CORE/java/com/it/br/gameserver/model/L2Skill.java
===================================================================
--- /TrunK/L2J_CORE/java/com/it/br/gameserver/model/L2Skill.java (revision 650)
+++ /TrunK/L2J_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/L2J_CORE/config/*********.properties
===================================================================
--- /TrunK/L2J_CORE/config/L2J.properties (revision 670)
+++ /TrunK/L2J_CORE/config/L2J.properties (revision 674)
@@ -46,4 +46,7 @@
 # Retail: 300
 MaxMCritRate = 300
+
+# Buff time rate
+AltBuffTime = 1
 
 # Heavy Equipment Restriction

Credit: me (Guma)

mazin 08-04-2010 07:57 PM

uma descricao cairia bem.... o que isso faz exatamente?

paytaly 08-04-2010 08:46 PM

É só prestar atenção! ¬¬
Isso multiplica o tempo do Buff (definido na XML) pelo valor da config "AltBuffTime".
Então, se a duração do Buff é 20 Minutos e o AltBuffTime é 2, o tempo do Buff será de 40 Minutos (20 * 2).


Horários baseados na GMT -3. Agora são 05:35 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0