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