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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...