Away/Busy Check

Written by Kitsune

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(0, out);
    }
}