Box Emptier Script

Written by Kitsune
//Free box emptier. This script is provided free as in beer. If you paid for it, please contact Eloise Pasteur to tell her.

//Usage: Name the box something suitable for the contents, e.g. Class notes for Integral Calculus. Put whatever you want in the box you choose (you can texture it etc. as you like). This script will 1) automatically put hovertext over the prim saying touch me for notes about... and the name of the object. When the users touch it, they get all the items (except this script) you put in the object, in a folder called whatever you call the box. If you want to force the name to update after a change, just change the inventory - renaming this script for example.


list contents;

buildList()
{
    contents=[];
    integer i;
    integer num=llGetInventoryNumber(INVENTORY_ALL);
    while(i, 1.0);
    }

    touch_start(integer num)
    {
        integer i;
        while(i