Item Limits
How to enable and use Item Limits.
This plugin allows you to limit how many of a specific item can be purchased from a Mart — and define how often that stock refreshes.
You can control the restock frequency using one of these options (case-insensitive):
| Setting | Time |
|---|---|
"daily" | every day |
"2daily" | every 2 days |
"weekly" | every week |
"random" | between 1 and 7 days |
"never" | no restocking |
Example Setup
Here's a Mart event that uses various item limits:
How it works
- Each limited item must be wrapped in an array:
[itemID, min, max (optional)]. - If you give both
minandmax, the available quantity is chosen randomly between those numbers. - If you only give
min, then the limit (for that item) is always exactly that number. - If you want an unlimited item, just list it normally (like
:FULLRESTOREor:ESCAPEROPE).
Visual Example

The Screenshot above shows the maximum we can buy — in this case, 11.
Once you reach this number...

...the item becomes unavailable and shows an "Out of Stock" message:

The message tells the player how long to wait for a restock, depending on the refresh setting you used ("daily", "2daily", etc.).
HintTo instantly restock all Marts (useful for testing), run this in a script:
forcePokemonMartRefresh