BROKE PROTOCOL

BROKE PROTOCOL

Pas assez d'évaluations
Mystery Box Plugin
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Taille du fichier
Publié le
Mis à jour le
13.312 KB
1 mai 2021 à 9h36
13 oct. 2022 à 9h08
6 notes de changement ( voir )

S'abonner pour télécharger
Mystery Box Plugin

Description
Mystery Box Plugin
-- This plugin was used for the Karts VS Bombers event --
The Mystery Box Plugin let you set up mystery boxes to pick-up a random item from them.
The last person in the car - according to the seat index - will pick up the item directly in the hands!
Default settings file requires the Packard Kart Weapons Pack.
The mystery box in the screenshots comes from the Mystery Box Art assets.

Set-up the plugin:
The map:

All you need is to place a trigger box with the Enter Event name set to MysteryBox
I highly recommend to use the Mystery Boxes Art assets for a full experience. You still free to design your own trigger assets if you know how to create them.

The configuration:

ATTENTION: The default settings file requires the Packard Kart Weapons Pack.

Once you got your server started for the first time with this plugin, a MysteryBoxes text file is created in your server (or game) root.
Here you put the items you can get in the boxes. DO NOT LET IT EMPTY!
Follow the format: Amount Item Chances
e.g.:
100 AmmoMG 10
You will get 100 AmmoMG with a chance of 10 out of the total chance.
The chances are calculated by the total chance you have. THIS IS NOT A PERCENTAGE

The plugin get the items dynamically, which means you do not need to restart your server to update the items. Just make the changes and save the file.

Commands
This plugin has only one command. This command is to calculate to chances of getting the items in the boxes.
There is two modes : simulation and calculating.

The simulation mode will simulate picking up 100 boxes to let you know their chance rate.
The calculating mode just calculate the chances of getting the items (item chance / total chance)

Command: /MysteryBox [simulate: true/false]
Description: Get the item chances rates.
Permission: mb.MysteryBox

NOTE: he default mode is the simulation mode. Type /MysteryBox false to use the calculating mode.