diff options
author | Melanie | 2012-01-28 03:12:56 +0100 |
---|---|---|
committer | Melanie | 2012-01-28 03:12:56 +0100 |
commit | 090164ff7a8edab3cad12728b67c35d9f50ddaab (patch) | |
tree | f04572249736085ca1c3ee1627d3ed32ad20ca3e /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-090164ff7a8edab3cad12728b67c35d9f50ddaab.zip opensim-SC-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.gz opensim-SC-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.bz2 opensim-SC-090164ff7a8edab3cad12728b67c35d9f50ddaab.tar.xz |
Completely disable NPC being sensed as agents, the abuse potential is too great
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 1cb052d..29d658f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2242,7 +2242,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2242 | CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); | 2242 | CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); |
2243 | m_host.AddScriptLPS(1); | 2243 | m_host.AddScriptLPS(1); |
2244 | 2244 | ||
2245 | return NpcCreate(firstname, lastname, position, notecard, false, true); | 2245 | return NpcCreate(firstname, lastname, position, notecard, false, false); |
2246 | } | 2246 | } |
2247 | 2247 | ||
2248 | public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options) | 2248 | public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options) |
@@ -2252,8 +2252,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2252 | 2252 | ||
2253 | return NpcCreate( | 2253 | return NpcCreate( |
2254 | firstname, lastname, position, notecard, | 2254 | firstname, lastname, position, notecard, |
2255 | (options & ScriptBaseClass.OS_NPC_NOT_OWNED) == 0, | 2255 | (options & ScriptBaseClass.OS_NPC_NOT_OWNED) == 0); |
2256 | (options & ScriptBaseClass.OS_NPC_SENSE_AS_AGENT) == 0); | 2256 | // (options & ScriptBaseClass.OS_NPC_SENSE_AS_AGENT) == 0); |
2257 | } | 2257 | } |
2258 | 2258 | ||
2259 | private LSL_Key NpcCreate( | 2259 | private LSL_Key NpcCreate( |
@@ -2945,4 +2945,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2945 | return date.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"); | 2945 | return date.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"); |
2946 | } | 2946 | } |
2947 | } | 2947 | } |
2948 | } \ No newline at end of file | 2948 | } |