L2JMobius

Interlude Echant rate

supersaiyan · 7 · 2272

Offline supersaiyan

  • Heir
  • **
    • Posts: 12
How can change the rate form normal scroll and  blessed ?


Online Mobius

  • Distinguished King
  • *****
    • Posts: 19656
dist\game\data\EnchantItemData.xml
dist\game\data\EnchantItemGroups.xml


Online dramaa

  • Baron
  • *****
    • Posts: 267
    • L2Equinox
this is max enchant. change it like you want
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/enchantItemData.xsd">
<!-- Scrolls: Enchant Weapon -->
<enchant id="729" targetGrade="A" maxEnchant="25" />
<enchant id="947" targetGrade="B" maxEnchant="25" />
<enchant id="951" targetGrade="C" maxEnchant="25" />
<enchant id="955" targetGrade="D" maxEnchant="25" />
<enchant id="959" targetGrade="S" maxEnchant="25" />

<!-- Scrolls: Enchant Armor -->
<enchant id="730" targetGrade="A" maxEnchant="25" />
<enchant id="948" targetGrade="B" maxEnchant="25" />
<enchant id="952" targetGrade="C" maxEnchant="25" />
<enchant id="956" targetGrade="D" maxEnchant="25" scrollGroupId="0" /> <!-- Default scroll groups binding. -->
<enchant id="960" targetGrade="S" maxEnchant="25" />

<!-- Blessed Scrolls: Enchant Weapon -->
<enchant id="6569" targetGrade="A" maxEnchant="25" />
<enchant id="6571" targetGrade="B" maxEnchant="25" />
<enchant id="6573" targetGrade="C" maxEnchant="25" />
<enchant id="6575" targetGrade="D" maxEnchant="25" />
<enchant id="6577" targetGrade="S" maxEnchant="25" />

<!-- Blessed Scrolls: Enchant Armor -->
<enchant id="6570" targetGrade="A" maxEnchant="25" />
<enchant id="6572" targetGrade="B" maxEnchant="25" />
<enchant id="6574" targetGrade="C" maxEnchant="25" />
<enchant id="6576" targetGrade="D" maxEnchant="25" />
<enchant id="6578" targetGrade="S" maxEnchant="25" />

<!-- Crystal Scrolls: Enchant Weapon -->
<enchant id="731" targetGrade="A" bonusRate="100" />
<enchant id="949" targetGrade="B" bonusRate="100" />
<enchant id="953" targetGrade="C" bonusRate="100" />
<enchant id="957" targetGrade="D" bonusRate="100" />
<enchant id="961" targetGrade="S" bonusRate="100" />

<!-- Crystal Scrolls: Enchant Armor -->
<enchant id="732" targetGrade="A" bonusRate="100" />
<enchant id="950" targetGrade="B" bonusRate="100" />
<enchant id="954" targetGrade="C" bonusRate="100" />
<enchant id="958" targetGrade="D" bonusRate="100" />
<enchant id="962" targetGrade="S" bonusRate="100" />
</list>
and this is chances
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/enchantItemGroups.xsd">
<!-- General armor enchant group. -->
<enchantRateGroup name="ARMOR_GROUP">
<current enchant="0-7" chance="100" />
<current enchant="7-34" chance="80" />
<current enchant="16-65535" chance="0" />
</enchantRateGroup>

<!-- General full armor enchant group. -->
<enchantRateGroup name="FULL_ARMOR_GROUP">
<current enchant="0-7" chance="100" />
<current enchant="7-34" chance="80" />
<current enchant="16-65535" chance="0" />
</enchantRateGroup>

<!-- General fighter weapon enchant group. -->
<enchantRateGroup name="FIGHTER_WEAPON_GROUP">
<current enchant="0-7" chance="100" />
<current enchant="7-34" chance="80" />
<current enchant="16-65535" chance="0" />
</enchantRateGroup>

<!-- General mage weapon enchant group. -->
<enchantRateGroup name="MAGE_WEAPON_GROUP">
<current enchant="0-7" chance="100" />
<current enchant="7-34" chance="80" />
<current enchant="16-65535" chance="0" />
</enchantRateGroup>

