diff options
author | UbitUmarov | 2018-10-23 18:55:26 +0100 |
---|---|---|
committer | UbitUmarov | 2018-10-23 18:55:26 +0100 |
commit | c643b4236fa944286f828aa234f8461242e4799e (patch) | |
tree | 753ecb16b1ac7519d7c20f617ea2af0c3347a5f2 /OpenSim/Region | |
parent | llName2Key. Thanks to mewtwo0641 and watcher64. (diff) | |
download | opensim-SC-c643b4236fa944286f828aa234f8461242e4799e.zip opensim-SC-c643b4236fa944286f828aa234f8461242e4799e.tar.gz opensim-SC-c643b4236fa944286f828aa234f8461242e4799e.tar.bz2 opensim-SC-c643b4236fa944286f828aa234f8461242e4799e.tar.xz |
a few changes to last commit
Diffstat (limited to 'OpenSim/Region')
3 files changed, 16 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 36f8a28..2bfd9b4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6844,28 +6844,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6844 | return String.Empty; | 6844 | return String.Empty; |
6845 | } | 6845 | } |
6846 | 6846 | ||
6847 | public LSL_Key llName2Key(string name) | 6847 | public LSL_Key llName2Key(LSL_String name) |
6848 | { | 6848 | { |
6849 | m_host.AddScriptLPS(1); | 6849 | m_host.AddScriptLPS(1); |
6850 | 6850 | ||
6851 | foreach (ScenePresence sp in World.GetScenePresences()) | 6851 | foreach (ScenePresence sp in World.GetScenePresences()) |
6852 | { | 6852 | { |
6853 | if (sp.IsDeleted || sp.IsChildAgent) | ||
6854 | continue; | ||
6855 | |||
6853 | string test = sp.ControllingClient.Name; | 6856 | string test = sp.ControllingClient.Name; |
6854 | if (!name.Contains(" ")) | 6857 | if (!name.Contains(" ")) |
6855 | test = test.Replace(" ", "."); | 6858 | test = test.Replace(" ", "."); |
6856 | 6859 | ||
6857 | if (String.Compare(name, test, true) == 0) | 6860 | if (String.Compare(name, test, true) == 0) |
6858 | { | 6861 | return sp.UUID.ToString(); |
6859 | if (!sp.IsNPC) | ||
6860 | return sp.UUID.ToString(); | ||
6861 | } | ||
6862 | } | 6862 | } |
6863 | 6863 | ||
6864 | return UUID.Zero.ToString(); | 6864 | return UUID.Zero.ToString(); |
6865 | } | 6865 | } |
6866 | 6866 | ||
6867 | |||
6868 | |||
6869 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) | 6867 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) |
6870 | { | 6868 | { |
6871 | m_host.AddScriptLPS(1); | 6869 | m_host.AddScriptLPS(1); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index c924844..5e58067 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | |||
@@ -225,13 +225,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
225 | void llInstantMessage(string user, string message); | 225 | void llInstantMessage(string user, string message); |
226 | LSL_String llIntegerToBase64(int number); | 226 | LSL_String llIntegerToBase64(int number); |
227 | LSL_String llKey2Name(string id); | 227 | LSL_String llKey2Name(string id); |
228 | LSL_Key llName2Key(string name); | ||
229 | LSL_String llGetUsername(string id); | 228 | LSL_String llGetUsername(string id); |
230 | LSL_Key llRequestUsername(string id); | 229 | LSL_Key llRequestUsername(string id); |
231 | LSL_String llGetDisplayName(string id); | 230 | LSL_String llGetDisplayName(string id); |
232 | LSL_Key llRequestDisplayName(string id); | 231 | LSL_Key llRequestDisplayName(string id); |
233 | void llLinkParticleSystem(int linknum, LSL_List rules); | 232 | void llLinkParticleSystem(int linknum, LSL_List rules); |
234 | void llLinkSitTarget(LSL_Integer link, LSL_Vector offset, LSL_Rotation rot); | 233 | void llLinkSitTarget(LSL_Integer link, LSL_Vector offset, LSL_Rotation rot); |
235 | LSL_String llList2CSV(LSL_List src); | 234 | LSL_String llList2CSV(LSL_List src); |
236 | LSL_Float llList2Float(LSL_List src, int index); | 235 | LSL_Float llList2Float(LSL_List src, int index); |
237 | LSL_Integer llList2Integer(LSL_List src, int index); | 236 | LSL_Integer llList2Integer(LSL_List src, int index); |
@@ -263,13 +262,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
263 | void llMakeFountain(int particles, double scale, double vel, double lifetime, double arc, int bounce, string texture, LSL_Vector offset, double bounce_offset); | 262 | void llMakeFountain(int particles, double scale, double vel, double lifetime, double arc, int bounce, string texture, LSL_Vector offset, double bounce_offset); |
264 | void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset); | 263 | void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset); |
265 | void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at); | 264 | void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at); |
266 | LSL_String llMD5String(string src, int nonce); | 265 | LSL_String llMD5String(string src, int nonce); |
267 | LSL_String llSHA1String(string src); | 266 | LSL_String llSHA1String(string src); |
268 | void llMessageLinked(int linknum, int num, string str, string id); | 267 | void llMessageLinked(int linknum, int num, string str, string id); |
269 | void llMinEventDelay(double delay); | 268 | void llMinEventDelay(double delay); |
270 | void llModifyLand(int action, int brush); | 269 | void llModifyLand(int action, int brush); |
271 | LSL_Integer llModPow(int a, int b, int c); | 270 | LSL_Integer llModPow(int a, int b, int c); |
272 | void llMoveToTarget(LSL_Vector target, double tau); | 271 | void llMoveToTarget(LSL_Vector target, double tau); |
272 | LSL_Key llName2Key(LSL_String name); | ||
273 | void llOffsetTexture(double u, double v, int face); | 273 | void llOffsetTexture(double u, double v, int face); |
274 | void llOpenRemoteDataChannel(); | 274 | void llOpenRemoteDataChannel(); |
275 | LSL_Integer llOverMyLand(string id); | 275 | LSL_Integer llOverMyLand(string id); |
@@ -442,7 +442,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
442 | void llSetKeyframedMotion(LSL_List frames, LSL_List options); | 442 | void llSetKeyframedMotion(LSL_List frames, LSL_List options); |
443 | LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); | 443 | LSL_List GetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); |
444 | LSL_List llGetPhysicsMaterial(); | 444 | LSL_List llGetPhysicsMaterial(); |
445 | void llSetAnimationOverride(LSL_String animState, LSL_String anim); | 445 | void llSetAnimationOverride(LSL_String animState, LSL_String anim); |
446 | void llResetAnimationOverride(LSL_String anim_state); | 446 | void llResetAnimationOverride(LSL_String anim_state); |
447 | LSL_String llGetAnimationOverride(LSL_String anim_state); | 447 | LSL_String llGetAnimationOverride(LSL_String anim_state); |
448 | LSL_String llJsonGetValue(LSL_String json, LSL_List specifiers); | 448 | LSL_String llJsonGetValue(LSL_String json, LSL_List specifiers); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 10300d6..ebdd017 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | |||
@@ -961,11 +961,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
961 | return m_LSL_Functions.llKey2Name(id); | 961 | return m_LSL_Functions.llKey2Name(id); |
962 | } | 962 | } |
963 | 963 | ||
964 | public LSL_Key llName2Key(string name) | ||
965 | { | ||
966 | return m_LSL_Functions.llName2Key(name); | ||
967 | } | ||
968 | |||
969 | public LSL_String llGetUsername(string id) | 964 | public LSL_String llGetUsername(string id) |
970 | { | 965 | { |
971 | return m_LSL_Functions.llGetUsername(id); | 966 | return m_LSL_Functions.llGetUsername(id); |
@@ -1186,6 +1181,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1186 | m_LSL_Functions.llMoveToTarget(target, tau); | 1181 | m_LSL_Functions.llMoveToTarget(target, tau); |
1187 | } | 1182 | } |
1188 | 1183 | ||
1184 | public LSL_Key llName2Key(LSL_String name) | ||
1185 | { | ||
1186 | return m_LSL_Functions.llName2Key(name); | ||
1187 | } | ||
1188 | |||
1189 | public void llOffsetTexture(double u, double v, int face) | 1189 | public void llOffsetTexture(double u, double v, int face) |
1190 | { | 1190 | { |
1191 | m_LSL_Functions.llOffsetTexture(u, v, face); | 1191 | m_LSL_Functions.llOffsetTexture(u, v, face); |