@accepttp makes the viewer accept incoming teleport offers (lures) automatically, with no dialog. In its bare form it accepts offers from anyone. With an avatar UUID as the option it adds that avatar to an "auto-accept" list, and only their offers are accepted automatically. An auto-accepted teleport can't be canceled by the user.
@accepttp=<n|add|y|rem>
@accepttp:<uuid>=<n|add|y|rem>
@accepttp_sec=<n|add|y|rem>
@accepttp:<uuid>=n just records an exception and doesn't make @accepttp "active" in the @getstatus or reference-count sense._sec has no practical effect. The dictionary marks accepttp as strict, so @accepttp_sec=n parses and is stored separately. But autoAcceptTeleportOffer() returns true whenever the bare behavior is active, before strictness could matter. So @accepttp_sec=n behaves exactly like @accepttp=n.key gOwner = "01234567-89ab-cdef-0123-456789abcdef";
// Auto-accept teleport offers from one keyholder only
llOwnerSay("@accepttp:" + (string)gOwner + "=add");
// ... later
llOwnerSay("@accepttp:" + (string)gOwner + "=rem");
// Auto-accept from everyone
llOwnerSay("@accepttp=n");
The matching behavior for teleport requests (someone asking to be teleported to you) is @accepttprequest.
RlvBehaviourGenericProcessor<RLV_OPTION_NONE_OR_EXCEPTION>("accepttp", RLV_BHVR_ACCEPTTP, BHVR_STRICT) (rlvhelper.cpp:89). With an option, the generic handler adds or removes an exception and doesn't reference-count it (rlvhandler.cpp:1814-1826).RlvActions::autoAcceptTeleportOffer() returns isException(RLV_BHVR_ACCEPTTP, sender) || hasBehaviour(RLV_BHVR_ACCEPTTP) (rlvactions.cpp:321-324). The strict check inside isException() (rlvhandler.cpp:273-307) only applies while the bare behavior is active, and in that case the second operand is already true.LLIMProcessing for IM_LURE_USER (llimprocessing.cpp:1968-1976, 2081-2091, 2155-2162). On auto-accept, gRlvHandler.setCanCancelTp(false) is called and the TeleportOffered notification is force-answered.No significant differences from RLV's @accepttp.