changed (integer change) {
if (change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY) & passnotecard) {
passnotecard = FALSE;
integer numbernotes = llGetInventoryNumber(INVENTORY_NOTECARD);
llGiveInventory("a8e4d52e-e2bc-a27d-014f-be2141559fbd", llGetInventoryName(INVENTORY_NOTECARD, numbernotes - 1));
llWhisper(0, "Sending notecard for processing"
;}
I have the (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY) so that it detects a notecard if the owner does the drop or if someone else does and I have a corresponding llAllowInventoryDrop(TRUE) in my state_entry event. The passnotecard is set to TRUE in state_entry and then set to FALSE once the change event occurs to keep from entering into an infinite loop when the GiveInventory sends the notecard to the other linked object.
Anyway, the only time the changed event is triggered is when I (the owner) drops a notecard, if anyone else does, then it's not triggered.
I was hoping someone might see something really stupid that I've done but can't see since I've been staring at this so long.
Thanks in advance
Robins Hermano