Away/Busy Check

Date 2010/5/12 5:13:35 | Topic: Agent/Avatar

Will check if avatar is away or busy when Touched.


default
{

    
touch_start(integer buf)
    {
        
buf llGetAgentInfo(llDetectedKey(0));
        
string out
        if(
buf AGENT_AWAY)
            
out += "The agent is Away.n";
        else
            
out += "The agent is not Away.n";
            
        if(
buf AGENT_BUSY)
            
out += "                            The agent is Busy.n";
        else
            
out += "                            The agent is not Busy.n";
 
        
llWhisper(0out);
    }
}




This script comes from Alicia Stella Design - Best Tip Jars in Second Life
http://www.aliciastella.com

The URL for this script is:
http://www.aliciastella.com/modules/AMS/article.php?storyid=38