Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Object Key Object_Key_Lister  

Object_Key_Lister

Object_Key_Lister

Category: Object Key
By : Davy Maltz
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Object_Key_Lister
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Object_Key_Lister_1.lsl
1 string search;
2 string originalname;
3 default
4 {
5 on_rez(integer start_param)
6 {
8 }
10 {
11 originalname = llGetObjectName();
12 llListen(0,"",llGetOwner(),"");
13 }
14 listen(integer channel, string name, key id, string message)
15 {
16 if(llSubStringIndex(message,".okey ") != -1)
17 {
18 search = llToLower(llGetSubString(message,6,llStringLength(message)));
19 llSensor("","",PASSIVE,90,TWO_PI);
20 }
21 }
22 sensor(integer num_detected)
23 {
24 integer i;
25 for(i = 0; i < num_detected; ++i)
26 {
28 {
29 llSetObjectName("Result #" + (string)i);
30 llSay(0,llDetectedName(i) + ": " + (string)llDetectedKey(i));
31 }
32 llSetObjectName(originalname);
33 }
34 }
35 }

Back to the Best Free Tools in Second Life and OpenSim.