mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Merge branch 'master' into vehicles
This commit is contained in:
@@ -137,13 +137,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return lease;
|
||||
}
|
||||
|
||||
protected virtual void ConditionalScriptSleep(int delay)
|
||||
{
|
||||
// Uncomment to get SL compatibility!
|
||||
//
|
||||
// ScriptSleep(delay);
|
||||
}
|
||||
|
||||
protected virtual void ScriptSleep(int delay)
|
||||
{
|
||||
delay = (int)((float)delay * m_ScriptDelayFactor);
|
||||
@@ -1686,7 +1679,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
SetTexture(m_host, texture, face);
|
||||
ConditionalScriptSleep(200);
|
||||
ScriptSleep(200);
|
||||
}
|
||||
|
||||
public void llSetLinkTexture(int linknumber, string texture, int face)
|
||||
@@ -1698,7 +1691,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
foreach (SceneObjectPart part in parts)
|
||||
SetTexture(part, texture, face);
|
||||
|
||||
ConditionalScriptSleep(200);
|
||||
ScriptSleep(200);
|
||||
}
|
||||
|
||||
protected void SetTexture(SceneObjectPart part, string texture, int face)
|
||||
@@ -1743,7 +1736,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
ScaleTexture(m_host, u, v, face);
|
||||
ConditionalScriptSleep(200);
|
||||
ScriptSleep(200);
|
||||
}
|
||||
|
||||
protected void ScaleTexture(SceneObjectPart part, double u, double v, int face)
|
||||
@@ -1779,7 +1772,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
OffsetTexture(m_host, u, v, face);
|
||||
ConditionalScriptSleep(200);
|
||||
ScriptSleep(200);
|
||||
}
|
||||
|
||||
protected void OffsetTexture(SceneObjectPart part, double u, double v, int face)
|
||||
@@ -1815,7 +1808,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
RotateTexture(m_host, rotation, face);
|
||||
ConditionalScriptSleep(200);
|
||||
ScriptSleep(200);
|
||||
}
|
||||
|
||||
protected void RotateTexture(SceneObjectPart part, double rotation, int face)
|
||||
@@ -2289,7 +2282,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
m_host.PreloadSound(sound);
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2581,28 +2574,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
Deprecated("llMakeExplosion");
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llMakeFountain(int particles, double scale, double vel, double lifetime, double arc, int bounce, string texture, LSL_Vector offset, double bounce_offset)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
Deprecated("llMakeFountain");
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
Deprecated("llMakeSmoke");
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llMakeFire(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
Deprecated("llMakeFire");
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llRezAtRoot(string inventory, LSL_Vector pos, LSL_Vector vel, LSL_Rotation rot, int param)
|
||||
@@ -2661,7 +2654,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
// Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay)
|
||||
ScriptSleep((int)((groupmass * velmag) / 10));
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2881,7 +2874,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
return m_host.ObjectOwner.ToString();
|
||||
return m_host.OwnerID.ToString();
|
||||
}
|
||||
|
||||
public void llInstantMessage(string user, string message)
|
||||
@@ -2947,7 +2940,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
|
||||
emailModule.SendEmail(m_host.UUID, address, subject, message);
|
||||
ConditionalScriptSleep(20000);
|
||||
ScriptSleep(20000);
|
||||
}
|
||||
|
||||
public void llGetNextEmail(string address, string subject)
|
||||
@@ -3751,7 +3744,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// destination is an object
|
||||
World.MoveTaskInventoryItem(destId, m_host, objId);
|
||||
}
|
||||
ConditionalScriptSleep(3000);
|
||||
ScriptSleep(3000);
|
||||
}
|
||||
|
||||
public void llRemoveInventory(string name)
|
||||
@@ -3852,7 +3845,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
AsyncCommands.
|
||||
DataserverPlugin.DataserverReply(rq.ToString(), reply);
|
||||
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return tid.ToString();
|
||||
}
|
||||
|
||||
@@ -3890,11 +3883,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
reply);
|
||||
});
|
||||
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return tid.ToString();
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
@@ -3922,7 +3915,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(5000);
|
||||
ScriptSleep(5000);
|
||||
}
|
||||
|
||||
public void llTextBox(string avatar, string message, int chat_channel)
|
||||
@@ -4666,7 +4659,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -4691,7 +4684,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
@@ -4718,7 +4711,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
@@ -4732,7 +4725,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
@@ -4746,7 +4739,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return new LSL_Vector(0, 0, 0);
|
||||
}
|
||||
@@ -4767,7 +4760,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
index = src.Length + index;
|
||||
}
|
||||
if (index >= src.Length)
|
||||
if (index >= src.Length || index < 0)
|
||||
{
|
||||
return new LSL_Rotation(0, 0, 0, 1);
|
||||
}
|
||||
@@ -5382,7 +5375,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
m_host.AdjustSoundGain(volume);
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llSetSoundQueueing(int queue)
|
||||
@@ -5465,7 +5458,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
World.TeleportClientHome(agentId, presence.ControllingClient);
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(5000);
|
||||
ScriptSleep(5000);
|
||||
}
|
||||
|
||||
public LSL_List llParseString2List(string str, LSL_List separators, LSL_List in_spacers)
|
||||
@@ -5640,7 +5633,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ILandObject parcel = World.LandChannel.GetLandObject(av.AbsolutePosition.X, av.AbsolutePosition.Y);
|
||||
if (parcel != null)
|
||||
{
|
||||
if (m_host.ObjectOwner == parcel.LandData.OwnerID ||
|
||||
if (m_host.OwnerID == parcel.LandData.OwnerID ||
|
||||
(m_host.OwnerID == m_host.GroupID && m_host.GroupID == parcel.LandData.GroupID
|
||||
&& parcel.LandData.IsGroupOwned) || World.Permissions.IsGod(m_host.OwnerID))
|
||||
{
|
||||
@@ -5850,7 +5843,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
for (int i = 0; i < rules.Length; i += 2)
|
||||
{
|
||||
switch ((int)rules.Data[i])
|
||||
switch (Convert.ToInt32(rules.Data[i]))
|
||||
{
|
||||
case (int)ScriptBaseClass.PSYS_PART_FLAGS:
|
||||
prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)(uint)rules.GetLSLIntegerItem(i + 1);
|
||||
@@ -6157,7 +6150,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
land.ParcelAccessList.Add(entry);
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llSetTouchText(string text)
|
||||
@@ -6254,7 +6247,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
av, m_host.Name, m_host.UUID, m_host.OwnerID,
|
||||
message, new UUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts);
|
||||
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
}
|
||||
|
||||
public void llVolumeDetect(int detect)
|
||||
@@ -6279,7 +6272,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
// Report an error as it does in SL
|
||||
ShoutError("Deprecated. Please use llRemoteLoadScriptPin instead.");
|
||||
ConditionalScriptSleep(3000);
|
||||
ScriptSleep(3000);
|
||||
}
|
||||
|
||||
public void llSetRemoteScriptAccessPin(int pin)
|
||||
@@ -6365,14 +6358,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_ScriptEngine.PostScriptEvent(m_itemID, new EventParams("remote_data", resobj,
|
||||
new DetectParams[0]));
|
||||
}
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
}
|
||||
|
||||
public LSL_String llSendRemoteData(string channel, string dest, int idata, string sdata)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
|
||||
ConditionalScriptSleep(3000);
|
||||
ScriptSleep(3000);
|
||||
return (xmlrpcMod.SendRemoteData(m_localID, m_itemID, channel, dest, idata, sdata)).ToString();
|
||||
}
|
||||
|
||||
@@ -6381,7 +6374,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
|
||||
xmlrpcMod.RemoteDataReply(channel, message_id, sdata, idata);
|
||||
ConditionalScriptSleep(3000);
|
||||
ScriptSleep(3000);
|
||||
}
|
||||
|
||||
public void llCloseRemoteDataChannel(string channel)
|
||||
@@ -6389,7 +6382,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
|
||||
xmlrpcMod.CloseXMLRPCChannel((UUID)channel);
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
}
|
||||
|
||||
public LSL_String llMD5String(string src, int nonce)
|
||||
@@ -7117,7 +7110,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
Deprecated("llXorBase64Strings");
|
||||
ConditionalScriptSleep(300);
|
||||
ScriptSleep(300);
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
@@ -7160,12 +7153,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
|
||||
|
||||
if (land.LandData.OwnerID != m_host.ObjectOwner)
|
||||
if (land.LandData.OwnerID != m_host.OwnerID)
|
||||
return;
|
||||
|
||||
land.SetMusicUrl(url);
|
||||
|
||||
ConditionalScriptSleep(2000);
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
|
||||
public LSL_Vector llGetRootPosition()
|
||||
@@ -7218,7 +7211,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public LSL_String llGetCreator()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
return m_host.ObjectCreator.ToString();
|
||||
return m_host.CreatorID.ToString();
|
||||
}
|
||||
|
||||
public LSL_String llGetTimestamp()
|
||||
@@ -8210,7 +8203,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
case 5: // DATA_SIM_POS
|
||||
if (info == null)
|
||||
{
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
reply = new LSL_Vector(
|
||||
@@ -8227,7 +8220,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
case 7: // DATA_SIM_RATING
|
||||
if (info == null)
|
||||
{
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
int access = info.Maturity;
|
||||
@@ -8246,7 +8239,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
reply = "OpenSim";
|
||||
break;
|
||||
default:
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return UUID.Zero.ToString(); // Raise no event
|
||||
}
|
||||
UUID rq = UUID.Random();
|
||||
@@ -8257,7 +8250,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
AsyncCommands.
|
||||
DataserverPlugin.DataserverReply(rq.ToString(), reply);
|
||||
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return tid.ToString();
|
||||
}
|
||||
catch(Exception)
|
||||
@@ -8399,9 +8392,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
|
||||
if (null != dm)
|
||||
dm.SendUrlToUser(
|
||||
new UUID(avatar_id), m_host.Name, m_host.UUID, m_host.ObjectOwner, false, message, url);
|
||||
new UUID(avatar_id), m_host.Name, m_host.UUID, m_host.OwnerID, false, message, url);
|
||||
|
||||
ConditionalScriptSleep(10000);
|
||||
ScriptSleep(10000);
|
||||
}
|
||||
|
||||
public void llParcelMediaCommandList(LSL_List commandList)
|
||||
@@ -8414,7 +8407,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// according to the docs, this command only works if script owner and land owner are the same
|
||||
// lets add estate owners and gods, too, and use the generic permission check.
|
||||
ILandObject landObject = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
|
||||
if (!World.Permissions.CanEditParcel(m_host.ObjectOwner, landObject)) return;
|
||||
if (!World.Permissions.CanEditParcel(m_host.OwnerID, landObject)) return;
|
||||
|
||||
bool update = false; // send a ParcelMediaUpdate (and possibly change the land's media URL)?
|
||||
byte loop = 0;
|
||||
@@ -8637,7 +8630,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
time);
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(2000);
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
|
||||
public LSL_List llParcelMediaQuery(LSL_List aList)
|
||||
@@ -8675,7 +8668,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(2000);
|
||||
ScriptSleep(2000);
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -8684,7 +8677,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
Int64 tmp = 0;
|
||||
Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp);
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
return Convert.ToInt32(tmp);
|
||||
}
|
||||
|
||||
@@ -8788,7 +8781,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public void llSetPrimURL(string url)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
ConditionalScriptSleep(2000);
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -8799,7 +8792,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
ShoutError("llRefreshPrimURL - not yet supported");
|
||||
ConditionalScriptSleep(20000);
|
||||
ScriptSleep(20000);
|
||||
}
|
||||
|
||||
public LSL_String llEscapeURL(string url)
|
||||
@@ -8841,7 +8834,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
new Vector3((float)pos.x, (float)pos.y, (float)pos.z),
|
||||
new Vector3((float)lookAt.x, (float)lookAt.y, (float)lookAt.z));
|
||||
}
|
||||
ConditionalScriptSleep(1000);
|
||||
ScriptSleep(1000);
|
||||
}
|
||||
|
||||
public void llAddToLandBanList(string avatar, double hours)
|
||||
@@ -8860,7 +8853,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
land.ParcelAccessList.Add(entry);
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llRemoveFromLandPassList(string avatar)
|
||||
@@ -8882,7 +8875,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llRemoveFromLandBanList(string avatar)
|
||||
@@ -8904,7 +8897,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llSetCameraParams(LSL_List rules)
|
||||
@@ -9084,9 +9077,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
Vector3 velocity = m_host.Velocity;
|
||||
Quaternion rotation = m_host.RotationOffset;
|
||||
string ownerName = String.Empty;
|
||||
ScenePresence scenePresence = World.GetScenePresence(m_host.ObjectOwner);
|
||||
ScenePresence scenePresence = World.GetScenePresence(m_host.OwnerID);
|
||||
if (scenePresence == null)
|
||||
ownerName = resolveName(m_host.ObjectOwner);
|
||||
ownerName = resolveName(m_host.OwnerID);
|
||||
else
|
||||
ownerName = scenePresence.Name;
|
||||
|
||||
@@ -9111,7 +9104,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
httpHeaders["X-SecondLife-Local-Velocity"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000})", velocity.X, velocity.Y, velocity.Z);
|
||||
httpHeaders["X-SecondLife-Local-Rotation"] = string.Format("({0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000})", rotation.X, rotation.Y, rotation.Z, rotation.W);
|
||||
httpHeaders["X-SecondLife-Owner-Name"] = ownerName;
|
||||
httpHeaders["X-SecondLife-Owner-Key"] = m_host.ObjectOwner.ToString();
|
||||
httpHeaders["X-SecondLife-Owner-Key"] = m_host.OwnerID.ToString();
|
||||
string userAgent = config.Configs["Network"].GetString("user_agent", null);
|
||||
if (userAgent != null)
|
||||
httpHeaders["User-Agent"] = userAgent;
|
||||
@@ -9166,7 +9159,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public void llResetLandPassList()
|
||||
@@ -9183,7 +9176,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
}
|
||||
|
||||
public LSL_Integer llGetParcelPrimCount(LSL_Vector pos, int category, int sim_wide)
|
||||
@@ -9262,7 +9255,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ret.Add(detectedParams.Value);
|
||||
}
|
||||
}
|
||||
ConditionalScriptSleep(2000);
|
||||
ScriptSleep(2000);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -9520,7 +9513,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
AsyncCommands.
|
||||
DataserverPlugin.DataserverReply(assetID.ToString(),
|
||||
NotecardCache.GetLines(assetID).ToString());
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return tid.ToString();
|
||||
}
|
||||
|
||||
@@ -9542,7 +9535,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
NotecardCache.GetLines(id).ToString());
|
||||
});
|
||||
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return tid.ToString();
|
||||
}
|
||||
|
||||
@@ -9581,7 +9574,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
AsyncCommands.DataserverPlugin.DataserverReply(assetID.ToString(),
|
||||
NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax));
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return tid.ToString();
|
||||
}
|
||||
|
||||
@@ -9602,7 +9595,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
NotecardCache.GetLine(id, line, m_notecardLineReadCharsMax));
|
||||
});
|
||||
|
||||
ConditionalScriptSleep(100);
|
||||
ScriptSleep(100);
|
||||
return tid.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1164,7 +1164,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ILandObject land
|
||||
= World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
|
||||
|
||||
if (land.LandData.OwnerID != m_host.ObjectOwner)
|
||||
if (land.LandData.OwnerID != m_host.OwnerID)
|
||||
return;
|
||||
|
||||
land.SetMediaUrl(url);
|
||||
@@ -1182,7 +1182,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ILandObject land
|
||||
= World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
|
||||
|
||||
if (land.LandData.OwnerID != m_host.ObjectOwner)
|
||||
if (land.LandData.OwnerID != m_host.OwnerID)
|
||||
{
|
||||
OSSLError("osSetParcelSIPAddress: Sorry, you need to own the land to use this function");
|
||||
return;
|
||||
|
||||
@@ -1975,7 +1975,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Convert.ToInt32(value);
|
||||
return value.GetHashCode();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user