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

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