Replaced LSLError() calls with calls to Error()
parent
c9550e473d
commit
9db4090c07
|
@ -890,7 +890,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
if (channelID == 0)
|
if (channelID == 0)
|
||||||
{
|
{
|
||||||
LSLError("Cannot use llRegionSay() on channel 0");
|
Error("llRegionSay", "Cannot use on channel 0");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2884,7 +2884,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
|
if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
|
||||||
{
|
{
|
||||||
LSLError("No permissions to give money");
|
Error("llGiveMoney", "No permissions to give money");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2892,7 +2892,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
if (!UUID.TryParse(destination, out toID))
|
if (!UUID.TryParse(destination, out toID))
|
||||||
{
|
{
|
||||||
LSLError("Bad key in llGiveMoney");
|
Error("llGiveMoney", "Bad key in llGiveMoney");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4391,7 +4391,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
UUID av = new UUID();
|
UUID av = new UUID();
|
||||||
if (!UUID.TryParse(agent,out av))
|
if (!UUID.TryParse(agent,out av))
|
||||||
{
|
{
|
||||||
LSLError("First parameter to llTextBox needs to be a key");
|
Error("llTextBox", "First parameter must be a key");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6811,17 +6811,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
UUID av = new UUID();
|
UUID av = new UUID();
|
||||||
if (!UUID.TryParse(avatar,out av))
|
if (!UUID.TryParse(avatar,out av))
|
||||||
{
|
{
|
||||||
LSLError("First parameter to llDialog needs to be a key");
|
Error("llDialog", "First parameter must be a key");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (buttons.Length < 1)
|
if (buttons.Length < 1)
|
||||||
{
|
{
|
||||||
LSLError("No less than 1 button can be shown");
|
Error("llDialog", "At least 1 button must be shown");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (buttons.Length > 12)
|
if (buttons.Length > 12)
|
||||||
{
|
{
|
||||||
LSLError("No more than 12 buttons can be shown");
|
Error("llDialog", "No more than 12 buttons can be shown");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string[] buts = new string[buttons.Length];
|
string[] buts = new string[buttons.Length];
|
||||||
|
@ -6829,12 +6829,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
if (buttons.Data[i].ToString() == String.Empty)
|
if (buttons.Data[i].ToString() == String.Empty)
|
||||||
{
|
{
|
||||||
LSLError("button label cannot be blank");
|
Error("llDialog", "Button label cannot be blank");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (buttons.Data[i].ToString().Length > 24)
|
if (buttons.Data[i].ToString().Length > 24)
|
||||||
{
|
{
|
||||||
LSLError("button label cannot be longer than 24 characters");
|
Error("llDialog", "Button label cannot be longer than 24 characters");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
buts[i] = buttons.Data[i].ToString();
|
buts[i] = buttons.Data[i].ToString();
|
||||||
|
@ -10302,7 +10302,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
if (quick_pay_buttons.Data.Length < 4)
|
if (quick_pay_buttons.Data.Length < 4)
|
||||||
{
|
{
|
||||||
LSLError("List must have at least 4 elements");
|
Error("llSetPayPrice", "List must have at least 4 elements");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_host.ParentGroup.RootPart.PayPrice[0]=price;
|
m_host.ParentGroup.RootPart.PayPrice[0]=price;
|
||||||
|
@ -11292,11 +11292,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
Error(command, text);
|
Error(command, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void LSLError(string msg)
|
|
||||||
{
|
|
||||||
throw new ScriptException("LSL Runtime Error: " + msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
|
public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
|
||||||
protected void WithNotecard(UUID assetID, AssetRequestCallback cb)
|
protected void WithNotecard(UUID assetID, AssetRequestCallback cb)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue