Add avatar and attachments to llRegionSay

llRegionSay will now message avatars on chan 0
  and will message attachments on the avatar that
  listen on channels other than 0.

  This behavior is consistant with the LL
  implementation as tested on regions in Agni
  with one exception: this implementation does
  not include issue:
    https://jira.secondlife.com/browse/SCR-66?
This commit is contained in:
BlueWall
2011-08-20 12:36:35 -04:00
parent 2787207aa2
commit 5e231acdce
3 changed files with 70 additions and 10 deletions

View File

@@ -845,11 +845,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llRegionSayTo(string target, int channel, string msg)
{
if (channel == 0)
{
LSLError("Cannot use llRegionSay() on channel 0");
return;
}
string error = String.Empty;
if (msg.Length > 1023)
msg = msg.Substring(0, 1023);
@@ -861,7 +857,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
if (wComm != null)
wComm.DeliverMessageTo(TargetID, channel, m_host.Name, m_host.UUID, msg);
if (!wComm.DeliverMessageTo(TargetID, channel, m_host.AbsolutePosition, m_host.Name, m_host.UUID, msg, out error))
LSLError(error);
}
public LSL_Integer llListen(int channelID, string name, string ID, string msg)