llName2Key. Thanks to mewtwo0641 and watcher64.

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Mandarinka Tasty
2018-09-22 07:21:13 +02:00
committed by UbitUmarov
parent 7c8cf9f362
commit 06a35b9559
3 changed files with 26 additions and 0 deletions

View File

@@ -6844,6 +6844,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return String.Empty;
}
public LSL_Key llName2Key(string name)
{
m_host.AddScriptLPS(1);
foreach (ScenePresence sp in World.GetScenePresences())
{
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 UUID.Zero.ToString();
}
public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)