If the avatar is logged in and nearby, it works as expected. A folder is created, stuff is put in it, and the avatar is given a dialog to accept it.
If the avatar is not logged in, the folder is created in their inventory, but no items are put in it, the avatar does not get notification, and the following message appears in the sending avatar's debug box:
Now it occurs to me that the Kitely Market needs to do things like this all the time, and it works. Is there a good reason why I can't give stuff to avatars that are not present?System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at OpenSim.Region.Framework.Scenes.Scene.MoveTaskInventoryItems (UUID destID, System.String category, OpenSim.Region.Framework.Scenes.SceneObjectPart host, System.Collections.Generic.List`1 items) <0x40a50270 + 0x002d5> in <filename unknown>:0
at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llGiveInventoryList (System.String destination, System.String category, list inventory) <0x40a4fbf0 + 0x002d9> in <filename unknown>:0
at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llGiveInventoryList (System.String destination, System.String category, list inventory) <0x40a4fb90 + 0x00042> in <filename unknown>:0
at SecondLife.XEngineScript.deliver (LSLString id) <0x40a4eb60 + 0x0076e> in <filename unknown>:0
at SecondLife.XEngineScript.default_event_http_response (LSLString
(I know there is some magic about avatars that have been by recently, are still logged on, but are no longer near the region where the llGiving prim is. I have not tested this yet).