Skip to content

Item Enchant Require With EAS

Featured Replies

hello guys.i have my maximum enchant for armor +15. but when you wanna enchant with beas and eas the armor to +11 +12 +13 +14 +15 require an item...gold bar example..how can i do it?via clientpacks/requestenchantitem.java?

i have l2jserver freya pack.

thx

### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java	(working copy)
@@ -207,6 +207,21 @@
                         && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))
             chance = 100;

+        if(blessedScroll){
+        	if(item.getEnchantLevel() != 15){
+        		int itemid = 2807;
+        		int count = 1;
+        		
+        		if(activeChar.getInventory().getItemByItemId(itemid) == null){
+        			activeChar.sendMessage("You need x items");
+        			return;
+        		}
+        			activeChar.sendMessage("x item dissapeared");
+        			activeChar.getInventory().destroyItemByItemId("", itemid, count, activeChar, null);
+        		
+        	}
+        }
+        
         if (Rnd.get(100) < chance)
         {
             synchronized(item)

  • Author

w8 to check if works on freya.brb

  • Author

in freya not have this line && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))

            chance = 100;

and i got error on "blessedscroll"

in freya not have this line && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))

            chance = 100;

and i got error on "blessedscroll"

 

find something similar .... i don't have freya source atm

Create an account or sign in to comment

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.