Rust-Kits

Moved

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

4.96216/5, 185 likes
  1. overview resistance ;)
    [DOUBLEPOST=1442150256][/DOUBLEPOST]new kits tutorial
     
  2. I can't download the plugin

    "The requested attachment could not be found."
     
  3. trying to upload it but it seems to bug at the moment
     
  4. Reneb updated Kits with a new update entry:

    3.0.3

     
  5. So I cant use these commands any more
    Code:
    /kit add "autokit" "This is the autokit" -authlevel2
    /kit add "daily" "Daily resources for being so devoted" -cooldown86400
    /kit add "starter" "Help to get started, usable twice at 1hour interval" -max2 -cooldown3600
    /kit add "sniper" "Help for them raids, usable twice at 1hour interval" -max2 -cooldown3600
    /kit add "hunter" "Help to hunt them beasts, usable twice at 1hour interval" -max2 -cooldown3600
    /kit add "blueprints" "Couple blueprints to help you start" -max1
    /kit add donatorreward "Donator reward" -donator -max1
     
  6. It's work, I can download.
     
  7. now it would be:
    for starter:
    /kit add "starter"
    /kit items description "Help to get started, usable twice at 1hour interval" max 2 cooldown 3600

    for donator:
    /kit add donatorreward
    /kit description "Donator reward" permission donator max 1 items
     
  8. Ok I will try thx

    Before I start doing this is this ok
    Code:
    /kit add "autokit"
    /kit items description "This is the autokit" authlevel 2/kit add "daily"
    /kit items description "Daily resources for being so devoted" cooldown 86400/kit add "starter"
    /kit items description "Help to get started, usable twice at 1hour interval" max 2 cooldown 3600/kit add "sniper"
    /kit items description "Help for them raids, usable twice at 1hour interval" max 2 cooldown 3600/kit add "hunter"
    /kit items description "Help to hunt them beasts, usable twice at 1hour interval" max 2 cooldown 3600/kit add "blueprints"
    /kit items description "Couple blueprints to help you start" max 1/kit add donatorreward
    /kit description "Donator reward" permission donator max 1 items/kit add "vip"
    /kit items description "VIP reward" permission vip max 1 items/kit add "moderator"
    /kit items description "Moderator Kit" authlevel 1/kit add "admin"
    /kit items description "Admin Kit" authlevel 2
    
    Also is there a way to remove an old kit when they get a new one
     
    Last edited by a moderator: Sep 13, 2015
  9. Dont put the - And keep spaces between the option And the value
    Like i showed you

    And No you cant sorry
     
  10. Hi Reneb, I get the following error after adding a kit and then reloading the plugin.

    Code:
    > oxide.reload Kits
    [Oxide] 3:18 PM [Info] Unloaded plugin Kits v3.0.3 by Reneb
    [Oxide] 3:18 PM [Info] Loaded plugin Kits v3.0.3 by Reneb
    [Oxide] 3:19 PM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 3:19 PM [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 (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    I added a daily kit with the following lines;

    Code:
    /kit add "daily"
    then,
    /kit items description "Daily resource kit" hide false cooldown 86400
    The plugin started to error after completing that command. It failed to take items from inventory too. I can see the kit via /kit list but not via /kit.
     
  11. you most likely downloaded the kit from version 3.0.0 or 3.0.1?
    if so do: /kit resetdata
     
  12. I have the same problem with the daily kit. Using 3.0.3. Oddly enough, works on my local server but not my live server.

    Edit: get error with any kit on live server or even just the /kit command.
     
  13. Just edit the file in the data folder and change it to true if you are having problems
    "hide": "true",
    I done mine ok, but done the command after I added the kit it worked for me
     
  14. reset all kits and data before making new kits. it possible that there is an incompatibility with the old kits plugin that tries to use the old datas.
     
  15. Just did a fresh install, deleted every trace of the old kit plugin. Installed new, created a quick test kit. Still get following error with any /kit command.

    Code:
    [Oxide] 11:04 AM [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.0.3' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 11:04 AM [Debug]   at Oxide.Plugins.Kits.GetData (.BasePlayer player, System.String kitname, System.String dataname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.CanRedeemKit (.BasePlayer player, System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.TryGiveKit (.BasePlayer player, System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
    Edit: I just decided to do a full restart, worked for me. :\ Thanks.
     
    Last edited by a moderator: Sep 13, 2015
  16. May be a very dumb question but I need to ask. This doesn't affect using the give plugin to give kits via console does it? I use that in a plugin of my own.
     
  17. no it shouldnt.
     
  18. I removed it but ik for a fact i did (redid it like 10 timed) /kit add 50 "donor" -cooldown40000 -50