» Find Revision
L2J Revision Number:2941
L2JDP Revision Number:5986
How can i disable the Rare Item Craft? because if the SA Foundation work is not already finished i want to disable the crafting of Foundation Items.
I was looking at the recipe.xml
or maybe the RecipeController.java ?
Anybody can help me?
How can i Disable the Rare Item Craft?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 110
- Joined: Wed Jan 21, 2009 8:22 pm
Re: How can i Disable the Rare Item Craft?
I don't remember who gave me the solution, but I take no credit for it...but it works great:
Code: Select all
Index: java/net/sf/l2j/gameserver/RecipeController.java===================================================================--- java/net/sf/l2j/gameserver/RecipeController.java (revision 2798)+++ java/net/sf/l2j/gameserver/RecipeController.java (working copy)@@ -901,7 +901,7 @@ L2Item template = ItemTable.getInstance().getTemplate(itemId); // check that the current recipe has a rare production or not- if (rareProdId != -1)+ if (rareProdId != -1 && rareProdId == itemId) { if (Rnd.get(100) < _recipeList.getRarity()) {
-
- Posts: 38
- Joined: Sun Dec 21, 2008 8:27 pm
Re: How can i Disable the Rare Item Craft?
omg , i had headacke trying to do this ¬¬
so quite simple and perfect , thxs dude for helping others (in this case , me )
so quite simple and perfect , thxs dude for helping others (in this case , me )