Rust-Kits

Moved

Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018

4.96216/5, 185 likes
  1. Hi,

    Just have an question if this is something you can change, on math calculation after redeem - "You need to wait x seconds"
    Insted, Could you change the "You need to wait X seconds", so it can be hour, then minutes, insted of seconds, when the player tries to redeem the kit again?
    mutch easier to the players :)

    This code:

    Code:
    if (kit.cooldown > 0)
                {
                    var ct = CurrentTime();
                    if (kitData.cooldown > ct && kitData.cooldown != 0.0)
                        return $"You need to wait {Math.Abs(Math.Ceiling(kitData.cooldown - ct))} seconds to use this kit";
                }
    Thanks
     
  2. How can make a kit redeemed every 30 days once per player?
     
  3. Put the cooldown to 2592000 its the amounth of seconds for 30 days.

    So if you do this:

    1) Empty your inventory
    2) Add in your inventory the kit that you want players to have
    3) use /kit add "kitname"
    4) set the options via: /kit option1 value1 option2 value2 etc
    ex:
    /kit items max 1 cooldown 2592000 description "description here"
     
  4. I have a little Problem...I have create a kit "Steamgroup" with permission "kits.steamgroup"...

    But ingame (im owner of the Server but set as default) i can reedem the kit without having kits.steamgroup permission ?

    here my Kits.json

    Code:
    {
      "Kits": {
        "starter": {
          "name": "starter",
          "description": "Every hour kit, max usage: 10",
          "max": 10,
          "cooldown": 3600.0,
          "authlevel": 0,
          "xpamount": 0,
          "hide": false,
          "npconly": false,
          "permission": "kits.false",
          "image": null,
          "building": null,
          "items": [
            {
              "itemid": 698310895,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -770311783,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 1253290621,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -139769801,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -2043730634,
              "container": "main",
              "amount": 5,
              "skinid": 0,
              "weapon": false,
              "mods": []
            }
          ]
        },
        "autokit": {
          "name": "autokit",
          "description": null,
          "max": 0,
          "cooldown": 0.0,
          "authlevel": 0,
          "xpamount": 0,
          "hide": true,
          "npconly": false,
          "permission": null,
          "image": null,
          "building": null,
          "items": [
            {
              "itemid": 3506021,
              "container": "belt",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 110547964,
              "container": "belt",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -1289478934,
              "container": "belt",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -1127699509,
              "container": "belt",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            }
          ]
        },
        "steam": {
          "name": "steam",
          "description": "Steam Group Kit",
          "max": 1,
          "cooldown": 0.0,
          "authlevel": 0,
          "xpamount": 0,
          "hide": false,
          "npconly": false,
          "permission": "kits.steamgroup",
          "image": null,
          "building": null,
          "items": [
            {
              "itemid": -1732316031,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 563023711,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 3655341,
              "container": "main",
              "amount": 10000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -892070738,
              "container": "main",
              "amount": 5000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 889398893,
              "container": "main",
              "amount": 3000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -1059362949,
              "container": "main",
              "amount": 3000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 548699316,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": true,
              "mods": []
            },
            {
              "itemid": -1716193401,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": true,
              "mods": []
            },
            {
              "itemid": -465236267,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 1213686767,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -141135377,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 815896488,
              "container": "main",
              "amount": 1000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -533875561,
              "container": "main",
              "amount": 1000,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 640562379,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 271534758,
              "container": "main",
              "amount": 1,
              "skinid": 0,
              "weapon": false,
              "mods": []
            }
          ]
        }
      }
    }
     
  5. Please help, I seem to have broken my kits file, removed some from the middle of the data file, everything seems fine but when i reload, no kits, I add a test kit, it shows up, it creates a new file with just the new test kit in it, I go to edit, If I try paste back in a few of the old ones in between, it works, but then when I paste all of the ones back in, I'm back to no kits showing on /kit, I figure there's an error in there somewhere but I can't find it, JSON validator just gives false positives.
     

    Attached Files:

  6. I have modded it, try my file.

    Dont forget to change it to json File :)
     

    Attached Files:

  7. YOU BEAUTIFUL BUGGER! E-KISS! THANKYOU

    Please tell me what was wrong, I looked all over the file. I figure it was just a missing bracket somewhere.
     
  8. Sry i dont know what was wrong... I checked the File with Online Json Validator and at the End i correct the [ { Fails. :)
     
  9. YEh I looked at that but couldn't work out which ones it wanted changed.
     
  10. when i try to do a building the building is pasted through the floor (i have auto height set to true)
     
  11. Copy it again looking at the front middle foundation. The paste. If it still goes through the floor use height 1 or height 2
     
  12. Thanks!!
     
  13. I cant get the plugin in to work for me :S i add the plugin but when i try to add a kit it says "you don't have that permission"
    and i tried to do "oxide.grant user "myname" kit add but that is not a permisson?????
     
  14. Did you make a custom permissions?
    If you installed the plugin correctly and you are an admin, you dont need to add permission to create the kits.
    Only if you made a custom permissions.

    I didnt add any permissions, I just created the kits as described on the overview and it worked for me.
     
  15. I am the owned of the server. do i need to do anything specific to be and "admin" cus i can edit any other plugin exept that one
     
  16. Did you test the other plugins ingame to see if you are an admin?
    You dont need to grant yourself permission. Just simply create the kits.
     
  17. i can configure all gather rate and such ingame. i dont know what else i need to do to see if i am checked off as an admin.
    but i cant do anything with the kits plugin
     
  18. Ok so what command are you trying to do aside from granting yourself permission?
    It can also be that you need to run steam update, update the oxide mod, restart the server and try the kit commands without granting yourself permission.
     
  19. i am trying to create kits using /kit add but it just says i dont have permission
    and the server is updated so is steam
     
  20. It sounded like you are not an admin at all.
    Are you using Rusty Rcon Tool? and added yourself as the owner?

    Im using that one and did the:

    ownerid StemID "Missy"

    After that I did the server.writecfg to save it.

    If nothing works maybe delete the kit plugin and reinstall it back.
    Just remember to remove the json file too.

    And remember to update the oxide mod itself