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
Radar Find_Prim_by_Owner_Name__and_make_a  

Find_Prim_by_Owner_Name__and_make_a

Put this script into a prim. Wear the prim and fly around. If it finds any prims owned by 'avatar', it will print a link to chat that you can click on. It can only scan 96 meters, so you have to fly around to find all the prims.

Category: Radar
By : Ferd Frederix
Created: 2011-10-06 Edited: 2011-10-06
Worlds: Second Life

the Zip file

Download all files for Find_Prim_by_Owner_Name__and_make_a
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Find_Prim_by_Owner_Name__and_make_a_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 // Change the next line to find an avatars prims
2
3 string avatar = "Ferd Frederix";
4
5 default
6 {
8 {
9 llSensorRepeat("", NULL_KEY, ACTIVE|PASSIVE|SCRIPTED, 96, PI,2); // scan for objects within 96 meters
10 }
11
12 sensor(integer total_number) // total_number is the number of avatars detected.
13 {
14 integer i;
15 for (i = 0; i < total_number; i++)
16 {
18
19 string name = llKey2Name(llList2String(things,0)); // get owner name
20 if( name == avatar)
21 {
22 vector pos = llDetectedPos(i); // get the position
23
24 llOwnerSay(llList2String(things,1) + " at " + "http://www.slurl.com/secondlife/" // and make a SLURL
26 + "/"
27 + (string) pos.x
28 + "/"
29 + (string) pos.y
30 + "/"
31 + (string) pos.z);
32 }
33 }
34 }
35
36 }

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