Jump to content
  • 0

how to make hero weapons enchantable?


flushing

Question

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

Link to comment
Share on other sites

Recommended Posts

  • 0

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);

Link to comment
Share on other sites

  • 0

There is an option in config files that it says enchantheroweapons=false do it true!

 

The easy way but you can do it with java modding like Mafia said...Choose :P

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

u gotta read how to checkout and compile a pack via an svn , get your svn http://svn.assembla.com/svn/l2jarchid/

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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;

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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