Give Object To Same Group Script
This script will give inventory to avatars with the same active group as the object being clicked. Great for group gift freebies.
Please note all scripts are delivered contained within a notecard
See item in Second LifeDoes not work
Don't waste your money
complete waste of time
only reason im leaving this review is in the hope people read before they buy.
It's good to copy and paste the script of Second life, but the better way is to copy the good things......
// Gives inventory object only to agents with the same active group
default
{
touch_start(integer total_number)
{
integer i;
for (i = 0; i < total_number; i++)
{
if (llSameGroup(llDetectedKey(i))) // same as llDetectedGroup(i) (with llDetectedGroup, detected does not need to be in the sim)
llGiveInventory(llDetectedKey(i), llGetInventoryName(INVENTORY_OBJECT, 0));
else
llSay(0, "Wrong active group!");
}
}
}