BOT_EVENT_LISTEN_INVENTORY
Raised when the Bot receives an inventory item.
Reference
This event comes with the following event object:
Variable | Description |
|---|---|
| Object details in the format |
| UUID of the person who sent the object |
Example
link_message( integer sender_num, integer num, string str, key id ) {
/////////////////// Bot listen inventory event
if(num==BOT_EVENT_LISTEN_INVENTORY) {
// Split details with a semi colon ";"
list details = llParseString2List(str, [";"], []);
llOwnerSay("Sender name: " + llList2String(details,0));
llOwnerSay("Object UUID: " + llList2String(details,1));
llOwnerSay("Object Name: " + llList2String(details,2));
llOwnerSay("Sender UUID: " + (string)id);
}
}