aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie2012-01-13 02:27:20 +0000
committerMelanie2012-01-13 02:27:20 +0000
commit9dc7fef4f6323f0e3a2ec108bff2a6da809a1a2d (patch)
tree9f1388bdc474abf3adffa0c255bb72384a562ec6 /OpenSim/Region/ScriptEngine/Shared
parentFix typo (diff)
parentMerge branch 'master' of /home/opensim/var/repo/opensim (diff)
downloadopensim-SC-9dc7fef4f6323f0e3a2ec108bff2a6da809a1a2d.zip
opensim-SC-9dc7fef4f6323f0e3a2ec108bff2a6da809a1a2d.tar.gz
opensim-SC-9dc7fef4f6323f0e3a2ec108bff2a6da809a1a2d.tar.bz2
opensim-SC-9dc7fef4f6323f0e3a2ec108bff2a6da809a1a2d.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs2
4 files changed, 3 insertions, 13 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 44b0b88..78c3fa0 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2086,16 +2086,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2086 return retVal; 2086 return retVal;
2087 } 2087 }
2088 2088
2089 public LSL_Key osNpcCreateOwned(string firstname, string lastname, LSL_Vector position, string notecard)
2090 {
2091 CheckThreatLevel(ThreatLevel.High, "osNpcCreateOwned");
2092 return NpcCreate(firstname, lastname, position, notecard, true);
2093 }
2094
2095 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard) 2089 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard)
2096 { 2090 {
2097 CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); 2091 CheckThreatLevel(ThreatLevel.High, "osNpcCreate");
2098 return NpcCreate(firstname, lastname, position, notecard, false); 2092 return NpcCreate(firstname, lastname, position, notecard, true);
2099 } 2093 }
2100 2094
2101 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options) 2095 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index 25f359a..403e491 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -173,7 +173,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
173 173
174 key osNpcCreate(string user, string name, vector position, string notecard); 174 key osNpcCreate(string user, string name, vector position, string notecard);
175 key osNpcCreate(string user, string name, vector position, string notecard, int options); 175 key osNpcCreate(string user, string name, vector position, string notecard, int options);
176 key osNpcCreateOwned(string user, string name, vector position, string notecard);
177 LSL_Key osNpcSaveAppearance(key npc, string notecard); 176 LSL_Key osNpcSaveAppearance(key npc, string notecard);
178 void osNpcLoadAppearance(key npc, string notecard); 177 void osNpcLoadAppearance(key npc, string notecard);
179 vector osNpcGetPos(key npc); 178 vector osNpcGetPos(key npc);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index ceccceb..0c05ea4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -493,11 +493,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
493 return m_OSSL_Functions.osNpcCreate(user, name, position, cloneFrom, options); 493 return m_OSSL_Functions.osNpcCreate(user, name, position, cloneFrom, options);
494 } 494 }
495 495
496 public key osNpcCreateOwned(string user, string name, vector position, key cloneFrom)
497 {
498 return m_OSSL_Functions.osNpcCreateOwned(user, name, position, cloneFrom);
499 }
500
501 public key osNpcSaveAppearance(key npc, string notecard) 496 public key osNpcSaveAppearance(key npc, string notecard)
502 { 497 {
503 return m_OSSL_Functions.osNpcSaveAppearance(npc, notecard); 498 return m_OSSL_Functions.osNpcSaveAppearance(npc, notecard);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
index f0b28b2..9d9fc51 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs
@@ -127,6 +127,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
127 127
128 npc = m_scene.GetScenePresence(npcId); 128 npc = m_scene.GetScenePresence(npcId);
129 129
130 // Now the owner deleted it and it's gone
131 Assert.That(npc, Is.Null);
130 } 132 }
131 133
132 /// <summary> 134 /// <summary>