a few changes to last commit
parent
06a35b9559
commit
c643b4236f
|
@ -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 UUID.Zero.ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
|
|
@ -225,7 +225,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
void llInstantMessage(string user, string message);
|
||||
LSL_String llIntegerToBase64(int number);
|
||||
LSL_String llKey2Name(string id);
|
||||
LSL_Key llName2Key(string name);
|
||||
LSL_String llGetUsername(string id);
|
||||
LSL_Key llRequestUsername(string id);
|
||||
LSL_String llGetDisplayName(string id);
|
||||
|
@ -270,6 +269,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
|||
void llModifyLand(int action, int brush);
|
||||
LSL_Integer llModPow(int a, int b, int c);
|
||||
void llMoveToTarget(LSL_Vector target, double tau);
|
||||
LSL_Key llName2Key(LSL_String name);
|
||||
void llOffsetTexture(double u, double v, int face);
|
||||
void llOpenRemoteDataChannel();
|
||||
LSL_Integer llOverMyLand(string id);
|
||||
|
|
|
@ -961,11 +961,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
return m_LSL_Functions.llKey2Name(id);
|
||||
}
|
||||
|
||||
public LSL_Key llName2Key(string name)
|
||||
{
|
||||
return m_LSL_Functions.llName2Key(name);
|
||||
}
|
||||
|
||||
public LSL_String llGetUsername(string id)
|
||||
{
|
||||
return m_LSL_Functions.llGetUsername(id);
|
||||
|
@ -1186,6 +1181,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
m_LSL_Functions.llMoveToTarget(target, tau);
|
||||
}
|
||||
|
||||
public LSL_Key llName2Key(LSL_String name)
|
||||
{
|
||||
return m_LSL_Functions.llName2Key(name);
|
||||
}
|
||||
|
||||
public void llOffsetTexture(double u, double v, int face)
|
||||
{
|
||||
m_LSL_Functions.llOffsetTexture(u, v, face);
|
||||
|
|
Loading…
Reference in New Issue