03-31-2007 08:49
I have a small object that when touched shows a simple notecard. The object script is below. It basically checks for the users group and if same the notecard is shown.
Is there a way for the user to drop a notecard in the object for other group members to read when they touch the object? If not a notecard maybe a way for the user to leave a msg in the object for other group members to read when they touch the object.

default
{
touch_start(integer count)
{
integer i;
for ( i = 0 ; i < count ; ++i )
{
key who = llDetectedKey(i);
if ( who == llGetOwner() ||
(llDetectedGroup(i) && ! llSameGroup(NULL_KEY)) )
{

llGiveInventory(llDetectedKey(i),"SLGeocache";);// dostuff
}
else
{
llSay(0, "Sorry, " + llDetectedName(i)
+ ", this cache may only be accessed by 'Geocaching in
SL' group members. If you are a member of the group,
switch your active group tag to it. Not a member?
Learn more about Geocaching in Second Life at
slgeocaching.com and get started hunting for hidden
treasures all over the metaverse!";);
}
}
}
}