diff options
author | Melanie | 2011-10-12 07:24:46 +0100 |
---|---|---|
committer | Melanie | 2011-10-12 07:24:46 +0100 |
commit | 816d0de11a9c4b2920536127c90432d7dd043924 (patch) | |
tree | bc8352bcec5872e0648d4eac7a49bfb3ecb7dedd /OpenSim | |
parent | Merge commit '353e7ce873fb139ad4050023ce08339d953ad4d5' into bigmerge (diff) | |
parent | osSetParcelDetails - PARCEL_DETAILS_CLAIMDATE (diff) | |
download | opensim-SC_OLD-816d0de11a9c4b2920536127c90432d7dd043924.zip opensim-SC_OLD-816d0de11a9c4b2920536127c90432d7dd043924.tar.gz opensim-SC_OLD-816d0de11a9c4b2920536127c90432d7dd043924.tar.bz2 opensim-SC_OLD-816d0de11a9c4b2920536127c90432d7dd043924.tar.xz |
Merge commit '28f549bd64eb423ae43a5c23c1da5094e6269150' into bigmerge
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 49 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | 4 |
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; |