Magic Loot

Simple components multiplier & loot system

Total Downloads: 13,477 - First Release: Nov 13, 2016 - Last Update: Nov 2, 2017

5/5, 44 likes
  1. Must be the config, thanks man!
     
  2. @Wulf So, I'm trying to get my server to drop x100 loot and for some reason they're now getting 250k items no matter what it is...any ideas?
     
  3. When you regenerate configuration I'm almost certain it regenerates the data file, reset values in MagicLoot.json.

    Also I'm not Wulf :p
     
  4. This is my .json right now. the (2) is the data file.


    I'm not sure what I'm doing wrong here, but my 100x has turned into basically a 1,000,000x within a couple seconds and that's not exactly a good thing, lol...
     

    Attached Files:

  5. Because each item in the data file is set to 1000000... which is the max to drop.

    Like I said, set the minimum to something smart.
     
  6. AmountMin is sat to 1 in the config. Is it Items Min I wanna set to 1?
     
  7. As I've said repeatedly you need to change the values from 1000000 to a reasonable amount in the data file. The way it works is it'll randomize from AmountMin to that number in the data file.

    So it's spawning items with a value of 1 to 1000000.
     
  8. @Norn Ok got it! Alright, so things are dropping 100x as needed, but now we're having the issue of barrels/crates only drop one item per break. Here's the config setup:

    {
    "Components": {
    "list": [
    "bleach",
    "ducttape",
    "gears",
    "glue",
    "metalblade",
    "metalpipe",
    "propanetank",
    "riflebody",
    "roadsigns",
    "rope",
    "semibody",
    "sewingkit",
    "sheetmetal",
    "smgbody",
    "metalspring",
    "sticks",
    "tarp",
    "techparts"
    ]
    },
    "Developer": {
    "AmountChange": true,
    "Debug": false,
    "ExtraItem": true,
    "Skins": true
    },
    "Exclude": {
    "list": [
    "supply.signal",
    "ammo.rocket.smoke",
    "explosive.timed",
    "explosive.satchel"
    ]
    },
    "ExcludeFromMultiplication": {
    "list": [
    "explosive.timed",
    "explosive.satchel",
    ]
    },
    "Loot": {
    "AmountMin": 25,
    "Enabled": true,
    "ItemsMax": 6,
    "ItemsMin": 3,
    "PreventDuplicates": false,
    "WorkshopSkins": true
    },
    "Settings": {
    "Multiplier": 1,
    "MultiplierComponents": 100,
    "MultiplyOnlyComponents": false
    }
    }




    *Brown/Blue Barrels only drop 1 item, Food/Crude/Crates drop 6 or more.
     
    Last edited by a moderator: Feb 3, 2017
  9. I don't think you even bothered reading this thread before you posted here.
     
  10. Hey I'm still unable to run this plugin. I'm getting this error in the console on running it:
    Code:
    23:58 [Error] Failed to initialize plugin 'MagicLoot v0.1.7' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    If it helps to solve the problem - when i went to look in the log files this was also included:
    Code:
    23:58 [Stacktrace]   at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.Where[ItemDefinition] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    23:58 [Info] No previous version to rollback plugin: MagicLoot
    And lastly this is in the compiler if it helps at all:
    Code:
    [SERVER v1.0.24] Console: MagicLoot.cs(70,30): warning CS0414: The private field `Oxide.Plugins.MagicLoot.ItemList' is assigned but its value is never used
    
    I've downloaded everything fresh and have even tried the server without any other modes to no success.
    pls help
     
  11. Trying to get this set to drop a minimum of 4 random different items in each barrel/crate etc. Have min set to 4 max to 8 and it is only giving me 100 of a single item..... What am I missing? Thanks!

    {
    "Components": {
    "list": [
    "bleach",
    "ducttape",
    "gears",
    "glue",
    "metalblade",
    "metalpipe",
    "propanetank",
    "riflebody",
    "roadsigns",
    "rope",
    "semibody",
    "sewingkit",
    "sheetmetal",
    "smgbody",
    "metalspring",
    "sticks",
    "tarp",
    "techparts"
    ]
    },
    "Developer": {
    "AmountChange": false,
    "Debug": false,
    "ExtraItem": false,
    "Skins": false
    },
    "Exclude": {
    "list": [
    "supply.signal",
    "ammo.rocket.smoke"
    ]
    },
    "ExcludeFromMultiplication": {
    "list": [
    "crude.oil"
    ]
    },
    "Loot": {
    "AmountMin": 1,
    "Enabled": true,
    "ItemsMax": 8,
    "ItemsMin": 4,
    "PreventDuplicates": false,
    "WorkshopSkins": true
    },
    "Settings": {
    "Multiplier": 10,
    "MultiplierComponents": 100,
    "MultiplyOnlyComponents": false
    }
    }
     
    Last edited by a moderator: Feb 3, 2017
  12. I think the upper Limit doesn't really work. The only way is to set the limits in the 'MagicLoot.jason file. In the new version, the limits are ok i think.
    Code:
    {
      "ItemList": {
      "rifle.ak": 1,
      "ammo.handmade.shell": 64,
      "ammo.pistol": 128,
      "ammo.pistol.fire": 128,
      "ammo.pistol.hv": 128,
      "ammo.rifle": 128,
      "ammo.rifle.explosive": 128,
      "ammo.rifle.incendiary": 128,
      "ammo.rifle.hv": 128,
      "ammo.rocket.basic": 3,
      "ammo.rocket.fire": 3,
      "ammo.rocket.hv": 3,
      "ammo.rocket.smoke": 3,
      "ammo.shotgun": 64,
      "ammo.shotgun.slug": 32,
      "antiradpills": 10,
      "apple": 10,
      "apple.spoiled": 1,
      "arrow.hv": 64,
      "arrow.wooden": 64,
      "autoturret": 1,
      "axe.salvaged": 1,
      "bandage": 3,
      "barricade.concrete": 10,
      "barricade.metal": 1,
      "barricade.sandbags": 10,
      "barricade.stone": 10,
      "barricade.wood": 1,
      "barricade.woodwire": 1,
      "battery.small": 1,
      "trap.bear": 1,
      "bed": 1,
      "black.raspberries": 1,
      "bleach": 20,
      "blood": 1000,
      "blueberries": 20,
      "blueprintbase": 1000,
      "rifle.bolt": 1,
      "bone.club": 1,
      "bone.fragments": 1000,
      "botabag": 1,
      "bow.hunting": 1,
      "box.wooden.large": 1,
      "box.wooden": 1,
      "bucket.water": 1,
      "building.planner": 1,
      "burlap.shirt": 1,
      "burlap.shoes": 1,
      "cactusflesh": 10,
      "tool.camera": 1,
      "campfire": 1,
      "can.beans": 10,
      "can.beans.empty": 10,
      "can.tuna": 10,
      "can.tuna.empty": 10,
      "candycane": 1,
      "cctv.camera": 1,
      "ceilinglight": 1,
      "charcoal": 1000,
      "chicken.burned": 20,
      "chicken.cooked": 20,
      "chicken.raw": 20,
      "chicken.spoiled": 20,
      "chocholate": 10,
      "cloth": 1000,
      "coal": 1,
      "corn": 1,
      "clone.corn": 1,
      "seed.corn": 50,
      "crossbow": 1,
      "crude.oil": 500,
      "cupboard.tool": 1,
      "door.double.hinged.metal": 1,
      "door.double.hinged.toptier": 1,
      "door.double.hinged.wood": 1,
      "door.hinged.metal": 1,
      "door.hinged.toptier": 1,
      "door.hinged.wood": 1,
      "door.key": 1,
      "ducttape": 20,
      "explosive.satchel": 10,
      "explosive.timed": 10,
      "explosives": 100,
      "fat.animal": 1000,
      "fish.cooked": 20,
      "fish.raw": 20,
      "flamethrower": 1,
      "flameturret": 1,
      "flare": 1,
      "weapon.mod.flashlight": 1,
      "floor.grill": 1,
      "floor.ladder.hatch": 1,
      "lowgradefuel": 500,
      "furnace": 1,
      "furnace.large": 1,
      "gates.external.high.stone": 1,
      "gates.external.high.wood": 1,
      "gears": 20,
      "generator.wind.scrap": 1,
      "burlap.gloves": 1,
      "glue": 10,
      "granolabar": 10,
      "grenade.beancan": 5,
      "grenade.f1": 5,
      "fun.guitar": 1,
      "gunpowder": 1000,
      "attire.hide.helterneck": 1,
      "hammer": 1,
      "hammer.salvaged": 1,
      "hat.beenie": 1,
      "hat.boonie": 1,
      "bucket.helmet": 1,
      "burlap.headwrap": 1,
      "hat.candle": 1,
      "hat.cap": 1,
      "coffeecan.helmet": 1,
      "deer.skull.mask": 1,
      "hat.miner": 1,
      "riot.helmet": 1,
      "hat.wolf": 1,
      "hatchet": 1,
      "hazmat.boots": 1,
      "hazmat.gloves": 1,
      "hazmat.helmet": 1,
      "hazmat.jacket": 1,
      "hazmat.pants": 1,
      "hazmatsuit": 1,
      "clone.hemp": 1,
      "seed.hemp": 50,
      "attire.hide.boots": 1,
      "attire.hide.skirt": 1,
      "attire.hide.vest": 1,
      "weapon.mod.holosight": 1,
      "hoodie": 1,
      "hq.metal.ore": 1000,
      "humanmeat.burned": 20,
      "humanmeat.cooked": 20,
      "humanmeat.raw": 20,
      "humanmeat.spoiled": 20,
      "icepick.salvaged": 1,
      "bone.armor.suit": 1,
      "jacket.snow": 1,
      "jacket": 1,
      "jackolantern.angry": 1,
      "jackolantern.happy": 1,
      "knife.bone": 1,
      "ladder.wooden.wall": 1,
      "trap.landmine": 5,
      "lantern": 1,
      "largemedkit": 1,
      "weapon.mod.lasersight": 1,
      "leather": 1000,
      "lock.code": 1,
      "lock.key": 1,
      "longsword": 1,
      "rifle.lr300": 1,
      "lmg.m249": 1,
      "pistol.m92": 1,
      "mace": 1,
      "machete": 1,
      "map": 1,
      "mask.balaclava": 1,
      "mask.bandana": 1,
      "metal.facemask": 1,
      "bearmeat.burned": 20,
      "bearmeat.cooked": 20,
      "bearmeat": 20,
      "meat.pork.burned": 20,
      "meat.pork.cooked": 20,
      "meat.boar": 20,
      "wolfmeat.burned": 20,
      "wolfmeat.cooked": 20,
      "wolfmeat.raw": 20,
      "wolfmeat.spoiled": 20,
      "metal.fragments": 1000,
      "metal.ore": 1000,
      "metal.plate.torso": 1,
      "metal.refined": 100,
      "metalblade": 20,
      "metalpipe": 20,
      "mining.pumpjack": 1,
      "mining.quarry": 1,
      "fish.minnows": 10,
      "smg.mp5": 1,
      "mushroom": 10,
      "weapon.mod.muzzleboost": 1,
      "weapon.mod.muzzlebrake": 1,
      "note": 1,
      "burlap.trousers": 1,
      "pants": 1,
      "attire.hide.pants": 1,
      "roadsign.kilt": 1,
      "pants.shorts": 1,
      "paper": 1000,
      "pickaxe": 1,
      "pistol.eoka": 1,
      "pistol.revolver": 1,
      "pistol.semiauto": 1,
      "planter.large": 1,
      "planter.small": 1,
      "attire.hide.poncho": 1,
      "pookie.bear": 1,
      "xmas.present.large": 1,
      "xmas.present.medium": 5,
      "xmas.present.small": 10,
      "propanetank": 5,
      "pumpkin": 1,
      "clone.pumpkin": 1,
      "seed.pumpkin": 50,
      "pistol.python": 1,
      "target.reactive": 1,
      "box.repair.bench": 1,
      "research.table": 1,
      "researchpaper": 1000,
      "riflebody": 10,
      "roadsign.jacket": 1,
      "roadsigns": 20,
      "rock": 1,
      "rocket.launcher": 1,
      "rope": 50,
      "water.salt": 2147483647,
      "salvaged.cleaver": 1,
      "salvaged.sword": 1,
      "santahat": 1,
      "weapon.mod.small.scope": 1,
      "rifle.semiauto": 1,
      "semibody": 10,
      "sewingkit": 20,
      "sheetmetal": 20,
      "shelves": 10,
      "shirt.collared": 1,
      "shirt.tanktop": 1,
      "shoes.boots": 1,
      "shotgun.double": 1,
      "shotgun.pump": 1,
      "shotgun.waterpipe": 1,
      "shutter.metal.embrasure.a": 20,
      "shutter.metal.embrasure.b": 20,
      "shutter.wood.a": 20,
      "sign.hanging.banner.large": 1,
      "sign.hanging": 1,
      "sign.hanging.ornate": 1,
      "sign.pictureframe.landscape": 1,
      "sign.pictureframe.portrait": 1,
      "sign.pictureframe.tall": 1,
      "sign.pictureframe.xl": 1,
      "sign.pictureframe.xxl": 1,
      "sign.pole.banner.large": 1,
      "sign.post.double": 1,
      "sign.post.single": 1,
      "sign.post.town": 1,
      "sign.post.town.roof": 1,
      "sign.wooden.huge": 1,
      "sign.wooden.large": 1,
      "sign.wooden.medium": 1,
      "sign.wooden.small": 1,
      "weapon.mod.silencer": 1,
      "skull.human": 1,
      "skull.wolf": 1,
      "sleepingbag": 1,
      "small.oil.refinery": 1,
      "stash.small": 1,
      "fish.troutsmall": 10,
      "smallwaterbottle": 1,
      "smg.2": 1,
      "smgbody": 10,
      "spear.stone": 1,
      "spear.wooden": 1,
      "spikes.floor": 1,
      "metalspring": 20,
      "sticks": 100,
      "stocking.large": 1,
      "stocking.small": 5,
      "stone.pickaxe": 1,
      "stonehatchet": 1,
      "stones": 1000,
      "sulfur": 1000,
      "sulfur.ore": 1000,
      "supply.signal": 1,
      "surveycharge": 10,
      "fishtrap.small": 1,
      "syringe.medical": 2,
      "targeting.computer": 1,
      "tarp": 20,
      "techparts": 50,
      "smg.thompson": 1,
      "torch": 1,
      "tshirt": 1,
      "tshirt.long": 1,
      "tunalight": 1,
      "wall.external.high.stone": 10,
      "wall.external.high": 10,
      "wall.frame.cell.gate": 1,
      "wall.frame.cell": 1,
      "wall.frame.fence.gate": 1,
      "wall.frame.fence": 1,
      "wall.frame.shopfront": 1,
      "wall.window.bars.metal": 10,
      "wall.window.bars.toptier": 10,
      "wall.window.bars.wood": 10,
      "water": 2147483647,
      "water.catcher.large": 1,
      "water.catcher.small": 1,
      "water.barrel": 1,
      "waterjug": 1,
      "water.purifier": 1,
      "wood": 1000,
      "wood.armor.jacket": 1,
      "wood.armor.pants": 1
      }
    }
     
    Last edited by a moderator: Feb 3, 2017
  13. Hi there...just updated MagicLoot super plugin..and getting this on console:

    Loaded plugin MagicLoot v0.1.8 by Norn

    [MagicLoot] Loaded 303 item limits from /data/MagicLoot.json

    Failed to initialize plugin 'MagicLoot v0.1.8' (NullReferenceException: Object reference not set to an instance of an object)

    Unloaded plugin MagicLoot v0.1.8 by Norn

    No previous version to rollback plugin: MagicLoot

    Any idea?
     
  14. i remove the mod to it getting fix i like the mod but 100k items is not good for players :)
     
  15. doesnt wanna load the data or config file
     
  16. the pluging give me 2000 rifle bodys but then it has a rockets off 900mil how do i fix that
     
  17. SOLVED
     
    Last edited by a moderator: Feb 6, 2017
  18. Error:
    Code:
    [02/06/2017 19:20:15] Failed to initialize plugin 'MagicLoot v0.1.8' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    
    When trying to launch server (never used the plugin before).
     
  19. Is it just me or does the extra loot not aply to other barrels than Oil, and only to crates that aint in radtowns - i can't get it to work on normal barrels and rad towns, any ideas ?
     
  20. Hey, somethings not right with my file i think.

    This is how the magicloot.json looks for me.

    {
    "Developer": {
    "AmountChange": false,
    "Debug": false,
    "ExtraItem": false,
    "Skins": false
    },
    "exclude": {
    "list": [
    "supply.signal",
    "ammo.rocket.smoke"
    ]
    },
    "Loot": {
    "AmountMin": 1,
    "Enabled": true,
    "ItemsMax": 3,
    "ItemsMin": 1,
    "PreventDuplicates": false,
    "WorkshopSkins": true
    },
    "Settings": {
    "Multiplier": 1
    }
    }

    Is this right? As from what I've read here it should be like this:

    {
    "Components": {
    "list": [
    "bleach",
    "ducttape",
    "gears",
    "glue",
    "metalblade",
    "metalpipe",
    "propanetank",
    "riflebody",
    "roadsigns",
    "rope",
    "semibody",
    "sewingkit",
    "sheetmetal",
    "smgbody",
    "metalspring",
    "sticks",
    "tarp",
    "techparts"
    ]
    },
    "Developer": {
    "AmountChange": false,
    "Debug": false,
    "ExtraItem": false,
    "Skins": false
    },
    "Exclude": {
    "list": [
    "supply.signal",
    "ammo.rocket.smoke"
    ]
    },
    "ExcludeFromMultiplication": {
    "list": [
    "crude.oil"
    ]
    },
    "Loot": {
    "AmountMin": 1,
    "Enabled": true,
    "ItemsMax": 3,
    "ItemsMin": 1,
    "PreventDuplicates": false,
    "WorkshopSkins": true
    },
    "Settings": {
    "Multiplier": 1,
    "MultiplierComponents": 1,
    "MultiplyOnlyComponents": false
    }
    }

    Do I have to add it to the file?
    Does the addon work with Better Loot?
    If not, Im going to chose this one so components are dropping.
     
    Last edited by a moderator: Feb 7, 2017