aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authoralondria2008-03-21 18:45:09 +0000
committeralondria2008-03-21 18:45:09 +0000
commitd76c6ee14097b3fa6d93186358a5d6b8ecb05de2 (patch)
tree403f01ff4f5e7eca0091ce9807313379ad30edd7 /OpenSim
parentComment out an unused 'str' and add a WriteLine to use (diff)
downloadopensim-SC_OLD-d76c6ee14097b3fa6d93186358a5d6b8ecb05de2.zip
opensim-SC_OLD-d76c6ee14097b3fa6d93186358a5d6b8ecb05de2.tar.gz
opensim-SC_OLD-d76c6ee14097b3fa6d93186358a5d6b8ecb05de2.tar.bz2
opensim-SC_OLD-d76c6ee14097b3fa6d93186358a5d6b8ecb05de2.tar.xz
Implements llKey2Name().
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 7903b52..85017373 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2627,7 +2627,18 @@ namespace OpenSim.Region.ScriptEngine.Common
2627 public string llKey2Name(string id) 2627 public string llKey2Name(string id)
2628 { 2628 {
2629 m_host.AddScriptLPS(1); 2629 m_host.AddScriptLPS(1);
2630 NotImplemented("llKey2Name"); 2630 LLUUID key = new LLUUID();
2631 if (LLUUID.TryParse(id,out key))
2632 {
2633 if (World.m_innerScene.ScenePresences.ContainsKey(key))
2634 {
2635 return World.m_innerScene.ScenePresences[key].Firstname + " " + World.m_innerScene.ScenePresences[key].Lastname;
2636 }
2637 if (World.GetSceneObjectPart(key) != null)
2638 {
2639 return World.GetSceneObjectPart(key).Name;
2640 }
2641 }
2631 return String.Empty; 2642 return String.Empty;
2632 } 2643 }
2633 2644