Advertisement
Sarria22

Clover's Intermediate RLV Glasses Control v1.0

Feb 11th, 2020
1,037
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Clover's Intermediate RLV Glasses Control v1.0
  2. //Hi! I'm Clover! I made this! Please feel free to share it around and use it for things, just keep it open and keep my name on it!
  3. //This is meant to be used with Clover's Intermediate Glasses Script!
  4.  
  5. //This script goes in something that won't be detached unless you're completely changing avatars, like your head for example!
  6.  
  7. default
  8. {
  9.     state_entry()
  10.     {
  11.         llListen(-11381138,"","","");
  12.     }
  13.    
  14.     listen(integer chan, string name, key id, string msg)
  15.     {
  16.        key theirowner = llGetOwnerKey(id);
  17.        if(theirowner == id || theirowner == llGetOwner())
  18.        {
  19.             list commands = llParseString2List(msg,["||"],[""]);
  20.             integer execute = 0;
  21.             integer length =  llGetListLength(commands);
  22.             //llOwnerSay(msg);
  23.             for(;execute < length; execute+=2)
  24.             {
  25.                 string cmd = llToLower(llList2String(commands,execute));
  26.                 string value =llList2String(commands,execute+1);
  27.                
  28.                 if(cmd == "blur")
  29.                 {
  30.                     llOwnerSay("@setdebug_RenderResolutionDivisor:"+value+"=force");
  31.                 }
  32.            
  33.                 if(cmd == "hideloc")
  34.                 {
  35.                     if(value = "1")
  36.                     {
  37.                        llOwnerSay("@showworldmap=y,showminimap=y,showloc=y");
  38.                     }
  39.                     else
  40.                     {
  41.                        llOwnerSay("@showworldmap=n,showminimap=n,showloc=n");
  42.                     }
  43.                 }
  44.                 if(cmd == "hidenames")
  45.                 {
  46.                     if(value == "1")
  47.                     {
  48.                         llOwnerSay("@shownames=n");
  49.                     }
  50.                     else
  51.                     {
  52.                         llOwnerSay("@shownames=y");
  53.                     }
  54.                 }
  55.                 if(cmd == "skypreset")
  56.                 {
  57.                     llOwnerSay("@setenv_preset:"+value+"=force");
  58.                 }
  59.                 if(cmd = "skytime")
  60.                 {
  61.                     llOwnerSay("@setenv_daytime:"+value+"=force");
  62.                 }
  63.             }
  64.         }
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement