Skip to content

[Guide] Time Buffs for Gracia

Featured Replies

So because i see many people  want help for Buffs

 

First

 

 

Go in GameServer/Config/Character.properties

 

 

Find

EnableModifySkillDuration = False (Do it  True)
# Skill duration list
# Format: skillid,newtime;skillid2,newtime2...
# Example:

 

and after paste This

 

# Skill duration list
# Format: skillid,newtime;skillid2,newtime2...
# Example:
#   This enable 1h(3600) duration for songs, the "\"indicates new line,
#   and is only set for formating purposes.
#   SkillDurationList = 825,14400;826,14400;827,14400;828,14400;829,14400;830,14400;271,14400;277,14400;274,14400;307,14400;\
#309,14400;310,14400;311,14400;272,14400;365,14400;276,14400;275,14400;264,14400;266,14400;\
#306,14400;308,14400;268,14400;363,14400;364,14400;349,14400;267,14400;304,14400;270,14400;\
#305,14400;269,14400;4342,14400;4343,14400;4351,14400;1087,14400;4345,14400;4344,14400;\
#4348,14400;4347,14400;4353,14400;4346,14400;4352,14400;4356,14400;4355,14400;1303,14400;\
#4358,14400;4359,14400;4357,14400;4354,14400;4360,14400;1392,14400;1393,14400;1354,14400;\
#1353,14400;1352,14400;4349,14400;4350,14400;1284,14400;1461,14400;1397,14400;1416,14400;\
#1085,14400;1304,14400;1087,14400;1062,14400;1243,14400;1045,14400;1048,14400;1397,14400;\
#1078,14400;1242,14400;1059,14400;1077,14400;1240,14400;1086,14400;1043,14400;1032,14400;\
#1036,14400;1460,14400;1035,14400;1068,14400;1044,14400;1182,14400;1191,14400;1033,14400;\
#1259,14400;1189,14400;1040,14400;1268,14400;1284,14400;764,60;765,60;1139,14400;\
#1140,14400;1141,14400;1144,14400;1145,14400;1146,14400;1497,14400;1388,14400;1389,14400;\
#1413,14400;1363,14400;1356,14400;1355,14400;1357,14400;1414,14400;4702,14400;4703,14400;\
#4699,14400;4700,14400;1349,14400;1346,14400;1347,14400;1348,14400;273,14400;530,14400;\
#1002,14400;1007,14400;1009,14400;1229,14400;1251,14400;1252,14400;1253,14400;1284,14400;\
#1308,14400;1309,14400;1310,14400;1362,14400;1363,14400;1390,14400;1391,14400;1413,14400;\
#1006,14400;1204,14400;1003,14400;1004,14400;1005,14400;1008,14400;1010,1400;1249,1400;\
#1250,14400;1256,14400;1260,14400;1261,14400;1282,14400;1364,14400;1365,14400;\
#1415,14400;1416,14400;529,14400;265,14400;1311,14400;;\

 

 

PS: if your Pack Dont have This Mod you  i give you the mod here

Index: /trunk/L2_GameServer_T1/java/config/Character.properties  
===================================================================  
--- /trunk/L2_GameServer_T1/java/config/Character.properties (revision 1707)  
+++ /trunk/L2_GameServer_T1/java/config/Character.properties (revision 1797)  
@@ -67,4 +67,19 @@  
#============================================================#  
  
+# When this is enabled it will read the config "SkillDurationList"  
+# This will basically overlook the "time= x" in the skill xml's so that you do  
+# not need to modify the L2J Datapck XML's to increase skill duration.  
+# Skill duration list:   
+# Format : skillid,newtime;skillid2,newtime2;....  
+# Example:   
+#      This enable 1h(3600) duration for songs, the "\"indicates new line,  
+#      and is only set for formating purposes.  
+#      SkillDurationList = 264,3600;265,3600;266,3600;267,3600;268,3600;\  
+#      269,3600;270,3600;304,3600;305,1200;306,3600;308,3600;349,3600;\  
+#      363,3600;364,3600  
+# Retail: false  
+EnableModifySkillDuration = false  
+SkillDurationList =   
+ 
# This option is to enable or disable automatic skill learning.  
# To enable this option set it to true, and to disable set it to false.  
Index: /trunk/L2_GameServer_T1/java/net/sf/l2j/Config.java  
===================================================================  
--- /trunk/L2_GameServer_T1/java/net/sf/l2j/Config.java (revision 1796)  
+++ /trunk/L2_GameServer_T1/java/net/sf/l2j/Config.java (revision 1797)  
@@ -22,8 +22,10 @@  
import java.math.BigInteger;  
import java.util.List;  
+import java.util.Map;  
import java.util.Properties;  
import java.util.logging.Logger;  
  
