@notify registers a listener inside the viewer. Each time a restriction is added or removed (by any object), and when certain avatar events happen, the viewer says a short report on the given channel. A filter word limits the reports to those that contain it.

Syntax

@notify:<channel>[;<filter>]=<add|rem>

=n/=y work the same as =add/=rem. Each distinct notify:<channel>;<filter> string is stored as a separate restriction of the calling object, so an object can hold several listeners.

Parameters

channel
Channel the reports are said on. Positive channels use shouted chat; negative channels use a dialog reply. Channel 0 is refused for objects.
filter
Optional. A report is only sent when its text contains this string as a substring. Only the first ;-separated token after the channel is used; further tokens are ignored. The filter is lower-cased along with the rest of the command.

Return value

Reports are sent with a leading /, which keeps the avatar from accidentally emitting a @ command:

EventReport
A restriction is added/<behaviour>[:<option>]=n
A restriction is removed (=y/=rem)/<behaviour>[:<option>]=y
@clear / @clear=<filter>/clear or /clear:<filter> (no =), followed by one /…=y per removed restriction
Clothing worn / removed/worn legally <layer>, /unworn legally <layer>
Attachment attached/attached legally <point>, /attached illegally <point>, /reattached legally <point>
Attachment detached/detached legally <point>, /detached illegally <point>
Sitting/sat object legally <uuid>, /unsat object legally|illegally <uuid>, /sat ground legally, /unsat ground legally|illegally
Inventory offer from an object/accepted_in_rlv inv_offer <folder>, /accepted_in_inv inv_offer <folder>, /declined inv_offer <folder>

Reports don't say which object caused the change.

Caveats

Examples

integer CH = 4711;
default
{
    state_entry()
    {
        llListen(CH, "", llGetOwner(), "");
        // Watch only lock/unlock activity on attachments
        llOwnerSay("@notify:" + (string)CH + ";detach=add");
    }
    listen(integer c, string n, key id, string msg)
    {
        // e.g. "/detach=n", "/detach:spine=y", "/detached legally chest"
        llOwnerSay("RLV event: " + msg);
    }
}

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @notify; see the comparison.