[Geo]Sky Posted November 30, 2010 Posted November 30, 2010 Hello Mxc. I Need help witch Java, I Need Create Config Server/configs/BySky.ini <-- BySky.ini And Put Here My Configs, How To Create In Java?
0 Trance Posted November 30, 2010 Posted November 30, 2010 1s. You know insult members and then u need help ? 2nd. You want BySky.ini but created by another member ? You're pathetic. Do it.. something like that: Index: Trance-Core/java/net/sf/l2j/Config.java =================================================================== --- Trance-Core/java/net/sf/l2j/Config.java (revision 11) +++ Trance-Core/java/net/sf/l2j/Config.java (working copy) @@ -44,6 +44,7 @@ public static final String PHYSICS_CONFIG_FILE = "./config/General/Balance.ini"; public static final String DEVELOPER_CONFIG_FILE = "./config/Protection/Developer.ini"; public static final String TRANCE_CONFIG_FILE = "./config/Custom/TRANCECustom.ini"; + public static final String BY_SKY_CONFIG_FILE = "./config/Custom/BySky.ini"; public static final String TRANCEMODS_CONFIG_FILE = "./config/Custom/TRANCEMods.ini"; public static final String BUFF_FILE = "./config/Custom/Buffs.ini"; public static final String INTERNAL_FILE = "./config/Network/Networks.ini"; @@ -1026,6 +1027,11 @@ public static boolean ALT_DEV_NO_QUESTS; public static boolean ALT_DEV_NO_SPAWNS; public static boolean ALT_DEV7; + + public static boolean SKY_IS_PATHETIC; @@ -1750,6 +1756,23 @@ e.printStackTrace(); throw new Error("Failed to Load "+TRANCE_CONFIG_FILE+" File."); } + _log.info("Loading " +BY_SKY_CONFIG_FILE); + try + { + Properties BySkySettings = new Properties(); + InputStream is = new FileInputStream(new File(BY_SKY_CONFIG_FILE)); + BySkySettings.load(is); + is.close(); + SKY_IS_PATHETIC = Boolean.parseBoolean(BySkySettings.getProperty("SkyIsPathetic", "True")); + } + catch (Exception e) + { + e.printStackTrace(); + throw new Error("Failed to Load "+BY_SKY_CONFIG_FILE+" File."); + } _log.info("Loading " +TRANCEMODS_CONFIG_FILE); try { Index: Trance-Core/java/config/Custom/BySky.ini =================================================================== --- Trance-Core/java/config/Custom/BySky.ini (revision 0) +++ Trance-Core/java/config/Custom/BySky.ini (revision 0) @@ -0,0 +1,18 @@ +#---------------------------------------------------------------------# +# BySky - Trance Team # +#---------------------------------------------------------------------# + +# What do you think ? +SkyIsPathetic = True + +#---------------------------- End Of List ----------------------------# \ No newline at end of file
0 [Geo]Sky Posted November 30, 2010 Author Posted November 30, 2010 +#---------------------------------------------------------------------# +# BySky - Trance Team # +#---------------------------------------------------------------------# + +# What do you think ? +SkyIsPathetic = True :D :D :D I Need To Create My Config Not to Autor By My Only My Config BySky.ini and Put Other Configs Here. http://www.maxcheaters.com/forum/index.php?topic=58813.0 Check This Link I Need To Put This Config +# Alternative damage for dagger skills. +DaggerVSHeavy = 2.50 +DaggerVSRobe = 1.80 +DaggerVSLight = 2.00 + In BySky.ini, How To Make This?
0 Trance Posted November 30, 2010 Posted November 30, 2010 Index: Trance-Core/java/net/sf/l2j/Config.java =================================================================== --- Trance-Core/java/net/sf/l2j/Config.java (revision 11) +++ Trance-Core/java/net/sf/l2j/Config.java (working copy) @@ -44,6 +44,7 @@ public static final String PHYSICS_CONFIG_FILE = "./config/General/Balance.ini"; public static final String DEVELOPER_CONFIG_FILE = "./config/Protection/Developer.ini"; public static final String TRANCE_CONFIG_FILE = "./config/Custom/TRANCECustom.ini"; + public static final String BY_SKY_CONFIG_FILE = "./config/Custom/BySky.ini"; public static final String TRANCEMODS_CONFIG_FILE = "./config/Custom/TRANCEMods.ini"; public static final String BUFF_FILE = "./config/Custom/Buffs.ini"; public static final String INTERNAL_FILE = "./config/Network/Networks.ini"; @@ -1026,6 +1027,11 @@ public static boolean ALT_DEV_NO_QUESTS; public static boolean ALT_DEV_NO_SPAWNS; public static boolean ALT_DEV7; + + public static float ALT_DAGGER_DMG_VS_HEAVY; + public static float ALT_DAGGER_DMG_VS_ROBE; + public static float ALT_DAGGER_DMG_VS_LIGHT; @@ -1750,6 +1756,23 @@ e.printStackTrace(); throw new Error("Failed to Load "+TRANCE_CONFIG_FILE+" File."); } + _log.info("Loading " +BY_SKY_CONFIG_FILE); + try + { + Properties BySkySettings = new Properties(); + InputStream is = new FileInputStream(new File(BY_SKY_CONFIG_FILE)); + BySkySettings.load(is); + is.close(); + ALT_DAGGER_DMG_VS_HEAVY = Float.parseFloat(BySkySettings.getProperty("DaggerVSHeavy", "2.50")); + ALT_DAGGER_DMG_VS_ROBE = Float.parseFloat(BySkySettings.getProperty("DaggerVSRobe", "1.80")); + ALT_DAGGER_DMG_VS_LIGHT = Float.parseFloat(BySkySettings.getProperty("DaggerVSLight", "2.00")); + } + catch (Exception e) + { + e.printStackTrace(); + throw new Error("Failed to Load "+BY_SKY_CONFIG_FILE+" File."); + } _log.info("Loading " +TRANCEMODS_CONFIG_FILE); try { Index: Trance-Core/java/config/Custom/BySky.ini =================================================================== --- Trance-Core/java/config/Custom/BySky.ini (revision 0) +++ Trance-Core/java/config/Custom/BySky.ini (revision 0) @@ -0,0 +1,18 @@ +#---------------------------------------------------------------------# +# BySky # +#---------------------------------------------------------------------# + +# Alternative damage for dagger skills. +DaggerVSHeavy = 2.50 +DaggerVSRobe = 1.80 +DaggerVSLight = 2.00 + +#---------------------------- End Of List ----------------------------# Index: java/net/sf/l2j/gameserver/skills/Formulas.java =================================================================== @@ -1231,4 +1231,20 @@ } + + if (target instanceof L2PcInstance && weapon != null && weapon.getItemType() == L2WeaponType.DAGGER && skill != null) + { + L2Armor armor = ((L2PcInstance) target).getActiveChestArmorItem(); + if (armor != null) + { + if (((L2PcInstance) target).isWearingHeavyArmor()) + damage /= Config.ALT_DAGGER_DMG_VS_HEAVY; + if (((L2PcInstance) target).isWearingLightArmor()) + damage /= Config.ALT_DAGGER_DMG_VS_LIGHT; + if (((L2PcInstance) target).isWearingMagicArmor()) + damage /= Config.ALT_DAGGER_DMG_VS_ROBE; + } + } + + if (attacker instanceof L2NpcInstance) {
0 [Geo]Sky Posted November 30, 2010 Author Posted November 30, 2010 Tnx Trance :) + throw new Error("Failed to Load "+BY_SKY_CONFIG_FILE+" File."); What This IS ?
0 Trance Posted November 30, 2010 Posted November 30, 2010 Sky" post="1510335" timestamp="1291112375"] Tnx Trance :) + throw new Error("Failed to Load "+BY_SKY_CONFIG_FILE+" File."); What This IS ? Np. warning... message, if server can't load this file, u can see it in gameserver.
0 [Geo]Sky Posted November 30, 2010 Author Posted November 30, 2010 Tnx Again Trance. Close Moder Topic
Question
[Geo]Sky
Hello Mxc. I Need help witch Java, I Need Create Config Server/configs/BySky.ini <-- BySky.ini And Put Here My Configs, How To Create In Java?
6 answers to this question
Recommended Posts