hmmm....id like this to...
you killed a ghost
a ghost dropped a healing leave and an empty vial
at a cooking pot:
you boil the leaf in water and boil the liquid into a vial.
you made 1 potion
or maybe even food
you baked the dough into bread
ill keep checkiing back
-------------------------------------------------------------------------------------
I DID NOT MAKE THIS SCRIPT
Here is a script that I recently wrote that allows for all those blacksmithing and cooking type trades. I hope you like. Let me know if you have any problems with it.
I will try to give a good explanation on how to use this script.
First of in order to craft an item, you need to create a recipe. A recipe has 5 things.
1. INGREDIENTS (part 1)
An array of items used to make the desired object. These arrays simply consist of the indexes of the object taken form the database. For example, in the picture below the index of a tablet is 30. The indexes of a card and fruit would be 31 and 32, respectively. If we wanted to make a recipe that used all three objects, our ingredients array would look like the following:
[30,31,32]
NOTE: Even if you only need 1 ingredient you should encapsulate it as an array. For example, the proper syntax would be [15], not 15.
2. INGREDIENTS (part 2)
You may not want all your recipes to be made only items. Maybe you want a recipe that uses a regular sword combined with dragon breath to make a fire sword. In order to make this possible you have to specify in your recipe what type of ingredients you are using. Ingredients can be items, armors, or weapons. I use the following convention (consistent with the default programming)
-items are type 0
-armors are type 1
-weapons are type 2
So, in my example, all the "ingredients" are items, so my type array would be [0,0,0].
NOTE: The type list should always be the same size as the ingredients list.
3. INGREDIENTS (part 3)
Well now that we know what type the ingredients are and what there index is, what else could we possibly need to know? You guessed it, we need to know how many of each ingredient the recipe requires. Suppose we just wanted 1 of each type of ingredient, our array would look like this: (This array should be the same size as the other two.)
[1,1,1]
4. THE RESULT (part 1)
Just like with the ingredients you need to tell the recipe what the index is of the object you want to create. The only difference is that now it doesn