Jump to content
  • 0

pws kanw enchant ta infinity weapon?


Question

11 answers to this question

Recommended Posts

  • 0
Posted

piga alla dn exei enchant.prop...epsa3a kai se ola ta egrafa p exei sto gameserver->config kai dn exei pou8ena to

# Enchant hero weapons? (default: False)

EnchantHeroWeapons = False

  • 0
Posted
# Configuration file for enchant settings

 

# % Chance of succeding to enchant an item when it has a chance of breaking(destory item)/resetting(set enchant back to 0)

# Standard Enchant Scroll

EnchantChanceWeapon = 75

EnchantChanceArmor = 75

EnchantChanceJewelry = 75

EnchantBreakWeapon = True

EnchantBreakArmor = True

EnchantBreakJewelry = True

# Crystal Enchant Scroll

EnchantChanceWeaponCrystal = 0

EnchantChanceArmorCrystal = 0

EnchantChanceJewelryCrystal = 0

EnchantBreakWeaponCrystal = True

EnchantBreakArmorCrystal = True

EnchantBreakJewelryCrystal = True

# Blessed Enchant Scroll

EnchantChanceWeaponBlessed = 95

EnchantChanceArmorBlessed = 95

EnchantChanceJewelryBlessed = 95

EnchantBreakWeaponBlessed = False

EnchantBreakArmorBlessed = False

EnchantBreakJewelryBlessed = False

 

# Enchant limit (unlimited on default)

EnchantMaxWeapon = 25

EnchantMaxArmor = 25

EnchantMaxJewelry = 25

 

# Safe till

EnchantSafeMax = 7

EnchantSafeMaxFull = 7

# Enchant hero weapons? (default: Fals)

EnchantHeroWeapons = False

# Alternate Dwarf enchant system (default: False)

# Dwarf from lvl 20 can enchant up to EnchantDwarf1Enchantlevel with a chance bouns from + EnchantDwarf1Chance

# Dwarf from lvl 40 can enchant up to EnchantDwarf2Enchantlevel with a chance bouns from + EnchantDwarf2Chance

# Dwarf from lvl 76 can enchant up to EnchantDwarf3Enchantlevel with a chance bouns from + EnchantDwarf3Chance

EnchantDwarfSystem = False

EnchantDwarf1Enchantlevel = 8

EnchantDwarf2Enchantlevel = 10

EnchantDwarf3Enchantlevel = 12

EnchantDwarf1Chance = 15

EnchantDwarf2Chance = 15

EnchantDwarf3Chance = 15

etsi prepi na einai...

  • 0
Posted

file i l2dot exei  to exei ayto to config na kaneis enchant infinity ama 8eleis to java na to peraseis kai na kaneis compile file mou oriste

 

Index: /trunk/L2J-Archid-Game/java/com/l2jarchid/Config.java
===================================================================
--- /trunk/L2J-Archid-Game/java/com/l2jarchid/Config.java (revision 524)
+++ /trunk/L2J-Archid-Game/java/com/l2jarchid/Config.java (revision 525)
@@ -1388,5 +1388,6 @@
     public static float ALT_DAGGER_DMG_VS_HEAVY;
     public static float ALT_DAGGER_DMG_VS_ROBE;
-
+    public static boolean ENCHANT_HERO_WEAPONS;
+    
	//************************************************************************************************************************
	public static void loadCustomsConfig()
@@ -1517,5 +1518,5 @@
	     	ALT_DAGGER_DMG_VS_ROBE = Float.parseFloat(CustomMod.getProperty("DaggerVSRobe", "2.00")); 
	     	ALT_DAGGER_DMG_VS_LIGHT = Float.parseFloat(CustomMod.getProperty("DaggerVSLight", "2.20"));
-
+	     	ENCHANT_HERO_WEAPONS	= Boolean.parseBoolean(CustomMod.getProperty("EnchantHeroWeapons","false"));
			// Create Map only if enabled
			if (ENABLE_MODIFY_SKILL_DURATION)
Index: /trunk/L2J-Archid-Game/java/com/l2jarchid/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- /trunk/L2J-Archid-Game/java/com/l2jarchid/gameserver/network/clientpackets/RequestEnchantItem.java (revision 500)
+++ /trunk/L2J-Archid-Game/java/com/l2jarchid/gameserver/network/clientpackets/RequestEnchantItem.java (revision 525)
@@ -68,13 +68,12 @@
         activeChar.setActiveEnchantItem(null);
         if (item == null || scroll == null) return;
-
-         // can't enchant rods, hero weapons and shadow items
-        if(item.getItem().getItemType() == L2WeaponType.ROD
-        		|| item.getItemId() >= 6611 && item.getItemId() <= 6621
-        		|| item.isShadowItem())
-        {
-        	activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
-            return;
-        }
+    	
+        
+    	if ((item.getItem().getItemType() == L2WeaponType.ROD) || (!Config.ENCHANT_HERO_WEAPONS && (item.getItemId() >= 6611) && (item.getItemId() <= 6621)) || ((item.getItemId() >= 7816) && (item.getItemId() <= 7831)) || item.isShadowItem())
+    	{
+    	    activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));
+    	    return;
+    	}
+    	
         if(item.isWear())
         {
@@ -82,4 +81,5 @@
             return;
         }
+        
         int itemType2 = item.getItem().getType2();
         boolean enchantItem = false;
Index: /trunk/L2J-Archid-Game/config/mods/customs.properties
===================================================================
--- /trunk/L2J-Archid-Game/config/mods/customs.properties (revision 524)
+++ /trunk/L2J-Archid-Game/config/mods/customs.properties (revision 525)
@@ -275,4 +275,8 @@
DaggerVSRobe = 2.00
DaggerVSLight = 2.20
+
+# Enchant Hero Weapons?
+# Default : False
+EnchantHeroWeapons = False

#===============================================================


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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...