Jump to content

gifting


TheBeesHoney Starlight
 Share

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

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

Recommended Posts

Wulfie, thank you that is great, I do need to combine this with the llGiveInventory script to give a gift card that is non copy/trans.

Firstly, am I using the right scripts to do this?

The object in question are gift cards purchased to put in Christmas stockings, so that Staff can click to receive theirs.

Thank you again!

Edited by TheBeesHoney
Link to comment
Share on other sites

seeing as it is nearly xmas. Then something like

// list of people to give the gift to
list giveTo = [
   "Wulfie Reanimator",
   "Mollymews Resident",
   "TheBeesHoney Resident"
];

default
{
    touch_start(integer total_number)
    {
        key uuid = llDetectedKey(0);
        integer i = llListFindList(giveTo, [llKey2Name(uuid)]);
        if (~i)  // person is in list
        {
            llGiveInventory(uuid, "NameOfTheGift");
            // remove the persons name from list when only want to give one gift per person
            giveTo = llDeleteSubList(giveTo, i, i);
        }
    }
}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1596 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...