Jump to content

Search the Community

Showing results for tags 'enchant'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News
  • General
    • Suggestions & Feedback
    • General Chat
    • GFX
    • VFX
  • MMO Hub
    • Gamer's Lounge
    • Member's Lounge
    • Developer Lounge
  • MMO Corner
    • World of Warcraft
    • Lineage 2
    • Minecraft
    • Host Listing
    • Server Listing
    • Server Recruitment
    • Server Reviews
    • The Underground
  • User Hub
    • Support
    • Report
    • Contact Staff
  • Merchant Corner
    • Marketplace
  • General Development Releases
    • Applications
  • Tutorials
    • Programming
    • Web Development
  • Wasteland

Categories

  • Creative Corner
    • GFX Releases
    • VFX Releases
    • Resources
  • MMO and MMORPG
    • World of Warcraft
    • Lineage 2
    • Minecraft
  • Webmasters
    • Content Management Systems
    • Addons
    • Scripts
    • Designs
    • Proxies
    • HTML
  • Applications
  • Gaming
    • World of Warcraft
    • Lineage 2
    • Minecraft
    • Emulation
    • Nulled Distributions
  • Marketplace
    • Marsh Designs
    • iDarts

Product Groups

  • Membership
  • Advertise
  • Promote

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Interests


How Did You Find Us?


Contributor


Discord

