Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
- {
- integer num = llGetInventoryNumber(INVENTORY_NOTECARD);
- for (x=0; x < num; x++)
- {
- string itemName = llGetInventoryName(INVENTORY_NOTECARD, x);
- // inventory += llGetInventoryName(INVENTORY_NOTECARD, x);
- if (!~llListFindList(inventory, [itemName]) )
- {
- // llRegionSayTo(ToucherID,0, "You mail has been accepted and sent. Thank you.");
- llWhisper(0, "Your mail has been accepted and sent. Thank you.");
- llOwnerSay("You have new mail. \nNotecard named: " + itemName + "\n From: " + "secondlife:///app/agent/" + (string)llGetInventoryCreator(itemName) + "/about");
- llGiveInventory(llGetOwner(),itemName);
- inventory += [itemName];
- jump out;
- }
- }
- @out;
- }
Add Comment
Please, Sign In to add comment