Spawn High value loot guarded by scientists at random or specified locations.

Supported Games
GameServerKingsGameServerKings
works with

Permissions

  • guardedcrate.use -- Allows setup fo events.

Depends On

NpcSpawn v2.5.5

Chat Commands

  • /gcrate start <event-name|optional>, start specified event or random if none specified.
  • /gcrate here <event-name> <event-name>, start event at your current location.
  • /gcrate position <event-name> <x, y, z>, start event at specified position.
  • /gcrate stop, stop all currently running crate events.
  • /gcrate amount <event-name> <number>, Change number of guards to spawn at the event.
  • /gcrate loot <event-name> Put items in your main container to set up loot items.
  • /gcrate loadout <event-name> Put items in your wear and belt containers to set up a guard's loadout.

Console Commands

  • /gcrate start <event-name|optional>, start specified event or random if none specified.
  • /gcrate stop, stop all currently running crate events.
  • /gcrate position <event-name> <x, y, z>, start event at specified position.

Configuration

{
  "command name": "gcrate",
  "enable auto spawning events": true,
  "auto start event after x duration": 3600.0,
  "message notification settings": {
    "enable toast message": false,
    "enable chat message": true,
    "enable chat prefix": true,
    "custom chat message icon (steam64)": 76561199542824781,
    "enable gui announcements plugin from umod.org": false,
    "gui announcements text color": "White",
    "gui announcements background color": "Purple"
  }
}

Data

{
  "CrateEventEntries": [
    {
      "event display name)": "Easy",
      "event duration": 1800.0,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 60.0,
      "enable marker": true,
      "marker color 1": "#32A844",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": false,
      "min loot items": 6,
      "max loot items": 6,
      "guard spawn amount": 10,
      "guard spawn config": {
        "Name": "Easy Crate",
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "hoodie",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 0
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "SkinID": 0,
            "Amount": 1,
            "Ammo": "ammo.rifle",
            "Mods": []
          }
        ],
        "Kit": "",
        "Health": 250.0,
        "RoamRange": 25.0,
        "ChaseRange": 30.0,
        "SenseRange": 150.0,
        "ListenRange": 75.0,
        "AttackRangeMultiplier": 10.0,
        "CheckVisionCone": false,
        "VisionCone": 180.0,
        "DamageScale": 1.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 0.5,
        "DisableRadio": false,
        "CanRunAwayWater": true,
        "CanSleep": false,
        "Speed": 8.5,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": "(1956.6, 19.7, 1537.4)",
        "MemoryDuration": 30.0,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "RaidState"
        ]
      },
      "create loot items": []
    },
    {
      "event display name)": "Medium",
      "event duration": 1800.0,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 120.0,
      "enable marker": true,
      "marker color 1": "#EDDF45",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": false,
      "min loot items": 6,
      "max loot items": 6,
      "guard spawn amount": 12,
      "guard spawn config": {
        "Name": "Medium Guard",
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "hoodie",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 0
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "SkinID": 0,
            "Amount": 1,
            "Ammo": "ammo.rifle",
            "Mods": []
          }
        ],
        "Kit": "",
        "Health": 250.0,
        "RoamRange": 25.0,
        "ChaseRange": 50.0,
        "SenseRange": 150.0,
        "ListenRange": 75.0,
        "AttackRangeMultiplier": 10.0,
        "CheckVisionCone": false,
        "VisionCone": 180.0,
        "DamageScale": 1.0,
        "TurretDamageScale": 0.5,
        "AimConeScale": 0.25,
        "DisableRadio": false,
        "CanRunAwayWater": true,
        "CanSleep": false,
        "Speed": 8.5,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": "(257.3, 27.9, 536.3)",
        "MemoryDuration": 30.0,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "RaidState"
        ]
      },
      "create loot items": []
    },
    {
      "event display name)": "Hard",
      "event duration": 1800.0,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 180.0,
      "enable marker": true,
      "marker color 1": "#3060D9",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": false,
      "min loot items": 6,
      "max loot items": 8,
      "guard spawn amount": 15,
      "guard spawn config": {
        "Name": "Hard Guard",
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "hoodie",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 0
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "SkinID": 0,
            "Amount": 1,
            "Ammo": "ammo.rifle",
            "Mods": []
          }
        ],
        "Kit": "",
        "Health": 300.0,
        "RoamRange": 25.0,
        "ChaseRange": 50.0,
        "SenseRange": 150.0,
        "ListenRange": 75.0,
        "AttackRangeMultiplier": 10.0,
        "CheckVisionCone": false,
        "VisionCone": 180.0,
        "DamageScale": 2.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 0.25,
        "DisableRadio": false,
        "CanRunAwayWater": true,
        "CanSleep": false,
        "Speed": 8.5,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": "(-281.4, 3.9, 1757.6)",
        "MemoryDuration": 30.0,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "RaidState"
        ]
      },
      "create loot items": []
    },
    {
      "event display name)": "Elite",
      "enable notifications": true,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 180.0,
      "enable marker": true,
      "marker color 1": "#3060D9",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": false,
      "min loot items": 6,
      "max loot items": 8,
      "guard spawn amount": 20,
      "guard spawn config": {
        "Name": "Elite Guard",
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "hoodie",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 0
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "SkinID": 0,
            "Amount": 1,
            "Ammo": "ammo.rifle",
            "Mods": []
          }
        ],
        "Kit": "",
        "Health": 350.0,
        "RoamRange": 25.0,
        "ChaseRange": 50.0,
        "SenseRange": 150.0,
        "ListenRange": 75.0,
        "AttackRangeMultiplier": 10.0,
        "CheckVisionCone": false,
        "VisionCone": 180.0,
        "DamageScale": 2.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 0.25,
        "DisableRadio": false,
        "CanRunAwayWater": true,
        "CanSleep": false,
        "Speed": 8.5,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": "(-281.4, 3.9, 1757.6)",
        "MemoryDuration": 30.0,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "RaidState"
        ]
      },
      "create loot items": []
    }
  ]
}
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.