Jump to content
Message added by mattffhh,

Thank you so much for your interest in my plugin!
If you have any questions, run into any issues, or even have ideas for future features, don’t hesitate to reach out. For support, please open a ticket in the support section on the site.

Please allow up to 24 hours for a response, as there may be differences in time zones. I’m here to help and will do my best to get back to you as soon as possible.

6 Screenshots

  • 4.1k
  • 56
  • 43.21 kB
This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments

wiress67

Posted

how come we only get one item in the crate how do I change that can you make it in the configs so we get random stuff. Last time I go to create already got one leather

mattffhh

Posted

8 hours ago, wiress67 said:

how come we only get one item in the crate how do I change that can you make it in the configs so we get random stuff. Last time I go to create already got one leather

Hey,

By default, the items will be randomly generated based on their weights. Higher weights mean a higher probability of getting that item. If you need more slots in the Lucky Crate, change the config "Max number of slots in a container." Then it will automatically fill the Lucky Crate up to the number you have specified.

Note: If the "Always Fill All Slots" setting is not enabled, the loot will be generated up to the container slots value, meaning some slots may remain empty depending on the random selection.

wiress67

Posted

so what should I set my config settings to I'm just new to this I don't understand it I was just people on my server was complaining cuz they only got one stuff

mattffhh

Posted

10 minutes ago, wiress67 said:

so what should I set my config settings to I'm just new to this I don't understand it I was just people on my server was complaining cuz they only got one stuff

Can you send me your current config and loot table and I will help you out.

 

wiress67

Posted

I change the Number of Lucky Crates to spawn": 5,  the rest I don't understand

 

{
  "Log player looting to file": true,
  "Destroy Lucky Crate on looting": true,
  "Max number of slots in a container": 1,
  "Always fill all cointainer slots": true,
  "Prevent duplicate items": true,
  "Container type to use": "box.wooden.large",
  "Large box skin id": 3346528269,
  "Small box skin id": 3346533967,
  "Debug mode": false,
  "Broadcast Lucky Crate spawn to all players": true,
  "Broadcast message": "<color=#FF9900>[LuckyCrate]</color> A Lucky Crate has spawned at {x}, {y}, {z} in grid {grid}, {distance}m away to the {direction}!",
  "Number of Lucky Crates to spawn": 5,
  "Duration of the Lucky Crate in seconds": 300,
  "Lucky Crate spawn frequency in seconds": 60,
  "Lucky Crate spawn attempts": 10,
  "Enable map marker": true,
  "Map marker duration in seconds": 300,
  "Check Lucky Crates to destroy interval in seconds": 60
}

wiress67

Posted

 

I change the Number of Lucky Crates to spawn": 5,  the rest I don't understand

 I change Lucky Crate spawn frequency in seconds": 1800   so they just spawn every half an hour

 

{
  "Log player looting to file": true,
  "Destroy Lucky Crate on looting": true,
  "Max number of slots in a container": 1,
  "Always fill all cointainer slots": true,
  "Prevent duplicate items": true,
  "Container type to use": "box.wooden.large",
  "Large box skin id": 3346528269,
  "Small box skin id": 3346533967,
  "Debug mode": false,
  "Broadcast Lucky Crate spawn to all players": true,
  "Broadcast message": "<color=#FF9900>[LuckyCrate]</color> A Lucky Crate has spawned at {x}, {y}, {z} in grid {grid}, {distance}m away to the {direction}!",
  "Number of Lucky Crates to spawn": 5,
  "Duration of the Lucky Crate in seconds": 300,
  "Lucky Crate spawn frequency in seconds": 1800,
  "Lucky Crate spawn attempts": 10,
  "Enable map marker": true,
  "Map marker duration in seconds": 300,
  "Check Lucky Crates to destroy interval in seconds": 60
}

mattffhh

Posted

Thanks, 

Here I changed the "Max number of slots in a container" to 5. This will make sure there is 5 slots in the Lucky Crate for items to spawn. 
Let me explain each config setting in detail.

{
  "Log player looting to file": true,
  "Destroy Lucky Crate on looting": true,
  "Max number of slots in a container": 5,
  "Always fill all cointainer slots": true,
  "Prevent duplicate items": false,
  "Container type to use": "box.wooden.large",
  "Large box skin id": 3346528269,
  "Small box skin id": 3346533967,
  "Debug mode": false,
  "Broadcast Lucky Crate spawn to all players": true,
  "Broadcast message": "<color=#FF9900>[LuckyCrate]</color> A Lucky Crate has spawned at {x}, {y}, {z} in grid {grid}, {distance}m away to the {direction}!",
  "Number of Lucky Crates to spawn": 5,
  "Duration of the Lucky Crate in seconds": 300,
  "Lucky Crate spawn frequency in seconds": 1800,
  "Lucky Crate spawn attempts": 10,
  "Enable map marker": true,
  "Map marker duration in seconds": 300,
  "Check Lucky Crates to destroy interval in seconds": 60
}

"Log player looting to file"
This setting when enabled, creates a file in your server data folder called "LootLog.json". Here you will see every interaction between your players and the lucky crates.

"Destroy Lucky Crate on looting"
This setting when enabled destroys the Lucky Crate instantly after looting it, ignoring the specified duration.

