Jump to content

Message Object


Moni Telling
 Share

You are about to reply to a thread that has been inactive for 1976 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

example:

string msg = "Get your bacon while it's hot!";
default
{
    state_entry()
    {       
    }
    touch_start(integer total_number)
    {
        list avatarsInRegion = llGetAgentList(AGENT_LIST_REGION, []);
        integer numOfAvatars = llGetListLength(avatarsInRegion);
        if (!numOfAvatars)
        {
            llOwnerSay("No avatars found within the region!");
            return;
        } 
        integer index;
        while (index < numOfAvatars)
        {
            key id = llList2Key(avatarsInRegion, index);
            llRegionSayTo(id, 0, "\nMessage of the Day: \n \n" + msg);
            string name = llKey2Name(id);        
           // llOwnerSay("\n" + name + " [ " + (string)id + " ]"); // for debug?
            ++index;
        }       
    }
}

or you could use a textbox for input :)

Edited by Xiija
  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1976 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...