exity Posted July 1, 2012 Posted July 1, 2012 Hey ppl any 1 can tell me how i can change crystal scroll and others penalty? ty in advance Quote
0 JavaGhost Posted July 1, 2012 Posted July 1, 2012 Hey ppl any 1 can tell me how i can change crystal scroll and others penalty? ty in advance What penalty? :S Quote
0 Joκκєrino Posted July 2, 2012 Posted July 2, 2012 Hey ppl any 1 can tell me how i can change crystal scroll and others penalty? ty in advance What you mean with penalty ? do you mean Crystal scroll Chance? If that's it , you can change from configs . eg:Enchant Crystal Scroll = 68 (%) Quote
0 exity Posted July 2, 2012 Author Posted July 2, 2012 I mean, example from +5 to +6 with crystal scroll item wont brake but goes +0 Quote
0 Joκκєrino Posted July 2, 2012 Posted July 2, 2012 You should take a look right here : (com.l2jfrozen).gameserver.network.clientpackets; or (net.sf.l2j).gameserver.(network).clientpackets; Quote
0 SweeTs Posted July 2, 2012 Posted July 2, 2012 Like Joκκєrino said, take a look there, at RequestEnchantItem.java and look at isBlessed() or if(blessedScroll) method, depends of pack that you use and do the same, just change it to Crystal :P Ex, on my pack blessed code looks like that if (scrollTemplate.isBlessed()) { // blessed enchant - clear enchant value activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED); item.setEnchantLevel(0); item.updateDatabase(); activeChar.sendPacket(EnchantResult.UNSUCCESS); } So, I have to change isBlessed to isCrystal, also I added a text message - sendMessage instead of sendPacket. if (scrollTemplate.isCrystal()) { // crystal enchant - clear enchant value activeChar.sendMessage("Failed in Crystal Enchant. The enchant value of the item became 0."); item.setEnchantLevel(0); item.updateDatabase(); activeChar.sendPacket(EnchantResult.UNSUCCESS); } Btw, what pack are you using? Quote
Question
exity
Hey ppl any 1 can tell me how i can change crystal scroll and others penalty?
ty in advance
8 answers to this question
Recommended Posts
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.