import javolution.util.FastList;  
+import javolution.util.FastMap;  
  
/**  
@@ -99,4 +101,6 @@  
     public static double   RESPAWN_RESTORE_MP;  
     public static boolean  ALT_GAME_TIREDNESS;  
+    public static boolean  ENABLE_MODIFY_SKILL_DURATION;  
+    public static Map<Integer, Integer> SKILL_DURATION_LIST;  
     public static boolean  AUTO_LEARN_SKILLS;  
     public static boolean  AUTO_LOOT_HERBS;  
@@ -1023,4 +1027,31 @@  
                 CP_REGEN_MULTIPLIER                = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100;  
                 ALT_GAME_TIREDNESS                 = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false"));  
+                // Create Map only if enabled  
+                if (ENABLE_MODIFY_SKILL_DURATION)  
+                {  
+                    SKILL_DURATION_LIST = new FastMap<Integer, Integer>();  
+                    String[] propertySplit;  
+                    propertySplit = Character.getProperty("SkillDurationList", "").split(";");  
+                    for (String skill : propertySplit)  
+                    {  
+                        String[] skillSplit = skill.split(",");  
+                        if (skillSplit.length != 2)  
+                        {  
+                            System.out.println("[skillDurationList]: invalid config property -> SkillDurationList \"" + skill + "\"");  
+                        } else  
+                        {  
+                            try  
+                            {  
+                                SKILL_DURATION_LIST.put(Integer.valueOf(skillSplit[0]), Integer.valueOf(skillSplit[1]));  
+                            } catch (NumberFormatException nfe)  
+                            {  
+                                if (!skill.equals(""))  
+                                {  
+                                    System.out.println("[skillDurationList]: invalid config property -> SkillList \"" + skillSplit[0] + "\"" + skillSplit[1]);  
+                                }  
+                            }  
+                        }  
+                    }  
+                }  
                 AUTO_LEARN_SKILLS                  = Boolean.parseBoolean(Character.getProperty("AutoLearnSkills", "false"));  
                 AUTO_LOOT_HERBS                        = Boolean.parseBoolean(Character.getProperty("AutoLootHerbs", "true"));  
Index: /trunk/L2_GameServer_T1/java/net/sf/l2j/gameserver/skills/DocumentBase.java  
===================================================================  
--- /trunk/L2_GameServer_T1/java/net/sf/l2j/gameserver/skills/DocumentBase.java (revision 1774)  
+++ /trunk/L2_GameServer_T1/java/net/sf/l2j/gameserver/skills/DocumentBase.java (revision 1797)  
@@ -28,4 +28,5 @@  
import javolution.util.FastList;  
import javolution.util.FastMap;  
+import net.sf.l2j.Config;  
import net.sf.l2j.gameserver.datatables.SkillTable;  
import net.sf.l2j.gameserver.model.L2Character;  
@@ -207,4 +208,19 @@  
         {  
            time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(),template));  
+            if (Config.ENABLE_MODIFY_SKILL_DURATION)  
+            {  
+                if (Config.SKILL_DURATION_LIST.containsKey(((L2Skill) template).getId()))  
+                {  
+                    if (((L2Skill) template).getLevel() < 100)  
+                        time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId());  
+                    else if ((((L2Skill) template).getLevel() >= 100) && (((L2Skill) template).getLevel() < 140))  
+                        time += Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId());  
+                    else if (((L2Skill) template).getLevel() > 140)  
+                        time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId());  
+                    if (Config.DEBUG)  
+                        _log.info("*** Skill " + ((L2Skill) template).getName() + " (" + ((L2Skill) template).getLevel() + ") changed duration to " + time + " seconds.");  
+                }  
+            }  
+            else time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(),template));  
         }  
         else time = ((L2Skill) template).getBuffDuration() / 1000 / count;  

 

 

Hard??? I Dont Think ;D Have Fun..

 

-ShinKaZaMa

 

  • Author

Update Topic. If you dont have This mod  now you can add in ur pack Good Luck!! for problems or questions just reply here ;D

Hmmm i see many people asking About That...! I Think thos will Help Newbies.. Thanks For your Time... ;)

  • Author

Hmmm i see many people asking About That...! I Think thos will Help Newbies.. Thanks For your Time... ;)

your Welcome man :)

  • 3 weeks later...

both way are handy, but this one are more easier for people who dont have any minimal idea of how to do sql queries or build our customs ones...

 

besides, it's more quickly read a parsed file in a folder that do a query into a DB to obtain the skill spech...

 

Thanks any way... i preffer edit a file that edit the DB (in my case doesn't matter i can do both ^_^!) and a will use it jejeje...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.