Noob Alert, sorry this looks cool but I got an error hehe


Edit:

ok this works

Code:
    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;
        }
 

Attachments

  • error.PNG
    error.PNG
    78.1 KB · Views: 28
Last edited:
Noob Alert, sorry this looks cool but I got an error hehe


Edit:

ok this works

Code:
    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;
        }

So you did get it working correct?
 
getting same error, the correction is in the script, but not working.

Could you specify which script is giving the error? Also, could you post the error and possibly the "correction" you're speaking of?

Posting the error would allow me or others to help you remedy the issue faster.
 
I have the same error too. I don't know if the script has the edit in it now, but comparing the script with the edit, I see no difference?
 
Oops I copied original instead of edit, here is my edit sorry mate:

Code:
        public override int CanCraft( Mobile from, ITool tool, Type itemType )
        {
            int num = 0;

            if (tool == null || tool.Deleted || tool.UsesRemaining <= 0)
                return 1044038; // You have worn out your tool!
            else if (!tool.CheckAccessible(from, ref num))
                return num; // The tool must be on your person to use.

            return 0;
        }
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back