This plugin requires the ChaosNPC extension
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
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
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
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
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
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.
assets/prefabs/deployable/fireworks/fireworkshellblue.prefab
assets/prefabs/deployable/fireworks/fireworkshellchampagne.prefab
assets/prefabs/deployable/fireworks/fireworkshellgreen.prefab
assets/prefabs/deployable/fireworks/fireworkshellorange.prefab
assets/prefabs/deployable/fireworks/fireworkshellred.prefab
assets/prefabs/deployable/fireworks/fireworkshellviolet.prefab
assets/prefabs/deployable/fireworks/mortarblue.prefab
assets/prefabs/deployable/fireworks/mortarchampagne.prefab
assets/prefabs/deployable/fireworks/mortargreen.prefab
assets/prefabs/deployable/fireworks/mortarorange.prefab
assets/prefabs/deployable/fireworks/mortarred.prefab
assets/prefabs/deployable/fireworks/mortarviolet.prefab
assets/prefabs/deployable/fireworks/romancandle-blue.prefab
assets/prefabs/deployable/fireworks/romancandle-green.prefab
assets/prefabs/deployable/fireworks/romancandle-violet.prefab
assets/prefabs/deployable/fireworks/romancandle.prefab
assets/prefabs/deployable/fireworks/volcanofirework-red.prefab
assets/prefabs/deployable/fireworks/volcanofirework-violet.prefab
assets/prefabs/deployable/fireworks/volcanofirework.prefab
assets/prefabs/deployable/fireworks/fireworkshellchampagne.prefab
assets/prefabs/deployable/fireworks/fireworkshellgreen.prefab
assets/prefabs/deployable/fireworks/fireworkshellorange.prefab
assets/prefabs/deployable/fireworks/fireworkshellred.prefab
assets/prefabs/deployable/fireworks/fireworkshellviolet.prefab
assets/prefabs/deployable/fireworks/mortarblue.prefab
assets/prefabs/deployable/fireworks/mortarchampagne.prefab
assets/prefabs/deployable/fireworks/mortargreen.prefab
assets/prefabs/deployable/fireworks/mortarorange.prefab
assets/prefabs/deployable/fireworks/mortarred.prefab
assets/prefabs/deployable/fireworks/mortarviolet.prefab
assets/prefabs/deployable/fireworks/romancandle-blue.prefab
assets/prefabs/deployable/fireworks/romancandle-green.prefab
assets/prefabs/deployable/fireworks/romancandle-violet.prefab
assets/prefabs/deployable/fireworks/romancandle.prefab
assets/prefabs/deployable/fireworks/volcanofirework-red.prefab
assets/prefabs/deployable/fireworks/volcanofirework-violet.prefab
assets/prefabs/deployable/fireworks/volcanofirework.prefab
Config
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,
"Shoot a firework into the sky when the box has been unlocked": false,
"Firework prefab path": "assets/prefabs/deployable/fireworks/mortarchampagne.prefab",
"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.rustedit.io/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,
"Kill any surviving bots when the event has finished": false,
"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": 80.0,
"The health of a NPC": 200.0,
"Kits that NPCs can spawn with (chosen at random)": [],
"Bot Names (chosen at random)": [],
"Allow bots to drop loot when killed": false,
"Keep box locked until all NPC's have been killed": false,
"Scientist type (Normal, Heavy, Mixed)": null
}
},
"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": 4.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.rustedit.io/images/treasureicon.png"
}
},
"Version": {
"Major": 0,
"Minor": 2,
"Patch": 73
}
}