Jump to content
  • 0

[Question - Help] Different Max Enchant


Question

Posted

My question is...can we make different max enchant for every item in interlude? what i mean?

 

  • Weapons = Max + X
  • Armor Upper/Body = Max + X
  • Helmet = Max + X
  • Gloves = Max + X
  • Boots = Max + X
  • Jewels = Max + X

 

If we have anything like that in our forum please let me know. I've search for that but i'm not sure

what exactly i must put in search.

 

That system have the L2Elite.us!

 

Thanks in advance!

5 answers to this question

Recommended Posts

  • 0
Posted

1st l2elite use dempax64 l2off c4 files gotten by NCSoft

2nd the apella armors on l2elite are given only by donates and can be enchanted only by GMs

3rd l2elite doesn't have different max enchant for every item .... there is not a limit of enchant at all

  • 0
Posted

1. If you have notice they say Powered by depmax64. When you login...look at the chat ;)

2. I believe that they have limit for every part. Second i know how you can take apella armor etc...!

3. I don't care exactly what they have or not...i explain what i need and searching for...!

4. Please next time try to be polite.

 

If someone can help me feel free to reply...if you can't please don't say again what L2Elite have...!

 

Thanks!

  • 0
Posted

 

2. I believe that they have limit for every part. Second i know how you can take apella armor etc...!

they dont have any limit, b4 it has been fixed (now i think that you can not enchant with scrolls) iv seen a heavy main part +22

 

anyway

clientpackets/AbstractEnchantPacket.java

	public final boolean isValid(L2ItemInstance enchantItem)
	{
                   ...
		switch (type2)
		{
			// weapon scrolls can enchant only weapons
			case L2Item.TYPE2_WEAPON:
				if (!_isWeapon
						|| (Config.ENCHANT_MAX_WEAPON > 0 && enchantItem.getEnchantLevel() >= Config.ENCHANT_MAX_WEAPON))
					return false;
				break;
				// armor scrolls can enchant only accessory and armors
			case L2Item.TYPE2_SHIELD_ARMOR:
				if (_isWeapon
						|| (Config.ENCHANT_MAX_ARMOR > 0 && enchantItem.getEnchantLevel() >= Config.ENCHANT_MAX_ARMOR))
					return false;
				break;

                                        ...

there you just have to make some if and return false if enchant >= max

  • 0
Posted

Thanks a lot my friend for the help!

lol, w8, i didnt see that its for interlude, my idea was for epilogue, give me a sec, to find where in interlude is that source

 

EDIT:

it should be then clientpackets/RequestEnchantItem.java

	L2ItemInstance item = activeChar.getInventory().getItemByObjectId(
			_objectId);
	L2ItemInstance scroll = activeChar.getActiveEnchantItem();
	if (item == null || scroll == null) {
		activeChar.setActiveEnchantItem(null);
		return;
	}
	// can't enchant rods, hero weapons and shadow items, donator rented
	// items
	if (item.getItem().getItemType() == L2WeaponType.ROD
			|| !Config.ENCHANT_HERO_WEAPONS && item.getItemId() >= 6611
			&& item.getItemId() <= 6621 || item.getItemId() >= 7816
			&& item.getItemId() <= 7831 || item.isShadowItem()
			|| item.isDonatorRented()) {
		activeChar.sendPacket(new SystemMessage(
				SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
		activeChar.setActiveEnchantItem(null);
		return;
	}

the same, some more || or another if

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