Jump to content
  • 0

Item Delevel After Enchant Fail


Question

Posted

i need help with that..

 

For example: i want to make a weap +7 and if it fail, i want the weapon down to +6...

 

At the moment in my source the blessed fail config is this

if (blessedScroll)
					{
						item.setEnchantLevel(Config.BREAK_ENCHANT);
						item.updateDatabase();

if change the Config.BREAK_ENCHANT for -1 when fail, the weapon are maked +65535  :dat:

 

How i can make it?

7 answers to this question

Recommended Posts

  • 0
Posted
[javac] C:\Users\Computer\workspace\Interlude\gameserver\head-src\com\l2jfrozen\gameserver\network\clientpackets\RequestEnchantItem.java:744: error: not a statement
    [javac] 						item.getEnchantLevel()-1;
    [javac] 						                      ^
    [javac] 1 error

cant build

  • 0
Posted

yes, i replace 

if (blessedScroll)
					{
						item.getEnchantLevel() - 1;
						item.updateDatabase();

Im using jfrozen

  • 0
Posted

yes, i replace 

if (blessedScroll)
					{
						item.getEnchantLevel() - 1;
						item.updateDatabase();

lol :troll:

 

Locked.

Guest
This topic is now closed to further replies.


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