Rust-Kits

Moved

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

4.96216/5, 185 likes
  1. No difference :/
     
  2. Wulf

    Wulf Community Admin

    Pretty sure both are valid, the ! is never advertised or used by many though.

    That's the only solution, so if it still isn't working, then you aren't set as owner yet. Make sure you follow all the steps in that thread, and logout and back in.
     
  3. Fixed it for him @Wulf he was not an admin only a mod
     
  4. Can anyone tell me the process for creating a one time welcome kit?
    I have created a kit that can be called via "/kit WelcomePack" which only has one MaxUse, but looking at the AutoKit function it looks like i can generate this for my players without the need for them to run the command? is it possible?
    Otherwise i'll have to add a message/advert in notifier which is a bit silly.

    EXCELLENT mod! many thanks for all your hard work on this!
     
  5. You can use the autokit the name wont be seen by players so you can leave it has it is just set the max to 1
     
  6. so i'm running the following:
    /kit add "autokit"
    /kit items max 1 cooldown false description "This is the Welcome/Starter kit" hide true

    thanks
     
  7. /kit add "autokit"
    /kit items description "This is the autokit" authlevel 2
    /kit hide true
    /kit max 1
    run each with a new line
     

  8. The "/kit max 1" isnt taking affect (although there is a confirmation when i run the command that it's ok).
    If i kill myself and respawn i get all the kit back. i need this to be a one time kit that never gets applied again.

    thanks again
     
  9. Is this the first time you have had kits in your server
    You can try the below
    /kit resetkits
    /kit resetdata

    Then remake the kit
    /kit add "welcomepack"
    /kit items description "This is the WelcomePack"
    /kit max 1

    Players can get them now when they join

    You can also make this one to test first
    /kit add "welcomepack"
    /kit items description "This is the WelcomePack" authlevel 2
    /kit max 1
    if it does not auto give it after you have relogged then use the first one above. Make sure you remove all items on you before you relog

    use this command first to delete the kit
    /kit resetkits
    /kit resetdata
     
    Last edited by a moderator: Apr 4, 2016
  10. i've setup reward kits and managed to create a normal kit as you just exampled. which works when the player is issuing the
    "/kit welcomepack" command and then they only get access to the one kit.
    i'm tying to configure it so it's auto given to them (like the autokit) but only does this once.

    before testing this all i downloaded the latest version(after deleting all previous files/folders).


    i just tried again and both of those two methods have the same result (they act like normal kits that you need to manually claim)
    [DOUBLEPOST=1459809279][/DOUBLEPOST]
    OK, so, in the kits.cs file, the autokit function doesn't seem to actually run any validation check against the kits.max variable

    Code:
            void OnPlayerRespawned(BasePlayer player)
            {
                if (!storedData.Kits.ContainsKey("autokit")) return;
                var thereturn = Interface.Oxide.CallHook("canRedeemKit", player);
                if (thereturn == null)
                {
                    player.inventory.Strip();
                    GiveKit(player, "autokit");
                }
            }
    i'm really not strong with this language but it seems as if it's checking a kit called "autokit" exists, and if it finds it - it deletes everything in the players inventory and then gives him all the items. Again, i'm not hot with this stuff at all but i'd imagine there would first need to be a validation check to compare the player's kit.max count(x) for the "autokit" verses the maximum allowed set for the autokit(y), if the value(x) is > the allowed amount (y) then it fails with the required error message. if it passes the validation, then the player's kit.max count(x) gets an increment of 1 .

    had a quick skip through the rest of the code and the validation is there for a normal kit redeem but the autokit function seems to bypass it all?

    or is this all done in the var thereturn = Interface.Oxide.CallHook("canRedeemKit", player); line? if so, it's not working :/

    Also, i don't know if it matters, but the Kits_Data.json file remains empty with only a "[]" in there. if i create a regular kit, then that get populated with data; both the autokit set and the newly created regular kit set. Editing the max value(within the Kits_Data.json file) on the regular kit section affects the kit allocation/availability, but editing the autokit section max value has no affect.
     
    Last edited by a moderator: Apr 5, 2016
  11. I'm having a bit of issues with the Kit request coding because I'm a lot more familiar with RoK's but it's a lot different. I'd like a kit list under the following names..
    • Starter Kit
    • Donator Tier 1
    • Donator Tier 2
    • Donator Tier 3
    If you've got some old but reasonable kits you'd like to add, please help me out and just drop them below in the comments. I'd also like to know were under I'd place them.. I know I sound noobie but It's a learning curve for me but everything else I'm come across is fine. Thanks for reading :D
     
  12. Hey guys, I've had kits for a while and pretty much had a Blank GUI that was given by someone on here.
    Im useless when it comes to this i dont understand it at all.

    I just want a GUI where people can pick 4 options (hunter/builder/bandit/gatherer)

    Bankit - revolver/pipe shotrun ammo/gun powder
    builder - building plan/hammer/wood/lock/sleeping bag
    Gatherer - stone hatchet/stone pickaxe/cloth
    Hunter - spear/bow/ arrows.

    I have no idea how to do it, been trying to research and trial and error for about a week. If anyone could help it would be much appreciated.
     
  13. In your kits config you put it like this here is mine below will give you a idea how it works
    Code:
    {
      "NPC - GUI Kits": {
        "0": {
          "description": "Welcome on this server, Here is a list of free kits that you can get <color=red>only once each</color>\n\n                      <color=green>Enjoy your stay</color>",
          "kits": [
            "admin",
            "sniper",
            "hunter",
            "elite",
            "moderator",
            "vip"
          ]
        },
        "8753201223": {
          "description": "<color=red>VIPs Kits</color>",
          "kits": [
            "kit1",
            "kit3"
          ]
        }
      }
    }
    If you dont know how to make a kit look at my post on page 107
     
  14. Hey Resistance, thank you very very much for the quick reply, im very grateful.
    It worked i just checked the oxide/date-Kits.json and yeah it think i got it now.

    Again thank you for quick response.

    p.s to add items and eg. do i just change and edit these ?


    "sniper": {
    "name": "sniper",
    "description": "Help for them raids, usable twice at 1hour interval",
    "max": 0,
    "cooldown": 3600.0,
    "authlevel": 0,
    "hide": false,
    "npconly": false,
    "permission": null,
    "image": "http://cdn.akamai.steamstatic.com/s.../90ae5f49c7f2416b7eef3d55dde9f7fc6bb0ce80.jpg",
    "items": [
    {
    "itemid": 106433500,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": 2107229499,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": -864578046,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": -2128719593,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": -1595790889,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": -288010497,
    "bp": false,
    "skinid": 0,
    "container": "wear",
    "amount": 1
    },
    {
    "itemid": 815896488,
    "bp": false,
    "skinid": 0,
    "container": "main",
    "amount": 100
    },
    {
    "itemid": -55660037,
    "bp": false,
    "skinid": 0,
    "container": "belt",
    "amount": 1
    },
    {
    "itemid": 586484018,
    "bp": false,
    "skinid": 0,
    "container": "belt",
    "amount": 3
    },
    {
    "itemid": -789202811,
    "bp": false,
    "skinid": 0,
    "container": "belt",
    "amount": 2
    },
    {
    "itemid": -337261910,
    "bp": false,
    "skinid": 0,
    "container": "belt",
    "amount": 3
    }
    ]
    },
    [DOUBLEPOST=1459934347,1459925216][/DOUBLEPOST]Ok, sorry but im about to come an annoying person who asks you lots of questions. I uploaded the Kits, then upload a json cfg to the data folder.
    When i type /kit in game it comes up with "hunter" "elite" "moderator" "vip". How do i edit those and add my own picture.
     
  15. You dont use the config I posted edit your own so it has your own kit names in there if you upload your file from data folder and your config I will edit it for you if you dont know how. And edit kit files from in game commands
     
  16. After i've made the kit and it confirms me that it worked, i try to redeem it and it says "Kit Redeemed". But the items are not in my inventory, i can also not set any max usage of the kit or a cooldown. I've deleted the kits.cs file in the plugin folder, the two kits files in the data folder and the one in the config, even downloaded the kits.cs again and placed it again in the plugin folder (several times), still no change...any1 who can help?
     
  17. Follow my post on page 107
    You only made the kit names but not the items in the kit
     
  18. i figured it out already, but thx anyways! :) do you know by any chance which page explains the donator kits? cheers
     
  19. my post on page 107 as I said above
     
  20. So everything worked just fine, thx again! At least for a few hours.. After the automatic server restart the kits disapeared except for one kit. And now, whatever i do, for example: /kit add starter
    /kit items description "This is the Welcome/Starter kit" hide true max 3 cooldown 3600, is not working either. nothing is working anymore. i've replaced everything, used /kit resetkits etc.. but nothing works anymore.. and my notifier gets overwritten every server start aswell. i have no idea what to do, it drives me crazy! do you have advise?:)