diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IProfileModule.cs (renamed from OpenSim/Framework/IProfileModule.cs) | 0 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/ISearchModule.cs (renamed from OpenSim/Framework/ISearchModule.cs) | 0 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs | 2 |
6 files changed, 3 insertions, 13 deletions
diff --git a/OpenSim/Framework/IProfileModule.cs b/OpenSim/Region/Framework/Interfaces/IProfileModule.cs index ef03d4a..ef03d4a 100644 --- a/OpenSim/Framework/IProfileModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IProfileModule.cs | |||
diff --git a/OpenSim/Framework/ISearchModule.cs b/OpenSim/Region/Framework/Interfaces/ISearchModule.cs index 64bf72c..64bf72c 100644 --- a/OpenSim/Framework/ISearchModule.cs +++ b/OpenSim/Region/Framework/Interfaces/ISearchModule.cs | |||
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> |