public LSL_Integer llGetScriptState(string name) { UUID item; m_host.AddScriptLPS(1); if ((item = GetScriptByName(name)) != UUID.Zero) { return m_ScriptEngine.GetScriptState(item) ?1:0; } Error("llGetScriptState", "Can't find script '" + name + "'"); // If we didn't find it, then it's safe to // assume it is not running. return 0; }