Kits

Allow players to redeem sets of items

Total Downloads: 3,378 - First Release: May 15, 2015 - Last Update: May 18, 2015

5/5, 19 likes
  1. Mughisi submitted a new resource:

    Kits - Allow players to redeem sets of items.

    Read more about this resource...
     
  2. nice work
     
  3. Permission admin dont work on my Server.
    I dont have the permission say "kits" but im in group admin on the Permission.cfg
     
  4. Could you send me your kits config file and your permission.cfg file so I could have a look? (You post it here in a reply or pm it to me if you prefer that)
     
  5. nice work as always Mughisi mate and looks good but cant add any kits in game. Maybe due to not having the latest Oxide installed
    [DOUBLEPOST=1431707346][/DOUBLEPOST]Sorted now. Works great.
     
  6. What was your problem?
     
  7. i was being silly mate. I was adding " " marks around my starter kit names I wanted to create
     
  8. i cant add items to my kits says, The Item # does not exist. Check /itemlist for a list of available items
     
  9. What are you entering as command?
     
  10. Im getting this error at server start:

    Code:
    4:47 PM [Error] Failed to call hook 'Loaded' on plugin 'Kits' (NullReferenceException: Object reference not set to an instance of an object)
    4:47 PM [Debug]   at Oxide.Plugins.Kits.ValidateData () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.LoadKitsData () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.Loaded () [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 
    Any idea what am I doing wrong?
     
  11. Did you manually add kits to the datafile or is this on the first time loading?
     
  12. Im getting this error when adding kits. the first 3 worked then the command did not work and this error message appeared on the log.

    i did no change to any config file just used this command: /kit add "4" "Drink n Food" -permission admin -inventory
    as i said kit 1-3 worked with the same command
    Code:
    10:25 PM [Error] Failed to call hook 'KitCommand' on plugin 'Kits' (NullReferenceException: Object reference not set to an instance of an object)
    10:25 PM [Debug]   at Oxide.Plugins.Kits.<AddKit>m__0 (.InvGameItemStack item) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[InvGameItemStack,Oxide.Plugins.Kits+KitItem].MoveNext () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.AddKit (CodeHatch.Engine.Networking.Player player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.KitCommand (CodeHatch.Engine.Networking.Player 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 
     
  13. You still happen to have the items in your inventory? Seems that there was an issue when looping over the items you had in your inventory. Did you add the other 3 kits with the -inventory flag as well?
     
  14. No Ive only added kits via command but even with a clean install of the mod and the plugin I still get the error when the server loads.
    [DOUBLEPOST=1431721838][/DOUBLEPOST]btw, the plugins works great there´s only this little error when server loads.
     
  15. yeah i added all with the inventory flag. i found that if i wait a few minutes the same command works. i just added for 4th kit...
     
  16. Interesting, I'll have to look into that.
    Is everything saving correctly to the datafile then if it throws that error every time?
     
  17. Everything seems to work fine, it saves correctly. The error shows up only ONE time when the server starts.
     
  18. /kit modify (kitname) additem (number of the item ) (amount).
     
  19. You need to use the name of the item :) I could look into adding items by using the number at some point.
     
  20. Well I actually started using the name I type /kit modify StarterKit additem "Fluffy Bed" "1" said item not exist