Button Gives Folder

Button Gives Folder

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/******************************************************************
* This example will give items in a folder when a BUTTON is pressed
* You will need a line in the AVP_Positions notecard to create the BUTTON:
* e.g. BUTTON Give Items|0
******************************************************************/

string button = "Give Items";
list items = ["Item1","Item2","Item3"];
string foldername = "Object Folder";

default{
    link_message(integer sender, integer num, string msg, key id){
        if(msg==button){
            llGiveInventoryList(id,foldername,items);
        }
    }
}

Trending Tags