Belzebul Posted February 7, 2010 Posted February 7, 2010 Hey, i want to make something like: when you enchant your weapon at once, it will give you +5. what file i have to edit? is it somewhere @ l2pcinstance? where? what line? thank you. Quote
0 Jimaras22 Posted February 7, 2010 Posted February 7, 2010 i had seen this in one pack in a config so..it might be here on mxc. Edit:i will search it,make it too. hmm i remember where i found it l2jscoria. +# Значение заточки. +# Например : Если CustomEnchantValue = 5 Заточка будет: +# с +0 дo +5 , с +5 до +10 , с +10 до +15 итд +# Итого: +15 за три скрола +# По умолчанию: 1 +CustomEnchantValue = 1 SOUL_CRYSTAL_MAX_LEVEL = Integer.parseInt(ENCHANTSetting.getProperty("SoulCrystalMaxLevel", "13")); + /** count enchant **/ + CUSTOM_ENCHANT_VALUE = Integer.parseInt(ENCHANTSetting.getProperty("CustomEnchantValue", Quote
0 Belzebul Posted February 7, 2010 Author Posted February 7, 2010 i had seen this in one pack in a config so..it might be here on mxc. Edit:i will search it,make it too. ehm, i dont need a pack. i want to add this thing to my own pack. Quote
0 Jimaras22 Posted February 7, 2010 Posted February 7, 2010 i know i put one example but you have to modifie it i dont know how anyway take the source of scoria if it helps you http://my-trac.assembla.com/l2j-scoria/browser/trunk/core Quote
0 Belzebul Posted February 7, 2010 Author Posted February 7, 2010 this must not be the full code ;/. anyone else? Quote
0 Matim Posted February 7, 2010 Posted February 7, 2010 Hard to use search or read sticked topics? Check my Topic Ultimately, a successful enchant gives us +1 to items enchant level. How to change it? Its ussefull for custom Hight Rate Serwers with high enchant settings. - Open this folder: \java\net\sf\l2j\gameserver\clientpackets - Now find this file: RequestEnchantItem.java - Find these lines: else { sm = new SystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED); sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); } item.setEnchantLevel(item.getEnchantLevel()+1); item.updateDatabase(); } } - Now just change enchant level here: item.setEnchantLevel(item.getEnchantLevel()+1); - Save this file and this is it! Now compile Your server. Done. Quote
0 Belzebul Posted February 7, 2010 Author Posted February 7, 2010 well matim, i didnt know that you have used this thing as an example for your topic. thanks a lot dude. Quote
Question
Belzebul
Hey,
i want to make something like: when you enchant your weapon at once, it will give you +5.
what file i have to edit? is it somewhere @ l2pcinstance? where? what line?
thank you.
6 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.