Do you mean a craft gump like when you dbl click a tool?Ahh that is it! I looked at that line and for some reason it did not click to me. Now for the next fun part, figuring out how to get a crafting system to be called instead of a gump LOL.
Errors:
+ Skills/Craft/Imbuing/Core/Imbuing.cs:
CS1502: Line 41: The best overloaded method match for 'Server.Engines.Craft.CraftGump.CraftGump(Server.Mobile, Server.Engines.Craft.CraftSystem, Server.Items.BaseTool, object)' has some invalid arguments
CS1503: Line 41: Argument 3: cannot convert from 'Server.Item' to 'Server.Items.BaseTool'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Item tool = from.Backpack.FindItemByType(typeof(CarpTool));
if (!from.Alive)
from.SendLocalizedMessage(500949); //You can't do that when you're dead.
else
{
from.SendGump(new CraftGump(from, DefCarpentry.CraftSystem, tool, null));
}
public static TimeSpan OnUse(Mobile from)
{
if (!from.Alive)
from.SendLocalizedMessage(500949); //You can't do that when you're dead.
else
{
BaseTool tool = from.Backpack.FindItemByType( typeof( SmithHammer), true ) as SmithHammer;
if ( tool != null )
{
from.SendGump(new CraftGump(from, BlackSmithyDef.CraftSystem, tool, null));
}
else
from.SendMessage( "Need Smith Hammer In BackPack..." );
}
/*
else
{
from.CloseGump(typeof(ImbuingGump));
from.SendGump(new ImbuingGump(from));
}
*/
return TimeSpan.FromSeconds(1.0);
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.