mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
a few changes to last commit
This commit is contained in:
@@ -6844,28 +6844,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
public LSL_Key llName2Key(string name)
|
||||
public LSL_Key llName2Key(LSL_String name)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
foreach (ScenePresence sp in World.GetScenePresences())
|
||||
{
|
||||
if (sp.IsDeleted || sp.IsChildAgent)
|
||||
continue;
|
||||
|
||||
string test = sp.ControllingClient.Name;
|
||||
if (!name.Contains(" "))
|
||||
test = test.Replace(" ", ".");
|
||||
|
||||
if (String.Compare(name, test, true) == 0)
|
||||
{
|
||||
if (!sp.IsNPC)
|
||||
return sp.UUID.ToString();
|
||||
}
|
||||
return sp.UUID.ToString();
|
||||
}
|
||||
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user