Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors

inv-download
BlueWall 2015-03-05 16:58:02 -05:00
parent 0ea6977013
commit 375f8cce34
1 changed files with 6 additions and 2 deletions

View File

@ -4162,11 +4162,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
destId);
if (account == null)
{
GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString());
if(info == null || info.Online == false)
{
Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'");
return;
}
}
}
// destination is an avatar
string message;
InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId, out message);