Jump to content
  • 0

Enchant bugg


Question

Posted

Hello, in my server max +12 with crystal +15, then i make with crystal +15 and wear it i get kick and says item is overenchanted, how fix this?

Use l2jfrozen

 

# Safe enchant
EnchantSafeMax = 4
EnchantSafeMaxFull = 4

# Crystal Limits
CrystalEnchantMin = 12
CrystalEnchantMax = 15

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

# 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 = 0

8 answers to this question

Recommended Posts

  • 0
Posted

# 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 a-beep-t at which a player gets punished (0 disabled)
EnchantKick = 0

 

this may be bugged in core try set it to 20 and try again if it works send me the .java so i can do some work for you

 

also this:

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

  • 0
Posted

Hello, in my server max +12 with crystal +15, then i make with crystal +15 and wear it i get kick and says item is overenchanted, how fix this?

Use l2jfrozen

 

# Safe enchant
EnchantSafeMax = 4
EnchantSafeMaxFull = 4

# Crystal Limits
CrystalEnchantMin = 12
CrystalEnchantMax = 15

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

# 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 a-beep-t at which a player gets punished (0 disabled)
EnchantKick = 0

Seems fine.

 

It prolly have another option in configs for this,which you'll have to change(search configs)

  • 0
Posted

Fanky, it doesn't have another option in other configs, i searched...

 

P.S. Max +12 and then i have +12 gun i wear it and nothing but then i make with crystal +15 as i say crystal max +15 i wear it and get kicked because its say overenchanted. Please help to me! :)

  • 0
Posted

First of all check your EnterWorld.java

 if (i.getEnchantLevel() > Config.MAX_ITEM_ENCHANT_KICK)
                        {
                            //Delete Item Over enchanted
                            activeChar.getInventory().destroyItem(null, i, activeChar, null);
                            //Message to Player
                            activeChar.sendMessage("[server]: You have over enchanted items you will be kicked from server!");
                            activeChar.sendMessage("[server]: Respect our server rules.");
                            //Message with screen
                            sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000));
                            //Punishment e log in audit
                            Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " has Overenchanted  item! Kicked! ", Config.DEFAULT_PUNISH);
                            //Logger in console
                            _log.info("#### ATTENTION ####");
                            _log.info(i+" item has been removed from "+activeChar);
                        }

 

and then your config.java find this:

MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0"));
		GM_OVER_ENCHANT = Integer.parseInt(ENCHANTSetting.getProperty("GMOverEnchant", "0"));

 

also please send me your enterworld.java and config.java so i can doublecheck

  • 0
Posted

			MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0"));
		GM_OVER_ENCHANT = Integer.parseInt(ENCHANTSetting.getProperty("GMOverEnchant", "0"));

 

		// SECURE FIX - Anti Overenchant Cheat!!
	if(Config.MAX_ITEM_ENCHANT_KICK >0)
	{
		for (L2ItemInstance i : activeChar.getInventory().getItems())
		{
			if (!activeChar.isGM())
			{	
				if (i.isEquipable())
				{	
					if (i.getEnchantLevel() > Config.MAX_ITEM_ENCHANT_KICK)
					{                        
						//Delete Item Over enchanted
						activeChar.getInventory().destroyItem(null, i, activeChar, null);
						//Message to Player
						activeChar.sendMessage("[server]: You have over enchanted items you will be kicked from server!");
						activeChar.sendMessage("[server]: Respect our server rules.");
						//Message with screen
						sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000));
						//Punishment e log in audit
						Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " has Overenchanted  item! Kicked! ", Config.DEFAULT_PUNISH);                     
						//Logger in console
						_log.info("#### ATTENTION ####");
						_log.info(i+" item has been removed from "+activeChar);
					}

				}
			}
		}
	}

 

 

  • 0
Posted

Configs in frozen are buged.. some of them don't work correctly

 

go in  config/protected/other  and   

 

Set to false

 

ProtectorEnchant= False

 

then will work...

  • 0
Posted

the simple way for your solution is to go in config/protected/other.properties

# On / off protection from re-enchant

# The GMs do not apply

# If a player log with an item Overenchanted he will be banned.

# IMPORTANT: Put True for server security.

ProtectorEnchant = False

 

have fun

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • L2 PEARL — OPEN BETA REWARDS   Join the L2 Pearl Open Beta and receive exclusive rewards for your participation. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OPEN BETA REWARDS   Players who participate in the Open Beta will receive: • One exclusive Open Beta Hat • 3 days of Premium Account ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ REWARD LIMIT   Rewards are limited to one reward per HWID. Each eligible hardware ID can receive the Open Beta reward only once. Multiple accounts connected to the same HWID will not receive additional rewards. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The Open Beta begins on 2 October 2026.   Take part in the testing phase, help us improve the server and get ready for the official launch of the first season. Please note that all Open Beta progress will be wiped before the Grand Opening. The exclusive hat and the 3 days of Premium Account will be granted according to the Open Beta reward conditions. Grand Opening 9 October 2026   Join the Open Beta and secure your exclusive rewards. https://www.l2pearl.com https://discord.com/invite/l2pearl
    • 🛡️ Sguard — A New Version Is Coming in 2026 Hello everyone — clients, server owners, and fellow developers! We have been working on a new version of Sguard, with release planned for the end of 2026. AI-assisted development has helped us work faster, reduce repetitive tasks, and spend more time on implementation and testing. Our team remains responsible for the engineering and the results. The goal is straightforward: better quality, dependable operation, and more affordable pricing. We believe the L2 protection market needs renewed attention — ongoing development, responsive support, and closer cooperation with server administrators. That is the direction we are taking with Sguard. Early Testing Applications Are Open We are looking for server administrators willing to test the new version, report issues, and share practical feedback. 🎁 The first testers will receive free licenses. If you would like to participate, contact us with: Your server’s chronicles and protocol. A brief description of your setup. Whether you can provide a test environment. This is a preliminary announcement. We will share specific features, compatibility details, and testing dates as they are ready. Thank you for your continued support. We look forward to building the next version of Sguard with your feedback. ✉️ APPLY FOR TESTING — @L2scripts Send us a message with “Sguard Test” and tell us about your server.
    • 🚀 End-of-month restock! Upgrade your personal Gmail to 5TB + Gemini Pro instantly with 100% private automated delivery! 🎃 Fresh October Batch Active! Upgrade your personal Gmail to 5TB + Gemini Pro Advanced (12-18M) instantly. 100% private, automated delivery 24/7!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..