@notify:<channel>[;<filter>]=add asks RLVa to say a line on channel whenever a restriction is added or removed by any object, and when certain outfit, attachment, sitting and inventory events happen. An optional filter limits notifications to those whose text contains it.
@notify:<channel>[;<filter>]=<add|n> start notifications
@notify:<channel>[;<filter>]=<rem|y> stop them (same channel and filter)
DEBUG_CHANNEL. Channel 0 is refused.;: a third field makes the option invalid.Notifications are chat lines (shouted, so heard 100 m away; truncated at 1023 bytes) beginning with /:
| Event | Text |
|---|---|
| A restriction added/removed by a script | /<behaviour>[:<option>]=<param>, with param exactly as sent (n, add, y or rem) |
@clear from a script | /clear or /clear:<filter> |
| Attachment events | /attached legally|illegally <point>, /detached legally|illegally <point>, /reattached legally <point> |
| Clothing/body parts | /worn legally <layer>, /unworn legally <layer> |
| Sitting | /sat object legally|illegally <uuid>, /sat ground ..., /unsat object ... <uuid>, /unsat ground ... |
| #RLV give-to-folder offers | /accepted_in_rlv inv_offer <path>, /accepted_in_inv inv_offer <name>, /declined inv_offer <name> |
For restriction notifications the filter is applied only to <behaviour>[:<option>], not to the =<param> suffix.
=y removals that @clear performs are silent, so a clear produces a single /clear line. Garbage collection of a vanished object runs clear as if from that object, so it should produce a /clear notification./notify:<channel>=add.@sit/@unsit). In this tree worn/unworn are only ever sent with legally.notify:<channel>[;<filter>]) and are removed when the object clears or is garbage-collected.integer CH = 9393;
default
{
state_entry()
{
llListen(CH, "", llGetOwner(), "");
llOwnerSay("@notify:" + (string)CH + ";detach=add");
}
listen(integer c, string n, key id, string msg)
{
llOwnerSay("RLV event: " + msg); // e.g. "/detach:spine=n" or "/detached legally Skull"
}
}
rlvhelper.cpp 120 as a plain RLV_TYPE_ADDREM entry; handled in the legacy switch (rlvhandler.cpp 1695-1707) with rlvParseNotifyOption (98-116). Reference-counted like a restriction.RlvBehaviourNotifyHandler: rlvhelper.h 598-648, rlvhelper.cpp 1876-1968. It hooks the command signal fired at the end of RlvHandler::processCommand (rlvhandler.cpp 453-590; fInternal = !fFromObj).rlvlocks.cpp 560-575 and 645-705 (attach/detach/reattach), llappearancemgr.cpp 2520-2530 (wear/unwear), rlvhandler.cpp 914-952 (sit/stand), llviewermessage.cpp 2270-2320 and rlvinventory.cpp 648-655 (inventory offers).This command works differently from RLV's @notify; see the comparison.