About Case System
I present to your attention the Case plugin.
Add variety to your server and additional emotions for your players.
Pleasant design, installation of visual design for the rarity of items, support for the economy, the ability to open and buy several cases at once (up to 5), the ability to sell an item, support for custom items and bill of lading teams, the ability to set a daily limit for the issuance of items from the inventory of cases.
The plugin includes an already configured configuration with 52 items and 4 cases, with a customized drop chance and a customized rarity color.
ISSUING A BALANCE
If you use the default economy of the case plugin, then with this command you can give a certain player the specified balance
UI_CASES GIVEBALANCE STEAMID AMOUNT
STEAMID - specify the steamid of the player if you enter the command manually in the server console
AMOUNT - specify the balance that the player should receive on his balance
CONFIGURING THE PLUGIN AND ITS FEATURES.
To configure the plug-in language and configuration, select the desired option in the plug-in file on line 22:
private const bool isEn = true; - for configuration with English
private const bool isEn = false; - for configuration with Russian language
THE LIMIT ON THE ISSUE OF ITEMS.
If you do not want players to abuse this plugin, then you can limit the number of items they can take per day, then use the following options:
"Should I use the item issue limit?": - set true to enable the feature, or false to disable
"Setting up privileges for the item issue limit":
"casesystem.default": 5, - if you have enabled the limit, then do not forget to grant this privilege to the default group
"casesystem.vip": 7 - Extend the limit for certain players or groups with this privilege
if you want to expand the list of privileges, then just add them separated by commas, specifying the unique privilege and the required amount of item that they can receive, for example
"cases.example": 10
ECONOMICS.
You can use both the default balance of the plug-in, for which players can buy cases, and the economy plug-in to choose from
"Economics Plugin(1 - Economics, 2 - Server Rewards, 3 - IQEconomic, 4 - Bank System, 5-Cases)":
just specify the number that corresponds to the economy plugin
THE RARITY OF THE ITEMS.
Set the parameters you need for the rarity of the items and the color that will display this or that item in the list.
"Color adjustment(chance-color)": {
"15": "0.8352942 0.3607843 0.4039216 1", - items with a chance of falling from 0 to 15 will be tinted with RGB color "0.8352942 0.3607843 0.4039216 1"
"40": "0.7450981 0.3921569 0.8156863 1", - items with a chance of falling from 16 to 40 will be tinted with RGB color "0.7450981 0.3921569 0.8156863 1"
"60": "0.5058824 0.3137255 0.8235295 1", - items with a chance of falling from 41 to 60 will be tinted with RGB color "0.8352942 0.3607843 0.4039216 1"
"80": "0.2588235 0.4588236 0.8470589 1", - items with a chance of falling from 61 to 80 will be tinted with RGB color "0.5058824 0.3137255 0.8235295 1"
"100": "0.3215686 0.5058824 0.7215686 1" - items with a chance of falling from 81 to 100 will be colored with RGB color "0.3215686 0.5058824 0.7215686 1"
},
A LIST OF ITEMS AND THEIR SETTINGS.
Set up a list of items that will be indicated in the cases you need in the future.
"Item ID (Indicated in the list of items in the case)": "1", - is the ID of the item, which will later need to be specified in the case that you will configure. THE ID MUST NOT BE REPEATED
"Shortname": "minigun", - shortname of the item from the game
"Amount": 1, - number of items to be given after opening
"Drop chance": 2, - chance of dropping the item (from 0% to 100%)
"Name the item": "", - custom name item (if you use SkinID)
"Price the item": 100, - the value of the item, if the player decides to sell it, after it falls to him
"URL image the item": "", - link to the image of the item
"SkinID ": 0, - the SkinID of the item from the Steam workshop, if you want to use a custom item
"Console command": "" - the console command that will be executed when the item is activated after the player takes it from the inventory of cases
A LIST OF CASES AND THEIR CONFIGURATION.
Set up a list of cases available to players.
"Case ID": - unique case ID (must not be repeated)
"Case name": - the name of the case, which will be displayed in the button with the list of cases and on the page of the open case
"Image of the case": - a picture of the case, which will be displayed on the page with the list of cases and on the page of the open case
"Description of the case": - a description of the case, which will be displayed on the page of the open case
"Price of the case": - the cost of the case, which will be deducted from the player's balance when his purchase
"List the case items": - here are the IDs of the items that were configured in the list of awards. Specify only the unique ID of the item you want to use
If you are having difficulty configuring the plugin or you have suggestions for improving it, then you can safely write to me in private messages in Discord
xacku.mapping
DEFAULT CONFIG
{ "Should I use the item issue limit?": false, "Setting up privileges for the item issue limit": { "casesystem.default": 5, "casesystem.vip": 7 }, "Economics Plugin(1 - Economics, 2 - Server Rewards, 3 - IQEconomic, 4 - Bank System, 5-Cases)": 5, "Color adjustment(chance-color)": { "15": "0.8352942 0.3607843 0.4039216 1", "40": "0.7450981 0.3921569 0.8156863 1", "60": "0.5058824 0.3137255 0.8235295 1", "80": "0.2588235 0.4588236 0.8470589 1", "100": "0.3215686 0.5058824 0.7215686 1" }, "List of awards": [ { "Item ID (Indicated in the list of items in the case)": "1", "Shortname": "minigun", "Amount": 1, "Drop chance": 2, "Name the item": "", "Price the item": 100, "URL image the item": "https://rustlabs.com/img/items180/minigun.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "2", "Shortname": "lmg.m249", "Amount": 1, "Drop chance": 5, "Name the item": "", "Price the item": 75, "URL image the item": "https://rustlabs.com/img/items180/lmg.m249.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "3", "Shortname": "hmlmg", "Amount": 1, "Drop chance": 10, "Name the item": "", "Price the item": 60, "URL image the item": "https://rustlabs.com/img/items180/hmlmg.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "4", "Shortname": "rifle.l96", "Amount": 1, "Drop chance": 15, "Name the item": "", "Price the item": 50, "URL image the item": "https://rustlabs.com/img/items180/rifle.l96.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "5", "Shortname": "rifle.lr300", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 40, "URL image the item": "https://rustlabs.com/img/items180/rifle.lr300.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "6", "Shortname": "rifle.ak", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 40, "URL image the item": "https://rustlabs.com/img/items180/rifle.ak.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "7", "Shortname": "rifle.sks", "Amount": 1, "Drop chance": 30, "Name the item": "", "Price the item": 50, "URL image the item": "https://rustlabs.com/img/items180/rifle.sks.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "8", "Shortname": "rifle.bolt", "Amount": 1, "Drop chance": 30, "Name the item": "", "Price the item": 40, "URL image the item": "https://rustlabs.com/img/items180/rifle.bolt.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "9", "Shortname": "smg.mp5", "Amount": 1, "Drop chance": 50, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/smg.mp5.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "10", "Shortname": "rifle.semiauto", "Amount": 1, "Drop chance": 55, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/rifle.semiauto.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "11", "Shortname": "smg.thompson", "Amount": 1, "Drop chance": 60, "Name the item": "", "Price the item": 25, "URL image the item": "https://rustlabs.com/img/items180/smg.thompson.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "12", "Shortname": "pistol.m92", "Amount": 1, "Drop chance": 70, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/pistol.m92.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "13", "Shortname": "pistol.prototype17", "Amount": 1, "Drop chance": 70, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/pistol.prototype17.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "14", "Shortname": "pistol.semiauto", "Amount": 1, "Drop chance": 75, "Name the item": "", "Price the item": 15, "URL image the item": "https://rustlabs.com/img/items180/pistol.semiauto.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "15", "Shortname": "pistol.python", "Amount": 1, "Drop chance": 80, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/pistol.python.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "16", "Shortname": "pistol.revolver", "Amount": 1, "Drop chance": 95, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/pistol.revolver.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "17", "Shortname": "electric.generator.small", "Amount": 1, "Drop chance": 5, "Name the item": "", "Price the item": 150, "URL image the item": "https://rustlabs.com/img/items180/electric.generator.small.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "18", "Shortname": "workbench3", "Amount": 1, "Drop chance": 10, "Name the item": "", "Price the item": 35, "URL image the item": "https://rustlabs.com/img/items180/workbench3.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "19", "Shortname": "workbench2", "Amount": 1, "Drop chance": 10, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/workbench2.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "20", "Shortname": "autoturret", "Amount": 1, "Drop chance": 15, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/autoturret.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "21", "Shortname": "door.double.hinged.toptier", "Amount": 1, "Drop chance": 25, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/door.double.hinged.toptier.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "22", "Shortname": "door.hinged.toptier", "Amount": 1, "Drop chance": 25, "Name the item": "", "Price the item": 15, "URL image the item": "https://rustlabs.com/img/items180/door.hinged.toptier.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "23", "Shortname": "furnace.large", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/furnace.large.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "24", "Shortname": "small.oil.refinery", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/small.oil.refinery.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "25", "Shortname": "water.catcher.small", "Amount": 1, "Drop chance": 45, "Name the item": "", "Price the item": 8, "URL image the item": "https://rustlabs.com/img/items180/water.catcher.small.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "26", "Shortname": "storage_barrel_b", "Amount": 1, "Drop chance": 45, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/storage_barrel_b.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "27", "Shortname": "storage_barrel_c", "Amount": 1, "Drop chance": 45, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/storage_barrel_c.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "28", "Shortname": "gunrack_stand", "Amount": 1, "Drop chance": 45, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/gunrack_stand.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "29", "Shortname": "gunrack_wide.horizontal", "Amount": 1, "Drop chance": 55, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/gunrack_wide.horizontal.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "30", "Shortname": "flameturret", "Amount": 1, "Drop chance": 65, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/flameturret.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "31", "Shortname": "furnace", "Amount": 1, "Drop chance": 75, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/furnace.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "32", "Shortname": "cupboard.tool.retro", "Amount": 1, "Drop chance": 75, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/cupboard.tool.retro.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "33", "Shortname": "rocket.launcher", "Amount": 1, "Drop chance": 10, "Name the item": "", "Price the item": 50, "URL image the item": "https://rustlabs.com/img/items180/rocket.launcher.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "34", "Shortname": "ammo.rocket.basic", "Amount": 1, "Drop chance": 15, "Name the item": "", "Price the item": 35, "URL image the item": "https://rustlabs.com/img/items180/ammo.rocket.basic.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "35", "Shortname": "ammo.rocket.mlrs", "Amount": 1, "Drop chance": 15, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/ammo.rocket.mlrs.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "36", "Shortname": "ammo.rocket.hv", "Amount": 1, "Drop chance": 25, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/ammo.rocket.hv.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "37", "Shortname": "ammo.grenadelauncher.he", "Amount": 1, "Drop chance": 30, "Name the item": "", "Price the item": 25, "URL image the item": "https://rustlabs.com/img/items180/ammo.grenadelauncher.he.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "38", "Shortname": "multiplegrenadelauncher", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 25, "URL image the item": "https://rustlabs.com/img/items180/multiplegrenadelauncher.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "39", "Shortname": "ammo.rifle.explosive", "Amount": 1, "Drop chance": 50, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/ammo.rifle.explosive.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "40", "Shortname": "explosive.satchel", "Amount": 1, "Drop chance": 60, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/explosive.satchel.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "41", "Shortname": "grenade.beancan", "Amount": 1, "Drop chance": 70, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/grenade.beancan.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "42", "Shortname": "rocket.launcher.dragon", "Amount": 1, "Drop chance": 5, "Name the item": "", "Price the item": 50, "URL image the item": "https://rustlabs.com/img/items180/rocket.launcher.dragon.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "43", "Shortname": "coffin.storage", "Amount": 1, "Drop chance": 10, "Name the item": "", "Price the item": 40, "URL image the item": "https://rustlabs.com/img/items180/coffin.storage.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "44", "Shortname": "legacyfurnace", "Amount": 1, "Drop chance": 15, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/legacyfurnace.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "45", "Shortname": "hobobarrel", "Amount": 1, "Drop chance": 25, "Name the item": "", "Price the item": 30, "URL image the item": "https://rustlabs.com/img/items180/hobobarrel.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "46", "Shortname": "heavyscientistyoutooz", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/heavyscientistyoutooz.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "47", "Shortname": "hazmatyoutooz", "Amount": 1, "Drop chance": 35, "Name the item": "", "Price the item": 20, "URL image the item": "https://rustlabs.com/img/items180/hazmatyoutooz.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "48", "Shortname": "cursedcauldron", "Amount": 1, "Drop chance": 60, "Name the item": "", "Price the item": 15, "URL image the item": "https://rustlabs.com/img/items180/cursedcauldron.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "49", "Shortname": "abovegroundpool", "Amount": 1, "Drop chance": 75, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/abovegroundpool.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "50", "Shortname": "rail.road.planter", "Amount": 1, "Drop chance": 80, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/rail.road.planter.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "51", "Shortname": "wall.graveyard.fence", "Amount": 1, "Drop chance": 85, "Name the item": "", "Price the item": 5, "URL image the item": "https://rustlabs.com/img/items180/wall.graveyard.fence.png", "SkinID ": 0, "Console command": "" }, { "Item ID (Indicated in the list of items in the case)": "52", "Shortname": "newyeargong", "Amount": 1, "Drop chance": 95, "Name the item": "", "Price the item": 10, "URL image the item": "https://rustlabs.com/img/items180/newyeargong.png", "SkinID ": 0, "Console command": "" } ], "Cases": [ { "Case ID": "1", "Case name": "Armory", "Image of the case": "https://unityplugincore.ru/imgs/images/2024/09/23/ORUZEINYI.png", "Discription of the case": "There will be a description of your case here", "Price of the case": 100, "List the case items": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ] }, { "Case ID": "2", "Case name": "Home", "Image of the case": "https://unityplugincore.ru/imgs/images/2024/09/23/DOMASNII.png", "Discription of the case": "There will be a description of your case here", "Price of the case": 125, "List the case items": [ "17", "18", "19", "20", "21", "22", "23", "27", "28", "26", "27", "28", "29", "30", "31", "32" ] }, { "Case ID": "3", "Case name": "Raider", "Image of the case": "https://unityplugincore.ru/imgs/images/2024/09/23/REIDERSKII.png", "Discription of the case": "There will be a description of your case here", "Price of the case": 150, "List the case items": [ "33", "34", "35", "36", "37", "38", "39", "40", "41" ] }, { "Case ID": "4", "Case name": "DLC", "Image of the case": "https://unityplugincore.ru/imgs/images/2024/09/23/DLS.png", "Discription of the case": "There will be a description of your case here", "Price of the case": 150, "List the case items": [ "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52" ] } ] }