phantoml2 Posted December 30, 2017 Posted December 30, 2017 How can i make 100% for weapons? i tried many methods but nothing 373 rev.. # % chance of success to enchant a magic weapon EnchantChanceMagicWeapon = 0.4 EnchantChanceMagicWeapon15Plus = 0.2 # % chance of success to enchant a non magic weapon EnchantChanceNonMagicWeapon = 0.7 EnchantChanceNonMagicWeapon15Plus = 0.35 # % chance of success to enchant an armor part (both jewelry or armor) EnchantChanceArmor = 0.66
0 phantoml2 Posted December 30, 2017 Author Posted December 30, 2017 13 minutes ago, melron said: 1 ? :D 1.0 still breaks 1.00 still breaks i tried 100.0 100.00 and nothing still breaks..
0 melron Posted December 30, 2017 Posted December 30, 2017 Just now, phantoml2 said: 1.0 still breaks 1.00 still breaks i tried 100.0 100.00 and nothing still breaks.. still breaks on what enchant value?
0 phantoml2 Posted December 30, 2017 Author Posted December 30, 2017 2 minutes ago, melron said: still breaks on what enchant value? random i Btw i found that # % chance of success to enchant a magic weapon EnchantChanceMagicWeapon = 0.4 EnchantChanceMagicWeapon15Plus = 0.2# % chance of success to enchant a non magic weapon EnchantChanceNonMagicWeapon = 0.7 EnchantChanceNonMagicWeapon15Plus = 0.35 the second line is for every scroll existi n l2 crystal,bless and normal if i change the second only then enchant % changes the first one is useless
0 melron Posted December 30, 2017 Posted December 30, 2017 the first one is for magic weapons like arcana mace. the 2nd is non magic weapons for EX db bow... now about the armor type formulas acis chance is different like frozen for ex. take a look chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); means in every enchant the chance is lower . live example with 0.99 in configs for armor
0 phantoml2 Posted December 30, 2017 Author Posted December 30, 2017 1 minute ago, melron said: the first one is for magic weapons like arcana mace. the 2nd is non magic weapons for EX db bow... now about the armor type formulas acis chance is different like frozen for ex. take a look chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); means in every enchant the chance is lower . live example with 0.99 in configs for armor aaaa ok thank you problem solved thank melron
Question
phantoml2
How can i make 100% for weapons? i tried many methods but nothing 373 rev..
# % chance of success to enchant a magic weapon
EnchantChanceMagicWeapon = 0.4
EnchantChanceMagicWeapon15Plus = 0.2
# % chance of success to enchant a non magic weapon
EnchantChanceNonMagicWeapon = 0.7
EnchantChanceNonMagicWeapon15Plus = 0.35
# % chance of success to enchant an armor part (both jewelry or armor)
EnchantChanceArmor = 0.66
6 answers to this question
Recommended Posts