parent
5446bdff09
commit
bb2b1b1f61
|
@ -45,6 +45,7 @@ Patches
|
||||||
* alex_carnell
|
* alex_carnell
|
||||||
* webmage (IBM)
|
* webmage (IBM)
|
||||||
* jimbo2120 (IBM)
|
* jimbo2120 (IBM)
|
||||||
|
* nornalbion
|
||||||
* awebb (IBM)
|
* awebb (IBM)
|
||||||
* brianw/Sir_Ahzz
|
* brianw/Sir_Ahzz
|
||||||
* ChrisDown
|
* ChrisDown
|
||||||
|
@ -54,7 +55,7 @@ Patches
|
||||||
* A_Biondi
|
* A_Biondi
|
||||||
* lulurun
|
* lulurun
|
||||||
* Melanie Thielker
|
* Melanie Thielker
|
||||||
* John R Sohn(XenReborn)
|
* John R Sohn (XenReborn)
|
||||||
* Xantor
|
* Xantor
|
||||||
* YZh
|
* YZh
|
||||||
* Grumly57
|
* Grumly57
|
||||||
|
|
|
@ -811,24 +811,33 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||||
|
|
||||||
LLUUID agentId = LLUUID.Zero;
|
LLUUID agentId = LLUUID.Zero;
|
||||||
LLUUID soundId = LLUUID.Zero;
|
LLUUID soundId = LLUUID.Zero;
|
||||||
|
LLUUID regionId = LLUUID.Zero;
|
||||||
|
|
||||||
Helpers.TryParse((string) requestData["agentId"], out agentId);
|
Helpers.TryParse((string) requestData["agentId"], out agentId);
|
||||||
Helpers.TryParse((string) requestData["soundId"], out soundId);
|
Helpers.TryParse((string) requestData["soundId"], out soundId);
|
||||||
|
Helpers.TryParse((string) requestData["regionId"], out regionId);
|
||||||
string text = (string) requestData["text"];
|
string text = (string) requestData["text"];
|
||||||
string secret = (string) requestData["secret"];
|
string secret = (string) requestData["secret"];
|
||||||
|
|
||||||
Scene userScene = GetRandomScene();
|
Scene userScene = GetSceneByUUID(regionId);
|
||||||
if (userScene.RegionInfo.regionSecret.ToString() == secret)
|
if(userScene != null)
|
||||||
{
|
{
|
||||||
IClientAPI client = LocateClientObject(agentId);
|
if (userScene.RegionInfo.regionSecret.ToString() == secret)
|
||||||
|
|
||||||
if (client != null)
|
|
||||||
{
|
{
|
||||||
if (soundId != LLUUID.Zero)
|
|
||||||
client.SendPlayAttachedSound(soundId, LLUUID.Zero, LLUUID.Zero, 1.0f, 0);
|
IClientAPI client = LocateClientObject(agentId);
|
||||||
client.SendBlueBoxMessage(LLUUID.Zero, LLUUID.Zero, "", text);
|
if (client != null)
|
||||||
retparam.Add("success", true);
|
{
|
||||||
}
|
if (soundId != LLUUID.Zero)
|
||||||
|
client.SendPlayAttachedSound(soundId, LLUUID.Zero, LLUUID.Zero, 1.0f, 0);
|
||||||
|
client.SendBlueBoxMessage(LLUUID.Zero, LLUUID.Zero, "", text);
|
||||||
|
retparam.Add("success", true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
retparam.Add("success", false);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
retparam.Add("success", false);
|
retparam.Add("success", false);
|
||||||
|
@ -839,7 +848,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||||
retparam.Add("success", false);
|
retparam.Add("success", false);
|
||||||
}
|
}
|
||||||
ret.Value = retparam;
|
ret.Value = retparam;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue