From aa2cde2493d5cd01686ab29e25be8f110112a860 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 12 Jan 2012 23:04:38 +0100 Subject: Disable unowned NPCs --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 62cd75f..e3a750d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -2106,6 +2106,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api private LSL_Key NpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, bool owned) { + if (!owned) + OSSL_Error("Unowned NPCs are unsupported"); + string groupTitle = String.Empty; if (firstname != String.Empty || lastname != String.Empty) -- cgit v1.1