Disable unowned NPCs

avinationmerge
Melanie 2012-01-12 23:04:38 +01:00
parent cf166d3f1e
commit aa2cde2493
1 changed files with 3 additions and 0 deletions

View File

@ -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) 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; string groupTitle = String.Empty;
if (firstname != String.Empty || lastname != String.Empty) if (firstname != String.Empty || lastname != String.Empty)