Jump to content

Amethyst Ethaniel

Resident
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Amethyst Ethaniel

  1. 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();
        }
    }

  2. 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.

×
×
  • Create New...