Jump to content
  • 0

Notecard Giver Permissions


Antigone Delvalle
 Share

You are about to reply to a thread that has been inactive for 4635 days.

Please take a moment to consider if this thread is worth bumping.

Question

Help!

I just made a notecard giver for second life, with a give random notecard script, but it's refusing to give notecards to anyone but the owner. The ideal is for it to distribute objects to members of a group (including the owner). I think I have all the basic permissions set, but I don't know what I've done wrong.

(how do I go about altering the permissions on notecards themselves? I checked all the little boxes already pertaining to permissions)

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

If that's all you want your script to do, this is what it should look like:

default
{
    touch_start(integer total_number)
    {
        if (llSameGroup(llDetectedKey(0)))
        {
            integer numcards = llGetInventoryNumber(INVENTORY_NOTECARD);
            llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD, (integer)llFrand(numcards)));
        }           
    }
}

It shouldn't be any more complicated than that unless there are other functions that you haven't mentioned here.

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4635 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...