Jump to content
  • 0

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


Question

Posted

[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]

3 answers to this question

Recommended Posts

  • 0
Posted

/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

Guest
This topic is now closed to further replies.


×
×
  • Create New...