Jump to content

Min or Max ItemPerChest doesnt work

Not a Bug 2.0.5 2.0.5

NewTimes96
NewTimes96

Posted

Hello there,

i want each chest to have more loot inside , i made the loot table under the settings changed for GREEN to have min 2 and max 4 but it never spawns more than 2. Also on other chests when i did min 4 max 8, keep spawning 1. Did i miss something to do ?

NewTimes96

Posted

Also how to make the NPC profiler or add NPC guards to a box, thanks 

NewTimes96

Posted

Fixed the iteom spawning ,

how to add NPCs to guard? 

copcopekcro

Posted

52 minutes ago, NewTimes96 said:

Also how to make the NPC profiler or add NPC guards to a box, thanks 

You need to have NpcSpawn plugin ,free plugin .
You have in config NPCProfiles , there you can create new profiles , change them (what weapon , hp and so on )
In map config :
"NPC profiles what will guard chest": [
        {
          "Profile Name": "EasyGuard",
          "Amount": 5
        }
      ],
here you chose what profile will spawn , and how many bots , you can add more profiles .
"NPC profiles what will guard chest": [
        {
          "Profile Name": "EasyGuard",
          "Amount": 5
        },

        {
          "Profile Name": "Custom",
          "Amount": 10
        },
      ],

copcopekcro

Posted

1 hour ago, NewTimes96 said:

Hello there,

i want each chest to have more loot inside , i made the loot table under the settings changed for GREEN to have min 2 and max 4 but it never spawns more than 2. Also on other chests when i did min 4 max 8, keep spawning 1. Did i miss something to do ?

Well if you put min max 2 - 4  , only thing is that you need to have 4 different items in loot table ... 

NewTimes96

Posted

I figured out the spawning turns out i mistook a meaning

When i did EasyGuard nothing happened. Do i need to create an NPC preset somewhere EasyGuard

NewTimes96

Posted

If i can avoid creating presets can i spawn game npc like scientistnpc_full_pistol? 

copcopekcro

Posted

7 minutes ago, NewTimes96 said:

I figured out the spawning turns out i mistook a meaning

When i did EasyGuard nothing happened. Do i need to create an NPC preset somewhere EasyGuard

in default config you have EasyGuard:
"NPC Profiles": [
    {
      "Profile Name": "EasyGuard",
      "NPC Spawns": [
        {
          "SpawnRadius": 5.0,
          "EntityDisplayName": "Green Treasure Guard",
          "Health": 100,
          "RoamRange": 5.0,
          "ChaseRange": 30.0,
          "SenseRange": 20.0,
          "ListenRange": 10.0,
          "AttackRangeMultiplier": 1.0,
          "CheckVisionCone": true,
          "VisionCone": 140.0,
          "HostileTargetsOnly": false,
          "DamageScale": 1.0,
          "TurretDamageScale": 1.0,
          "AimConeScale": 1.0,
          "Speed": 6.0,
          "MemoryDuration": 10.0,
          "Kit": "",
          "WearItems": [
            {
              "ShortName": "hazmatsuit",
              "SkinID (0 - default)": 0
            }
          ],
          "BeltItems": [
            {
              "ShortName": "rifle.ak",
              "Amount": 1,
              "SkinID (0 - default)": 0,
              "Mods": [],
              "Ammo": "ammo.rifle"
            }
          ],
          "CustomLoot": false,
          "LootTable": [
            {
              "DisplayName": "Custom Rock",
              "Shortname": "rock",
              "SkinID": 0,
              "MaxItemAmount": 5,
              "MinItemAmount": 1,
              "Probability": 1.0,
              "IsBlueprint": false
            }
          ]
        }
      ]
    }
  ],
So yea if you have NpcSpawn plugin on your server ,and you have that in config ...they shoud normaly spawn ...

copcopekcro

Posted

12 minutes ago, NewTimes96 said:

If i can avoid creating presets can i spawn game npc like scientistnpc_full_pistol? 

No ... Only custom bots with NPCSpawn

NewTimes96

Posted

thats why i got confused cuz its missing in my plugin, heres the config of NPCSpawn

