About

As a smaller variant of cron, this script will execute the command:

llOwnerSay("TIME!");

every day around 0:00 SLT.

Code

///////////////////////////////////////////////////////////////////////////
//  Copyright (C) Wizardry and Steamworks 2014 - License: GNU GPLv3      //
//  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  //
//  rights of fair usage, the disclaimer and warranty conditions.        //
///////////////////////////////////////////////////////////////////////////
default
{
    state_entry() {
        llSetTimerEvent(
            86400 - llGetWallclock()
        );
    }
    timer() {
        llSetTimerEvent(0)
        state send;
    }
    on_rez(integer start_param) {
        llResetScript();
    }
}
 
state send {
    state_entry() {
        llOwnerSay("TIME!");
        llSetTimerEvent(60);
    }
    timer() {
        llResetScript();
    }
    on_rez(integer start_param) {
        llResetScript();
    }
}

secondlife/run_command_every_day.txt ยท Last modified: 2022/11/24 07:46 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.