diff options
Merge commit '28f549bd64eb423ae43a5c23c1da5094e6269150' into bigmerge
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 49 |
1 files changed, 28 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 | } |