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

2 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...