"Max number of slots in a container"
This number will be the container size of the Lucky Crate. For example with 5 it will look something like this in terms of container slots.

image.png.da8c425dee4bdce4fb0f4c7f8540c655.png

"Always fill all container slots"
This config when enabled will make sure each Lucky Crate is always full of items. 
Note: If "prevent duplicate items" is enabled, and the loot table is smaller than the number of slots specified in "Max number of slots in a container", this will result in empty slots.

"Prevent duplicate items"
This setting when enabled prevent same items from appearing in the Lucky Crate at the same time.

"Container type to use"
Choose between box.wooden.large (large box) or woodbox_deployed (small box).

"Large Box skin id"
The skinid for the large box, change this if you want another skin.

"Small Box skin id"
The skinid for the small box, change this if you want another skin.

"Debug mode"
This config when enabled will display additional information in your console, for debugging.

"Broadcast Lucky Crates spawn to all players"
This config when enabled will send a message to all players of the spawning of a Lucky Crate.

"Broadcast message"
The message of the broadcast.

"Number of Lucky Crates to spawn"
This number is the total amount of Lucky Crates to spawn at a given time. If this is set to 5, there will spawn 5 Lucky Crates at a time.
image.png.f7bdee2d1168b1918aba31b87021fe13.png

"Duration of the Lucky Crate"
This number is how long each Lucky Crate will last in the world, before being destroyed.

"Lucky Crate spawn frequency in seconds"
This number is how often the Lucky Crates will attempt to spawn.

"Lucky Crate spawn attempts"
This number is how many spawn attempts each Lucky Crate will try before failing.

"Enable map marker"
This config allows you to display a map marker on the Lucky Crates spawn location to attract more world pvp.

"Map marker duration in seconds"
This number is how long each marker should exist before being removed.

"Check Lucky Crates to destroy interval in seconds"
How often the system will check to destroy empty Lucky Crates, used if "Destroy Lucky Crate on looting" is disabled or the Crate has not been looted yet, and the crate duration runs out.

Loot table used:

 

{
  "LootTable": [
    {
      "ItemName": "rifle.ak",
      "Weight": 1,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "weapon.mod.holosight",
      "Weight": 5,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "ammo.pistol",
      "Weight": 50,
      "AmountMin": 10,
      "AmountMax": 10
    },
    {
      "ItemName": "scrap",
      "Weight": 75,
      "AmountMin": 50,
      "AmountMax": 100
    },
    {
      "ItemName": "metal.fragments",
      "Weight": 50,
      "AmountMin": 200,
      "AmountMax": 250
    },
    {
      "ItemName": "supply.signal",
      "Weight": 3,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "wood",
      "Weight": 100,
      "AmountMin": 500,
      "AmountMax": 500
    },
    {
      "ItemName": "metal.refined",
      "Weight": 15,
      "AmountMin": 50,
      "AmountMax": 100
    },
    {
      "ItemName": "rifle.bolt",
      "Weight": 2,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "explosive.timed",
      "Weight": 1,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "weapon.mod.silencer",
      "Weight": 10,
      "AmountMin": 1,
      "AmountMax": 1
    },
    {
      "ItemName": "leather",
      "Weight": 50,
      "AmountMin": 100,
      "AmountMax": 100
    },
    {
      "ItemName": "sulfur.ore",
      "Weight": 75,
      "AmountMin": 200,
      "AmountMax": 300
    }
  ]
}



If there is anything else that is unclear, make a support ticket. As well as there are more info on the Lucky Crate page description.

Kind regards,
mattffhh

wiress67

Posted

 I changed it to five   "Max number of slots in a container": 5 I copied your config files if that's all I have to do thank you for your help much appreciated for your time

mattffhh

Posted

2 hours ago, wiress67 said:

 I changed it to five   "Max number of slots in a container": 5 I copied your config files if that's all I have to do thank you for your help much appreciated for your time

Hey,

Thank you and no problem. 🙂 You can adjust the values based on your needs. Glad to have helped.

Kind regards,
mattffhh

ALiEN JiM

Posted

Hi Mattffhh, I have an ongoing issue for a few months now with map icon not clearing once the crate has been looted, It makes players go looking for the crate that is no longer there.

this is running on oxide

 

Any help on this would be mush appreciated.

Regards

Jim.

mattffhh

Posted

1 hour ago, ALiEN JiM said:

Hi Mattffhh, I have an ongoing issue for a few months now with map icon not clearing once the crate has been looted, It makes players go looking for the crate that is no longer there.

this is running on oxide

 

Any help on this would be mush appreciated.

Regards

Jim.

Hey, 

Thanks for letting me know. I will check it out and find a solution.

Kind regards,
mattffhh

mattffhh

Posted

5 hours ago, ALiEN JiM said:

Hi Mattffhh, I have an ongoing issue for a few months now with map icon not clearing once the crate has been looted, It makes players go looking for the crate that is no longer there.

this is running on oxide

 

Any help on this would be mush appreciated.

Regards

Jim.

Can you open a support request and paste your LuckyCrates config file? 

ALiEN JiM

Posted

Sorry for the delay, I will do it right away.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 1

mattffhh's Collection

User Feedback

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.1k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.