aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs49
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs4
2 files changed, 32 insertions, 21 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index bd97f76..b19f8cf 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -1363,27 +1363,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1363 string arg = rules.GetLSLStringItem(idx++); 1363 string arg = rules.GetLSLStringItem(idx++);
1364 switch (code) 1364 switch (code)
1365 { 1365 {
1366 case 0: 1366 case ScriptBaseClass.PARCEL_DETAILS_NAME:
1367 newLand.Name = arg; 1367 newLand.Name = arg;
1368 break; 1368 break;
1369 1369
1370 case 1: 1370 case ScriptBaseClass.PARCEL_DETAILS_DESC:
1371 newLand.Description = arg; 1371 newLand.Description = arg;
1372 break; 1372 break;
1373 1373
1374 case 2: 1374 case ScriptBaseClass.PARCEL_DETAILS_OWNER:
1375 CheckThreatLevel(ThreatLevel.VeryHigh, functionName); 1375 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1376 if (UUID.TryParse(arg , out uuid)) 1376 if (UUID.TryParse(arg, out uuid))
1377 newLand.OwnerID = uuid; 1377 newLand.OwnerID = uuid;
1378 break; 1378 break;
1379 1379
1380 case 3: 1380 case ScriptBaseClass.PARCEL_DETAILS_GROUP:
1381 CheckThreatLevel(ThreatLevel.VeryHigh, functionName); 1381 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1382 if (UUID.TryParse(arg , out uuid)) 1382 if (UUID.TryParse(arg, out uuid))
1383 newLand.GroupID = uuid; 1383 newLand.GroupID = uuid;
1384 break; 1384 break;
1385 } 1385
1386 } 1386 case ScriptBaseClass.PARCEL_DETAILS_CLAIMDATE:
1387 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1388 newLand.ClaimDate = Convert.ToInt32(arg);
1389 if (newLand.ClaimDate == 0)
1390 newLand.ClaimDate = Util.UnixTimeSinceEpoch();
1391 break;
1392 }
1393 }
1387 1394
1388 World.LandChannel.UpdateLandObject(newLand.LocalID,newLand); 1395 World.LandChannel.UpdateLandObject(newLand.LocalID,newLand);
1389 } 1396 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 59eaccb..864d59c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -513,6 +513,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
513 public const int PARCEL_DETAILS_GROUP = 3; 513 public const int PARCEL_DETAILS_GROUP = 3;
514 public const int PARCEL_DETAILS_AREA = 4; 514 public const int PARCEL_DETAILS_AREA = 4;
515 public const int PARCEL_DETAILS_ID = 5; 515 public const int PARCEL_DETAILS_ID = 5;
516 public const int PARCEL_DETAILS_SEE_AVATARS = 6; // not implemented
517
518 //osSetParcelDetails
519 public const int PARCEL_DETAILS_CLAIMDATE = 10;
516 520
517 // constants for llSetClickAction 521 // constants for llSetClickAction
518 public const int CLICK_ACTION_NONE = 0; 522 public const int CLICK_ACTION_NONE = 0;