Hyo Posted April 24, 2015 Posted April 24, 2015 i need help with that.. For example: i want to make a weap +7 and if it fail, i want the weapon down to +6... At the moment in my source the blessed fail config is this if (blessedScroll) { item.setEnchantLevel(Config.BREAK_ENCHANT); item.updateDatabase(); if change the Config.BREAK_ENCHANT for -1 when fail, the weapon are maked +65535 :dat: How i can make it?
0 Devlin Posted April 24, 2015 Posted April 24, 2015 Nah dude. Do it like this. item.setEnchantLevel(item.getEnchantLevel() - 1);
0 Hyo Posted April 24, 2015 Author Posted April 24, 2015 [javac] C:\Users\Computer\workspace\Interlude\gameserver\head-src\com\l2jfrozen\gameserver\network\clientpackets\RequestEnchantItem.java:744: error: not a statement [javac] item.getEnchantLevel()-1; [javac] ^ [javac] 1 error cant build
0 Devlin Posted April 24, 2015 Posted April 24, 2015 Did you replace Config.BREAK_ENCHANT with item.getEnchantLevel() - 1 ?
0 Hyo Posted April 24, 2015 Author Posted April 24, 2015 yes, i replace if (blessedScroll) { item.getEnchantLevel() - 1; item.updateDatabase(); Im using jfrozen
0 SweeTs Posted April 24, 2015 Posted April 24, 2015 yes, i replace if (blessedScroll) { item.getEnchantLevel() - 1; item.updateDatabase(); lol :troll: Locked.
Question
Hyo
i need help with that..
For example: i want to make a weap +7 and if it fail, i want the weapon down to +6...
At the moment in my source the blessed fail config is this
if change the Config.BREAK_ENCHANT for -1 when fail, the weapon are maked +65535 :dat:
How i can make it?
7 answers to this question
Recommended Posts