Rust-Kits

Moved

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

4.96216/5, 185 likes
  1. Is this possible, to auto redeem a kit on respawn? Thanks.
     
  2. its the permissions that does that just follow the post I linked and it will go without a problem the name can only been seen by admins
     
  3. ok have a question i have my kits made, trying to use npcs to give kits they are all set up i can see the kits but when i click redeem i get this in console
    (19:20:50) | [Oxide] 6:20 PM [Error] Failed to call hook 'cmdConsoleKitGui' on plugin 'Kits v3.0.6' (NullReferenceException: Object reference not set to an instance of an object)
    any clue on what is causing this?
    [DOUBLEPOST=1444697714][/DOUBLEPOST]
    I figured it out some reason the npcopnly "true", dont work if i set it to null, it works in the npc and the / command
     
  4. I can make 1 kit, visible and claimable... but when I make the second kit and want to see the list I get the following error (I still see the first kit though):

    [Oxide] 1:46 AM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.6' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 1:46 AM [Debug] at Oxide.Plugins.Kits.GetData (.BasePlayer player, System.String kitname, System.String dataname) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.CanSeeKit (.BasePlayer player, System.String kitname, Boolean fromNPC, System.String& reason) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0

    When wanting to claim the kit I get the same error, if I try make a new kit with the same name it tells me the kit already exist.
     
  5. What name and if you can post the command you are using for the 2nd kit
     
  6. Tested with calling it fragments or bp fragments. I can also delete them afterwards, just not see nor claim them, despite using the same commands as for the first kit.

    Using /kit add /kit description /kit cooldown /kit items
     
  7. Follow this post and it will go without any errors
    Kits | Page 71 | Oxide

    If you are using the name of your kit as fragments or bp fragments make sure it is inside "" and no spaces like bp fragments so either use "bpfragments" or "fragments"
     
  8. Actually I can't use the name fragments or bp fragments, it have to be specific those you listed from that post, otherwise the cmdChatKit error occour. Tested it with several other names also, same result.
     
  9. Worked for me so until I see all the commands and the way you are doing it its hard to help with your problem
     
  10. Dunno why, plugin don't want compile since restart for me...
     

    Attached Files:

    • kits.jpg
      kits.jpg
      File size:
      171.1 KB
      Views:
      39
  11. Done it the way I posted earlier, done it the way you posted from that post.

    I got starter and blueprints added to the list... now however I'm getting the same issue with the daily kit - not showing on the list (be noted I can remove the kit as it recognise it as being there) and giving me the following error when using /kit to see the whole list of kits:

    [Oxide] 12:52 AM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.6' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 12:52 AM [Debug] at Oxide.Plugins.Kits.GetData (.BasePlayer player, System.String kitname, System.String dataname) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.CanSeeKit (.BasePlayer player, System.String kitname, Boolean fromNPC, System.String& reason) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  12. You are removing all items from your char after you make a kit before you add the next kit?
    pm me your skype info so i can watch what you are doing see if i can help
     
  13. Found my problem, lot of config files were like that, don't know if a player hacked our files or something.

    corrupt.jpg
     
  14. Yep I remove all the items as each kit I want to use have different items, so only leaving the exact items the kit need to have.

    Example, making daily kit (only have some wood, stones, metal fragments and some hqm... nothing else, not even any clothes on).

    I type:
    /kit add "daily"

    It gives me:
    You've created a new kit:daily

    along all the commands to edit it.

    I type:
    /kit items description "Daily resources for being so devoted" cooldown 86400

    It gives me:
    The items was copied from your inventory
    description set to Daily resources for being so devoted
    cooldown set to 86400

    But whenever I type /kit or /kit daily (for claiming it) I don't get the daily kit listed - only the other I have and for both listing and for claiming I furthermore get the error.

    Exact same way I did for the working starter and blueprints kit.
    [DOUBLEPOST=1444866921][/DOUBLEPOST]on a side note I can even see it, with no errors, when I use the admin command /kit list
     
  15. The best thing you can do is stop server delete all files for the kit ie in the plugin folder, config folder, and data folder install the kit script again start the server once you login to server start recording everything you do then send me a link so I can watch it or pm me your Skype name so I can watch while you are doing it this is the fastest way to help you as I need to see what you are doing wrong. If you don't want to do either I can send you my already made file and you can use that
     
  16. How do you remove /kit permission ? I did set /kit permission autokit. But now i want to remove it.
     
  17. /kit edit "KITNAME"
     
  18. [DOUBLEPOST=1444904358][/DOUBLEPOST]I dit work it out :) thanks
     
    Last edited by a moderator: Oct 15, 2015