Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Content giver script with menu

Suki Hirano
冬の温暖
Join date: 30 May 2008
Posts: 172
01-23-2010 11:22
Hi everyone,
I was wondering where I can find a content giver script with menu in-world? I have a plate of fruit at home, which I want guests to be able to click it and then a menu pops up asking him/her which fruit s/he would like, then deliver that item to the inventory. All the fruits will be in the contents of the fruit plate. I know that lots of cafes, bars, and stores in-world have these kind of things, but I'm not sure if there's a place to get it. Thanks!
_____________________
空想の旋律
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
01-23-2010 11:38
The Inventory Based Menu script from the LSL Examples at http://wiki.secondlife.com/wiki/Inventory_Based_Menu gets you most of the way there I think. You'll need to replace the last line of that

llRezAtRoot(message, llGetPos(), ZERO_VECTOR, llGetRot(), 0);

with

llGiveInventory (id, message);

Caveat: I haven't actually tried it out myself.
Suki Hirano
冬の温暖
Join date: 30 May 2008
Posts: 172
01-23-2010 12:44
Hi sorry, I really don't understand what I'm supposed to edit on the script on the link you gave, like where do I insert the names of the objects I want the person to choose to have?
_____________________
空想の旋律
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
01-23-2010 15:08
That script should make a menu from all the objects in the contents of the prim that it's in automatically. Edit your fruit dish, go to its contents tab and create a new script using the button there. Open the script and replace all the text there with a copy of the script in the link. Replace the last line of that and save it. Add the fruit items to the contents of the prim (they need to be copy and transfer, of course) and click on it.

I just tried it myself - it works :)