Jump to content
  • 0

[Help] Scrool enchant


Question

Posted

Hello every on i want know how can i make for make

 

blessed scroll when you enchant the level no move. = when i enchant and this break no come back to 0 staid on the same enchant before enchant it.

 

i have weapon +10 use blessed to make +11 when i enchant this break i dont want this come back to 0, i want this come back to +10.

 

and for the crystal scroll, make it when i enchant and the enchant failed the weapon or armor or jewel make -1 on the enchant

 

if my weapon is +10 and i enchant it, this failed, the enchant decrease to 9

 

thanks you if someone can said me how can i make it.

2 answers to this question

Recommended Posts

  • 0
Posted

find:

if (scrollTemplate.isBlessed())

{

// blessed enchant - clear enchant value

activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.BLESSED_ENCHANT_FAILED));

 

item.setEnchantLevel(0);

item.updateDatabase();

delete

item.setEnchantLevel(0);

item.updateDatabase();

 

now crystal scrolls, u will need to make something like else if(scroll.isCrystal())

and in item.setEnchantLevel(0); make item.setEnchantLevel(getEnchantLevel-1);

 

 

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