<!-- Default scrolls enchanting route line. -->
<enchantScrollGroup id="0">
<!-- Bind armor group to all item slots except full armor. -->
<enchantRate group="ARMOR_GROUP">
<item slot="lhand" /> <!-- Left hand: Shields, Sigils -->
<item slot="head" /> <!-- Head: Helmet -->
<item slot="chest" /> <!-- Chest: Armor upper body. -->
<item slot="legs" /> <!-- Legs: Armor lower body. -->
<item slot="feet" /> <!-- Feet: Boots -->
<item slot="gloves" /> <!-- Gloves: Gloves -->
<item slot="neck" /> <!-- Neck: Necklaces -->
<item slot="rear;lear" /> <!-- Right ear, Left ear: Earrings -->
<item slot="rfinger;lfinger" /> <!-- Right finger, Left finger: Rings -->
<item slot="shirt" /> <!-- Shirt: Shirts -->
</enchantRate>
<!-- Bind only full armor group to to full armor slot items. -->
<enchantRate group="FULL_ARMOR_GROUP">
<item slot="fullarmor" /> <!-- Full Armor: Full armor pants are included. -->
</enchantRate>
<!-- Bind only fighter weapon group to all fighter weapons. -->
<enchantRate group="FIGHTER_WEAPON_GROUP">
<item slot="rhand" magicWeapon="false" /> <!-- Right hand: Weapons, Non magic weapon -->
<item slot="lrhand" magicWeapon="false" /> <!-- Two hands: Weapons, Non magic weapon -->
</enchantRate>
<!-- Bind only mage weapon group to all magic weapons. -->
<enchantRate group="MAGE_WEAPON_GROUP">
<item slot="rhand" magicWeapon="true" /> <!-- Right hand: Weapons, Magic weapon -->
<item slot="lrhand" magicWeapon="true" /> <!-- Two hands: Weapons, Magic weapon -->
</enchantRate>
</enchantScrollGroup>
</list>


Online BazookaRpm

  • Count
  • *****
    • Posts: 444
  • Lineage II - lover - Heirophant
Example: git/l2j_mobius/L2J_Mobius_CT_0_Interlude/dist/game/data/

EnchantItemGroups.xml
Code: [Select]
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/enchantItemGroups.xsd">
<!--  General armor enchant group.  -->
<enchantRateGroup name="ARMOR_GROUP">
<current enchant="0-3" chance="100"/>
<current enchant="4-5" chance="96"/>
<current enchant="6-7" chance="86"/>
<current enchant="8-9" chance="76"/>
<current enchant="10-11" chance="66"/>
<current enchant="12-13" chance="56"/>
<current enchant="14-15" chance="46"/>
<current enchant="16-17" chance="36"/>
<current enchant="18-19" chance="26"/>
<current enchant="20-65535" chance="00"/>
</enchantRateGroup>
<!--  General full armor enchant group.  -->
<enchantRateGroup name="FULL_ARMOR_GROUP">
<current enchant="0-3" chance="100"/>
<current enchant="4-5" chance="96"/>
<current enchant="6-7" chance="86"/>
<current enchant="8-9" chance="76"/>
<current enchant="10-11" chance="66"/>
<current enchant="12-13" chance="56"/>
<current enchant="14-15" chance="46"/>
<current enchant="16-17" chance="36"/>
<current enchant="18-19" chance="26"/>
<current enchant="20-65535" chance="00"/>
</enchantRateGroup>
<!--  General fighter weapon enchant group.  -->
<enchantRateGroup name="FIGHTER_WEAPON_GROUP">
<current enchant="0-3" chance="100"/>
<current enchant="4-5" chance="96"/>
<current enchant="6-7" chance="86"/>
<current enchant="8-9" chance="76"/>
<current enchant="10-11" chance="66"/>
<current enchant="12-13" chance="56"/>
<current enchant="14-15" chance="46"/>
<current enchant="16-17" chance="36"/>
<current enchant="18-19" chance="26"/>
<current enchant="20-65535" chance="00"/>
</enchantRateGroup>
<!--  General mage weapon enchant group.  -->
<enchantRateGroup name="MAGE_WEAPON_GROUP">
<current enchant="0-3" chance="100"/>
<current enchant="4-5" chance="96"/>
<current enchant="6-7" chance="86"/>
<current enchant="8-9" chance="76"/>
<current enchant="10-11" chance="66"/>
<current enchant="12-13" chance="56"/>
<current enchant="14-15" chance="46"/>
<current enchant="16-17" chance="36"/>
<current enchant="18-19" chance="26"/>
<current enchant="20-65535" chance="00"/>
</enchantRateGroup>

