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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock