Skip to content

[Request]Enchant -1 if break.

Featured Replies

guys, i searched and didn't find anything about when weapon break go back -1(like l2kingsrelax). can you help me find something?

If you want for blessed.. find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

  • Author

If you want for blessed.. find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

hmm maybe if i edit:

                if (item.getEnchantLevel() > 0)
                {
                    sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED);
                    sm.addNumber(item.getEnchantLevel());
                    sm.addItemName(item.getItemId());
                    activeChar.sendPacket(sm);

 

to

 

                if (item.getEnchantLevel() > 0)
                {
                    sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED);
                    sm.addNumber(item.getEnchantLevel() == -1); <<<<<<<<
                    sm.addItemName(item.getItemId());
                    activeChar.sendPacket(sm);

???

:| Juice...  sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED); is just a system message

  • Author

:| Juice...  sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED); is just a system message

ok

 

any other ideas?

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

find item.setEnchantLevel(0); in RequestEnchantItem.java

and replace with item.setEnchantLevel(item.getEnchantLevel() - 1);

					if (item.getEnchantLevel() - 1)
					{
						SystemMessage sm = new SystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED);
						sm.addNumber(item.getEnchantLevel());
						sm.addItemName(item);
						activeChar.sendPacket(sm);
					}

 

Try That one.

 

Or That One

					// unequip item on enchant failure to avoid item skills stack
				if (item.isEquipped())
				{
					item.setEnchantLevel(item.getEnchantLevel() - 1);
					item.updateDatabase();
					activeChar.sendPacket(new EnchantResult(0, 0, 0));
				}

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.