Jump to content
  • 0

Item Enchant Require With EAS


Question

Posted

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

4 answers to this question

Recommended Posts

  • 0
Posted
### 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)

  • 0
Posted

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

            chance = 100;

and i got error on "blessedscroll"

  • 0
Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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