keyesfire13

Untitled

Oct 4th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //string name;
  2. integer channel = -131313;
  3. integer listen_handle;
  4. integer color;
  5. default
  6. {
  7.  
  8. state_entry()
  9. {
  10. // initialize the listener
  11. // the listener will listen to everybody who touches the door-button (NULL_KEY)
  12.  
  13.     listen_handle = llListen(channel, "", NULL_KEY, "");
  14.     color - TRUE;
  15.     }
  16.  
  17. listen(integer listen_channel, string name, key id, string message)
  18.     {
  19.        
  20. // only do something if the channel, where the message is received
  21. // is equal to our listen channel and if the message is «operate»
  22.  
  23.     if(listen_channel == channel && message == "operate")
  24.          {
  25.  
  26. // close or open the door (your original script)
  27.            
  28.         //rotation rot = llGetLocalRot();
  29.  
  30.         if (color = TRUE)
  31.             {
  32.                 //rot.z = 0.707107;
  33.                 //rot.s = -0.707107;
  34.                 llSetLinkColor(LINK_SET, <0.000, 0.523, 0.000>, ALL_SIDES);
  35.                 llSay(0, "This item has been located");
  36.                 llSetText("Found by "+ message , <0.9,0.6,1>, 0.75);
  37.                 llSay(0,"hi");
  38.                (color = FALSE);
  39.             }
  40.         else if (color = FALSE)
  41.             {
  42.                 //rot.z = 1;
  43.                 //rot.s = 0;
  44.                 llSetLinkColor(LINK_SET, <1.000, 0.255, 0.212>, ALL_SIDES);
  45.                 (color = TRUE);
  46.                 llSay(0,"Bye");
  47.             }
  48.         //llSetLocalRot(rot);
  49.         }
  50.  
  51.     }
  52.  
  53. }
  54.  
Add Comment
Please, Sign In to add comment