Page 1 of 1

Npc Weapon Enchant

Posted: Sun Feb 28, 2010 12:44 am
by badboy29
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:3718
L2JDP Revision Number:6773

Hello guys, been observing that in Gracia Epilogue is an option for enchants NPCs weapons, someone would have a patch for Gracia Final ? It would be nice :)

Re: Npc Weapon Enchant

Posted: Sun Feb 28, 2010 4:50 pm
by LasTravel
I want the same, why this don't are on timeline?

Re: Npc Weapon Enchant

Posted: Sun Feb 28, 2010 6:18 pm
by jurchiks
maybe because GF is not updated anymore?

Re: Npc Weapon Enchant

Posted: Sun Feb 28, 2010 6:27 pm
by LasTravel
But don't are on timeline for epilogue too

Re: Npc Weapon Enchant

Posted: Sun Feb 28, 2010 6:40 pm
by jurchiks
applied during Epilogue update, the complete changelog is known only to devs methinks

Re: Npc Weapon Enchant

Posted: Sun Feb 28, 2010 9:26 pm
by LasTravel
Some dev can share it?

Re: Npc Weapon Enchant

Posted: Mon Mar 01, 2010 6:11 am
by denser
trace back in source where used config value ) try it - it can become a lvlup for you in coding :)

Re: Npc Weapon Enchant

Posted: Mon Mar 01, 2010 9:32 pm
by LasTravel
denser wrote:trace back in source where used config value ) try it - it can become a lvlup for you in coding :)

Code: Select all

Index: java/com/l2jserver/Config.java===================================================================--- java/com/l2jserver/Config.java	(revision 3923)+++ java/com/l2jserver/Config.java	(working copy)@@ -670,7 +670,7 @@ 	public static boolean DEEPBLUE_DROP_RULES_RAID; 	public static boolean SHOW_NPC_LVL; 	public static boolean SHOW_CREST_WITHOUT_QUEST;+	public static boolean ENABLE_RANDOM_ENCHANT_EFFECT; 	public static int MIN_NPC_LVL_DMG_PENALTY; 	public static int MIN_NPC_LVL_MAGIC_PENALTY; 	public static boolean GUARD_ATTACK_AGGRO_MOB;@@ -1763,7 +1763,7 @@ 					DEEPBLUE_DROP_RULES_RAID = Boolean.parseBoolean(NPC.getProperty("UseDeepBlueDropRulesRaid", "True")); 					SHOW_NPC_LVL = Boolean.parseBoolean(NPC.getProperty("ShowNpcLevel", "False")); 					SHOW_CREST_WITHOUT_QUEST = Boolean.parseBoolean(NPC.getProperty("ShowCrestWithoutQuest", "False"));+					ENABLE_RANDOM_ENCHANT_EFFECT = Boolean.parseBoolean(NPC.getProperty("EnableRandomEnchantEffect", "False"));; 					MIN_NPC_LVL_DMG_PENALTY = Integer.parseInt(NPC.getProperty("MinNPCLevelForDmgPenalty", "78")); 					MIN_NPC_LVL_MAGIC_PENALTY = Integer.parseInt(NPC.getProperty("MinNPCLevelForMagicPenalty", "78")); 					ENABLE_DROP_VITALITY_HERBS = Boolean.parseBoolean(NPC.getProperty("EnableVitalityHerbs", "True"));Index: java/config/NPC.properties===================================================================--- java/config/NPC.properties	(revision 3923)+++ java/config/NPC.properties	(working copy)@@ -56,11 +56,11 @@ # Default: True EnableVitalityHerbs = True +# Custom random EnchantEffect+# All npcs with weapons get random weapon enchanted value+# Enchantment is only visual, range is 4-21+# Default: False+EnableRandomEnchantEffect = False
But, where is the rest? :)

Re: Npc Weapon Enchant

Posted: Tue Mar 02, 2010 2:53 am
by denser

Code: Select all

ENABLE_RANDOM_ENCHANT_EFFECT
now find this :) smth like: if (Config.ENABLE_RANDOM_ENCHANT_EFFECT)