Page 1 of 1

How can i Disable the Rare Item Craft?

Posted: Sun Apr 26, 2009 6:28 pm
by piche666
» 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?

Re: How can i Disable the Rare Item Craft?

Posted: Sun Apr 26, 2009 7:48 pm
by Bruteforce
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())                { 

Re: How can i Disable the Rare Item Craft?

Posted: Sun Apr 26, 2009 9:33 pm
by piche666
omg , i had headacke trying to do this ¬¬
so quite simple and perfect , thxs dude for helping others (in this case , me :) )