RoseLoot icon indicating copy to clipboard operation
RoseLoot copied to clipboard

Is there a way to have the cooldown per chest?

Open galexrt opened this issue 2 years ago • 2 comments

We are currently trying to move from PhatLoots to RoseLoot and are wondering if cooldowns can be applied per each chest?

Our scenario is as follows:

We have hundreds of empty chests on a map, when a player opens a chest the contents are "rolled" by RoseLoot, till the chest contents are either taken all out or expired (~5-10 minutes). The chest "expiration" is done on a per chest but server wide level.

Is that something we can achieve with RoseLoot?

galexrt avatar Jul 24 '22 11:07 galexrt

As per #5 something like that isn't really possible right now. It's something I want to add in the future though, the only issue in your case if I added it would be that you'd have to run a command on every chest to be able to set the contents refresh cooldown for it. I don't really have an ETA for that feature but I could prioritize it for one of the next things to add if you need it

Esophose avatar Jul 24 '22 17:07 Esophose

@Esophose Got it, no worries!

if I added it would be that you'd have to run a command on every chest to be able to set the contents refresh cooldown for it.

Even if every chest would have the same refresh cooldown? Right now with PhatLoots, I can basically set a "default loot table" for the different types of chests. So every chest is "auto-magically" added to the "in-memory list" when it is opened by an user.

If there is an API in RoseLoot, to, e.g., generate a new inventory, that another plugin could use to then take care of handling cooldowns and opening the inv / getting the loot from RoseLoot.

galexrt avatar Jul 24 '22 19:07 galexrt