Jump to content
  • 0

Enchanting Code ;)


Question

Posted

Καλησπερα , θα ήθελα εάν γνωρίζει κάποιος έναν κώδικα η κάποιον άλλον τρόπο να αλλάξω το Max Enchant ανάλογα με το Item Grade. Πχ τα A-grade items να έχουν Max enchant +20 και τα S -grade +16. Ευχαριστω ! ;)

3 answers to this question

Recommended Posts

  • 0
Posted

Καλησπερα φιλαρακο ειδα οτι χρειαστηκες βοηθεια

Ψαξε λιγο μεσα στο enchant config

εκει θα τα βρεις!

 

κατι παρομοιο με αυτο!

 

Οτι αλλο θες να ρωτησεις επικοινωνησε μαζι μου!

Skype : {Dev}Teo+Lineage2

 

# ==================================================
#
# Enchant System by Darelius
# Mail: Lmm@gmx.net
# For L2j Development
#
# ==================================================
#
# This Enchant System can used to change the Enchant System
# of Lineage 2
#

# General Description of Enchantment:
# An item has a Chance to be successfully enchanted.
# This Chance is being modified by Options below.
# On Failure of Enchant there are Options, what happen to the Item
# The maximum Enchant Bonus can vary

# ========== Enchantment Chance Modification ==========
# == Enchantment Base Chance by Scroll type
# If set to False, all Scrolls have the same Enchant Chance
# (The Chance of the Normal Scroll)
# Retail: True, 52, 52, 52
EnchantOptionChanceScroll = True
EnchantChanceScrollNormal = 52
EnchantChanceScrollCrystal = 52
EnchantChanceScrollBlessed = 52

# == Enchantment Chance by Item Type
# if set to true, this will be added to the normal chance of enchant
# if set to false, all item types have the same chance
# Retail: True, 16, 16, 0, 0, 0, 2
EnchantOptionChanceType = True
EnchantChanceTypeWeapon = 14
EnchantChanceTypeWeaponBoth = 14
EnchantChanceTypeArmor = 0
EnchantChanceTypeArmorFull = 0
EnchantChanceTypeArmorShield = 0
EnchantChanceTypeJewelry = 2

# == Enchantment Chance by Item Grade
# If set to True, different Item Grades add these to the
# Enchant Chance.
# Retail = False, 25, 20, 15, 10, 5, 0
EnchantOptionChanceGrade = false
EnchantChanceGradeD = 25
EnchantChanceGradeC = 25
EnchantChanceGradeB = 25
EnchantChanceGradeA = 25
EnchantChanceGradeS = 25
EnchantChanceGradeSX = 25

# == Enchantment Chance by Character Class
# If set to True, Crafter (Artisan, Warsmith and Maestro)
# Gains a Bonus on enchanting
# Retail = False, 10, 20, 30
EnchantOptionChanceClass = false
EnchantChanceClassArtisan = 10
EnchantChanceClassWarsmith = 20
EnchantChanceClassMaestro = 30


# ========== Enchantment Maximum Modification ==========
# == Enchantment Maximum by Scroll Type
# If set to true, different Scroll types have different
# Maximum Enchantment
# Note:
#        This will override all other Maximum Enchantment Settings!
# On Maximum Zero, there is no Limit
# Retail: False, 0, 0, 0
EnchantOptionMaxScroll = false
EnchantMaxScrollNormal = 0
EnchantMaxScrollCrystal = 0
EnchantMaxScrollBlessed = 0

# == Enchantment Maximum by Item Type
# If set to True, different Item Types have different
# Maximum Enchant
# Retail: False, 25, 25, 25, 25, 25, 25
EnchantOptionMaxType = false
EnchantMaxTypeWeapon = 25
EnchantMaxTypeWeaponBoth = 25
EnchantMaxTypeArmor = 25
EnchantMaxTypeArmorFull = 25
EnchantMaxTypeArmorShield = 25
EnchantMaxTypeJewelry = 25

# == Enchantment Maximum by Item Grade
# If set to True, different Item Grades have different Maximum Enchants
# Retail: false, 0, 0, 0, 0, 0, 0
EnchantOptionMaxGrade = false
EnchantMaxGradeD = 0
EnchantMaxGradeC = 0
EnchantMaxGradeB = 0
EnchantMaxGradeA = 0
EnchantMaxGradeS = 0
EnchantMaxGradeSX = 0


