bool TriggerAction(LimitDef d, ISceneChildEntity m_host, UUID itemID)
{
if (d.Action == LimitAction.None)
return true;
if (d.Action == LimitAction.Drop)
return false; //Drop it
if (d.Action == LimitAction.TerminateEvent)
throw new Exception (""); //Blank messages kill events, but don't show anything on the console/inworld
if (d.Action == LimitAction.TerminateScript) {
ScriptData script = GetScript (itemID);
if (script != null)
script.IgnoreNew = true; //Blocks all new events, can be reversed by resetting or resaving the script
throw new Exception (""); //Blank messages kill events, but don't show anything on the console/inworld
}
if (d.Action == LimitAction.Delay)
MainConsole.Instance.Warn ("Function delaying is not implemented");
return true;
}