Fiou Posted May 11, 2012 Posted May 11, 2012 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
0 Rizlaaa Posted May 11, 2012 Posted May 11, 2012 ### 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 Fiou Posted May 11, 2012 Author Posted May 11, 2012 in freya not have this line && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL)) chance = 100; and i got error on "blessedscroll"
0 Rizlaaa Posted May 11, 2012 Posted May 11, 2012 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
Question
Fiou
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now