Reintroduces the discovery mechanism to use llRequestSimulatorData("", 128)

Causes the dataserver event to return "OpenSim" when running on OpenSim.
Requires ThreatLevel to be "High" or above to function.
This commit is contained in:
Melanie Thielker
2008-10-03 06:15:23 +00:00
parent 1cf0798863
commit cffd73c59f
7 changed files with 45 additions and 15 deletions

View File

@@ -619,7 +619,24 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
InstanceData id = GetScript(localID, itemID);
if (id == null)
return 0;
return id.StartParam;
}
public IScriptApi GetApi(UUID itemID, string name)
{
uint localID = GetLocalID(itemID);
InstanceData id = GetScript(localID, itemID);
if (id == null)
return null;
if (id.Apis.ContainsKey(name))
return id.Apis[name];
return null;
}
}
}