04-17-2005 13:49
Hi,
I want to have people drop a notecard into a box and then the notecard is given to me in my inventory, here's what i have so far:

CODE
default
{
state_entry()
{
llAllowInventoryDrop(TRUE);
}

touch_start(integer total_number)
{

llGiveInventory(llDetectedKey(0), "Notecard Name Here");
}

changed(integer change)
{
if ( CHANGED_ALLOWED_DROP == TRUE )
{
llGiveInventory(llGetOwner(), "" + (string) change + "");
}
}
}


However it doesn't work, any suggestions?