aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorPixel Tomsen2011-10-08 07:38:04 +0200
committerJustin Clark-Casey (justincc)2011-10-11 00:13:26 +0100
commit28f549bd64eb423ae43a5c23c1da5094e6269150 (patch)
treefd0ce5d903f86cdd38ed6e20e67c02a95fa41822 /OpenSim/Region/ScriptEngine/Shared
parentAllow monitoring of stats by region name (diff)
downloadopensim-SC_OLD-28f549bd64eb423ae43a5c23c1da5094e6269150.zip
opensim-SC_OLD-28f549bd64eb423ae43a5c23c1da5094e6269150.tar.gz
opensim-SC_OLD-28f549bd64eb423ae43a5c23c1da5094e6269150.tar.bz2
opensim-SC_OLD-28f549bd64eb423ae43a5c23c1da5094e6269150.tar.xz
osSetParcelDetails - PARCEL_DETAILS_CLAIMDATE
this new flag set parcels claim date value 0 for this flag set current unixstamp http://opensimulator.org/mantis/view.php?id=5725
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-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 2a7077b..268a599 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -1356,27 +1356,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1356 string arg = rules.GetLSLStringItem(idx++); 1356 string arg = rules.GetLSLStringItem(idx++);
1357 switch (code) 1357 switch (code)
1358 { 1358 {
1359 case 0: 1359 case ScriptBaseClass.PARCEL_DETAILS_NAME:
1360 newLand.Name = arg; 1360 newLand.Name = arg;
1361 break; 1361 break;
1362 1362
1363 case 1: 1363 case ScriptBaseClass.PARCEL_DETAILS_DESC:
1364 newLand.Description = arg; 1364 newLand.Description = arg;
1365 break; 1365 break;
1366 1366
1367 case 2: 1367 case ScriptBaseClass.PARCEL_DETAILS_OWNER:
1368 CheckThreatLevel(ThreatLevel.VeryHigh, functionName); 1368 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1369 if (UUID.TryParse(arg , out uuid)) 1369 if (UUID.TryParse(arg, out uuid))
1370 newLand.OwnerID = uuid; 1370 newLand.OwnerID = uuid;
1371 break; 1371 break;
1372 1372
1373 case 3: 1373 case ScriptBaseClass.PARCEL_DETAILS_GROUP:
1374 CheckThreatLevel(ThreatLevel.VeryHigh, functionName); 1374 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1375 if (UUID.TryParse(arg , out uuid)) 1375 if (UUID.TryParse(arg, out uuid))
1376 newLand.GroupID = uuid; 1376 newLand.GroupID = uuid;
1377 break; 1377 break;
1378 } 1378
1379 } 1379 case ScriptBaseClass.PARCEL_DETAILS_CLAIMDATE:
1380 CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
1381 newLand.ClaimDate = Convert.ToInt32(arg);
1382 if (newLand.ClaimDate == 0)
1383 newLand.ClaimDate = Util.UnixTimeSinceEpoch();
1384 break;
1385 }
1386 }
1380 1387
1381 World.LandChannel.UpdateLandObject(newLand.LocalID,newLand); 1388 World.LandChannel.UpdateLandObject(newLand.LocalID,newLand);
1382 } 1389 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index e82c281..36c5f90 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -510,6 +510,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
510 public const int PARCEL_DETAILS_GROUP = 3; 510 public const int PARCEL_DETAILS_GROUP = 3;
511 public const int PARCEL_DETAILS_AREA = 4; 511 public const int PARCEL_DETAILS_AREA = 4;
512 public const int PARCEL_DETAILS_ID = 5; 512 public const int PARCEL_DETAILS_ID = 5;
513 public const int PARCEL_DETAILS_SEE_AVATARS = 6; // not implemented
514
515 //osSetParcelDetails
516 public const int PARCEL_DETAILS_CLAIMDATE = 10;
513 517
514 // constants for llSetClickAction 518 // constants for llSetClickAction
515 public const int CLICK_ACTION_NONE = 0; 519 public const int CLICK_ACTION_NONE = 0;