Rust-Kits

Moved

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

4.96216/5, 185 likes
  1. Hallo leute mal ne frage kann mir bitte wer weiter Helfen bin Schon am verzweifeln Würde mich echt Über hielfe freuen und Zwar ich bräuchte nen Starterkit Pays Welche Funktioniert da This Nicht bei mir Funktioniert.
    Danke im Vorraus

    PS: ts45.nitrad.net:13700
     
  2. English?
     
  3. i wonder about a thing i have change some setting added bolt action rifle and some other stuff . but it only load original script why is this :) ?? nice mod bye the way :)
     
  4. You delete "kits.json" from folder "config"?
     
  5. and did you reload the plugin?
     
  6. yes i did :/

    PLUGIN.Name = "kits"
    PLUGIN.Title = "Kits"
    PLUGIN.Version = V(0, 2, 1)
    PLUGIN.Description = "Kits"
    PLUGIN.Author = "Reneb"
    PLUGIN.HasConfig = true

    function PLUGIN:Init()

    self:LoadSavedData()
    command.AddChatCommand( "kit",self.Object, "cmdKit" )
    end
    function PLUGIN:InitializeTable()
    self.Table = {}
    local itemlist = global.ItemManager.GetItemDefinitions();
    local it = itemlist:GetEnumerator()
    while (it:MoveNext()) do
    local correctname = string.lower(it.Current.displayname)
    self.Table[correctname] = tostring(it.Current.shortname)
    end
    end
    function PLUGIN:LoadDefaultConfig()
    self.Config.Kits = {
    ["starter"] = {
    description = "infinite kit",
    main = {
    { name = "Foundation", amount = 1 },
    { name = "Stone Hatchet", amount = 1 }
    },
    wear = {
    { name = "Coffee Can Helmet", amount = 1 },
    { name = "Burlap Shirt", amount = 1 },
    { name = "Hazmat Gloves", amount = 1 },
    { name = "Burlap Pants", amount = 1 },
    { name = "Hazmat Boots", amount = 1 }
    },
    belt = {
    { name = "Sleepingbag", amount = 1 },
    { name = "Large Medkit", amount = 5 }
    }
    },
    ["dayly"] = {
    cooldown = 86400,
    main = {
    { name = "Foundation", amount = 1 },
    { name = "Pistol Bullet", amount = 250 }
    },
    wear = {
    { name = "Hazmat Helmet", amount = 1 },
    { name = "Hazmat Jacket", amount = 1 },
    { name = "Hazmat Gloves", amount = 1 },
    { name = "Burlap Pants", amount = 1 },
    { name = "Burlap Shoes", amount = 1 }
    },
    belt = {
    { name = "Revolver", amount = 1 },
    { name = "Large Medkit", amount = 5 }
    }
    },
    ["twice"] = {
    max = 2,
    description = "Only 2 kits",
    main = {
    { name = "Foundation", amount = 1 },
    { name = "Pistol Bullet", amount = 10 }
    },
    wear = {
    { name = "Hazmat Helmet", amount = 1 },
    { name = "Hazmat Jacket", amount = 1 },
    { name = "Hazmat Gloves", amount = 1 },
    { name = "Burlap Pants", amount = 1 },
    { name = "Burlap Shoes", amount = 1 }
    },
    belt = {
    { name = "Revolver", amount = 1 },
    { name = "Large Medkit", amount = 5 }
    }
    },
    ["moderator"] = {
    moderator = true,
    description = "for moderators",
    main = {
    { name = "Foundation", amount = 1 },
    { name = "Pistol Bullet", amount = 250 }
    },
    wear = {
    { name = "Hazmat Helmet", amount = 1 },
    { name = "Hazmat Jacket", amount = 1 },
    { name = "Hazmat Gloves", amount = 1 },
    { name = "Hazmat Pants", amount = 1 },
    { name = "Hazmat Boots", amount = 1 }
    },
    belt = {
    { name = "Revolver", amount = 1 },
    { name = "Large Medkit", amount = 5 }
    }
    },
    ["admin"] = {
    admin = true,
    description = "for admins",
    main = {
    { name = "Stone Hatchet", amount = 1 },
    { name = "5.56 Rifle Cartridge", amount = 250 }
    },
    wear = {
    { name = "Hazmat Helmet", amount = 1 },
    { name = "Hazmat Jacket", amount = 1 },
    { name = "Hazmat Gloves", amount = 1 },
    { name = "Hazmat Pants", amount = 1 },
    { name = "Hazmat Boots", amount = 1 }
    },
    belt = {
    { name = "Bolt Action Rifle", amount = 1 },
    { name = "Large Medkit", amount = 5 }
    }
    }
    }
    self.Config.Messages = {
    KitList = "Avaible Kits",
    NoKitAvaible = "You have no avaible kits",
    ErrorKit = "This kit doesn't exist",
    NoKitLeft = "You don't have any kits left for this kit",
    NoPermissionKit = "You don't have enough permissions to use this kit",
    CoolDown = "This kit is still in cooldown",
    HelpMessage = "/kit - to get the list of kits"

    }
    self.Config.AuthLevel = 1
    end
     
  7. Wtf xD? Why did you edit the plugin xD? Edit the configs Man! Editing the plugin is the best way to fuck it :p
     
  8. lol[DOUBLEPOST=1414602533][/DOUBLEPOST]sorry thanx :p
     
  9. Just an FYI! I know u said can't get to anything till tomorrow, but here's this.

    Code:
    [Oxide] 9:45 PM [Error] kits: [string "kits.lua"]:243: attempt to index global 'KitData' (a nil value)
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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
     
  10. Still hélps ;) thanks!
     
  11. This is my Config,please help me to set it up. I do not issue sets,writes that we need to choose a set and sets no. Help please.

    {
    "starter":
    {
    "message": "Starter kit redeemed, good luck!",
    "items":
    [
    "Stone Hatchet",
    "Cloth Pants",
    { "name": "Cooked Chicken Breast", "amount": 10 },
    "Wood Shelter"
    ]
    },
    "hatchet":
    {
    "message": "It's dangerous to go alone! Take this.",
    "max": 1,
    "items":
    [
    "Hatchet"
    ]
    }
    }
     
  12. This part is good: { "name": "Cooked Chicken Breast", "amount": 10 },
    The rest is not :p
    You need to pût the name and amount for all of them, éven if amount is 1
     
  13. Cooked Chicken Breast? In Exp?
     
  14. yeah nm, ... he just make something for legacy XD
    this plugin isn't for legacy --'
     
  15. Hi Reneb, Can you please show me how to remove everything from the config file so the only thing in there is the starter kit please.

    I tried and I think I messed it up:

    Code:
    {
      "Messages": {
        "ErrorKit": "This kit doesn't exist",
        "HelpMessage": "/kit - to get the list of kits",
        "NoPermissionKit": "You don't have enough permissions to use this kit",
        "KitList": "Available Kits",
        "CoolDown": "This kit is still in cooldown",
        "NoKitLeft": "You don't have any kits left for this kit",
        "NoKitAvaible": "You have no available kits"
      },
      "AuthLevel": 1,
      "Kits": {
        "starter": {
          "belt": [
            {
              "name": "wood",
              "amount": 30
            },
            {
              "name": "bandage",
              "amount": 5
            }
          ],
          "cooldown": 86400,
          "wear": [
            {
              "name": "hazmat_helmet",
              "amount": 1
            },
            {
              "name": "hazmat_jacket",
              "amount": 1
            },
            {
              "name": "hazmat_gloves",
              "amount": 1
            },
            {
              "name": "hazmat_pants",
              "amount": 1
            },
            {
              "name": "hazmat_boots",
              "amount": 1
            }
          ],
          "main": [
            {
              "name": "cloth",
              "amount": 10
            },
            {
              "name": "chicken_raw",
              "amount": 10
            }
          ]
        }
      }
    }
     
  16. hmm dunno everything seems fine oO
     
  17. Hi @Reneb

    Suggestion, I think it could be a good idea to add self.Config.AvailableItem and put the list of available item name in it so when users edit the config they have a list of usable items...

    just my 2 cents ;)
     
  18. just wondering where i can find a list of all items available to spawn to players?
     
  19. Or open your craft list ingame :X