Gift Giver

Written by: Headmaster
// Put name of object to be given in the line below 
// and place object in the contents
string object = "Test Object";

default
{
    state_entry()
    {
        llSay(0, "Touch giver ready");
    }

    touch_start(integer total_number)
    {
        key id=llDetectedKey(total_number - 1);
        string name=llKey2Name(id);
        llSay(0, name + ", Please have a notecard" + object);
        llGiveInventory(id, object);
    }
    on_rez(integer start_param)
    {
        llResetScript();
    } 
}

 

Category: