03-30-2007 21:34
I have a small prim with a simple script that shows a simple notecard with info on it (see below). Is there a way to allow people to drop a notecard in this objects inventory such that anyone else who touches the object can then read all the notecards dropped in it by others?


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!";);
}
}
}
}