Skip to content

Item Delevel After Enchant Fail

Featured Replies

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?

Solved by Devlin

  • Author
[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

  • Author

yes, i replace 

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

Im using jfrozen

  • Solution

Nah dude.

 

Do it like this.

 

item.setEnchantLevel(item.getEnchantLevel() - 1);

yes, i replace 

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

lol :troll:

 

Locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.