Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors
parent
0ea6977013
commit
375f8cce34
|
@ -4162,11 +4162,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
destId);
|
destId);
|
||||||
|
|
||||||
if (account == null)
|
if (account == null)
|
||||||
|
{
|
||||||
|
GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString());
|
||||||
|
if(info == null || info.Online == false)
|
||||||
{
|
{
|
||||||
Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'");
|
Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// destination is an avatar
|
// destination is an avatar
|
||||||
string message;
|
string message;
|
||||||
InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId, out message);
|
InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId, out message);
|
||||||
|
|
Loading…
Reference in New Issue