aris96 Posted August 9, 2014 Share Posted August 9, 2014 how can i make when the enchant failure with bless scrolls item goes -2 enchants? Link to comment Share on other sites More sharing options...
0 Devlin Posted August 9, 2014 Share Posted August 9, 2014 net.sf.l2j.gameserver.network.clientpackets RequestEnchantItem.java find this if (scrollTemplate.isBlessed()) { // blessed enchant - clear enchant value activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED); item.setEnchantLevel(0); item.updateDatabase(); activeChar.sendPacket(EnchantResult.UNSUCCESS); } and this line item.setEnchantLevel(0); change it to item.setEnchantLevel(item.getEnchantLevel() - 2); Link to comment Share on other sites More sharing options...
0 aris96 Posted August 9, 2014 Author Share Posted August 9, 2014 (edited) net.sf.l2j.gameserver.network.clientpackets RequestEnchantItem.java find this if (scrollTemplate.isBlessed()) { // blessed enchant - clear enchant value activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED); item.setEnchantLevel(0); item.updateDatabase(); activeChar.sendPacket(EnchantResult.UNSUCCESS); } and this line item.setEnchantLevel(0); change it to item.setEnchantLevel(item.getEnchantLevel() - 2); i use jhellas and i have this : else { sm = SystemMessage.getSystemMessage(SystemMessageId.BLESSED_ENCHANT_FAILED); activeChar.sendPacket(sm); } if (!blessedScroll) { if (item.getEnchantLevel() > 0) { sm = SystemMessage.getSystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED); sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); } what should i change? Edited August 9, 2014 by aris96 Link to comment Share on other sites More sharing options...
0 Cray-Z Posted August 9, 2014 Share Posted August 9, 2014 this is the option for the blessed if (item.getEnchantLevel() > -2)try this Link to comment Share on other sites More sharing options...
0 SweeTs Posted August 9, 2014 Share Posted August 9, 2014 (edited) this is the option for the blessed if (item.getEnchantLevel() > -2) try this lol and what is that line supposed to do.. ? :happyforever: Well, you could ask on their forum, since almost no one uses Hellas and as far as I saw it's somewhere else, not RequestEnchantItem. Differences between packs :P Edited August 9, 2014 by SweeTs Link to comment Share on other sites More sharing options...
Question
aris96
how can i make when the enchant failure with bless scrolls item goes -2 enchants?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts