Region Agent Total

Date 2009/5/27 20:40:00 | Topic: Agent/Avatar

Returns how many avatars in sim. (Must be compiled in MONO.)
default
{
    
on_rez(integer code)
    {
        
llResetScript();
    }
    
    
state_entry()
    {
        
llSetText("Get Region\nAgent Total", <0.181.000.18>, 1.0);
    }

    
touch_start(integer total_number)
    {
        
llWhisper(0"There are currently " + (string)llGetRegionAgentCount() + " avatars in this sim, " llGetRegionName() + ".");
    }
}




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=30