Change font size
It is currently Wed Aug 15, 2018 1:16 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Want to show when a user is online
PostPosted: Tue Jul 31, 2012 8:37 pm 

Joined: Tue Jul 31, 2012 8:26 pm
Posts: 7
Hi I have looked everywhere, but no success yet, Does anyone know where I can get a Online User Script, like they have in SL?


Top
 Profile  
 
 Post subject: Re: Want to show when a user is online
PostPosted: Tue Jul 31, 2012 8:58 pm 

Joined: Tue Jul 31, 2012 8:26 pm
Posts: 7
Ok after some looking around, found something that would work, I have edited it slightly to show green when online and red when offline

{L_CODE}:

// Retrieved from from Free SL Scripts on http://www.freeSLscripts.com or www.freeslscripts.gendersquare.org
//Script by Deevyde Maelstrom of the Brainiacs
//Script Edited on 1/8/2012 By Russell Harrower to add Color Chnage
//Feel free to do whatever you want with it, but keep this header please :)

key target = "a49921e1-4d7d-47e5-ac8a-fedb849c8d68"; // You can look up the key of the avatar of your choice at: http://w-hat.com/name2key
string nick = "Rusty Harrower";
string objname = "Object";
integer online;

default

{
    state_entry()
    {
        llSetTimerEvent(5); // Set timer event
    }
   
    timer()
    {
        llRequestAgentData(target, DATA_ONLINE);
    }
   
    dataserver(key id, string data)
    {
        if((integer)data == 1 && online == 0)
        {
            llSetObjectName(nick + "is Online!");
            llInstantMessage(llGetOwner(), "MEEP!");
            online = 1;
            llSetObjectName(objname);
            llSetColor(<0.500,1.0,0.500>, ALL_SIDES);
        }
        else if((integer)data == 0 && online == 1)
        {
            llSetObjectName(nick + "'s Offline");
            llInstantMessage(llGetOwner(), "NARK!");
            online = 0;
            llSetObjectName(objname);
            llSetColor(<0.500,0.200,0.200>, ALL_SIDES);
        }
    }
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net