EnchantItemData
Code: [Select]
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/enchantItemData.xsd">
<!--  Scrolls: Enchant Weapon  -->
<enchant id="729" targetGrade="A" maxEnchant="20"/>
<enchant id="947" targetGrade="B" maxEnchant="20"/>
<enchant id="951" targetGrade="C" maxEnchant="20"/>
<enchant id="955" targetGrade="D" maxEnchant="20"/>
<enchant id="959" targetGrade="S" maxEnchant="20"/>
<!--  Scrolls: Enchant Armor  -->
<enchant id="730" targetGrade="A" maxEnchant="20"/>
<enchant id="948" targetGrade="B" maxEnchant="20"/>
<enchant id="952" targetGrade="C" maxEnchant="20"/>
<enchant id="956" targetGrade="D" maxEnchant="20" scrollGroupId="0"/>
<!--  Default scroll groups binding.  -->
<enchant id="960" targetGrade="S" maxEnchant="20"/>
<!--  Blessed Scrolls: Enchant Weapon  -->
<enchant id="6569" targetGrade="A" bonusRate="10" maxEnchant="20"/>
<enchant id="6571" targetGrade="B" bonusRate="10" maxEnchant="20"/>
<enchant id="6573" targetGrade="C" bonusRate="10" maxEnchant="20"/>
<enchant id="6575" targetGrade="D" bonusRate="10" maxEnchant="20"/>
<enchant id="6577" targetGrade="S" bonusRate="10" maxEnchant="20"/>
<!--  Blessed Scrolls: Enchant Armor  -->
<enchant id="6570" targetGrade="A" bonusRate="10" maxEnchant="20"/>
<enchant id="6572" targetGrade="B" bonusRate="10" maxEnchant="20"/>
<enchant id="6574" targetGrade="C" bonusRate="10" maxEnchant="20"/>
<enchant id="6576" targetGrade="D" bonusRate="10" maxEnchant="20"/>
<enchant id="6578" targetGrade="S" bonusRate="10" maxEnchant="20"/>
<!--  Crystal Scrolls: Enchant Weapon  -->
<enchant id="731" targetGrade="A" bonusRate="100"/>
<enchant id="949" targetGrade="B" bonusRate="100"/>
<enchant id="953" targetGrade="C" bonusRate="100"/>
<enchant id="957" targetGrade="D" bonusRate="100"/>
<enchant id="961" targetGrade="S" bonusRate="100"/>
<!--  Crystal Scrolls: Enchant Armor  -->
<enchant id="732" targetGrade="A" bonusRate="100"/>
<enchant id="950" targetGrade="B" bonusRate="100"/>
<enchant id="954" targetGrade="C" bonusRate="100"/>
<enchant id="958" targetGrade="D" bonusRate="100"/>
<enchant id="962" targetGrade="S" bonusRate="100"/>
</list>
[\code]

Following the example above, you can separate each line, and in this way generate a more dynamic range regarding the enchantment percentage. Likewise, I previously sent you a message with the complete example.
Atte BazooKa.RPM

Lineage II Lovers


Offline supersaiyan

  • Heir
  • **
    • Posts: 12
because i dont want make a new post it possible to have all buff be 20 + 4 with song dance everything?


Online Skache

  • Distinguished King
  • *****
    • Posts: 825
    • l2skale.com
because i dont want make a new post it possible to have all buff be 20 + 4 with song dance everything?
Always search first, if there are no results, make a new post.
Someone else might need the same thing.

Did you mean this?
Character.ini
Code: [Select]
# Maximum number of buffs and songs/dances.
# Remember that Divine Inspiration will give players 4 additional buff slots on top of the number specified in "maxbuffamount".
# Default: 20, 12
MaxBuffAmount = 20
MaxDanceAmount = 12