1. A note to new members who are making their first purchase

    Once you have made your first purchase you will be unable to instantly download. Due to the recent influx of fraudulent purchases we now need to verify your account before we can grant access to download.
    To verify your account/purchase please email admin@chaoscode.io from the email address your PayPal account is registered to and state your ChaosCode username and the name of the plugin you have purchased.
    Once this is done access to your download your purchase will be granted.

    Please be aware that the verification process may take up to 24 hours!

    We apologise for any inconvenience this may cause
    Dismiss Notice

TreasureBox 0.2.63

A random treasure chest mini event

  1. TreasureBox

    k1lly0u
    Credit to @iShot for coming up with this idea and allowing me to share it with you guys! He laid out exactly how it should be and made my job easy :p
    Check out his server here [UK] Team Howl

    This plugin requires either SpawnsDatabase and that you create a spawn file for potential box locations -or- RandomSpawnpoints to use automatically generated spawnpoints!

    A mini event plugin that randomly spawns a locked box of loot somewhere in the world, players then have a certain amount of time to find the box. Once that time has expired the box is unlocked and any players nearby can grab the loot and run!

    Chat Commands
    /th - Shows help menu
    /th info - Shows the time and position of the current event, or time until next event
    /th start - Starts a random event if one is not already in progress (admin only)
    /th starthere - Starts a event on your position if one is not already in progress (admin only)
    /th cancel - Cancels a event if one is in progress (admin only)
    /th unlock - Pre-maturely unlock the treasure box

    Console Commands
    th - Show help
    th start - Manually start a event
    th cancel - Foce cancel a event
    th unlock - Pre-maturely unlock the treasure box
    th clearicon - Remove any TH related icons from the map

    Configuring the loot items
    You can add as many loot items to this list as you want. When the loot is picks a random amount of items between the Min & Max item values, then randomly picks one of the items listed, then randomly pick a amount between the Min & Max amounts set for that item.
    When adding entries make sure to take note of the formatting of the entry including these symbols " : [ ] { } ,
    Example
    Code (C#):
    "LootItems": [ // This is a list of items that can be in this loot container
            {
              "Maximum amount of item": 10,
              "Minimum amount of item": 100,
              "Item shortname": "metal.refined"
            },
            {
              "Maximum amount of item": 2,
              "Minimum amount of item": 1,
              "Item shortname": "explosive.timed"
            },
    To add item blueprints just type .bp after the item shortname (ex. explosive.timed.bp)

    Spawning NPCs to defend the box
    The AI for NPC Humans is still in development by FacePunch, therefore the implementation of human NPCs in this plugin is far from perfect. While in most cases the NPCs seem to act fine as long as they are not in some kind of complicated terrain, however I did find that certain areas would cause them to bug out and get stuck or just de-spawn.

    Config
    Code (C#):

    {
      "Event Timers": {
        "Minimum time between events (seconds)": 600,
        "Maximum time between events (seconds)": 1200,
        "Amount of time before the box unlocks (seconds)": 180,
        "Amount of time the box will remain on the map (seconds)": 300
      },
      "Event Options": {
        "Use RandomSpawns for box spawn points": true,
        "Use a spawn file for box spawn points": "",
        "Minimum players required online to trigger the event": 1,
        "Show a smoke signal on the box location": true,
        "Broadcast the box co-ordinates to chat": false,
        "UI Options": {
          "Enabled the UI display": true,
          "Display grid reference instead of coordinates": true,
          "URL of the icon to be used in the UI": "http://www.chaoscode.io/oxide/Images/treasureicon.png",
          "Position - X Start": 0.625,
          "Position - Y Start": 0.93,
          "Position - X Dimensions": 0.275,
          "Position - Y Dimensions": 0.05,
          "UI background color (hex)": "#4C4C4C",
          "UI transparency (0.0 - 1.0)": 0.7
        },
        "Event Zone Options": {
          "Disable building and deployable placement within the set radius of the box": true,
          "Radius of the event zone": 75.0,
          "Create a temporary zone around the box when it spawns using ZoneManager": true,
          "The amount of time the Zone Manager zone will remain active after the event is over (seconds)": 300,
          "Flags to be applied to the temporary Zone Manager zone": [
            "notp",
            "true",
            "notrade",
            "true"
          ]
        },
        "NPC Options": {
          "Spawn NPCs at the box location": true,
          "Amount of NPCs to spawn": 3,
          "Accuracy of bots percentage (0 - 100)": 60,
          "The maximum distance a NPC can wander from the box": 50.0,
          "The attack distance of a NPC": 40.0,
          "The health of a NPC": 200.0,
          "Kits that NPCs can spawn with (chosen at random)": [],
          "Allow bots to drop loot when killed": false,
         "Keep box locked until all NPC's have been killed": false
        }
      },
      "Loot Containers (Chosen at random)": [
        {
          "Container skin ID": 882223700,
          "Minimum amount of items to spawn": 1,
          "Maximum amount of items to spawn": 4,
          "Map marker color override (hex)": null,
          "Loot list": [
            {
              "Item shortname": "syringe.medical",
              "Minimum amount of item": 2,
              "Maximum amount of item": 6
            },
            {
              "Item shortname": "largemedkit",
              "Minimum amount of item": 1,
              "Maximum amount of item": 2
            },
            {
              "Item shortname": "bandage",
              "Minimum amount of item": 1,
              "Maximum amount of item": 4
            },
            {
              "Item shortname": "antiradpills",
              "Minimum amount of item": 1,
              "Maximum amount of item": 3
            }
          ]
        },
        {
          "Container skin ID": 10141,
          "Minimum amount of items to spawn": 1,
          "Maximum amount of items to spawn": 4,
          "Map marker color override (hex)": null,
          "Loot list": [
            {
              "Item shortname": "ammo.rifle",
              "Minimum amount of item": 10,
              "Maximum amount of item": 100
            },
            {
              "Item shortname": "ammo.pistol",
              "Minimum amount of item": 10,
              "Maximum amount of item": 100
            },
            {
              "Item shortname": "ammo.rocket.basic",
              "Minimum amount of item": 1,
              "Maximum amount of item": 3
            },
            {
              "Item shortname": "ammo.shotgun.slug",
              "Minimum amount of item": 10,
              "Maximum amount of item": 20
            },
            {
              "Item shortname": "pistol.m92",
              "Minimum amount of item": 1,
              "Maximum amount of item": 1
            },
            {
              "Item shortname": "rifle.ak",
              "Minimum amount of item": 1,
              "Maximum amount of item": 1
            },
            {
              "Item shortname": "rifle.bolt",
              "Minimum amount of item": 1,
              "Maximum amount of item": 1
            },
            {
              "Item shortname": "rocket.launcher",
              "Minimum amount of item": 1,
              "Maximum amount of item": 1
            },
            {
              "Item shortname": "pistol.revolver",
              "Minimum amount of item": 1,
              "Maximum amount of item": 1
            }
          ]
        },
        {
          "Container skin ID": 809975811,
          "Minimum amount of items to spawn": 1,
          "Maximum amount of items to spawn": 4,
          "Map marker color override (hex)": null,
          "Loot list": [
            {
              "Item shortname": "apple",
              "Minimum amount of item": 2,
              "Maximum amount of item": 6
            },
            {
              "Item shortname": "bearmeat.cooked",
              "Minimum amount of item": 2,
              "Maximum amount of item": 4
            },
            {
              "Item shortname": "blueberries",
              "Minimum amount of item": 4,
              "Maximum amount of item": 8
            },
            {
              "Item shortname": "corn",
              "Minimum amount of item": 4,
              "Maximum amount of item": 8
            },
            {
              "Item shortname": "fish.raw",
              "Minimum amount of item": 2,
              "Maximum amount of item": 4
            },
            {
              "Item shortname": "granolabar",
              "Minimum amount of item": 1,
              "Maximum amount of item": 4
            },
            {
              "Item shortname": "meat.pork.cooked",
              "Minimum amount of item": 4,
              "Maximum amount of item": 8
            },
            {
              "Item shortname": "candycane",
              "Minimum amount of item": 1,
              "Maximum amount of item": 2
            }
          ]
        }
      ],
      "Map Options": {
        "Ingame map integration": {
          "Show a radius marker on the map": true,
          "The radius of the marker": 50.0,
          "Maximum amount to offset the marker position from the box position": 25.0,
          "Marker color (hex)": "#ce422b",
          "Marker transparency (0.0 - 1.0)": 0.25,
          "Broadcast information about the marker to chat": true
        },
        "LustyMap intergration": {
          "Show a icon on LustyMap": false,
          "URL of the icon to be used": "http://www.chaoscode.io/oxide/Images/treasureicon.png"
        }
      },
      "Version": {
        "Major": 0,
        "Minor": 2,
        "Patch": 56
      }
    }
     

    Images

    1. Untitled-2.png

Recent Updates

  1. 0.2.63
  2. 0.2.62
  3. 0.2.60

Recent Reviews

  1. Adrian Perez
    Adrian Perez
    5/5,
    Version: 0.2.62
    Really good event and good performance. It doesn't drop your server fps, and players love it.
  2. gormie
    gormie
    5/5,
    Version: 0.2.56
    Players reports they "like to have more stuff to do in the game" and this is a great event. Easy to use, and they want more events plugins!
  3. jay.k.creep
    jay.k.creep
    5/5,
    Version: 0.2.4
    Good Plug Easy To Use And Setup Give Players Something Extra To Do And You Can Set A Skin For Box
  4. kurtk84
    kurtk84
    5/5,
    Version: 0.2.3
    Very fun event. Players really enjoy this kind of mod. Nice work!
  5. Slaughter
    Slaughter
    5/5,
    Version: 0.1.8
    Very well made and does everything it claims. Very happy with this purchase.
  6. TheDoc
    TheDoc
    5/5,
    Version: 0.1.8
    Love It! Make more event plugins!
  7. ghosted
    ghosted
    5/5,
    Version: 0.1.7
    Great little plugin so far players really like it look foward to more
  8. Chief Slapaho
    Chief Slapaho
    5/5,
    Version: 0.1.7
    Very awesome plugin. Works very well
  9. iShot
    iShot
    5/5,
    Version: 0.1.1
    Works as advertised, this plugin was made from a request on the oxide website and it has been perfectly transferred from an idea to a working plugin. My players absolutely love to hunt these things (have it set to only happen once every 2 hours, with a minimum of 20 players online) and big shootouts often happen at these containers. Great job!