Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer channel = -131313;
- integer listen_handle;
- integer color;
- default
- {
- state_entry()
- {
- listen_handle = llListen(channel, "", NULL_KEY, "");
- color - TRUE;
- }
- listen(integer listen_channel, string name, key id, string message)
- {
- list TempList = llParseString2List(message,["|"],[]);
- key Toucher = llList2Key(TempList,1);
- if(listen_channel == channel && llList2Key(TempList,0) == "operate")
- {
- if (color = TRUE)
- {
- llSetLinkColor(LINK_SET, <0.000, 0.523, 0.000>, ALL_SIDES);
- llSay(0, "This item has been located");
- llSetText("Found by "+ llList2String(TempList,1), <0.9,0.6,1>, 0.75);
- llSay(0,"hi");
- (color = FALSE);
- }
- else if (color = FALSE)
- {
- //rot.z = 1;
- //rot.s = 0;
- llSetLinkColor(LINK_SET, <1.000, 0.255, 0.212>, ALL_SIDES);
- (color = TRUE);
- llSay(0,"Bye");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement