Jump to content

[Share] Custom Enchant System [Blessed & Crystal Scrolls]


Recommended Posts

man i have problem with this . I think the problem is with the word Config /Blessed/Crystal

 

 

  if (Config.ENCHANT_SCROLL_CRYSTAL_SYSTEM)

 

                {

 

                        if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON_CRYSTAL;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL;

 

                                                ;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                        else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_ARMOR_CRYSTAL;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                        else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_JЕWELRY_CRYSTAL;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                }

 

             

 

                if (Config.ENCHANT_SCROLL_BLESSED_SYSTEM)

 

                {

 

                        if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON_BLESSED;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL;

 

                                                ;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                        else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_ARMOR_BLESSED;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                        else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)

 

                        {

 

                                maxEnchantLevel = Config.ENCHANT_MAX_JЕWELRY_BLESSED;

 

                                for (int scrollId : ENCHANT_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : CRYSTAL_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL;

 

                                                break;

 

                                        }

 

                                }

 

                                for (int scrollId : BLESSED_SCROLLS)

 

                                {

 

                                        if (scroll.getItemId() == scrollId)

 

                                        {

 

                                                chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED;

 

                                                break;

 

                                        }

 

                                }

 

                        }

 

                }

Link to comment
Share on other sites

  • 2 weeks later...

I work on L2J-Infinity and i insterted the code right.. but no working ... Dont know why:S

No errors .. General/Other.Properties Config is ok..

I set to true but nothing:S

 

(Edited):@

Ohhh shit ... i had forgoten that i posted before...

Dont de-karma me for this mistake plz.. :S

plz smbdy remove the previous post

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock