I have been searching for a way to add new recipes. I have not found anywhere that the recipes are defined.
index = AddCraft(typeof(TrueSpellblade), 1011081, 1073513, 75.0, 125.0, typeof(IronIngot), 1044036, 14, 1044037);
AddRes(index, typeof(BlueDiamond), 1032696, 1, 1044240);
AddRecipe(index, (int)SmithRecipes.TrueSpellblade);
using System;
namespace Server.Items
{
public class NewItemRecipe : RecipeScroll
{
[Constructable]
public NewItemRecipe() : base( XXXX ) //replace XXXX with the number you use in the defcraft's public enum
{}
public NewItemRecipe(Serial serial)
: base(serial)
{}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public enum TinkerRecipes
{
InvisibilityPotion = 400,
DarkglowPotion = 401,
ParasiticPotion = 402,
EssenceOfBattle = 450,
PendantOfTheMagi = 451,
ResilientBracer = 452,
ScrappersCompendium = 453,
HoveringWisp = 454, // Removed at OSI Publish 103
KotlPowerCore = 455,
// doom
BraceletOfPrimalConsumption = 456,
DrSpectorLenses = 457,
KotlAutomatonHead = 458,
WeatheredBronzeArcherSculpture = 459,
WeatheredBronzeFairySculpture = 460,
WeatheredBronzeGlobeSculpture = 461,
WeatheredBronzeManOnABench = 462,
KrampusMinionEarrings = 463,
EnchantedPicnicBasket = 464,
Telescope = 465,
EnchantedMobileForge = 10000 //Visam This is where I added it to. Don't forget the comma on the line above.
}
//enchanted mobile forge //Visam
index = AddCraft(typeof(EnchantedMobileForge), "Customs", "Enchanted Mobile Forge", 100.0, 150.0, typeof(KeyRing), "KeyRing", 2, "You need more Key Rings");
AddSkill(index, SkillName.Blacksmith, 110.0, 150.0);
AddSkill(index, SkillName.Mining, 110.0, 150.0);
AddRes(index, typeof(PlatinumIngot), "Platinum Ingots", 350, "You need more Platinum Ingots");
AddRes(index, typeof(PlatinumGranite), "Platinum Granite", 40, "You need more Platinum Granite");
AddRes(index, typeof(PetrifiedBoard), "Petrified Boards", 100, "You need more Petrified Boards");
AddRecipe(index, (int)TinkerRecipes.EnchantedMobileForge); //Visam Added for Recipe
using System;
namespace Server.Items
{
public class EnchantedMobileForgeRecipe : RecipeScroll
{
[Constructable]
public EnchantedMobileForgeRecipe() : base( 10000 )
{
}
public EnchantedMobileForgeRecipe(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
#region Custom Resource
AddCraft(typeof(LumberHatchet), 1044046, "Lumber Hatchet" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.LumberHatchetRecipe);
AddCraft(typeof(OrePickaxe), 1044046, "Mining Pickaxe" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.OrePickaxeRecipe);
#endregion
KrampusMinionEarrings = 463,
EnchantedPicnicBasket = 464,
#region Custom Resource
HuntersKnifeRecipe = 513,
LumberHatchetRecipe = 511,
OrePickaxeRecipe = 512
#endregion
namespace Server.Items
{
public class OrePickaxeRecipe : RecipeScroll
{
[Constructable]
public OrePickaxeRecipe() : base( 512 )
{
}
public OrePickaxeRecipe(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
#region Custom Resource
AddCraft(typeof(LumberHatchet), 1044046, "Lumber Hatchet" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.LumberHatchetRecipe);
AddCraft(typeof(OrePickaxe), 1044046, "Mining Pickaxe" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.OrePickaxeRecipe);
#endregion
#region Custom Resource
AddCraft(typeof(LumberHatchet), 1044046, "Lumber Hatchet" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.LumberHatchet);
AddCraft(typeof(OrePickaxe), 1044046, "Mining Pickaxe" , 95.0, 115.0, typeof(IronIngot), 1044036, 4, 1044037);
AddRecipe(index, (int)TinkerRecipes.OrePickaxe);
#endregion
DataPath: C:\Program Files (x86)\Electronic Arts\Ultima Online Classic\
Warning: Attempted add of recipe #811 to the crafting of EnchantedPicnicBasket in CraftSystem Server.Engines.Craft.DefTinkering.
Warning: Attempted add of recipe #812 to the crafting of EnchantedPicnicBasket in CraftSystem Server.Engines.Craft.DefTinkering.
We use essential cookies to make this site work, and optional cookies to enhance your experience.