This is just an example but another person told me that one of 3 chests contain MP5:
Code:"JunkSpawnList": { "min": 1, "max": 3, "oneofeach": false, "nodupes": false, "packages": { "0": { "min": 1, "max": 1, "weight": 10, "object": "FoodList" }, "1": { "min": 20, "max": 30, "weight": 10, "object": "Cloth" }, "2": { "min": 1, "max": 1, "weight": 10, "object": "Flare" }, "3": { "min": 1, "max": 1, "weight": 5, "object": "ToolList" }, "4": { "min": 20, "max": 60, "weight": 10, "object": "Sulfur" }, "5": { "min": 20, "max": 50, "weight": 6, "object": "Gunpowder" }, "6": { "min": 20, "max": 50, "weight": 5, "object": "Wood" }, "7": { "min": 20, "max": 30, "weight": 6, "object": "Metal Fragments" }, "8": { "min": 2, "max": 5, "weight": 10, "object": "Paper" }, "9": { "min": 1, "max": 1, "weight": 2, "object": "ResearchKitList" }, "10": { "min": 1, "max": 1, "weight": 10, "object": "MetalBuildingList" }, "11": { "min": 1, "max": 1, "weight": 7, "object": "AmmoSpawnList" }, "12": { "min": 2, "max": 2, "weight": 7, "object": "RadSuitList" }, "13": { "min": 1, "max": 1, "weight": 1, "object": "BlueprintLootList" }, "14": { "min": 1, "max": 1, "weight": 1, "object": "MP5A4" } } },
Loot Spawn Lists [Unmaintained]
Discussion in 'Plugin Support' started by thomasfn, Jan 6, 2014.
-
If you give 5 packages a weight of 20, which means each item has a 20% chance to drop, is there a possibility to have no drop at all because of the % chance drop?
-
Min: 1 to Max: 3
this means that in the Boxes has a change to drop 1 or max 3 items in it!
If they box decide to drop a MP5 it has a 1% change due to the Weight set to 1
and al the weight together = 100![DOUBLEPOST=1390314662][/DOUBLEPOST] -
Mcello
I know - the 3 boxes was an example that when I use the above code for junkboxes MP5 spawn rate is 33%
That's the feedback from my players. -
Attached Files:
-
-
Code:
ERROR: Lua error (lootspawnlists:): [string "C:\games\rust\alpha-oxide\256050\plugins\loot..."]:89: bad argument #1 to 'pairs' (table expected, got nil) ERROR: 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
http://p.nixc.us/yoto.rb
the first is the error in console, the link is the copy of my loot tables, which are modified versions of the official ones...
not sure why this is throwing an error, i assumed "89: Bad Arguement" meant line 89.....but line 89 is a "}" -
http://jsonlint.com/
they show you where you messed up like i show now to you -
nice, didnt know about this tool thank you!
-
While I agree that a simple tool whereby you could feed it a droplist, and it'd show a visual representation of drops out of 100 or 1000 would be handy, probability weighting seems to be the most granular and powerful way to represent comparative dropchances. -
I believe we should get a Topic going where people are willing to post their own Loot Configurations.
-
Basically the only weapon-related items you can research and craft which aren't on your list when you start, are Shotgun Shells and 556 Ammo.
With this list, zombies have about a 0.3% chance of dropping a factory-grade gun, same chance for 1 C4 or 1-3 grenades, or a supply signal. We'll be resetting our server sometime soon, as our testing so far has indicated that we need to make metal doorways, weapon mods and kevlar parts uncraftable as well, to maintain a long-term balance (harder to make an unraidable base, or to keep stock of end-game items) - but those are tweaks elsewhere, and this droplist has proven pretty fantastic.
Btw, since Paper no longer has an in-game use, we made it uncraftable and rare, and we use it as 'contestant entry' into our unique server eventsYou can probably just remove it if you want to use this list elsewhere.
Feedback is welcome; I'm here to learn just like you guys
- Aussie FairGame [RareC4&Guns] Loot List: http://pastebin.com/uuesL5Fq
-
-
-
-
Or perhaps some things like metal pillars and windows can be craftable but not the rest (with windows they'll still need the other 100 frags for the bars to make it secure)... Hmm I'll have to think on it a bit. Thanks for the insight -
blueprints aren't listed as items on rust wiki .do i have to create a blueprint spawn list for make them spawn or it's generate automatically??
(sorry for my english i'm french)
-
-
-
Basing on Gliktch loot tables (thanks man!) I've made a bit modified mine
http://pastebin.com/0ZNxJPET -