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 ( change & CHANGED_ALLOWED_DROP )
{
llGiveInventory(llGetOwner(), "" + (string) change + "");
}
}
}
However it doesn't work, any suggestions?