Lord_Velius
Sorceror
I have gotten some help previously from some friends on this and I'm rather stuck still, so I figured I'd ask the community here for a poke in the right direction.
I have a few custom artifacts in my server that are craftable, but I want it to send a worldbroadcast message when one is crafted. It uses a custom craft tool, but I believe its still based on CraftSystem.cs
I was told the best spot to place it in would be the CreateItem section of the craft.
So I put in some code in that section to list said item, and yet on craft I don't get a message, so I'm figuring I'm overlooking something simple. Maybe someone here can help point me in the right direction.
I placed my code under
My code is this:
I have a few custom artifacts in my server that are craftable, but I want it to send a worldbroadcast message when one is crafted. It uses a custom craft tool, but I believe its still based on CraftSystem.cs
I was told the best spot to place it in would be the CreateItem section of the craft.
So I put in some code in that section to list said item, and yet on craft I don't get a message, so I'm figuring I'm overlooking something simple. Maybe someone here can help point me in the right direction.
I placed my code under
Code:
if (craftItem != null)
{
}
My code is this:
Code:
if (type is ItemName)
{
World.Broadcast(38, false, from.Name + " has crafted a ItemName");
}