Give All Contents (Group Only)

Written by: Headmaster
//Written by Eloise Pastuer. Free like beer, if you paid, you were ripped off.

//Usage... put this script and any number of objects, notecards, anything etc. into it. Set the group to the group you want to be able to access it (easiest way is to have that group active when you rez the giver). Anyone in that group will be given the contents (except this script) in a folder. The folder will be called whatever the giver object is... if you leave it as object it will be called object, if you call it Eloise's group intro the folder will be called the same.

//People can only get the stuff if their active group is the same as the group you set it to. If it isn't, it tells them why it's not giving them anything.

list items;

buildList()
{
    items=[];
    integer i;
    integer len=llGetInventoryNumber(INVENTORY_ALL);
    while(i