Jump to content
  • 0

Notecard Giver Permissions


Antigone Delvalle
 Share

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

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

Question

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 4094 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...