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=5725remove-scene-viewer
parent
353e7ce873
commit
28f549bd64
|
@ -1356,25 +1356,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
string arg = rules.GetLSLStringItem(idx++);
|
||||
switch (code)
|
||||
{
|
||||
case 0:
|
||||
case ScriptBaseClass.PARCEL_DETAILS_NAME:
|
||||
newLand.Name = arg;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case ScriptBaseClass.PARCEL_DETAILS_DESC:
|
||||
newLand.Description = arg;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case ScriptBaseClass.PARCEL_DETAILS_OWNER:
|
||||
CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
|
||||
if (UUID.TryParse(arg, out uuid))
|
||||
newLand.OwnerID = uuid;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
case ScriptBaseClass.PARCEL_DETAILS_GROUP:
|
||||
CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
|
||||
if (UUID.TryParse(arg, out uuid))
|
||||
newLand.GroupID = uuid;
|
||||
break;
|
||||
|
||||
case ScriptBaseClass.PARCEL_DETAILS_CLAIMDATE:
|
||||
CheckThreatLevel(ThreatLevel.VeryHigh, functionName);
|
||||
newLand.ClaimDate = Convert.ToInt32(arg);
|
||||
if (newLand.ClaimDate == 0)
|
||||
newLand.ClaimDate = Util.UnixTimeSinceEpoch();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -510,6 +510,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
public const int PARCEL_DETAILS_GROUP = 3;
|
||||
public const int PARCEL_DETAILS_AREA = 4;
|
||||
public const int PARCEL_DETAILS_ID = 5;
|
||||
public const int PARCEL_DETAILS_SEE_AVATARS = 6; // not implemented
|
||||
|
||||
//osSetParcelDetails
|
||||
public const int PARCEL_DETAILS_CLAIMDATE = 10;
|
||||
|
||||
// constants for llSetClickAction
|
||||
public const int CLICK_ACTION_NONE = 0;
|
||||
|
|
Loading…
Reference in New Issue