define ingredients
Posted: Tue Nov 22, 2016 6:54 pm
Is there a way to define ingredients.
Is there an exact code example.
Gary
Is there an exact code example.
Gary
defineRecipe(desc)
Defines a new potion recipe or replases an existing recipe. desc is a table with the following fields:
name:the name of the potion recipe to define or replace.
level:Alchemy skill level needed to craft the potion.
ingredients:a number describing the ingredients.
Ingredients are encoded into numeric value. Each digit in the number corresponds to an herb.
The available herbs are:
1 = Blooddrop Cap,
2 = Etherweed,
3 = Mudwort,
4 = Falconskyre,
5 = Blackmoss,
6 = Crystal Flower.
For example, 115 would translate to a recipe with two Blooddrop Caps and one Blackmoss.
Code: Select all
defineRecipe{
potion = "potion_speed",
level = 3,
ingredients = 244,
}