Jump to content

How To add more than one UUID


Amethyst Ethaniel
 Share

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

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

Recommended Posts

so here is my issue,

I have a script that allows me to know when people come and go from my region. it sends me an IM which goes to my email.

What i would like to do it have it inform more than me. I'd like it to inform a couple of my Land managers.

So How do i go about doing this? Do i need to have someone help me write a script or can i modify the one i have.

I am willing to post the script.

Link to comment
Share on other sites

I suspect that the script already includes a line that starts with something like llInstantMessage( blah, blah, blah ...) or llRegionSayTo (blah, blah, blah ...) that currently send you the message.  All you have to do is duplicate that line exactly and change the address.  So, if the line identifies you as llGetOwner() or actually has your own UUID in it, the duplicate line should replace that information with your manager's UUID.

Link to comment
Share on other sites

I'll post the script so maybe you can help. its just has owner it doesn't have the UUID in it yet. i would like to add it.

Like i said I'm not afraid to share

 

list seen = [];

string getTime()
{
    float timezone = 0;
    integer raw = (integer)(llGetGMTclock() + (timezone * 3600));
    integer shiftraw = raw;

      //  3600 = seconds in an hour
      // 86400 = seconds in 24 hours
    if((timezone * 3600) + raw > 86400)
    {
        shiftraw = raw - 86400;
    }
    else if((timezone * 3600) + raw < 0)
    {
        shiftraw = raw + 86400;
    }
    
    integer hours = shiftraw / 3600;
    integer minutes = (shiftraw % 3600) / 60;
    integer seconds = shiftraw % 60;
    string ampm;
    
    //non-military time adjustments
    string shours = (string)hours;
    string sminutes = (string)minutes;
    string sseconds = (string)seconds;
    
    //add zeros to single digit minutes/seconds
    if(llStringLength(sminutes) == 1)
    {
        sminutes = "0" + sminutes;
    }
    if(llStringLength(sseconds) == 1)
    {
        sseconds = "0" + sseconds;
    }
    
    string time = shours + ":" + sminutes + ":" + sseconds + ampm;
    
    return time;
}

 

checkVisitors()
{
    list avis = llGetAgentList(AGENT_LIST_REGION, []);
    integer howmany = llGetListLength(avis);
    integer i;
    for ( i = 0; i < howmany; i++ ) {
        if ( ! osIsNpc(llList2Key(avis, i)) )
        {
            key u = llList2Key(avis, i);
            if (llListFindList(seen, )<0)
            {
               
                llInstantMessage(llGetOwner(), llKey2Name(u)+" entered "+llGetRegionName()+ " at " +getTime());
            }
        }
    }
    seen = avis;

}


default
{
    state_entry()
    {
        llSetTimerEvent(30);
        checkVisitors();
    }
    timer()
    {
        checkVisitors();
    }
}

Link to comment
Share on other sites

41 minutes ago, Amethyst Ethaniel said:

its just has owner it doesn't have the UUID in it yet. i would like to add it.

Do exactly as I told you.  Copy 

 llInstantMessage(llGetOwner(), llKey2Name(u)+" entered "+llGetRegionName()+ " at " +getTime());

and modify the duplicate so it says

 llInstantMessage("manager's UUID in Quotes goes here", llKey2Name(u)+" entered "+llGetRegionName()+ " at " +getTime());

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1537 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...