Advertisement
keyesfire13

Untitled

Oct 4th, 2023
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer channel = -131313;
  2. integer listen_handle;
  3. integer color;
  4. default
  5. {
  6.  
  7. state_entry()
  8. {
  9.     listen_handle = llListen(channel, "", NULL_KEY, "");
  10.     color - TRUE;
  11.     }
  12.  
  13. listen(integer listen_channel, string name, key id, string message)
  14.     {
  15.         list TempList = llParseString2List(message,["|"],[]);
  16.     key Toucher = llList2Key(TempList,1);
  17.  
  18.     if(listen_channel == channel && llList2Key(TempList,0) == "operate")
  19.          {
  20.         if (color = TRUE)  
  21.             {
  22.                
  23.                 llSetLinkColor(LINK_SET, <0.000, 0.523, 0.000>, ALL_SIDES);
  24.                 llSay(0, "This item has been located");
  25.                 llSetText("Found by "+ llList2String(TempList,1), <0.9,0.6,1>, 0.75);
  26.                 llSay(0,"hi");
  27.                (color = FALSE);
  28.             }
  29.         else if (color = FALSE)
  30.             {
  31.                 //rot.z = 1;
  32.                 //rot.s = 0;
  33.                 llSetLinkColor(LINK_SET, <1.000, 0.255, 0.212>, ALL_SIDES);
  34.                 (color = TRUE);
  35.                 llSay(0,"Bye");
  36.             }
  37.         }
  38.  
  39.     }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement