Jump to content
  • 0

[Help/Support] How to make hero weapons able to be enchanted?


fakebeauty
 Share

Question

[glow=red,2,300][move]How to make hero weapons able to be enchanted?[/move][/glow]

 

My question is very simple , i dont have to explain you what i mean *Smart guys here lol xD*

 

[move]Thanks.[/move]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

/java/net/sf/l2j/gameserver/network/clientpackets/AbstractEnchantPacket.java

 

protected static final boolean isEnchantable(L2ItemInstance item)

{

if (item.isHeroItem())

return false;

if (item.isShadowItem())

return false;

if (item.isCommonItem())

return false;

if (item.isEtcItem())

return false;

if (item.isTimeLimitedItem())

return false;

if (item.isWear())

return false;

// rods

if (item.getItem().getItemType() == L2WeaponType.ROD)

return false;

// apprentice and travelers weapons

if (item.getItemId() >= 7816 && item.getItemId() <= 7831)

return false;

// bracelets

if (item.getItem().getBodyPart() == L2Item.SLOT_L_BRACELET)

return false;

if (item.getItem().getBodyPart() == L2Item.SLOT_R_BRACELET)

return false;

if (item.getItem().getBodyPart() == L2Item.SLOT_BACK)

return false;

// only items in inventory and equipped can be enchanted

if (item.getLocation() != L2ItemInstance.ItemLocation.INVENTORY

&& item.getLocation() != L2ItemInstance.ItemLocation.PAPERDOLL)

return false;

 

return true;

}

remove the red marked

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



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