Difference between revisions of "User:Gordon Wendt/testbed"
Jump to navigation
Jump to search
Gordon Wendt (talk | contribs) (warning banner) |
Gordon Wendt (talk | contribs) (→Online/offline watcher: update) |
||
Line 13: | Line 13: | ||
__TOC__ | __TOC__ | ||
<lsl> | <lsl> | ||
// key entries prefixed with "k" denote keys of target avatars | // key entries prefixed with "k" denote keys of target avatars | ||
// string entries prefixed with "i" denote status of the avatar in numerical format | // string entries prefixed with "i" denote status of the avatar in numerical format | ||
Line 55: | Line 55: | ||
string e4; | string e4; | ||
string e5; | string e5; | ||
integer time = 10; // update time | |||
default | default | ||
Line 80: | Line 82: | ||
llSetText("",<1,0,0>,1.0); | llSetText("",<1,0,0>,1.0); | ||
llSetTimerEvent(time); | |||
} | |||
timer() | |||
{ | |||
q1 = llRequestAgentData(k1,DATA_ONLINE); | q1 = llRequestAgentData(k1,DATA_ONLINE); | ||
q2 = llRequestAgentData(k2,DATA_ONLINE); | q2 = llRequestAgentData(k2,DATA_ONLINE); | ||
Line 95: | Line 102: | ||
if (i1 == "0") | if (i1 == "0") | ||
{ | { | ||
llOwnerSay("offline"); | |||
s1 = "Offline"; | s1 = "Offline"; | ||
} | } | ||
Line 104: | Line 112: | ||
} | } | ||
if ( q2 == queryid) | |||
{ | { | ||
i2 = data; | i2 = data; | ||
Line 119: | Line 127: | ||
} | } | ||
if ( q3 == queryid) | |||
{ | { | ||
i3 = data; | i3 = data; | ||
if (i3 = "0") | if (i3 == "0") | ||
{ | { | ||
s3 == "Offline"; | s3 == "Offline"; | ||
Line 134: | Line 142: | ||
} | } | ||
if ( q4 == queryid) | |||
{ | { | ||
i4 = data; | i4 = data; | ||
Line 149: | Line 157: | ||
} | } | ||
if ( q5 == queryid) | |||
{ | { | ||
i5 = data; | i5 = data; |
Revision as of 15:25, 8 June 2008