The Diver
1 / 5




Purchase a License, Dive, Sell, Profit.
Works with Kits & Marker Manager.
Requires Economics or Server Rewards to handle sales.
With The Diver you open a whole new lane for your servers economy.
Set a License fee so players must be able to sell wreckage to The Diver NPC.
Dive sites are automatically seeded and require no admin intervention.
Sales are handled through a native style UI, users can sell 1 or many.
Output all Sales to Discord to track your Economy and make Adjustments as needed.
The wrecks cannot be picked up, cannot be destroyed, and will not accept items. They will clean up on unload, after all loot is taken or its lifecycle has been met.
The Diver NPC spawns at Fishing Villages Dynamically or set your own spawns via command.
Commands
/buydl - With Sufficient funds, the player can purchase a Diver License. Command name is set in the config, and there is a matching console command for GUI shops.
/givediveritems - Requires Admin Permission - Will spawn your custom Salvage items into your inventory, Good for testing sale rates.
/spawndiver - Requires Admin Permission - Will spawn a Diver NPC in your Position.
/removediver - Requires Admin Permission - Will remove the Diver NPC you are looking at.
/divewhere - Requires Admin Permission - Pings every active dive site on your screen so you can debug drops.
Permissions
TheDiver.Use - Required to use the plugin.
TheDiver.Admin - Spawn, remove and debug commands.
TheDiver.LifetimeLicense - Holder never loses their License on death and never pays a fee.
Config
| 1 | { |
| 2 | "NPC Marker Settings": { |
| 3 | "Marker Enabled?": true, |
| 4 | "Marker Radius": 0.2, |
| 5 | "Marker Color": "1f4a59", |
| 6 | "Marker Outline": "1f4a59", |
| 7 | "Marker Alpha": 0.75 |
| 8 | }, |
| 9 | "Dive Site Marker Settings": { |
| 10 | "Marker Enabled?": true, |
| 11 | "Marker Radius": 0.35, |
| 12 | "Marker Color": "b5a642", |
| 13 | "Marker Outline": "8c7a2c", |
| 14 | "Marker Alpha": 0.6 |
| 15 | }, |
| 16 | "Dive Site Marker Label": "Dive Site", |
| 17 | "Discord Webhook URL": "INSERT_WEBHOOK_URL", |
| 18 | "Chat Icon": 0, |
| 19 | "NPC Kit Enabled?": false, |
| 20 | "NPC Kit Name?": "", |
| 21 | "Diver license Fee?": 10000, |
| 22 | "Console Command to Purchase a License": "buydl", |
| 23 | "Chat Command to Purchase a License": "buydl", |
| 24 | "Remove license on Death?": true, |
| 25 | "Clear license on Wipe?": false, |
| 26 | "Dynamic Fishing Village Spawn Of The NPC Enabled?": true, |
| 27 | "Spawn At Every Fishing Village?": true, |
| 28 | "Sales to NPC Enabled?": true, |
| 29 | "Quick Sell Step Buttons": [ |
| 30 | 1, |
| 31 | 5, |
| 32 | 25 |
| 33 | ], |
| 34 | "NPC Interaction Cooldown In Seconds": 3.0, |
| 35 | "Economy Plugin - 1 Economics - 2 Server Rewards": 1, |
| 36 | "Amount of each Item to spawn via Command?": 5, |
| 37 | "Dive Site Crate Prefabs, Empty Reuses The Vanilla Crate": [ |
| 38 | "assets/prefabs/deployable/large wood storage/skins/abyss_dlc_large_wood_box/abyss_dlc_storage_horizontal/abyss_barrel_horizontal.prefab", |
| 39 | "assets/prefabs/deployable/large wood storage/skins/abyss_dlc_large_wood_box/abyss_dlc_storage_vertical/abyss_barrel_vertical.prefab" |
| 40 | ], |
| 41 | "Minimum Active Dive Sites": 3, |
| 42 | "Maximum Active Dive Sites": 6, |
| 43 | "Minimum Salvage Items Per Dive Crate": 1, |
| 44 | "Maximum Salvage Items Per Dive Crate": 3, |
| 45 | "Dive Site Check Interval Seconds": 300.0, |
| 46 | "Dive Site Lifespan Seconds": 1800.0, |
| 47 | "Custom Items": [ |
| 48 | { |
| 49 | "Item Name": "Sight Glass", |
| 50 | "Skin ID": 3789062425, |
| 51 | "Shortname": "researchpaper", |
| 52 | "Min Amount": 1, |
| 53 | "Max Amount": 1, |
| 54 | "Is Marketable?": true, |
| 55 | "Sale Price?": 15.0, |
| 56 | "Chance out of 100% to Award on Underwater Crate Loot": 9.0 |
| 57 | }, |
| 58 | { |
| 59 | "Item Name": "Ledger", |
| 60 | "Skin ID": 3789062819, |
| 61 | "Shortname": "researchpaper", |
| 62 | "Min Amount": 1, |
| 63 | "Max Amount": 1, |
| 64 | "Is Marketable?": true, |
| 65 | "Sale Price?": 29.0, |
| 66 | "Chance out of 100% to Award on Underwater Crate Loot": 12.0 |
| 67 | }, |
| 68 | { |
| 69 | "Item Name": "Dual Cutlasses", |
| 70 | "Skin ID": 3789063018, |
| 71 | "Shortname": "researchpaper", |
| 72 | "Min Amount": 1, |
| 73 | "Max Amount": 1, |
| 74 | "Is Marketable?": true, |
| 75 | "Sale Price?": 79.0, |
| 76 | "Chance out of 100% to Award on Underwater Crate Loot": 4.0 |
| 77 | }, |
| 78 | { |
| 79 | "Item Name": "Skull Coin", |
| 80 | "Skin ID": 3789063227, |
| 81 | "Shortname": "researchpaper", |
| 82 | "Min Amount": 1, |
| 83 | "Max Amount": 1, |
| 84 | "Is Marketable?": true, |
| 85 | "Sale Price?": 39.0, |
| 86 | "Chance out of 100% to Award on Underwater Crate Loot": 6.0 |
| 87 | }, |
| 88 | { |
| 89 | "Item Name": "Compass", |
| 90 | "Skin ID": 3789063435, |
| 91 | "Shortname": "researchpaper", |
| 92 | "Min Amount": 1, |
| 93 | "Max Amount": 1, |
| 94 | "Is Marketable?": true, |
| 95 | "Sale Price?": 48.0, |
| 96 | "Chance out of 100% to Award on Underwater Crate Loot": 8.0 |
| 97 | } |
| 98 | ], |
| 99 | "NPC Clothing Options": [ |
| 100 | { |
| 101 | "Shortname": "diving.wetsuit", |
| 102 | "Skin": 0 |
| 103 | }, |
| 104 | { |
| 105 | "Shortname": "diving.tank.double", |
| 106 | "Skin": 0 |
| 107 | }, |
| 108 | { |
| 109 | "Shortname": "diving.fins", |
| 110 | "Skin": 0 |
| 111 | }, |
| 112 | { |
| 113 | "Shortname": "diving.mask", |
| 114 | "Skin": 0 |
| 115 | } |
| 116 | ] |
| 117 | } |
Lang
| 1 | { |
| 2 | "NoPerms": "[<color=#12ffb8>The Diver</color>] You do not have permission to run this <color=red>Command</color>!", |
| 3 | "NoItems": "[<color=#12ffb8>The Diver</color>] :nervous: You have no <color=yellow>Items</color> on you that I am in the Market for. \nSwing by when you do, though! \n\n:happy:", |
| 4 | "ItemsSpawned": "[<color=#12ffb8>The Diver</color>] :wave: <color=green>All</color> <color=#12ffb8>Salvage</color> has been deposited to your Inventory.", |
| 5 | "DiverCooldownMessage": "[<color=#12ffb8>The Diver</color>] :wave: If you dont mind, give me <color=green>{0}</color> second(s), I'm still drying off...", |
| 6 | "EconomicsMessage": "[<color=#12ffb8>The Diver</color>] :eyes: \n\n Best I can value this at is <color=#85bb65>__TK1__lt;/color><color=yellow>{0}</color> for your <color=orange>{1}x</color> <color=green>{2}</color>(s).", |
| 7 | "SrMessage": "[<color=#12ffb8>The Diver</color>] :eyes: \n\n Best I can value this at is <color=orange>{0}</color> <color=#cd5c5c>RP</color> for your <color=yellow>{1}x</color> <color=green>{2}</color>(s).", |
| 8 | "SaleDisabled": "[<color=#12ffb8>The Diver</color>] <color=orange>Sales</color> are Disabled in the Config, Enable and Try again.", |
| 9 | "NoDiverLicense": "[<color=#12ffb8>The Diver</color>] You aren't certified to salvage <color=orange>Wreck Finds</color>. \nUse <color=orange>/{0}</color> to purchase a License from <color=#12ffb8>The Diver</color>.", |
| 10 | "AlreadyHasLicense": "[<color=#12ffb8>The Diver</color>] You already hold a <color=orange>Diver License</color>.", |
| 11 | "BuyDiverLicenseSuccess": "[<color=#12ffb8>The Diver</color>] Diver License Obtained. \nYou were charged {0}<color=#3e9c35>{1}</color> Safe diving <color=#12ffb8>{2}</color>!", |
| 12 | "InsufficientFunds": "[<color=#12ffb8>The Diver</color>] You don't have enough funds to purchase a <color=#12ffb8>Diver</color> License. \nIt costs <color=orange>{0}</color><color=green>{1}</color>.", |
| 13 | "ItemObtained": "[<color=#12ffb8>The Diver</color>] You surfaced with a <color=green>{0}</color>.", |
| 14 | "SalvageFound": "[<color=#12ffb8>The Diver</color>] Salvage in the wreck: <color=green>{0}</color>.", |
| 15 | "UiNothingToSell": "You surfaced empty handed. Bring me salvage and we will talk.", |
| 16 | "UiSellEverything": "Sell Everything", |
| 17 | "SoldEverything": "[<color=#12ffb8>The Diver</color>] Cashed out: <color=green>{0}</color> for <color=#85bb65>{1}</color>.", |
| 18 | "Revoked": "[<color=#12ffb8>The Diver</color>] Your <color=#12ffb8>Diver License</color> has been <color=orange>Destroyed</color>! Be wary of Death next time!", |
| 19 | "DiveWhereHeader": "[<color=#12ffb8>The Diver</color>] Active dive sites: <color=green>{0}</color>, candidate positions: <color=green>{1}</color>.", |
| 20 | "DiveWhereEntry": "[<color=#12ffb8>The Diver</color>] <color=orange>{0}</color> at <color=green>{1}</color>, <color=green>{2}m</color> away." |
| 21 | } |