Scripts: Compiling C# scripts...Failed with: 2 errors, 2 warnings
Warnings:
+ CUSTOMS/MarbleCrafting/DefMarbleCrafting.cs:
CS0219: Line 95: The variable 'index' is assigned but its value is never use
d
+ Items/Equipment/Armor/BaseArmor.cs:
CS0162: Line 3097: Unreachable code detected
Errors:
+ Items/Equipment/Armor/BaseArmor.cs:
CS0165: Line 3128: Use of unassigned local variable 'oreType'
+ Misc/ResourceInfo.cs:
CS0161: Line 1758: 'Server.Items.CraftResources.GetFromOreInfo(Server.Items.
OreInfo)': not all code paths return a value
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

I tried to add in ores, ingots, and marble with marble crafting. I am rusty on my coding but I did manage to add in scales and leathers before attempting the ores. I fixed all my errors but these and it is
This in BaseArmor
public override void AddNameProperty(ObjectPropertyList list)
{
3128------> int oreType;

switch ( m_Resource )
{
case CraftResource.DullCopper:

and this line in ResouceInfo
-----> public static CraftResource GetFromOreInfo(OreInfo info)
{
if (info.Name.IndexOf("Spined") >= 0)
 
Back