TreasureBox

TreasureBox 0.3.10

Possible NRE fix on unload
Added chat command "/th unlock" to prematurely unlock the box
  • Like
Reactions: EvilynCorporated
Possible NRE fix on unload
Added chat command "/th unlock" to prematurely unlock the box
  • Like
Reactions: EvilynCorporated
The config has changed! See below for information regarding updating your config

Added ZoneManager support to create zones on the box location

Config Changes
C#:
{
  "LootTable": {
    "ContainerSkin": 0,
    "LootItems": [
      {
        "MaximumAmount": 100,
        "MinimumAmount": 10,
        "Shortname": "metal.refined"
      },
      {
        "MaximumAmount": 2,
        "MinimumAmount": 1,
        "Shortname": "explosive.timed"
      },
      {
        "MaximumAmount": 3,
        "MinimumAmount": 1,
        "Shortname": "grenade.f1"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "supply.signal"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "cctv.camera"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "targeting.computer"
      },
      {
        "MaximumAmount": 60,
        "MinimumAmount": 20,
        "Shortname": "ammo.rifle"
      },
      {
        "MaximumAmount": 60,
        "MinimumAmount": 20,
        "Shortname": "ammo.pistol"
      }
    ],
    "MaximumItems": 4,
    "MinimumItems": 1
  },
  "LustyMap": {
    "MarkerFilename": "http://www.chaoscode.io/oxide/Images/treasureicon.png",
    "ShowOnLustyMap": true
  },
  "Options": {
    "LootSpawnfile": "",
    "MinimumPlayersRequired": 1,
    "ShowSmokeOnLocation": true,
    "UISettings": {
      "IconUrl": "http://www.chaoscode.io/oxide/Images/treasureicon.png",
      "UIBackgroundColor": "#4C4C4C",
      "UIOpacity": 0.7,
      "UseUIDisplay": true,
      "XDimension": 0.275,
      "XPosition": 0.625,
      "YDimension": 0.05,
      "YPosition": 0.93
    },
    "UseSpawnsFromRandomSpawns": true, // Add this comma
    "ZoneSettings": { // Add from this line
      "CreateTemporaryZone": true,
      "ZoneActiveAfter": 300,
      "ZoneFlags": [
        "notp",
        "true",
        "notrade",
        "true",
        "radius",
        "75"
      ] // To this line
    }
  },
  "Timers": {
    "MaximumTimeBetweenEvents": 1200,
    "MinimumTimeBetweenEvents": 600,
    "TimeToLoot": 300,
    "TimeToUnlock": 180
  }
}
Stopped box/cupboard persisting through server restart
Added console commands (see overview)
Fix for Rust update
Fixed container skin
The config has changed! See below for information regarding updating your config

Fixed unlocked message time
Added option to show the box location in LustyMap

New Config
C#:
{
  "LootTable": {
    "ContainerSkin": 0,
    "LootItems": [
      {
        "MaximumAmount": 100,
        "MinimumAmount": 10,
        "Shortname": "metal.refined"
      },
      {
        "MaximumAmount": 2,
        "MinimumAmount": 1,
        "Shortname": "explosive.timed"
      },
      {
        "MaximumAmount": 3,
        "MinimumAmount": 1,
        "Shortname": "grenade.f1"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "supply.signal"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "cctv.camera"
      },
      {
        "MaximumAmount": 1,
        "MinimumAmount": 1,
        "Shortname": "targeting.computer"
      },
      {
        "MaximumAmount": 60,
        "MinimumAmount": 20,
        "Shortname": "ammo.rifle"
      },
      {
        "MaximumAmount": 60,
        "MinimumAmount": 20,
        "Shortname": "ammo.pistol"
      }
    ],
    "MaximumItems": 4,
    "MinimumItems": 1
  },
  "LustyMap": { // Add from this line here
    "MarkerFilename": "treasureicon.png",
    "ShowOnLustyMap": true
  }, // To this line here
  "Options": {
    "BuildBlockedRadius": 10.0,
    "LootSpawnfile": "",
    "MinimumPlayersRequired": 1,
    "ShowSmokeOnLocation": true,
    "UISettings": {
      "IconUrl": "http://www.chaoscode.io/oxide/Images/treasureicon.png",
      "UIBackgroundColor": "#4C4C4C",
      "UIOpacity": 0.7,
      "UseUIDisplay": true,
      "XDimension": 0.275,
      "XPosition": 0.625,
      "YDimension": 0.05,
      "YPosition": 0.93
    },
    "UseSpawnsFromRandomSpawns": true
  },
  "Timers": {
    "MaximumTimeBetweenEvents": 1200,
    "MinimumTimeBetweenEvents": 600,
    "TimeToLoot": 300,
    "TimeToUnlock": 180
  }
}
  • Like
Reactions: Dmitry
Added a invisible ToolCupboard to prevent players walling off the box
Now displays chat messages even with UI enabled
Adjusted loot spawns to give a better variety of available loot
  • Like
Reactions: EvilynCorporated