Recipes quick questions

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Recipes quick questions

Post by babyjason »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4416
L2JDP Revision Number:7666

Hello, i m not experienced yet when it comes to receips, but i have only 1 questions.

are the material requirements of a receip in client?

if for exemple, i have this

Code: Select all

<item id="937" recipeId="15775" name="mk_sealed_destino_helmet" craftLevel="9" type="dwarven" successRate="60">        <statUse name="MP" value="246" />        <production id="15694" count="1" />        <productionRare id="16221" count="1" rarity="70" />        <ingredient id="15775" count="1" />        <ingredient id="15645" count="18" />        <ingredient id="5551" count="1" />        <ingredient id="1894" count="360" />        <ingredient id="4043" count="36" />        <ingredient id="9630" count="18" />        <ingredient id="1462" count="54" />        <ingredient id="2134" count="9" />    </item>
and i remove the line

Code: Select all

<ingredient id="15645" count="18" />
, in the game, will that material be visible as a requirement, allthough it s not required server side anymore>

i ask this because i know even if i edit chance 60% to 100, in game it s still 60% visible?

ty
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Recipes quick questions

Post by janiii »

yes, recipes are client side.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Recipes quick questions

Post by babyjason »

janiii wrote:yes, recipes are client side.
ty very much, topic closed.
User avatar
armura
Posts: 40
Joined: Sat Sep 04, 2010 9:08 pm

Re: Recipes quick questions

Post by armura »

Greetings!

Sorry for my english, I try explain my question...
I do not understand not of .xml, and the general recipe list is a .xml file...
Its possible to create a variable into the "gameserver/data/recipes.xml" to change values of itens to craft?

This is a original recipes.xml
<item id="937" recipeId="15775" name="mk_sealed_destino_helmet" craftLevel="9" type="dwarven" successRate="60">
<statUse name="MP" value="246" />
<production id="15694" count="1" />
<productionRare id="16221" count="1" rarity="70" />
<ingredient id="15775" count="1" />
<ingredient id="15645" count="18" />
<ingredient id="5551" count="1" />
<ingredient id="1894" count="360" />
<ingredient id="4043" count="36" />
<ingredient id="9630" count="18" />
<ingredient id="1462" count="54" />
<ingredient id="2134" count="9" />
</item>

And this is a new recipes.xml
<item id="937" recipeId="15775" name="mk_sealed_destino_helmet" craftLevel="9" type="dwarven" successRate="60">
<ratecraft="3"/ >
<statUse name="MP" value="246" />
<production id="15694" count="1" />
<productionRare id="16221" count="1" rarity="70" />
<ingredient id="15775" count="1" />
<ingredient id="15645" count="18 / ratecraft" />
<ingredient id="5551" count="1" />
<ingredient id="1894" count="360 / ratecraft" />
<ingredient id="4043" count="36 / ratecraft" />
<ingredient id="9630" count="18 / ratecraft" />
<ingredient id="1462" count="54" />
<ingredient id="2134" count="9" />
</item>
Now to craft its is necessary only...
<ingredient id="15645" count="18 / ratecraft" /> -->18/3 = 6 15945
<ingredient id="1894" count="360 / ratecraft" /> -->360/3 = 120 1894
<ingredient id="4043" count="36 / ratecraft" /> -->36/3 = 12 4043
<ingredient id="9630" count="18 / ratecraft" /> -->18/3 = 6 9630

The variable "ratecraft" in capable only in some itens.

My question is: is possible mathematics operathions like this in xml structure?

But, this ideia create another problem, when iten count is 5 for example.
5 / ratecraft
5 / 3 = 1,666
I need perfect numbers in the operation "count / ratecraft", whitout rest of division.

Sorry if my explanation is not clear...
Best regards!
Post Reply