Difference between revisions of "Online Indicator"

From Second Life Wiki
Jump to: navigation, search
Line 1: Line 1:
{{LSL Header}}
+
{{LSL Header}}__TOC__
  
This script will create hover text with resident name and online status.
+
{{box|Copying Permission|
 +
Copyright © 2008 by Kristy Fanshaw
  
Will show resident profile picture on the object and when touched, then toucher can send IM to the resident by typing the message into main chat.<br>
+
This program is free software: you can redistribute it and/or modify<br>
Also offers a link in main chat to open resident profile.  
+
it under the terms of the GNU General Public License as published by<br>
 +
the Free Software Foundation, either version 3 of the License, or<br>
 +
(at your option) any later version.<br>
  
<lsl>key user_key = "00000000-0000-0000-0000-000000000000";      // must be agent UUID whose status it will indicate
+
This program is distributed in the hope that it will be useful,<br>
 +
but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
 +
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
 +
GNU General Public License for more details.<br>
 +
 
 +
To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.}}
 +
{{box|Online Indicator|
 +
Place this script in a box you've created.<br><br>
 +
What it does:
 +
# This script will create hover text with resident name and online status.
 +
# Will show resident profile picture on the object
 +
# On touch the toucher can send IM to the resident by typing the message into main chat.
 +
# Offers a link in main chat to open resident profile.
 +
 
 +
<lsl>////////////////////////////////////////////////////////////////////////////////////////////////
 +
//    Copyright (c) 2008 by Kristy Fanshaw                                                    //
 +
////////////////////////////////////////////////////////////////////////////////////////////////
 +
//  This program is free software: you can redistribute it and/or modify                    //
 +
//    it under the terms of the GNU General Public License as published by                    //
 +
//    the Free Software Foundation, either version 3 of the License, or                      //
 +
//    (at your option) any later version.                                                    //
 +
//                                                                                            //
 +
//    Vendor System is distributed in the hope that it will be useful,                        //
 +
//    but WITHOUT ANY WARRANTY; without even the implied warranty of                          //
 +
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                          //
 +
//    GNU General Public License for more details.                                            //
 +
//                                                                                            //
 +
//    To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.    //
 +
////////////////////////////////////////////////////////////////////////////////////////////////
 +
 
 +
key user_key = "00000000-0000-0000-0000-000000000000";      // must be agent UUID whose status it will indicate
 
integer time = 30;                                          // time within the message should be written.
 
integer time = 30;                                          // time within the message should be written.
 
string url = "http://world.secondlife.com/resident/";
 
string url = "http://world.secondlife.com/resident/";
Line 103: Line 136:
 
         state show;
 
         state show;
 
     }
 
     }
}</lsl>
+
}</lsl>}}
  
 
{{LSLC|Examples}}
 
{{LSLC|Examples}}
 
{{LSLC|Library}}
 
{{LSLC|Library}}

Revision as of 11:16, 15 January 2009

Copying Permission

Copyright © 2008 by Kristy Fanshaw

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.

Online Indicator