Flash™ 0 Posted May 4, 2011 Posted May 4, 2011 Hi magkes eipa na kano ena [share] me to code gia ta CrystalEnchant giati to Freya den to exei kai kapoih mporeis na theloun Character.properties BlessedEnchantChanceJewelry = 66 +# DEFAULT NEEDS TO BE VERIFIED, MUST BE CHANGED HERE AND IN CONFIG.JAVA IF NOT CORRECT +# Default: 66,66,66 +CrystalEnchantChanceWeaponWarrior = 70 +CrystalEnchantChanceWeaponMage = 40 +CrystalEnchantChanceArmor = 66 +CrystalEnchantChanceJewelry = 66 + config.java public static int BLESSED_ENCHANT_CHANCE_ARMOR; public static int BLESSED_ENCHANT_CHANCE_JEWELRY; + public static int CRYSTAL_ENCHANT_CHANCE_WEAPON_WARRIOR; + public static int CRYSTAL_ENCHANT_CHANCE_WEAPON_MAGE; + public static int CRYSTAL_ENCHANT_CHANCE_ARMOR; + public static int CRYSTAL_ENCHANT_CHANCE_JEWELRY; @@ -1599,6 +1603,10 @@ BLESSED_ENCHANT_CHANCE_JEWELRY = Integer.parseInt(Character.getProperty("BlessedEnchantChanceJewelry", "66")); + CRYSTAL_ENCHANT_CHANCE_WEAPON_WARRIOR = Integer.parseInt(Character.getProperty("CrystalEnchantChanceWeaponWarrior", "70")); + CRYSTAL_ENCHANT_CHANCE_WEAPON_MAGE = Integer.parseInt(Character.getProperty("CrystalEnchantChanceWeaponMage", "40")); + CRYSTAL_ENCHANT_CHANCE_ARMOR = Integer.parseInt(Character.getProperty("CrystalEnchantChanceArmor", "66")); + CRYSTAL_ENCHANT_CHANCE_JEWELRY = Integer.parseInt(Character.getProperty("CrystalEnchantChanceJewelry", "66")); AbstractEnchantPacket.java } else + if (_isCrystal) + { + // Crystal scrolls does not use support items + if (supportItem != null) + return -1; + + if (_isWeapon) + { + if (enchantItem.getWeaponItem().isMagicWeapon()) + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_MAGE; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_WARRIOR; + } + else if (isAccessory) + chance = Config.CRYSTAL_ENCHANT_CHANCE_JEWELRY; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_ARMOR; + } + else { if (_isWeapon) { Quote Share this post Link to post Share on other sites
Azumaril$ 0 Posted May 4, 2011 Posted May 4, 2011 mpravo file ...100% kapios tha parei to code sou. sinexise Quote Share this post Link to post Share on other sites
`NeverMore 55 Posted May 4, 2011 Posted May 4, 2011 mpravo file ...100% kapios tha parei to code sou. sinexise + Prwti fora vlepw kati tetio (freya) 8a to kanw test kai 8a s pw ean einai Ok ...! Thanks for share... credits = yours? IT rocks... Quote Share this post Link to post Share on other sites
Flash™ 0 Posted May 4, 2011 Posted May 4, 2011 To java code einai 100% ok test sto pack mou :) to ekana giati to ithela gia ton server mou gi ayto eipa na to doso edw oste na to exoun kai osi theloun na exoun freya server :) Quote Share this post Link to post Share on other sites
BlackDevilDev 0 Posted May 7, 2011 Posted May 7, 2011 file exigise ti kanei gt merikoi den to gnorizoun :P px. egw den ton gnoriza paliotera ,exigise ti kanei gia toys newbie! Filika panta :P Quote Share this post Link to post Share on other sites
Flash™ 0 Posted May 9, 2011 Posted May 9, 2011 File BlackDevilDev den einai diskolo na katalavoun ti einai ayto to java code... Quote Share this post Link to post Share on other sites
BlackDevilDev 0 Posted May 10, 2011 Posted May 10, 2011 to xerw einai kati eukolo .alla den prepei na toys exigoyme kai ti akribws kanei ...den nomizeis pws einai pio sosto? ...gia newbie milame panta e ! :) Quote Share this post Link to post Share on other sites
apisteutos 0 Posted June 2, 2011 Posted June 2, 2011 mesa sto AbstractEnchantPacket.java pou konta tis bazw tis grames gt opu k na tis balw error mu ta bgzi :S Quote Share this post Link to post Share on other sites
petros50 0 Posted June 6, 2011 Posted June 6, 2011 file mou bravo gia to share pou ekanes. Para poly xrisimo. Alla epideis den einai kai oloi programatistes mipos exeis tin eugeni kalosini na mas eksigiseis pou paei to (AbstractEnchantPacket.java) ? kai poios einai o upoloipos codikas tou java autou? Quote Share this post Link to post Share on other sites
Flash™ 0 Posted June 6, 2011 Posted June 6, 2011 file mou bravo gia to share pou ekanes. Para poly xrisimo. Alla epideis den einai kai oloi programatistes mipos exeis tin eugeni kalosini na mas eksigiseis pou paei to (AbstractEnchantPacket.java) ? kai poios einai o upoloipos codikas tou java autou? edw einai com.l2jserver.gameserver.network.clientpackets kai edw to kaneis edit if (_isWeapon) chance = Config.BLESSED_ENCHANT_CHANCE_WEAPON; else if (isAccessory) chance = Config.BLESSED_ENCHANT_CHANCE_JEWELRY; else chance = Config.BLESSED_ENCHANT_CHANCE_ARMOR; } else + if (_isCrystal) + { + // Crystal scrolls does not use support items + if (supportItem != null) + return -1; + + if (_isWeapon) + { + if (enchantItem.getWeaponItem().isMagicWeapon()) + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_MAGE; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_WEAPON_WARRIOR; + } + else if (isAccessory) + chance = Config.CRYSTAL_ENCHANT_CHANCE_JEWELRY; + else + chance = Config.CRYSTAL_ENCHANT_CHANCE_ARMOR; + } + else { if (_isWeapon) if (Config.ENCHANT_STEP_ENABLED) { Quote Share this post Link to post Share on other sites
petros50 0 Posted June 7, 2011 Posted June 7, 2011 katatopistikotatos, tnx gia thn apantisi. Quote Share this post Link to post Share on other sites
Zar0ck 0 Posted June 7, 2011 Posted June 7, 2011 gamaei to code sou trele eisai wraios nice skepsi ;) Quote Share this post Link to post Share on other sites
Mhoska 0 Posted October 23, 2011 Posted October 23, 2011 i know this is the greek section but thnks it works on highfive too D: Quote Share this post Link to post Share on other sites
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.