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
Online Indicator Multiperson_online_indicator  

Multiperson_online_indicator

Multiperson_online_indicator

Category: Online Indicator
By : Fred Kinsei
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Multiperson_online_indicator
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Multiperson_online_indicator_1.lsl
1 //Made By Fred Kinsei
2 //Put keys into the first list
3 //And names into the second
4 //Make sure the keys and names match up order-wise
5 list keys = ["34d58721-379d-41b3-a108-b34acafc94f5", "78cd2158-4a9f-4712-a0f2-74451bb55e2b"];
6 list names = ["Fred Kinsei", "Kharne Spyker"];
7 integer length;
8 list returns;
9 list requests;
10 default
11 {
13 {
14 length = llGetListLength(keys);
15 returns = [];
16 requests = [];
17 integer i;
18 for(i=0;i<length;i++)
19 {
20 requests += llRequestAgentData(llList2Key(keys, i), DATA_ONLINE);
21 }
23 }
24
25 timer()
26 {
27 llSetText(llDumpList2String(returns, " \n"), <1,1,1>, 1);
28 returns = [];
29 requests = [];
30 integer i;
31 for(i=0;i<length;i++)
32 {
33 requests += llRequestAgentData(llList2Key(keys, i), DATA_ONLINE);
34 }
35 }
36 dataserver(key queryid, string data)
37 {
38 if((integer)data == TRUE)
39 data = "Online";
40 else
41 data = "Offline";
42 returns+=[llList2String(names, llListFindList(requests, [queryid])) + " - " + data];
43 }
44 }

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