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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..