I am trying to build an object which when clicked provides 2 options, 1 for an avatar to drop a sound the other for an avatar to receive the sound held by the object. The idea behind this is so that an avatar can drop a podcast into an object for fellow avatars to receive, this could be useful within educational use for SL as lectures for example could be recorded and listened to. Heres what I have at the moment. However while a sound can be dropped into the object, it cannot give the sound. More errors are apparent as the message confirming the sound drop appears before anything being entered. Obviously this needs allot more work with a sub menu displaying the relevant sounds for a avatar to collect. However i appear stuck at this hurdle.
Any help = Many thanks and maxi respect
integer CHANNEL = 42;
list MENU_MAIN = ["Leave Podcast", "Collect Podcast "];
key id;
default
{
state_entry()
{
llListen(CHANNEL, "", "", ""
; id = llDetectedKey(0);
}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "What would you like to do?", MENU_MAIN, CHANNEL);
}
listen(integer channel, string name, key id, string message)
{
if (message == "Leave Podcast"
{
llAllowInventoryDrop(TRUE);
llSay(0, "Please drop your podcast here by dragging it into the box from your inventory."
; if (CHANGED_ALLOWED_DROP|CHANGED_INVENTORY)
{
llWhisper(0,"Thank you for leaving a podcast"
;}
else if (message == "Collect Podcast"

{
llGiveInventory(id, ""
;}
}
}
}
