Alternative Enchant System
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Alternative Enchant System
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 3136:
L2JDP Revision 6211:
Hi Guys i found this LINK on the old forum from 18-01-2009 is someone using this ? i tryed to compile it but some files are not like in the diff
» Find Revision
L2J Revision 3136:
L2JDP Revision 6211:
Hi Guys i found this LINK on the old forum from 18-01-2009 is someone using this ? i tryed to compile it but some files are not like in the diff
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
62 times read and nothing
still up 4 informations or more..

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Alternative Enchant System
Almost any thing can be done now by just editing digits in the AbstractEnchantPacket.java
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
Ok thx DS
i will test and post again because i never coded java
time to start hehe.
Hmm i checked the code hard hard


Hmm i checked the code hard hard
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Alternative Enchant System
Not so difficult.
_scrolls.put(729, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 0));
729 - item id
true - weapon enchant scroll, false - armor
true - blessed scroll (no destruction), false - non-safe
true - crystal scroll (not supported), false - not crystal
true - safe enchant scroll (does not lose enchant value on fail)
item grade
maxmum possible enchant level (0 - no limit)
chance increase (100 - always success)
_scrolls.put(729, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 0));
729 - item id
true - weapon enchant scroll, false - armor
true - blessed scroll (no destruction), false - non-safe
true - crystal scroll (not supported), false - not crystal
true - safe enchant scroll (does not lose enchant value on fail)
item grade
maxmum possible enchant level (0 - no limit)
chance increase (100 - always success)
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
Yep i think i got it with your help 
just an example:
So if i undestand i made following on this example:
All enchants don't Crystalise on fail and
S max +30
A max +25
B max +20
C max +15
D max +10
I'm right no ?

just an example:
Code: Select all
// itemId, (isWeapon, isBlessed, isCrystal, isSafe, grade, max enchant level, chance increase) _scrolls.put(729, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_A, 25, 0)); _scrolls.put(730, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_A, 25, 0)); _scrolls.put(731, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_A, 25, 0)); _scrolls.put(732, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_A, 25, 0)); _scrolls.put(947, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_B, 20, 0)); _scrolls.put(948, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_B, 20, 0)); _scrolls.put(949, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_B, 20, 0)); _scrolls.put(950, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_B, 20, 0)); _scrolls.put(951, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_C, 15, 0)); _scrolls.put(952, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_C, 15, 0)); _scrolls.put(953, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_C, 15, 0)); _scrolls.put(954, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_C, 15, 0)); _scrolls.put(955, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_D, 10, 0)); _scrolls.put(956, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_D, 10, 0)); _scrolls.put(957, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_D, 10, 0)); _scrolls.put(958, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_D, 10, 0)); _scrolls.put(959, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_S, 30, 0)); _scrolls.put(960, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_S, 30, 0)); _scrolls.put(961, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_S, 30, 0)); _scrolls.put(962, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_S, 30, 0));
All enchants don't Crystalise on fail and
S max +30
A max +25
B max +20
C max +15
D max +10
I'm right no ?

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Alternative Enchant System
Looks like all ok. I also recommend set different max enchant values for armor and wep.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
Yes and is it possible to make if fail enchant -1 20% or enchant stay at same + 80% or something like that ?
An other question if i edit the % enchant rate in the java file i don't need to edit it in the config file ?

An other question if i edit the % enchant rate in the java file i don't need to edit it in the config file ?
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
Ok i tested now the Limit work but not % no fails
I tested a A Weapon with scroll 729 from 0 - 30 not 1 Fail so i think the chance increase isn't working or is that Config Chance + chance increase ?
Code: Select all
// itemId, (isWeapon, isBlessed, isCrystal, isSafe, grade, max enchant level, chance increase) _scrolls.put(729, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_A, 30, 65)); _scrolls.put(730, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_A, 30, 65)); _scrolls.put(731, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_A, 30, 100)); _scrolls.put(732, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_A, 30, 100)); _scrolls.put(947, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_B, 25, 70)); _scrolls.put(948, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_B, 25, 70)); _scrolls.put(949, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_B, 25, 100)); _scrolls.put(950, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_B, 25, 100)); _scrolls.put(951, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_C, 20, 75)); _scrolls.put(952, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_C, 20, 75)); _scrolls.put(953, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_C, 20, 100)); _scrolls.put(954, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_C, 20, 100)); _scrolls.put(955, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_D, 15, 80)); _scrolls.put(956, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_D, 15, 80)); _scrolls.put(957, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_D, 15, 100)); _scrolls.put(958, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_D, 15, 100)); _scrolls.put(959, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_S, 35, 60)); _scrolls.put(960, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_S, 35, 60)); _scrolls.put(961, new EnchantScroll(true, false, true, true, L2Item.CRYSTAL_S, 35, 100)); _scrolls.put(962, new EnchantScroll(false, false, true, true, L2Item.CRYSTAL_S, 35, 100)); _scrolls.put(6569, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_A, 30, 75)); _scrolls.put(6570, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_A, 30, 75)); _scrolls.put(6571, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_B, 25, 80)); _scrolls.put(6572, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_B, 25, 80)); _scrolls.put(6573, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_C, 20, 85)); _scrolls.put(6574, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_C, 20, 85)); _scrolls.put(6575, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_D, 15, 90)); _scrolls.put(6576, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_D, 15, 90)); _scrolls.put(6577, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_S, 35, 70));
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Alternative Enchant System
This is a chance increase, added to base chance from config. 65+66 > 100.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 34
- Joined: Sat Aug 02, 2008 9:41 am
Re: Alternative Enchant System
Yes i found it already i made config rate 1x working verry nice 
BIG BIG thx on _Ds_ if you have
If you have recommendations _Ds_ let me know it

BIG BIG thx on _Ds_ if you have
If you have recommendations _Ds_ let me know it
