HOWEVER, in Kitely under OpenSim 0.9.1.1, llGiveInventoryList fails with an ugly red debug message if you try to deliver to an avatar who is not nearby. It works fine if the avatar is logged on and in the same region, I haven’t tried all combinations.
To reproduce, put this script in a prim and also put an object “give”. Click on the prim to deliver the object. If the avatar is not in-world you will get an ANGRY RED DEBUG MESSAGE. I have this delivering to Crashtest Crystal, you can change it to a different avatar who is nearby and see it work, or change it to other avatars you know.
Code: Select all
//test llGiveInventoryList.
// Note: Requires an object in memory to deliver.
// Delivers to a folder with same name as object
default
{
touch_start(integer num)
{
key av = osAvatarName2Key("Crashtest","Crystal");
string fold = llGetInventoryName(INVENTORY_OBJECT,0);
list prodstuf=[fold];
llOwnerSay("Give Inventory List:\n"+(string)av+"\n"+fold+"\n"+llList2CSV(prodstuf));
llGiveInventoryList(av,fold,prodstuf);
}
}