Found 3 results

  1. Hello Lordcrafters, Here is a custom enchant skill list. What this list contains? 100% safe enchant till enchant reach the config value If the enchant is higher than this value you have the retail chance If you fail to enchant and character is nobl ( nobl condition was for testing you have to change this with your condition ) the skill enchant will become -1 of the current enchant Its working for both conditions ( < 130 , < 170 ex. power,cost ) 2 configs ( no need more ) Video Preview: Code:[hide] ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkillInfo.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkillInfo.java (revision 7) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkillInfo.java (working copy) @@ -84,7 +84,9 @@ return; // Send ExEnchantSkillInfo packet. - ExEnchantSkillInfo esi = new ExEnchantSkillInfo(_skillId, _skillLevel, data.getCostSp(), data.getCostExp(), data.getRate(activeChar.getLevel())); + int fElem = 100 + Config.SAFE_ENCHANT; + int sElem = 140 + Config.SAFE_ENCHANT; + ExEnchantSkillInfo esi = new ExEnchantSkillInfo(_skillId, _skillLevel, data.getCostSp(), data.getCostExp(), (activeChar.isNoble() && ((_skillLevel > 130 && _skillLevel <= sElem) || (_skillLevel <= fElem))) ? 100 : data.getRate(activeChar.getLevel())); if (Config.ES_SP_BOOK_NEEDED) if (data.getItemId() != 0 && data.getItemCount() != 0) esi.addRequirement(4, data.getItemId(), data.getItemCount(), 0); Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 7) +++ java/net/sf/l2j/Config.java (working copy) @@ -52,6 +52,7 @@ public static final String SIEGE_FILE = "./config/siege.properties"; public static final String PARTY_EVENT_FILE = "./config/PartyEvent.properties"; public static final String VOTE_MANAGER_FILE = "./config/VoteManager.properties"; + public static final String ENCHANT_SKILL_FILE = "./config/CustomEnchantSkills.properties"; /** VoteManager Settings */ @@ -107,6 +108,10 @@ public static boolean ALT_MEMBERS_CAN_WITHDRAW_FROM_CLANWH; public static boolean REMOVE_CASTLE_CIRCLETS; + /** Enchant Skills */ + public static int SAFE_ENCHANT; + public static boolean REDUCE_BY_ONE; + /** Manor */ public static int ALT_MANOR_REFRESH_TIME; public static int ALT_MANOR_REFRESH_MIN; @@ -1056,6 +1061,12 @@ RED_RAID_MSG = ptEvent.getProperty("RedRaidMessage","And remember!! Your enemies are noobs! Go Go Go!"); } + private static final void loadEnchantSkills() + { + final ExProperties eSkills = initProperties(ENCHANT_SKILL_FILE); + SAFE_ENCHANT = eSkills.getProperty("SkillSafeEnchantMax", 15); + REDUCE_BY_ONE = eSkills.getProperty("ReduceEnchant", false); + } /** * Loads NPC settings.<br> * Such as champion monsters, NPC buffer, class master, wyvern, raid bosses and grand bosses, AI. @@ -1512,6 +1523,9 @@ // server settings loadServer(); + + // Enchant Skills + loadEnchantSkills(); } public static final void loadLoginServer() Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkill.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkill.java (revision 7) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantSkill.java (working copy) @@ -121,7 +121,9 @@ activeChar.removeExpAndSp(data.getCostExp(), data.getCostSp()); // Try to enchant skill. - if (Rnd.get(100) <= data.getRate(activeChar.getLevel())) + int fElem = 100 + Config.SAFE_ENCHANT; + int sElem = 140 + Config.SAFE_ENCHANT; + if ((activeChar.isNoble() && ((_skillLevel > 130 && _skillLevel <= sElem) || (_skillLevel <= fElem))) ? true : Rnd.get(100) <= data.getRate(activeChar.getLevel())) { activeChar.addSkill(skill, true); activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_IN_ENCHANTING_THE_SKILL_S1).addSkillName(_skillId, _skillLevel)); @@ -131,7 +133,13 @@ activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_FAILED_TO_ENCHANT_THE_SKILL_S1).addSkillName(_skillId, _skillLevel)); if (_skillLevel > 100) { - _skillLevel = baseLvl; + if (Config.REDUCE_BY_ONE && activeChar.isNoble()) + { + if (_skillLevel > 140 || _skillLevel < 130) + _skillLevel-=2; + } + else + _skillLevel = baseLvl; activeChar.addSkill(SkillTable.getInstance().getInfo(_skillId, _skillLevel), true); } } [/hide] Config: [hide] # ================================================================ # Enchant Skills setting # ================================================================ #If the char meet the conditions will enchant with 100% success rate #Till the this value #default 15 SkillSafeEnchantMax = 10 #If this is true and the enchant will fail , the skill enchantment will lost 1 enchant ReduceEnchant = true [/hide] Credits: melron
  2. Hello members of LordCraft, here is a code for Enchant Success Announcements. How it works? There are 2 options. Option 1: You can set an enchant level and when the player enchant his item on the value you set or more it will make an announcement. Option 2: You can set 2 or more enchant levels and when the player enchant his item to those values you set it will make an announcement. Image Preview: Option 1 Code: [hide] ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 986) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2891,6 +2891,8 @@ public static int GM_OVER_ENCHANT; public static int MAX_ITEM_ENCHANT_KICK; + public static boolean ENABLE_ENCHANT_ANNOUNCE; + public static int ENCHANT_ANNOUNCE_LEVEL; //============================================================ public static void loadEnchantConfig() @@ -3196,6 +3198,8 @@ MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0")); GM_OVER_ENCHANT = Integer.parseInt(ENCHANTSetting.getProperty("GMOverEnchant", "0")); + ENABLE_ENCHANT_ANNOUNCE = Boolean.parseBoolean(ENCHANTSetting.getProperty("EnableEnchantAnnounce", "False")); + ENCHANT_ANNOUNCE_LEVEL = Integer.parseInt(ENCHANTSetting.getProperty("EnchantAnnounceLevel", "16")); } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (revision 986) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -25,6 +25,7 @@ import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.base.Race; +import com.l2jfrozen.gameserver.model.entity.Announcements; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.EnchantResult; import com.l2jfrozen.gameserver.network.serverpackets.InventoryUpdate; @@ -301,6 +302,7 @@ int chance = 0; int maxEnchantLevel = 0; int minEnchantLevel = 0; + int nextEnchantLevel = item.getEnchantLevel() + 1; if(item.getItem().getType2() == L2Item.TYPE2_WEAPON) { @@ -565,6 +567,9 @@ sm = new SystemMessage(SystemMessageId.S1_SUCCESSFULLY_ENCHANTED); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); + + if(Config.ENABLE_ENCHANT_ANNOUNCE && Config.ENCHANT_ANNOUNCE_LEVEL == 0) + Announcements.getInstance().gameAnnounceToAll("Congratulations to " + activeChar.getName() + "! Your " + item.getItem() + " has been successfully enchanted to +" + nextEnchantLevel); } else { @@ -572,6 +577,9 @@ sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); + + if(Config.ENABLE_ENCHANT_ANNOUNCE && Config.ENCHANT_ANNOUNCE_LEVEL <= item.getEnchantLevel()) + Announcements.getInstance().gameAnnounceToAll("Congratulations to " + activeChar.getName() + "! Your " + item.getItem() + " has been successfully enchanted to +" + nextEnchantLevel); } item.setEnchantLevel(item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE); Index: config/head/enchant.properties =================================================================== --- config/head/enchant.properties (revision 986) +++ config/head/enchant.properties (working copy) @@ -131,4 +131,14 @@ # HOW WORKS: if you set it to 20, and player have an item > 20 # he will be kicked and the item will disappear! # Enchant amount at which a player gets punished (0 disabled) -EnchantKick = 0 \ No newline at end of file +EnchantKick = 0 + +# ---------------------- +# Enchant Announce - +# ---------------------- +# Announce when a player successfully enchant an item to x +# Default: False +EnableEnchantAnnounce = False + +# The value of x is... set it here (No have default value) +EnchantAnnounceLevel = 16 [/hide] Option 2 Code: [hide] ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 987) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2891,6 +2891,9 @@ public static int GM_OVER_ENCHANT; public static int MAX_ITEM_ENCHANT_KICK; + public static boolean ENABLE_ENCHANT_ANNOUNCE; + public static String ENCHANT_ANNOUNCE_LEVEL; + public static FastList<Integer> LIST_ENCHANT_ANNOUNCE_LEVEL = new FastList<Integer>(); //============================================================ public static void loadEnchantConfig() @@ -3196,6 +3199,13 @@ MAX_ITEM_ENCHANT_KICK = Integer.parseInt(ENCHANTSetting.getProperty("EnchantKick", "0")); GM_OVER_ENCHANT = Integer.parseInt(ENCHANTSetting.getProperty("GMOverEnchant", "0")); + ENABLE_ENCHANT_ANNOUNCE = Boolean.parseBoolean(ENCHANTSetting.getProperty("EnableEnchantAnnounce", "False")); + ENCHANT_ANNOUNCE_LEVEL = ENCHANTSetting.getProperty("EnchantAnnounceLevels", "6,10,16,20"); + LIST_ENCHANT_ANNOUNCE_LEVEL = new FastList<Integer>(); + for (String id : ENCHANT_ANNOUNCE_LEVEL.split(",")) + { + LIST_ENCHANT_ANNOUNCE_LEVEL.add(Integer.parseInt(id)); + } } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (revision 987) +++ head-src/com/l2jfrozen/gameserver/model/entity/Announcements.java (working copy) @@ -42,6 +42,7 @@ import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; import com.l2jfrozen.gameserver.script.DateRange; +import com.l2jfrozen.gameserver.util.Broadcast; /** * @author ProGramMoS @@ -292,6 +293,12 @@ player.sendPacket(sm); } } + + public static void announceInRegion(L2PcInstance activeChar, String text) + { + CreatureSay cs = new CreatureSay(0, 18, "", text); + Broadcast.toPlayersInSameRegion(activeChar, cs); + } // Method fo handling announcements from admin public void handleAnnounce(String command, int lengthToTrim) Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (revision 987) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -25,10 +25,12 @@ import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.base.Race; +import com.l2jfrozen.gameserver.model.entity.Announcements; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.EnchantResult; import com.l2jfrozen.gameserver.network.serverpackets.InventoryUpdate; import com.l2jfrozen.gameserver.network.serverpackets.ItemList; +import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; import com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; import com.l2jfrozen.gameserver.templates.L2Item; @@ -301,6 +303,7 @@ int chance = 0; int maxEnchantLevel = 0; int minEnchantLevel = 0; + int nextEnchantLevel = item.getEnchantLevel() + 1; if(item.getItem().getType2() == L2Item.TYPE2_WEAPON) { @@ -565,6 +568,14 @@ sm = new SystemMessage(SystemMessageId.S1_SUCCESSFULLY_ENCHANTED); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); + + if (Config.ENABLE_ENCHANT_ANNOUNCE && Config.LIST_ENCHANT_ANNOUNCE_LEVEL.contains(nextEnchantLevel)) + { + Announcements.announceInRegion(activeChar, "Congratulations to " + activeChar.getName() + "! Your " + item.getItem() + " has been successfully enchanted to +" + nextEnchantLevel); + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); + activeChar.sendPacket(MSU); + activeChar.broadcastPacket(MSU); + } } else { @@ -572,6 +583,14 @@ sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); + + if (Config.ENABLE_ENCHANT_ANNOUNCE && Config.LIST_ENCHANT_ANNOUNCE_LEVEL.contains(nextEnchantLevel)) + { + Announcements.announceInRegion(activeChar, "Congratulations to " + activeChar.getName() + "! Your " + item.getItem() + " has been successfully enchanted to +" + nextEnchantLevel); + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0); + activeChar.sendPacket(MSU); + activeChar.broadcastPacket(MSU); + } } item.setEnchantLevel(item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE); Index: head-src/com/l2jfrozen/gameserver/util/Broadcast.java =================================================================== --- head-src/com/l2jfrozen/gameserver/util/Broadcast.java (revision 987) +++ head-src/com/l2jfrozen/gameserver/util/Broadcast.java (working copy) @@ -32,6 +32,7 @@ import java.util.logging.Logger; import com.l2jfrozen.Config; +import com.l2jfrozen.gameserver.datatables.csv.MapRegionTable; import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; @@ -243,4 +244,26 @@ onlinePlayer.sendPacket(mov); } } + + public static void toPlayersInSameRegion(L2PcInstance player, L2GameServerPacket mov) + { + int curRegion = MapRegionTable.getInstance().getMapRegion(player.getX(), player.getY()); + if (Config.DEBUG) + { + _log.fine("Players to notify: " + L2World.getAllPlayersCount() + " (with packet " + mov.getType() + ")"); + } + + for (L2PcInstance target : L2World.getInstance().getAllPlayers()) + { + if (target == null) + { + continue; + } + + if (curRegion == MapRegionTable.getInstance().getMapRegion(target.getX(), target.getY())) + { + target.sendPacket(mov); + } + } + } } Index: config/head/enchant.properties =================================================================== --- config/head/enchant.properties (revision 987) +++ config/head/enchant.properties (working copy) @@ -131,4 +131,15 @@ # HOW WORKS: if you set it to 20, and player have an item > 20 # he will be kicked and the item will disappear! # Enchant amount at which a player gets punished (0 disabled) -EnchantKick = 0 \ No newline at end of file +EnchantKick = 0 + +# ---------------------- +# Enchant Announce - +# ---------------------- +# Announce when a player successfully enchant an item to x +# Default: False +EnableEnchantAnnounce = False + +# The value of x is... set it here (separated by comma) e.g: 5,10,20,35,... +# NOTE: Dont have default value! +EnchantAnnounceLevels = 6,10,16,20 [/hide] Credits: RedHoT
  3. Hello guys, here is a code for Enchant Rates Config for Blessed and Crystal Scrolls for aCis. Go to: gameserver/network/clientpacket/AbstractEnchantPacket.java find this if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((L2Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_MAGIC; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC; } And replace it with this: [hide] if (isBlessed()) { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR_BLESSED, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED; } } else if (isCrystal()) { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR_CRYSTAL, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL : Config.ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL; } } else { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_MAGIC; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC; } } [/hide] And now the Configs: public static double ENCHANT_CHANCE_WEAPON_MAGIC; public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS; public static double ENCHANT_CHANCE_WEAPON_NONMAGIC; public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL; public static double ENCHANT_CHANCE_ARMOR; +public static double ENCHANT_CHANCE_ARMOR_BLESSED; +public static double ENCHANT_CHANCE_ARMOR_CRYSTAL; ENCHANT_CHANCE_WEAPON_MAGIC = players.getProperty("EnchantChanceMagicWeapon", 0.4); ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS = players.getProperty("EnchantChanceMagicWeapon15Plus", 0.2); ENCHANT_CHANCE_WEAPON_NONMAGIC = players.getProperty("EnchantChanceNonMagicWeapon", 0.7); ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS = players.getProperty("EnchantChanceNonMagicWeapon15Plus", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED = players.getProperty("EnchantChangeWeaponMagicBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED = players.getProperty("EnchantChangeWeaponMagic15PlusBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED = players.getProperty("EnchantChangeWeaponNonMagicBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED = players.getProperty("EnchantChangeWeaponNonMagic15PlusBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL = players.getProperty("EnchantChanceWeaponNonMagicCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL = players.getProperty("EnchantChanceWeaponNonMagic15PlusCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL = players.getProperty("EnchantChanceWeaponMagicCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL = players.getProperty("EnchantChanceWeaponMagic15PlusCrystal", 0.35); ENCHANT_CHANCE_ARMOR = players.getProperty("EnchantChanceArmor", 0.66); +ENCHANT_CHANCE_ARMOR_BLESSED = players.getProperty("EnchantChanceArmorBlessed", 0.66); +ENCHANT_CHANCE_ARMOR_CRYSTAL = players.getProperty("EnchantChanceArmorCrystal", 0.66); # % chance of success to enchant a non magic weapon with normal scroll EnchantChanceNonMagicWeapon = 0.55 EnchantChanceNonMagicWeapon15Plus = 0.55 + +# % chance of success to enchant a magic weapon with blessed scroll +EnchantChangeWeaponMagicBlessed = 0.75 +EnchantChangeWeaponMagic15PlusBlessed = 0.75 + +# % chance of success to enchant a non magic weapon with blessed scroll +EnchantChangeWeaponNonMagicBlessed = 0.75 +EnchantChangeWeaponNonMagic15PlusBlessed = 0.75 + +# % chance of success to enchant a magic weapon with crystal scroll +EnchantChanceWeaponMagicCrystal = 0.95 +EnchantChanceWeaponMagic15PlusCrystal = 0.95 + +# % chance of success to enchant a non magic weapon with crystal scroll +EnchantChanceWeaponNonMagicCrystal = 0.95 +EnchantChanceWeaponNonMagic15PlusCrystal = 0.95 + # % chance of success for normal scrolls to enchant an armor part (both jewelry or armor) EnchantChanceArmor = 0.66 + +# % chance of success for blessed scrolls to enchant an armor part (both jewelry or armor) +EnchantChanceArmorBlessed = 0.75 + +# % chance of success for crystal scrolls to enchant an armor part (both jewelry or armor) +EnchantChanceArmorCrystal = 0.95 # Enchant limit [default = 0] EnchantMaxWeapon = 0 EnchantMaxArmor = 0 Credits for the original code: Uknown, Credits for the fixes and update to last rev: Psyancy aka TehNeRD
×
×
  • Create New...