# ========== Enchantment Safe Options ==========
# == Enchantment Safe by Scroll Type
# This set the Safe Enchant Level for Items.
# Safe Enchant up to this Grade means No Failure Chance
# If set to false, all Scrolls have the same (normal) Safe Enchant
# Reatail: False, 0, 1, 2
EnchantOptionSafeScroll = false
EnchantSafeScrollNormal = 0
EnchantSafeScrollCrystal = 0
EnchantSafeScrollBlessed = 0

# == Enchantment Safe by Item Type
# If set to True, different Item Types have different
# Retail: True, 3, 3, 3, 4, 3, 3
EnchantOptionSafeType = True
EnchantSafeTypeWeapon = 3
EnchantSafeTypeWeaponBoth = 3
EnchantSafeTypeArmor = 3
EnchantSafeTypeArmorFull = 4
EnchantSafeTypeArmorShield = 3
EnchantSafeTypeJewelry = 3

# == Enchantment Safe by Item Grade
# If set to True, Safe Enchant were different from Item grades
# Retail: false, 0, 0, 0, 0, 0, 0
EnchantOptionSafeGrade = false
EnchantSafeGradeD = 0
EnchantSafeGradeC = 0
EnchantSafeGradeB = 0
EnchantSafeGradeA = 0
EnchantSafeGradeS = 0
EnchantSafeGradeSX = 0

# ========== Enchantment Failure Options ==========
# This set what happen on failure during enchanting
# Possible options:
# 1 - crystal -> the item breakes into crystals
# 2 - none - nothing happen, the scroll is lost, item stay as before
# 3 - zero - item enchantment reduces to zero
# 4 - lose - Item loses one enchantment level
# Retail: 1, 1, 3
EnchantOptionFail = 1
EnchantOptionFailCrystal = 1
EnchantOptionFailBlessed = 3


# ==================================================
#
# Special Note:
#
# All Values of Chances are in Percent and added together!
# So if you change something, calculate carefully!
# All other Values are cumulative, too, but not in percent
# Standard Options are set to Standard Enchant System!

  • 0
Posted

Ευχαριστώ για την βοήθεια αγορίνα αλλά το Enchant Config μου δεν εχει καμία σχέση με αυτό που έκανες post. Δουλεύω σε l2jfrozen. Εάν θα μπορούσες να μου κάνεις share με κάποιον τρόπο το συγκεκριμένο κομμάτι του κώδικα θα ήταν πολύ καλό. :)

#============================================================#
#                       Enchant Settings                     #
#============================================================#
#            Pack: l2jfrozen Site: www.l2jfrozen.com         #
#============================================================#

# ----------------------------------------------
#  Special Enchanting System -
# ----------------------------------------------
# Chance enchanting presented as a series of pairs of numbers where the first
# Indicates the number of levels, and the second chance of successful enchanting.
# Also have the option of limiting the maximum level of echanting
# For weapons / armor / jewelry.
# If you have a maximum level of grinding 50 and you do not want
# Give all the chances for each level (from 1 to 50) then
# You can specify for example:
# NormalWeaponEnchantLevel = 1,100; 2,100; 3,100; 4,75; 5,50; 
# Example: 5,92; = if you enchant weapon to +5 you have 92% to success.
# ----------------------------------------------
#  Chance For Normal Scrolls -
# ----------------------------------------------
# Weapon
NormalWeaponEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,90;8,85;9,85;10,85;11,75;12,75;13,75;14,75;15,75;16,70;17,35;18,35;19,30;20,30;21,25;22,20;23,20;24,20;25,15;
# Armor
NormalArmorEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,90;8,85;9,85;10,85;11,75;12,75;13,75;14,75;15,75;16,70;17,45;18,45;19,40;20,30;21,30;22,30;23,30;24,20;25,20;
# Jewel
NormalJewelryEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,90;8,85;9,85;10,85;11,75;12,75;13,75;14,75;15,75;16,70;17,45;18,45;19,40;20,30;21,30;22,30;23,30;24,20;25,20;

