Jump to content

Extra NPC loot.

Pending 2.8.4

Mortis
Mortis

Posted

So, I run a PVE server, and every NPC have holds a ID card that the player can sell for money in the shop.
Easy NPC's get id cards that are less valuable than the ID cards harder NPC's hold.

in the config the NPC holds loot and it will pick an item from the lootpool depending how many items the config states.
Since the ID card should always spawn in the loot and it can pick from multiple id cards, i cannot place the ID cards in the excisting lootpool, but it needs to have a separate lootpool.

Since I am not that great with config files in general when it comes to 'adding' code to it, I have tried following my own logic and I came up with this:

   

{
      "Preset Name": "biker_spas12_easy",
      "Name": "Hunter",
      "Health": 125.0,
      "Kit": "",
      "Wear items": [
        {
          "ShortName": "hoodie",
          "skinID (0 - default)": 961066582
        },
        {
          "ShortName": "pants",
          "skinID (0 - default)": 961084105
        },
        {
          "ShortName": "shoes.boots",
          "skinID (0 - default)": 961096730
        },
        {
          "ShortName": "burlap.gloves",
          "skinID (0 - default)": 961103399
        },
        {
          "ShortName": "hat.beenie",
          "skinID (0 - default)": 594202145
        }
      ],
      "Belt items": [
        {
          "ShortName": "shotgun.spas12",
          "Amount": 1,
          "skinID (0 - default)": 0,
          "Mods": [
            "weapon.mod.flashlight"
          ],
          "Ammo": ""
        }
      ],
      "Speed": 5.0,
      "Roam Range": 10.0,
      "Chase Range": 110.0,
      "Attack Range Multiplier": 1.0,
      "Sense Range": 60.0,
      "Memory duration [sec.]": 10.0,
      "Scale damage": 0.8,
      "Aim Cone Scale": 1.0,
      "Detect the target only in the NPC's viewing vision cone?": false,
      "Vision Cone": 135.0,
      "Turret damage scale": 1.0,
      "Disable radio effects? [true/false]": false,
      "Should remove the corpse?": true,
      "Own loot table": {
        "Allow the AlphaLoot plugin to spawn items in this crate": false,
        "The name of the loot preset for AlphaLoot": "",
        "Allow the CustomLoot plugin to spawn items in this crate": false,
        "Allow the Loot Table Stacksize GUI plugin to spawn items in this crate": false,
        "Clear the standard content of the crate": true,
        "Setting up loot from the loot table": {
          "Enable spawn loot from prefabs": false,
          "List of prefabs (one is randomly selected)": [
            {
              "Prefab displayName": "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab",
              "Minimum Loot multiplier": 1,
              "Maximum Loot multiplier": 1
            }
          ]
        },
        "Enable spawn of items from the list": true,
        "Minimum numbers of items": 2,
        "Maximum numbers of items": 4,
        "List of items": [
          {
            "ShortName": "ammo.shotgun",
            "Minimum": 15,
            "Maximum": 30,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          },
          {
            "ShortName": "ammo.shotgun.slug",
            "Minimum": 15,
            "Maximum": 30,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          },
          {
            "ShortName": "ammo.rifle",
            "Minimum": 60,
            "Maximum": 80,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          },
          {
            "ShortName": "ammo.pistol.fire",
            "Minimum": 60,
            "Maximum": 80,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          },
          {
            "ShortName": "ammo.pistol",
            "Minimum": 60,
            "Maximum": 80,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          },
          {
            "ShortName": "ammo.shotgun.fire",
            "Minimum": 15,
            "Maximum": 30,
            "Chance [0.0-100.0]": 5.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": "",
            "List of genomes": []
          }
        },
        "Enable spawn of items from the list": true,
        "Minimum numbers of items": 1,
        "Maximum numbers of items": 1,
        "List of items": [
          {
            "ShortName": "greenidtag",
            "Minimum": 1,
            "Maximum": 1,
            "Chance [0.0-100.0]": 50.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": ""
          },
          {
            "ShortName": "lavenderidtag",
            "Minimum": 1,
            "Maximum": 1,
            "Chance [0.0-100.0]": 50.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": ""
          },
          {
            "ShortName": "grayidtag",
            "Minimum": 1,
            "Maximum": 1,
            "Chance [0.0-100.0]": 50.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": ""
          },
          {
            "ShortName": "blueidtag",
            "Minimum": 1,
            "Maximum": 1,
            "Chance [0.0-100.0]": 50.0,
            "Is this a blueprint? [true/false]": false,
            "SkinID (0 - default)": 0,
            "Name (empty - default)": ""
          }
        ]
      }
    },

It doesn't sit well with the plugin, :D, so i guess my question is what is wrong with it? I've also included the complete config file for reference.

Thanks.

Convoyeditted with idcards.json

2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

137.3k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.