Timed Execute

Execute commands every (x) seconds.

Total Downloads: 1,456 - First Release: May 30, 2016 - Last Update: Jun 5, 2017

5/5, 13 likes
  1. Squire

    Squire Scavenger

    seems to be actually not running the commands, its putting some commands in the console but thats about it, its pretty much hit and miss
     
  2. Freaky

    Freaky Shack Builder

    Code (Text):
    (09:58:00) | StringPool.GetNumber - no number for string assets/prefabs/npc/patrol
    (09:58:00) | [BUNDLE] Not found: assets/prefabs/npc/patrol
    (09:58:00) | Couldn't find prefab "assets/prefabs/npc/patrol"
    (09:58:00) | [Timed Execute] ran CMD: entity.create assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab
    Protocol: 1959
    Build Version: 1150.84
    Build Date: Friday, February 03, 2017 8:09:11 PM
    Unity Version: 5.4.2f2
    Changeset: 18767
    Branch: /main
    Oxide Version: 2.0.3033


    Edited: solved --> "entity.create \"assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab\"": 7200,
     
    Last edited: Feb 8, 2017
  3. fleetboss

    fleetboss Scavenger

    Code (Text):
    {
      "EnableInGameTime-Timer": true,
      "EnableRealTime-Timer": false,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": true,
      "InGameTime-Timer": {
        "07:00": "say Gather rates descrease to х5",
        "07:01": "gather.rate dispenser * 5",
        "07:02": "gather.rate pickup * 5",
        "20:00": "say Gather rates increase to х10!",
        "20:01": "gather.rate dispenser * 10",
        "20:02": "gather.rate pickup * 10"
      },
      "RealTime-Timer": {
      },
      "TimerOnce": {
      },
      "TimerRepeat": {
        "say Saving server data.": 3600,
        "server.save": 3600
      }
    }
    Pain, need fix plugin
    In-game plugin work bad. Plugin only process SAY command
     
  4. PaiN

    PaiN Shotgun Ace Plugin Developer

    Yeah yeah InGame timer needs fix what do you mean by saying that only the say command works ? server.save is not working ?
     
  5. fleetboss

    fleetboss Scavenger

    "07:00": "gather.rate dispenser * 5",
    "07:00": "gather.rate pickup * 5",
    "20:00": "gather.rate dispenser * 10",
    "20:00": "gather.rate pickup * 10"

    not working, plugin just run SAY command

    i fix that changed time

    "07:01": "gather.rate dispenser * 5",
    "07:02": "gather.rate pickup * 5",
    "20:01": "gather.rate dispenser * 10",
    "20:02": "gather.rate pickup * 10"
     
    Last edited: Feb 8, 2017
  6. yannick10012

    yannick10012 Wood Hoarder

    Is it also possible to state something else than "SERVER" when using the say command?
     
  7. GnRLies

    GnRLies Scavenger

  8. yannick10012

    yannick10012 Wood Hoarder

  9. Dimmus

    Dimmus Wood Hoarder

    after today update:
    Code (Text):
    01:30 [Error] Error while compiling TimedExecute.cs(93,20): error CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected
     
  10. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You're using a very old version. This plugin is universal, you've been using the old Rust-specific version. All you'd do is update.
     
    Dimmus likes this.
  11. fleetboss

    fleetboss Scavenger

    Pain, sometimes commands not working. Can u fix that?
    I make some solution (add more same commands another time, but i cant add more message commands in chat)
    Code (Text):
        "07:00": "say Gather rates descrease to х5",
        "07:01": "gather.rate dispenser * 5",
        "07:02": "gather.rate pickup * 5",
        "07:04": "gather.rate dispenser * 5",
        "07:08": "gather.rate pickup * 5",
        "20:00": "say Gather rates increase to х10!",
        "20:01": "gather.rate dispenser * 10",
        "20:02": "gather.rate pickup * 10",
        "20:04": "gather.rate dispenser * 10",
        "20:08": "gather.rate pickup * 10"
     
  12. GnRLies

    GnRLies Scavenger

    Yes the in-game timer isn't working 100% and he's working on fixing it he said.
     
  13. Mraweshumsauce

    Mraweshumsauce Scavenger

    When will this be fixed? I haven't been able to restart my server automatically for a while :[
     
  14. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    What in-game timer?

    What is wrong with it? It should have nothing that changed, it uses standard C# code, not anything Rust-specific.
     
  15. Mraweshumsauce

    Mraweshumsauce Scavenger

    No Idea, All I know is that it hasn't worked ever since... 2 updates ago give or take
    --- Double Post Merged, Feb 17, 2017 ---
    Not sure if this is the problem, But this is the restart config I copied off somewhere
    Code (Text):
    {
      "ConfigCode": "1",
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 hours!'",
          "seconds": 350
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 4 hours!'",
          "seconds": 3600
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 3 hours!'",
          "seconds": 7200
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 2 hours!'",
          "seconds": 10800
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 1 hour!'",
          "seconds": 14400
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 30 minutes!'",
          "seconds": 16200
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 15 minutes!'",
          "seconds": 17100
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 minutes!'",
          "seconds": 17700
        },
        {
          "command": "server.save",
          "seconds": 17998
        },
        {
          "command": "say 'Server is Restarting <color=red>NOW</color>!!!'",
          "seconds": 17999
        },
        {
          "command": "restart",
          "seconds": 18000
        },
        {
          "command": "reset.oncetimer",
          "seconds": 18001
        }
      ],
      "RepeaterCommands": [
        {
          "command": "server.save",
          "seconds": 300
        }
      ]
    }
     
  16. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That doesn't appear to be a valid config. See the Overview for the default example.
     
  17. Mraweshumsauce

    Mraweshumsauce Scavenger

    Thank you for your input, But where am I to find another restart script? I've sadly searched everywhere
     
  18. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Perhaps look into the Smooth Restarter plugin?
     
  19. Mraweshumsauce

    Mraweshumsauce Scavenger

    Alrighty, Thank you for the help. Ill hopefully have a server restarting again soon
     
  20. Mr Reklezz

    Mr Reklezz Naked Wanderer

    How would I use this to enable and disable PVE in Rust? I would like to PVE to start at 0800 and end at 2100. I would also like to broadcast the message "PVE Has Started" & "PVE Has Ended".