In the process of porting over my old files to the new ServUO and I feel like Im running in circles trying to fix this one.
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS0115: Line 48: 'Server.Engines.Craft.DefPumpkinCarve.CanCraft(Server.Mobile, Server.Items.BaseTool, System.Type)': no suitable method found to override
CS0534: Line 6: 'Server.Engines.Craft.DefPumpkinCarve' does not implement inherited abstract member 'Server.Engines.Craft.CraftSystem.CanCraft(Server.Mobile, Server.Items.ITool, System.Type)'
Scripts: One or more scripts failed to compile or no script files were found.
Line 48:
public override int CanCraft( Mobile from, BaseTool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !BaseTool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Line 6:
public class DefPumpkinCarve : CraftSystem
Changing BaseTool to ITool just returns these errors:
LINE 48 Edited like this gives these errors:
public override int CanCraft( Mobile from, ITool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !BaseTool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS1502: Line 52: The best overloaded method match for 'Server.Items.BaseTool.CheckAccessible(Server.Mobile, ref int)' has some invalid arguments
CS1503: Line 52: Argument 1: cannot convert from 'Server.Items.ITool' to 'Server.Mobile'
CS1503: Line 52: Argument 2: cannot convert from 'Server.Mobile' to 'ref int
Line 48 Edited like this gives these errors:
public override int CanCraft( Mobile from, ITool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !ITool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS1502: Line 52: The best overloaded method match for 'Server.Items.ITool.CheckAccessible(Server.Mobile, ref int)' has some invalid arguments
CS1503: Line 52: Argument 1: cannot convert from 'Server.Items.ITool' to 'Server.Mobile'
CS1503: Line 52: Argument 2: cannot convert from 'Server.Mobile' to 'ref int
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS0115: Line 48: 'Server.Engines.Craft.DefPumpkinCarve.CanCraft(Server.Mobile, Server.Items.BaseTool, System.Type)': no suitable method found to override
CS0534: Line 6: 'Server.Engines.Craft.DefPumpkinCarve' does not implement inherited abstract member 'Server.Engines.Craft.CraftSystem.CanCraft(Server.Mobile, Server.Items.ITool, System.Type)'
Scripts: One or more scripts failed to compile or no script files were found.
Line 48:
public override int CanCraft( Mobile from, BaseTool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !BaseTool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Line 6:
public class DefPumpkinCarve : CraftSystem
Post automatically merged:
Changing BaseTool to ITool just returns these errors:
LINE 48 Edited like this gives these errors:
public override int CanCraft( Mobile from, ITool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !BaseTool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS1502: Line 52: The best overloaded method match for 'Server.Items.BaseTool.CheckAccessible(Server.Mobile, ref int)' has some invalid arguments
CS1503: Line 52: Argument 1: cannot convert from 'Server.Items.ITool' to 'Server.Mobile'
CS1503: Line 52: Argument 2: cannot convert from 'Server.Mobile' to 'ref int
Line 48 Edited like this gives these errors:
public override int CanCraft( Mobile from, ITool tool, Type itemType )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
else if ( !ITool.CheckAccessible( tool, from ) )
return 1044263; // The tool must be on your person to use.
return 0;
}
Errors:
+ Custom Items/Holiday Stuff/Halloween/2014/Pumpkin Carving/DefPumpkinCarve.cs:
CS1502: Line 52: The best overloaded method match for 'Server.Items.ITool.CheckAccessible(Server.Mobile, ref int)' has some invalid arguments
CS1503: Line 52: Argument 1: cannot convert from 'Server.Items.ITool' to 'Server.Mobile'
CS1503: Line 52: Argument 2: cannot convert from 'Server.Mobile' to 'ref int
Last edited: