Page 1 of 1

Alternative Enchant System

Posted: Fri Jun 12, 2009 7:12 pm
by Kedon
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

Re: Alternative Enchant System

Posted: Thu Jun 18, 2009 6:08 pm
by Kedon
62 times read and nothing :( still up 4 informations or more..

Re: Alternative Enchant System

Posted: Fri Jun 19, 2009 2:23 am
by _DS_
Almost any thing can be done now by just editing digits in the AbstractEnchantPacket.java

Re: Alternative Enchant System

Posted: Fri Jun 19, 2009 11:39 am
by Kedon
Ok thx DS :) i will test and post again because i never coded java :P time to start hehe.

Hmm i checked the code hard hard

Re: Alternative Enchant System

Posted: Fri Jun 19, 2009 12:02 pm
by _DS_
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)

Re: Alternative Enchant System

Posted: Fri Jun 19, 2009 7:26 pm
by Kedon
Yep i think i got it with your help :)

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)); 
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 ? :)

Re: Alternative Enchant System

Posted: Sat Jun 20, 2009 7:13 am
by _DS_
Looks like all ok. I also recommend set different max enchant values for armor and wep.

Re: Alternative Enchant System

Posted: Sat Jun 20, 2009 10:45 am
by Kedon
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 ?

Re: Alternative Enchant System

Posted: Sat Jun 20, 2009 1:38 pm
by Kedon
Ok i tested now the Limit work but not % no fails

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));
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 ?

Re: Alternative Enchant System

Posted: Sat Jun 20, 2009 3:09 pm
by _DS_
This is a chance increase, added to base chance from config. 65+66 > 100.

Re: Alternative Enchant System

Posted: Sat Jun 20, 2009 7:00 pm
by Kedon
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 :)