Rust Giveaways

Discussion in 'Plugin Requests' started by ThePhoenix, Dec 5, 2016.

  1. I want a plugin that after every 10mins or so server time not player time the server hands out wood or metal frags to everyone in their inventory. Should be a simple script
     
  2. tried that didn't work
    [DOUBLEPOST=1480905351][/DOUBLEPOST]U
    I tried doing that but I failed to make it work could you give me the code?
     
  3. The Timed Execute | Oxide plugin might be a better one for what you need
    Code:
    "TimerRepeat": {
        "server.save": 300,
        "giveall Wood 1000": 600
     
    Last edited by a moderator: Dec 5, 2016
  4. Thanks I downloaded it but having a problem now with getting the time execute to be turned on. I checked the config file and by default its enabled but when I checked the console during restart it said that all of the time executes are Off. How can I fix it?
     
  5. upload your config will add the info for you
     
  6. Code:
    {
      "EnabledRealTime-Timer": true,
      "EnableTimerOnce": true,
      "EnableTimerRepeat": true,
      "RealTime-Timer": {
      },
      "TimerOnce": {
      },
      "TimerRepeat": {
        “server.save”: 300,
        “giveall wood 1000”: 30  }
    }
     
  7. Try this
    Code:
    {
      "EnabledRealTime-Timer": false,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": true,
      "RealTime-Timer": { 
      },
      "TimerOnce": {    
      },
      "TimerRepeat": {
        "server.save": 300,
        "giveall Wood 1000": 600
      }
    }
    Once you upload this reload the plugin if you cant get this to work I will send the config in a pm to you

    If the above does not work try
    Code:
    {
      "EnabledRealTime-Timer": false,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": true,
      "RealTime-Timer": {  
      },
      "TimerOnce": {     
      },
      "TimerRepeat": {
        "server.save": 300,
        "server.giveall Wood 1000": 600
      }
    }
     
    Last edited by a moderator: Dec 5, 2016
  8. I got it to work... However, it says wood 1000 is an invalid item
    [DOUBLEPOST=1480911176][/DOUBLEPOST][12/04/2016 22:17:07] Invalid Item!
    [12/04/2016 22:17:07] [Oxide] 22:17 [Info] [Timed Execute] ran CMD: giveall || ARGS: wood 1000
     
  9. W needs to be higher case
     
  10. [12/04/2016 23:14:29] Invalid Item!
    [12/04/2016 23:14:29] [Oxide] 23:14 [Info] [Timed Execute] ran CMD: giveall || ARGS: Wood 1000
    [DOUBLEPOST=1480914654][/DOUBLEPOST]
    Still didn't work unfortunately
     
  11. change "server.giveall Wood 1000": 600
    to
    "server.giveall Wood" 1000: 600

    Would be my suggestion
     
  12. Bad suggestion it will fuck the json encode
    He should try to use item number instead of name
     
  13. Tried that still got invalid item
     
  14. did you try something like that ?
    Code:
    "server.giveall 'wood' 1000": 1000
     
  15. Yes. and it broke the code. We figured out that putting ammo.rifle worked, however, when we added a value to how much ammo it should give us it stopped working. So we think its because the code thinks the quantity of the item isn't apart of the argument.
    [DOUBLEPOST=1480958397][/DOUBLEPOST]Or it can only take one argument.
    Code:
    Puts(string.Format("ran CMD: {0} || ARGS: {1}", SplitCommand(cmd.Key).Key, string.Join(" ", SplitCommand(cmd.Key).Value)));
     
  16. "server.giveall 'wood 1000'": 1000

    here you go
     
  17. ??
    "server.giveall 'wood 1000'": 1000
     
  18. Simple quote + double

    "server.giveall 'Wood 1000'"
     
  19. already tried that still won't work