Page 1 of 1

Recipes quick questions

Posted: Wed Oct 13, 2010 7:01 am
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

Re: Recipes quick questions

Posted: Wed Oct 13, 2010 7:16 am
by janiii
yes, recipes are client side.

Re: Recipes quick questions

Posted: Wed Oct 13, 2010 7:19 am
by babyjason
janiii wrote:yes, recipes are client side.
ty very much, topic closed.

Re: Recipes quick questions

Posted: Wed Oct 13, 2010 5:23 pm
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!