Timed Execute

Execute commands every (x) seconds.

Total Downloads: 3,214 - First Release: May 29, 2016 - Last Update: Jun 5, 2017

5/5, 16 likes
  1. why is it not working ?

    {
    "EnabledRealTime-Timer": true,
    "EnableTimerOnce": true,
    "EnableTimerRepeat": true,
    "RealTime-Timer": {
    "16:00:00": "supply.call",
    "16:30:00": "command2 arg",
    "17:00:00": "command3 arg",
    "18:00:00": "command4 arg"
    },
    "TimerOnce": {
    "command1 'msg'": 60,
    "command2 'msg'": 120,
    "command3 arg": 180,
    "command4 arg": 181
    },
    "TimerRepeat": {
    "command1 arg": 300,
    "command2 'msg'": 300
    }
    }
     
  2. Because you have done nothing to the config its up to you to put in the info you want what's in there is meant to be removed and replaced with your own stuff if you took the time to read the overview and other posts you would of seen that
    and removing "EnableInGameTime-Timer": true, will just cause an error
     
  3. Wulf

    Wulf Community Admin

  4. will not be shown

    "RealTime-Timer": {
    "16:00:00": "command1 arg",
    "18:00:00": "command1 arg",
    "18:00:30": "command1 arg",
    "18:14:00": "popupmsg.global test message",
    "22:00:00": "say Its Zombie Time!",
    "22:00:30": "murders.spawn"
     
  5. Wulf

    Wulf Community Admin

    Try:

    "18:14:00": "popupmsg.global \"test message\"",
     
  6. having a dumb moment here im trying to set a plugin to reload at certain times but i cannot get the command to work this is what im putting in is this where am i going wrong ?


    "16:35:00": "oxide.reload pluginname",
     
  7. Hi. Like proceed if I want to run every 30 minutes, twice the same command but with only 3 seconds intervals between them please ? Thx (up)
     
  8. why no work :

    "09:00": "heli.call",
     
  9. Wulf

    Wulf Community Admin

    Because heli.call is a client-side command, not a server command.
     
  10. Is it possible to randomize which line of command it takes from it's config file... under for example InGameTime-Timer?
     
  11. need reload/load plugin in real time... help pls

    doesn’t work
    Code:
     "EnableRealTime-Timer": true,
     "RealTime-Timer": {
        "12:00:00": "o.unload TruePVE",
        "13:00:00": "o.load TruePVE",
        "15:00:00": "o.unload TruePVE",
        "16:00:00": "o.load TruePVE",
        "18:00:00": "o.unload TruePVE",
        "19:00:00": "o.load TruePVE",
        "21:00:00": "o.unload TruePVE",
        "22:00:00": "o.load TruePVE",
        "00:00:00": "o.unload TruePVE",
        "01:00:00": "o.load TruePVE",
        "03:00:00": "o.unload TruePVE",
        "04:00:00": "o.load TruePVE",
        "06:00:00": "o.unload TruePVE",
        "07:00:00": "o.load TruePVE",
        "09:00:00": "o.unload TruePVE",
        "10:00:00": "o.load TruePVE"
      },
    Code:
    "RealTime-Timer": {
        "6:01:00": "save",
        "6:02:00": "say PVE",
        "6:05:00": "restart 2"
    },
    working
    Code:
    "TimerOnce": {
        "o.unload TruePVE": 60,
        "o.load TruePVE": 120,
        "say PVE": 120,
        "save": 120,
        "reset.timeronce": 180
    },
     
    Last edited by a moderator: Feb 1, 2018
  12. There used to be a plugin named Timed Execute... anyone have a working version? Wulf, do you have it?
     
  13. Wulf

    Wulf Community Admin

    It is universal, merged your thread here.
     
  14. Thanks Wulf!
    [DOUBLEPOST=1517549358][/DOUBLEPOST]According to the Oxide log, everything is working (see below). However, the messages aren't appearing in Hurtworld... any advice would be welcomed. Yes, I will be changing the bac-to-back-to-back Welcome message :)

    21:08 [Info] [Timed Execute] The RealTime timer has started
    21:08 [Info] [Timed Execute] The Repeat timer has started
    21:08 [Info] [Timed Execute] The Timer-Once timer has started
    21:09 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
    21:10 [Info] [Timed Execute] ran CMD: say <color=#00ff00>The Purge is in effect for</color> 50 more minutes.
    21:10 [Info] [Timed Execute] ran CMD: say <color=red>The Purge Event begins every 12 hours.</color>
    21:11 [Info] [Timed Execute] ran CMD: say <color=red> If you die during The Purge you lose EVERYTHING you're carrying.</color>
    21:11 [Info] [Timed Execute] The Timer-Once timer has started
    21:11 [Info] [Timed Execute] ran CMD: reset.timeronce
    21:12 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
    21:13 [Info] [Timed Execute] ran CMD: say <color=red>The Purge Event begins every 12 hours.</color>
    21:14 [Info] [Timed Execute] ran CMD: say <color=red> If you die during The Purge you lose EVERYTHING you're carrying.</color>
    21:14 [Info] [Timed Execute] The Timer-Once timer has started
    21:14 [Info] [Timed Execute] ran CMD: reset.timeronce
    21:15 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
    21:16 [Info] [Timed Execute] ran CMD: say <color=red>The Purge Event begins every 12 hours.</color>
    21:16 [Info] [Timed Execute] ran CMD: say <color=yellow>Type /kit in chat for some freebies.</color>
    21:17 [Info] [Timed Execute] ran CMD: say <color=red> If you die during The Purge you lose EVERYTHING you're carrying.</color>
    21:17 [Info] [Timed Execute] The Timer-Once timer has started
    21:17 [Info] [Timed Execute] ran CMD: reset.timeronce
    21:18 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
    21:19 [Info] [Timed Execute] ran CMD: say <color=red>The Purge Event begins every 12 hours.</color>
    21:20 [Info] [Timed Execute] ran CMD: say <color=#00ff00>The Purge is in effect for</color> 40 more minutes.
    21:20 [Info] [Timed Execute] ran CMD: say <color=red> If you die during The Purge you lose EVERYTHING you're carrying.</color>
    21:20 [Info] [Timed Execute] The Timer-Once timer has started
    21:20 [Info] [Timed Execute] ran CMD: reset.timeronce
    21:21 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
    21:22 [Info] [Timed Execute] ran CMD: say <color=red>The Purge Event begins every 12 hours.</color>
    21:23 [Info] [Timed Execute] ran CMD: say <color=red> If you die during The Purge you lose EVERYTHING you're carrying.</color>
    21:23 [Info] [Timed Execute] The Timer-Once timer has started
    21:23 [Info] [Timed Execute] ran CMD: reset.timeronce
    21:24 [Info] [Timed Execute] ran CMD: say <color=blue>Welcome to Purge Gamers!</color></color>
     

    Attached Files:

    Last edited by a moderator: Feb 2, 2018
  15. I think I've figured it out with rcon adminmessage instead of 'say'. Testing now.
     
  16. test this please
     

    Attached Files:

  17. Testing in a moment... may I asked what you changed?
     
  18. Use notepad++ compare to see
     
  19. It didn't work. I edited file some more (see attached). @Wulf I'd really appreciate your ninja skilled eyes taking a look :)

    There are no errors in the log... shows to be processing correctly.
    [DOUBLEPOST=1517622373][/DOUBLEPOST]Instead of putting log file, here are latest entries:

    17:29 [Info] [Timed Execute] The Timer-Once timer has started
    17:29 [Info] [Timed Execute] ran CMD: reset.timeronce
    17:30 [Info] [Timed Execute] ran CMD: say <color=#00ff00>Welcome to Purge Gamers</color>
    17:31 [Info] [Timed Execute] ran CMD: say <color=blue>Be mindful that this server has a 1 hour Purge Event that begins every 12-hours</color>
    17:32 [Info] [Timed Execute] ran CMD: say <color=yellow>If you die during The Purge you lose EVERYTHING you are carrying </color>
    17:43 [Info] [Timed Execute] ran CMD: say <color=yellow>Type /kit in chat for some freebies
     

    Attached Files: