Included with Purchase
Plugin Download
Instant access to the plugin file (.dll)
Future Updates
All updates and fixes at no extra cost
Developer Support
Help through our forum and Discord
Optional: Source Code
Add-on in cart for an additional fee
Readme
Drop Boxes
A customizable loot box system for Unturned. Players can earn boxes from various in-game activities and open them to receive random rewards.
Works With
Features
- Customizable loot boxes with different rewards
- Boxes drop from various game events (killing zombies, finding resources, etc.)
- MySQL database storage for cross-server compatibility
- Simple command system for managing boxes
Commands
/boxes
- View all boxes you currently own/unbox <boxID>
- Open a box to receive a random reward/givebox <player> <boxID>
- Give a box to another player (admin command)
Configuration
Basic Settings
MessageColor
: Color of plugin messages in chatConnectionString
: MySQL database connection string
Box Configuration
Each box has the following properties:
BoxId
: Unique identifier for the box (used in commands)Name
: Display name of the boxColor
: Text color for the box name in chat (hex format)- Drop chance settings (1-1000):
PlayerKillChance
: Chance to drop when killing another playerZombieKillChance
: Chance to drop when killing a normal zombieMegaZombieKillChance
: Chance to drop when killing a mega zombieFoundPlantsChance
: Chance to drop when harvesting plantsFoundResourcesChance
: Chance to drop when gathering resourcesFoundFishesChance
: Chance to drop when catching fish
Rewards
Each box can contain multiple possible rewards:
ItemId
: Unturned item ID numberChance
: Relative probability of getting this item (higher = more likely)
Example Configuration
<?xml version="1.0" encoding="utf-8"?>
<DropBoxesConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageColor>yellow</MessageColor>
<ConnectionString>Server=127.0.0.1;Database=unturned;Uid=root;Password=YourPassword;</ConnectionString>
<DropBoxes>
<DropBox BoxId="epic" Name="Epic Chest" Color="#FFC0CB">
<PlayerKillChance>50</PlayerKillChance>
<ZombieKillChance>150</ZombieKillChance>
<MegaZombieKillChance>1000</MegaZombieKillChance>
<FoundPlantsChance>200</FoundPlantsChance>
<FoundResourcesChance>500</FoundResourcesChance>
<FoundFishesChance>50</FoundFishesChance>
<Rewards>
<DropBoxReward ItemId="363" Chance="30" />
<DropBoxReward ItemId="254" Chance="50" />
<DropBoxReward ItemId="17" Chance="80" />
<DropBoxReward ItemId="519" Chance="20" />
</Rewards>
</DropBox>
</DropBoxes>
</DropBoxesConfiguration>
How It Works
- Players have a chance to earn boxes when performing various actions (killing zombies, finding resources, etc.)
- When a player earns a box, they receive a notification and the box is added to their inventory
- Players can view their boxes with the
/boxes
command - Opening a box with
/unbox <boxID>
gives the player a random item from the box's reward list
Note: For custom text formatting in translations, use {{
and }}
instead of <
and >
. For example, use {{color=red}}
instead of <color=red>
.