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

 

 

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