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!