Jump to content
  • 0

how to make hero weapons enchantable?


Question

Posted

how can i make hero weapons be enchanted? i mean  i have max enchant +16 andi want heros to enchant their hero weapons but when i click enchant it does not enchant it. Can anyone tell me how can i enable it? im usingl2jarchid pack interlude

Recommended Posts

  • 0
Posted

try this :

Index: RequestEnchantItem.java
===================================================================
--- RequestEnchantItem.java	(revision 2797)
+++ RequestEnchantItem.java	(working copy)
@@ -86,7 +86,7 @@
		}

		// can't enchant rods, hero weapons, adventurers' items,shadow and common items
-		if (item.getItem().getItemType() == L2WeaponType.ROD || item.isHeroItem() || item.getItemId() >= 7816 && item.getItemId() <= 7831 || item.isShadowItem() || item.isCommonItem())
+		if (item.getItem().getItemType() == L2WeaponType.ROD || item.getItemId() >= 7816 && item.getItemId() <= 7831 || item.isShadowItem() || item.isCommonItem())
		{
			activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
			activeChar.setActiveEnchantItem(null);

  • 0
Posted

its inside your packs core , net.sf.l2j.clientpackets.requestenchantitem.java or net.sf.l2j.network.clientpackets.requestenchantitem.java

  • 0
Posted

is there any other way to do this???i mean if i add them with a new sql in the db and add new weapon id's in the system but these new weapons wll have the texture of the hero???please if anyone can help me do the heros enchantable i will apriciate it!!!add me on msn if u know how ...tnx

spokerakos@hotmail.com

  • 0
Posted

so i change this one with yours right??

 / can't enchant rods, hero weapons and shadow items
        if(item.getItem().getItemType() == L2WeaponType.ROD
        		|| item.getItemId() >= 6611 && item.getItemId() <= 6621
        		|| item.isShadowItem())
        {
        	activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
            return;

  • 0
Posted

See in your config folder a file  named : enchant.properties.    Then find that line :     

# Enchant hero weapons? (default: Fals)

EnchantHeroWeapons = True

 

 

I hope i help you a litle.

 

Sorry for my bad english.

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...