Give+Contents+(Group+only)

code //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<len) {       string temp=llGetInventoryName(INVENTORY_ALL, i); if(temp!=llGetScriptName) {           items+=temp; }       ++i; } }

default {   state_entry {       buildList; }   changed(integer change) {       if(change & CHANGED_INVENTORY) {           buildList; }   }    touch_start(integer num) {       integer i=0; while(i<num) {           key id=llDetectedKey(i); if(llSameGroup(id)) {               llGiveInventoryList(id, llGetObjectName, items); } else {               llWhisper(0, "This only works if you're in my group"); }           ++i; }   } }

code