Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer test = TRUE;
- integer debug = TRUE;
- list mail;
- give()
- {
- integer count = llGetInventoryNumber( INVENTORY_NOTECARD );
- integer i = 0;
- if(debug)llOwnerSay("card count = "+(string)count);
- for(i=0; i < count; i++)
- {
- string this = llGetInventoryName(INVENTORY_NOTECARD, i);
- if(debug)
- {
- llOwnerSay("notecard "+(string) i+" is - "+this);
- if(this != "suggestion")
- {
- mail += this;
- }
- }
- llGiveInventoryList( llDetectedKey(0), "suggestion", mail );
- }
- default
- {
- state_entry()
- {
- llAllowInventoryDrop(TRUE);
- }
- touch_start(integer total_number)
- {
- if(llDetectedKey(0) == llGetOwner() && test = FALSE)
- {
- give();
- if(debug)
- {
- llOwnerSay("hi");
- // llGiveInventoryList( llDetectedKey(0), "MyMail", ["suggestion 1"] );
- }
- }
- else
- {
- if(debug)llOwnerSay("nope");
- llGiveInventory( llDetectedKey(0), "suggestion" );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement