Jump to content
  • 0

[HELP]Enchant Penalty


Question

8 answers to this question

Recommended Posts

  • 0
Posted

Hey ppl any 1 can tell me how i can change crystal scroll and others penalty?

 

ty in advance

 

What you mean with penalty ?

 

do you mean Crystal scroll Chance?

 

If that's it , you can change from configs . eg:Enchant Crystal Scroll = 68 (%)

  • 0
Posted

Like Joκκєrino said, take a look there, at RequestEnchantItem.java and look at isBlessed() or if(blessedScroll) method, depends of pack that you use and do the same, just change it to Crystal :P

 

Ex, on my pack blessed code looks like that

 

			if (scrollTemplate.isBlessed())
			{
				// blessed enchant - clear enchant value
				activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);

				item.setEnchantLevel(0);
				item.updateDatabase();
				activeChar.sendPacket(EnchantResult.UNSUCCESS);
			}

 

So, I have to change isBlessed to isCrystal, also I added a text message - sendMessage instead of sendPacket.

 

			if (scrollTemplate.isCrystal())
			{
				// crystal enchant - clear enchant value
				activeChar.sendMessage("Failed in Crystal Enchant. The enchant value of the item became 0.");

				item.setEnchantLevel(0);
				item.updateDatabase();
				activeChar.sendPacket(EnchantResult.UNSUCCESS);
			}

 

Btw, what pack are you using?

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