Jump to content
  • 0

[Request Guide] custom enchant


Question

Posted

i would like to make an enchant system where ,using blessed scrolls,when fail ,after the set safe enchant,the weapon/armor goes -2

and not 0.I searched and found a guide in forum but that did not work

item.setEnchantLevel(item.getEnchantLevel() - 2); tried this but did not work,in the file its this (item.setEnchantLevel(item.getEnchantLevel() + 1);)changed 1 with -2 when i use scroll i get max enchant 65535 and every time i enchant i get -2 eg.65533 and so on

any help will be apreciated

ps. im using H5

thanking you

 

//Edit; solved found it sry

locked

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.


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