{

  "Can NpcSpawn NPCs attack animals? [true/false]": false,

  "Can NpcSpawn NPCs attack other NPCs? [true/false]": false,

  "Can NpcSpawn NPCs attack sleeping players? [true/false]": false,

  "Can NpcSpawn NPCs attack wounded players? [true/false]": false,

  "Can NpcSpawn NPCs attack players in SafeZone? [true/false]": false,

  "Prefab path used for all NpcSpawn NPCs": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab",

  "Weapons with custom NPC parameters": {

    "rifle.bolt": {

      "Effective Range": 150.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "speargun": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "bow.compound": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "crossbow": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "bow.hunting": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "smg.2": {

      "Effective Range": 20.0,

      "Minimum Attack Duration": 0.4,

      "Maximum Attack Duration": 0.4

    },

    "shotgun.double": {

      "Effective Range": 10.0,

      "Minimum Attack Duration": 0.3,

      "Maximum Attack Duration": 1.0

    },

    "pistol.eoka": {

      "Effective Range": 10.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "rifle.l96": {

      "Effective Range": 150.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "pistol.nailgun": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": 0.0,

      "Maximum Attack Duration": 0.46

    },

    "pistol.python": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": 0.175,

      "Maximum Attack Duration": 0.525

    },

    "pistol.semiauto": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": 0.0,

      "Maximum Attack Duration": 0.46

    },

    "pistol.prototype17": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": 0.0,

      "Maximum Attack Duration": 0.46

    },

    "smg.thompson": {

      "Effective Range": 20.0,

      "Minimum Attack Duration": 0.4,

      "Maximum Attack Duration": 0.4

    },

    "shotgun.waterpipe": {

      "Effective Range": 10.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "multiplegrenadelauncher": {

      "Effective Range": 20.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "snowballgun": {

      "Effective Range": 5.0,

      "Minimum Attack Duration": 2.0,

      "Maximum Attack Duration": 2.0

    },

    "legacy bow": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "blunderbuss": {

      "Effective Range": 10.0,

      "Minimum Attack Duration": 0.3,

      "Maximum Attack Duration": 1.0

    },

    "revolver.hc": {

      "Effective Range": 20.0,

      "Minimum Attack Duration": 0.4,

      "Maximum Attack Duration": 0.4

    },

    "t1_smg": {

      "Effective Range": 20.0,

      "Minimum Attack Duration": 0.4,

      "Maximum Attack Duration": 0.4

    },

    "minicrossbow": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    },

    "blowpipe": {

      "Effective Range": 15.0,

      "Minimum Attack Duration": -1.0,

      "Maximum Attack Duration": -1.0

    }

  },

  "NPC Weapons by Distance Category": {

    "0": [

      "bone.club",

      "knife.bone",

      "knife.butcher",

      "candycaneclub",

      "knife.combat",

      "longsword",

      "mace",

      "machete",

      "paddle",

      "pitchfork",

      "salvaged.cleaver",

      "salvaged.sword",

      "spear.stone",

      "spear.wooden",

      "chainsaw",

      "hatchet",

      "jackhammer",

      "pickaxe",

      "axe.salvaged",

      "hammer.salvaged",

      "icepick.salvaged",

      "stonehatchet",

      "stone.pickaxe",

      "torch",

      "sickle",

      "rock",

      "snowball",

      "mace.baseballbat",

      "concretepickaxe",

      "concretehatchet",

      "lumberjack.hatchet",

      "lumberjack.pickaxe",

      "diverhatchet",

      "diverpickaxe",

      "divertorch",

      "knife.skinning",

      "vampire.stake",

      "shovel",

      "spear.cny",

      "frontier_hatchet",

      "boomerang"

    ],

    "1": [

      "speargun",

      "bow.compound",

      "crossbow",

      "bow.hunting",

      "shotgun.double",

      "pistol.eoka",

      "flamethrower",

      "pistol.m92",

      "pistol.nailgun",

      "multiplegrenadelauncher",

      "shotgun.pump",

      "pistol.python",

      "pistol.revolver",

      "pistol.semiauto",

      "pistol.prototype17",

      "snowballgun",

      "shotgun.spas12",

      "shotgun.waterpipe",

      "shotgun.m4",

      "legacy bow",

      "military flamethrower",

      "blunderbuss",

      "minicrossbow",

      "blowpipe"

    ],

    "2": [

      "smg.2",

      "smg.mp5",

      "rifle.semiauto",

      "smg.thompson",

      "rifle.sks",

      "revolver.hc",

      "t1_smg"

    ],

    "3": [

      "rifle.ak",

      "rifle.lr300",

      "lmg.m249",

      "rifle.m39",

      "hmlmg",

      "rifle.ak.ice",

      "rifle.ak.diver",

      "minigun",

      "rifle.ak.med"

    ],

    "4": [

      "rifle.bolt",

      "rifle.l96"

    ]

  },

  "Configuration version": {

    "Major": 2,

    "Minor": 8,

    "Patch": 3

  }

}

So your part i should just add at the end or ?

copcopekcro

Posted

No man ..
You dont need to change anything in config from npc spawn plugin ..
All is handled in Treasure Maps config ... 
In your treasure maps you make profiles of npcs and all ..

NewTimes96

Posted

Ah okay i must insert this on the first lines where the NPC Profiles are

then on each map add jsut which one and amount.

sorry im having a bad day today and my mind is a bit fuzzy i excuse myself

copcopekcro

Posted

Yes , you need to make profiles of what ever kind of npcs ,and those profiles you call in maps with amount yea.
No problem .. let me know did you figure it out !

copcopekcro

Posted

Changed Status from Pending to Not a Bug

Changed Fixed In to 2.0.5

NewTimes96

Posted

One question more:

I added them to virtual shop Shop plugin so players can buy them with cash from Economics. But when they buy them , it doesnt take from their balance, its free

copcopekcro

Posted

34 minutes ago, NewTimes96 said:

One question more:

I added them to virtual shop Shop plugin so players can buy them with cash from Economics. But when they buy them , it doesnt take from their balance, its free

Well thats about shop plugin ..my plugin have nothing with that ...
Probably you didnt put price for it in shop 

1.9m

Downloads

Total number of downloads.

9.2k

Customers

Total customers served.

134.8k

Files Sold

Total number of files sold.

2.8m

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.