User:Toy Wylie/RLV Documentation/tplure

From Second Life Wiki
Jump to navigation Jump to search


@tplure

Type

# Restriction
  1. Exception

Implemented

Implemented since RLV version 1.0

Usage

# @tplure=<y/n>
  1. @tplure:<UUID>=<add/rem>

Purpose

# Prevents the user from accepting teleport offers by other people.
  1. Adds an exception to this rule, so certain people can still offer teleports to the user.


Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("@tplure=n,tplure:c9d1c876-b65f-4c59-84e2-5c492f94ad11=add");
       llOwnerSay("You can now no longer be teleported by someone else, but Toy Wylie.");
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@tplure=y,tplure:c9d1c876-b65f-4c59-84e2-5c492f94ad11=rem");
           llOwnerSay("Teleporting by other people is now allowed again.");
       }
   }
}</lsl>