Jump to content
  • 0

[Request]Enchant -1 if break.


Thelasthero

Question

8 answers to this question

Recommended Posts

  • 0

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

???

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

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