Jump to content

Part day

Closed 1.0.0

Terskipia

Hi 👋 

You must do it into two actions, the unloading part: 0 0 * * 5 oxide.unload xyz and then the loading part: 0 16 * * 5 oxide.load xyz

The syntax is minute, hour, day, month, dow, command.

Share this comment


Link to comment
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.unload xyz"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.load xyz"
}

 

Share this comment


Link to comment

So I need it where at 12am est friday one of my plugins unloads then it runs commands until 4pm est time. Then at 4pm it loads the plugin back.

Share this comment


Link to comment

Keep getting this error?

Scheduler v1.0.0: Failed to load config file (is the config file corrupt?) (Additional text encountered after finished reading JSON content: ,. Path '', line 8, position 1.) 

Here is the config file.

{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.unload MapSplit"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "audio.message sendall soundname"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "Say The Purge has started!. All crime including RAIDING AND PVP is allowed for the next 16hrs. May Sation be with you."
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "time 8.2"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "fog 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "rain 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "rainbow 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "Thunder 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "wind 100"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_rayleigh 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_mie 0"
},
{
  "Minute": "0",
  "Hour": "0",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.atmosphere_brightness 0"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "oxide.load MapSplit"
},
{
  "Minute": "0",
  "Hour": "16",
  "Day": "*",
  "Month": "*",
  "DoW": "5",
  "Command": "weather.clear_chance 1"
}

Share this comment


Link to comment

I’m abroad for professional reasons, I will get back to your questions as soon as possible. I guess there is something wrong with the config but I need to load it on a proper validator rather then the phone.

 

dow is day of the week.

Share this comment


Link to comment
{
  "Cron": [
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "oxide.unload MapSplit"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "audio.message sendall soundname"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "Say The Purge has started!. All crime including RAIDING AND PVP is allowed for the next 16hrs. May Sation be with you."
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "time 8.2"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "fog 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "rain 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "rainbow 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "Thunder 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "wind 100"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_rayleigh 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_mie 0"
    },
    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_brightness 0"
    },
    {
      "Minute": "0",
      "Hour": "16",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "oxide.load MapSplit"
    },
    {
      "Minute": "0",
      "Hour": "16",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.clear_chance 1"
    }
  ]
}

 

Share this comment


Link to comment

0. Sunday
1. Monday
2. Tuesday
3. Wednesday
4. Thursday
5. Friday
6. Saturday

    {
      "Minute": "0",
      "Hour": "0",
      "Day": "*",
      "Month": "*",
      "DoW": "5",
      "Command": "weather.atmosphere_brightness 0"
    },

The following config means: execute the rcon command "weather.atmosphere_brightness 0" on a Friday at 0:00.

Share this comment


Link to comment

This wont work for me since at 4pm I want it to load my plugin back and reset the weather back to normal but instead its trying to run both for friday

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.