Jump to content

Question

Posted

Hello everyone.

I want to ask if it is possible that blessed enchant on failure "stays" on the same enchant.

Ex: i enchant bow +10 to +11 but it fails.I want that the bow stays +10 and doesnt return to +3.


thanks in advance

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Blessed never returns to +3, so most likely you have a custom settings for them. So, check your properties.

 

Else, go to RequestEnchantItem and find something like this

 

 

                if (scrollTemplate.isBlessed())
                {
                    // blessed enchant - clear enchant value
                    activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);
                    
                    item.setEnchantLevel(0); // self explanation
                    item.updateDatabase();
                    activeChar.sendPacket(EnchantResult.UNSUCCESS);
                }
Edited by SweeTs
  • 0
Posted (edited)

package net.sf.l2j.gameserver.network.clientpackets;

 

RequestEnchantItem.java

 

find this 

if (scrollTemplate.isBlessed())
{
	// blessed enchant - clear enchant value
	activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);
					
	item.setEnchantLevel(0);
	item.updateDatabase();
	activeChar.sendPacket(EnchantResult.UNSUCCESS);
}

and change it

if (scrollTemplate.isBlessed())
{
	// blessed enchant - clear enchant value
	activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);
					
	item.setEnchantLevel(item.getEnchantLevel());
	item.updateDatabase();
	activeChar.sendPacket(EnchantResult.UNSUCCESS);
}

edit change fail mesege

Edited by pirama

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


×
×
  • 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