How to tune recipes and the necessary ingredients.

Deazer

Head Developer
Staff member
Path to config:
gameserver\data\recipe.xml

The example of the recipe - a format is clear from without the detailed description:
<recipe id="1" name="Recipe: Wooden Arrow" level="1" mp_consume="30" success_rate="100" item_id="1666" is_common="false">
<!--Description: For Dwarves only. The recipe for a Wooden Arrow. Requires Create Item Level 1. The success rate is 100%-->
<materials>
<item id="1864" name="Stem" count="4"/>
<item id="1869" name="Iron Ore" count="2"/>
</materials>
<products>
<item id="17" name="Wooden Arrow" count="500"/>
</products>
<npc_fee>
<item id="1666" name="Recipe: Wooden Arrow" count="1"/>
<item id="57" name="Adena" count="200"/>
</npc_fee>
</recipe>

1. You can delete the only thing in general, or not specify if you create the unique recipe
<npc_fee>
<item id="1666" name="Recipe: Wooden Arrow" count="1"/>
<item id="57" name="Adena" count="200"/>
</npc_fee>

2. Recipe also share for all or for dwarf - is_common= "false" only dwarf is responsible for it. In general all is_common= "true"
Final example :
<recipe id="1" name="Recipe: Wooden Arrow" level="1" mp_consume="30" success_rate="100" item_id="1666" is_common="false">
<!--Description: For Dwarves only. The recipe for a Wooden Arrow. Requires Create Item Level 1. The success rate is 100%-->
<materials>
<item id="1864" name="Stem" count="4"/>
<item id="1869" name="Iron Ore" count="2"/>
</materials>
<products>
<item id="17" name="Wooden Arrow" count="500"/>
</products>
</recipe>
 
The system is supplemented by the ability to set odds and a "masterwork" system
Example:

Code:
<recipe id="1" name="Recipe: Wooden Arrow" level="1" mp_consume="30" success_rate="100" item_id="1666" is_common="false">
   <!--Description: For Dwarves only. The recipe for a Wooden Arrow. Requires Create Item Level 1. The success rate is 100%-->
   <materials>
      <item id="1864" name="Stem" count="4"/>
      <item id="1869" name="Iron Ore" count="2"/>
   </materials>
   <products>
      <item id="17" name="Wooden Arrow" count="500" chance="80"/>
      <item id="4037" name="Coin of Luck" count="1" chance="20"/>
   </products>
   <npc_fee>
      <item id="1666" name="Recipe: Wooden Arrow" count="1"/>
      <item id="57" name="Adena" count="200"/>
   </npc_fee>
</recipe>

Where are the working parameters:
<item id="17" name="Wooden Arrow" count="500" chance="80"/>
<item id="4037" name="Coin of Luck" count="1" chance="20"/>

The probability of getting Wooden Arrow will be 80%
The probability of getting Coin of Luck will be 20%
The player receives only ONE of the items on the list.

You can also do this in this way:
<item id="17" name="Wooden Arrow" count="500" chance="80"/>
<item id="4037" name="Coin of Luck" count="1" chance="20"/>
<item id="57" name="Adena" count="1000"/>

In this case, the player will receive with a chance of 80% Wooden Arrow or with a 20% chance Coin of Luck and guaranteed Adena

The list of products is NOT limited.
 
Back
Top