# ----------------------------------------------
#  Chance For Blessed Scrolls -
# ----------------------------------------------
# Weapon
BlessWeaponEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,100;8,100;9,100;10,100;11,100;12,100;13,100;14,100;15,100;16,95;17,90;18,90;19,90;20,90;21,90;22,90;23,90;24,90;25,90;
# Armor
BlessArmorEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,100;8,100;9,100;10,100;11,100;12,100;13,100;14,100;15,100;16,95;17,90;18,90;19,90;20,90;21,90;22,90;23,90;24,90;25,90;
# Jewel
BlessJewelryEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,100;8,100;9,100;10,100;11,100;12,100;13,100;14,100;15,100;16,95;17,90;18,90;19,90;20,90;21,90;22,90;23,90;24,90;25,90;

# ---------------------------------------------
#  Chance For Crystal Scrolls -
# ---------------------------------------------
# Weapon
CrystalWeaponEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,90;8,90;9,90;10,85;11,85;12,85;13,85;14,80;15,80;16,80;17,25;18,25;19,25;20,25;21,25;22,25;23,25;24,25;25,25;
# Armor
CrystalArmorEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,85;8,85;9,85;10,85;11,80;12,80;13,80;14,80;15,80;16,80;17,25;18,25;19,25;20,25;21,25;22,25;23,25;24,25;25,25;
# Jewel
CrystalJewelryEnchantLevel = 1,100;2,100;3,100;4,100;5,100;6,100;7,85;8,85;9,85;10,85;11,70;12,70;13,70;14,70;15,70;16,50;17,25;18,25;19,25;20,25;21,25;22,25;23,25;24,25;25,25;

# Safe enchant
EnchantSafeMax = 7
EnchantSafeMaxFull = 8

# Crystal Limits
CrystalEnchantMin = 0
CrystalEnchantMax = 25

# Max enchant Settings by scrolls.
EnchantWeaponMax=25
EnchantArmorMax=25
EnchantJewelryMax=25

# On / off bonuses at enchant dwarfs 
# Custom Patch, Dwarf have a bonus on Enchant!
# Default: False
EnableDwarfEnchantBonus = False
# Minimun level for enchant
DwarfEnchantMinLevel = 80
# bonus enchant
DwarfEnchantBonus = 15

# On / off enchant hero weapons
EnableEnchantHeroWeapons = False

# The value of enchanting
# For example: If CustomEnchantValue = 5 Sharpening will:
# From 0 till the +5, with +5 to +10, from +10 to +15, etc.
# Total: 15 for three to scroll
# Default: 1 
CustomEnchantValue = 1

# --------------------------
#  Augmentation -
# --------------------------
# Chance to get a skill
# Default: 15, 30, 45, 60
AugmentationNGSkillChance = 15
AugmentationMidSkillChance = 15
AugmentationHighSkillChance = 25
AugmentationTopSkillChance = 50
# Chance to get a base stat
# Default: 1
AugmentationBaseStatChance = 1

# Chance to get the glow
# Note:
# No Grade / Mid Grade not have emission
# Default: 0, 40, 70, 100
AugmentationNGGlowChance = 0
AugmentationMidGlowChance = 0
AugmentationHighGlowChance = 100
AugmentationTopGlowChance = 100

# Augments Active and Passive skills delete on change weapon
DeleteAgmentPassiveEffectOnChangeWep=true
DeleteAgmentActiveEffectOnChangeWep=true

# ----------------------
#  Soul Crystal -
# ----------------------
# The chance that the crystal breaks 
SoulCrystalBreakChance = 10

# Chance to improve Cristal
SoulCrystalLevelChance = 32

# Chance to improve Cristal
SoulCrystalMaxLevel = 13
#----------------------

# Enchant limit for Olympiad battles.
# (Maximum enchant level allowed for an item to be equipped, -1 to disable)
AltOlyMaxEnchant = 7

# Enchant after break with blessed scroll.
BreakEnchant = 0

# Limit enchant GM players (// setew and others) (0 disabled)
GMOverEnchant = 0

# IMPORTANT: anti Over Enchant system
# HOW WORKS: if you set it to 20, and player have an item > 20 
# he will be kicked and the item will disappear!
# Enchant amount at which a player gets punished (0 disabled)
EnchantKick = 25
  • 0
Posted

An den uparxei sta config sou tote einai sta data 8a sou doso ena name na psaksis 8a psaksis auto  -> enchantItemData.xml ama dn uparxei stile mou minima

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...