here is another nice one...
// ----------------------------------------------------------------
// Script Title: Menu-Driven Giver (SIMPLE)
// Created by: WhiteStar Magic
// Creation Date: May.10.2009
// Platforms:
// OpenSim: Y
//
// Revision: 0.2
// Revision History:
//
// Revision Contributors:
//
//
//
// Conditions:
// Please maintain this header. If you modify the script indicate your
// revision details / enhancements
//
//
// Licensing: Open Source under CC 3.0 (PROVISION = This Header MUST remain)
//
// Support: No Support or Warranty is expressed or implied. Feel free to contact
// the author or revisor if you have problems or issues with this item and they
// may assist you at their discretion.
//
// --------- Creative Commons Licence 3.0 for Open Source ---------
// IF APPLICABLE see link povided
//
http://creativecommons.org/licenses/by/3.0
// ================================================================
// ** SCRIPT NOTES **
// - This only handles 22 items for the menu.
// - This is a GIVER and NOT a Vendor
// - Only Gives ONE item at a time
// - ITEM NAME can only be a MAXIMUM of 24 Characters / Only 12 Characters are shown in Menu
// - Button Sorting is done to keep buttons in Sequence with > at Bottom Right Position
//================================================================
// === GLOBAL VARIABLES
//
list MenuA = [];
list MenuB = [];
integer listener;
integer CHANNEL;
//
// Basic Colours that can be used in Hovertext
// Un-Comment the one you wish to use & change the llSetText line in State_entry()
//vector black = ;
//vector white = ;
//vector grey = ;
//vector red = ;
vector yellow = ;
//vector green = ;
//vector turquoise = ;
//vector blue = ;
//vector purple = ;
//vector orange = ;
//vector brown = ;
//vector pink = ;
//
//list INV_types = [ //OPENSIM NOTE: Numeric Values do not work at this time. Must use Full Name as noted below
//"INVENTORY_TEXTURE",
//"INVENTORY_SOUND",
//"INVENTORY_LANDMARK",
//"INVENTORY_CLOTHING",
//"INVENTORY_OBJECT",
//"INVENTORY_NOTECARD",
//"INVENTORY_BODYPART",
//"INVENTORY_ANIMATION",
//"INVENTORY_GESTURE"];
// INVENTORY_SCRIPT removed. Would be BAD to have scripts in a giver system.
//Put them in a Box contained inside device
//
GET_inv()
{
integer i = 0;
MenuA = [];
MenuB = [];
integer c = llGetInventoryNumber(INVENTORY_OBJECT);
if (c 22)
c = 22;
for (i=11; i < c; ++i)
MenuB += llGetInventoryName(INVENTORY_OBJECT, i);
MenuA += ">>";
MenuB += "")
{
MENU(id, MenuB);
}
else if (message == "