🔄 Reroll


The Reroll feature allows players to place an item and reroll its stats in order to obtain better or more desirable stat values.

Reroll GUI

🛠️ How Reroll Works

When the item is placed into the item slot and the confirm button is pressed, the item's stats will be rerolled based on the defined configuration.


🔑 Permission

Each station has its own permission requirement in order to be used. Of course, you can customize or change the permission to suit your needs.


🌟 Features

1. Material Item

If enabled, this means the operation of the station will require the specified materials in order to function as intended. You can define one or more material items, and the station will only execute if the player provides the required materials.

Note: type is the type of the MMOItem. id is the ID of the MMOItem. amount is the quantity of the material required. slot is the GUI slot where the material must be placed.

Options

These are additional conditions that enhance material requirements:

  • match-item-type: The material will only be accepted if the item placed in the item slot has the matching type specified here.

  • match-item-tier: The material will only be accepted if the item placed in the item slot has the matching tier specified here.

  • match-item: The material will only be accepted if the item placed in the item slot has the matching According to the item defined in match-item specified here.


2. Chance Item

If enabled and used in conjunction with chance-based mechanics, the Chance Item provides an additional success rate boost on top of the existing base chance. This item acts as a support to increase the overall likelihood of success during actions such as upgrading

Note: type is the type of the MMOItem. id is the ID of the MMOItem. amount is the quantity of the material required. slot is the GUI slot where the material must be placed. chance This sets the success chance for the Chance Item

Options

These are additional conditions that enhance material requirements:

  • match-item-type

  • match-item-tier

  • match-item


3. Material Formula

The Material Formula feature provides a highly flexible way to dynamically calculate the cost and material requirements for item.

Material Increase

When this feature is enabled (enabled: true), the quantity of material items required for an gem add socket will increase as the item's level rises. This ensures that higher-level upgrades demand a greater investment from players, providing a more balanced progression. The increase is determined by a custom formula you define, giving you precise control over the scaling.

In Short: Level Up = Material Requirements.

Formula Configuration

The core of this feature lies in the formula field, where you can define a mathematical expression. Basic: you can use the basic default chance calculation or create your own custom formula to control how the chance is calculated. Custom Placeholders: The formula supports specific placeholders that will be replaced with dynamic values during calculation.


4. Cost

This feature allows you to use currencies such as PlayerPoints, CoinsEngine, or Vault. If you want to use a currency other than Vault, you must specify it using the currency: option — for example: currency: pp for PlayerPoints, or currency: ce;<currency> for CoinsEngine. And it also supports using custom placeholders from the system itself.


5. Default Chance

This feature allows you to set the success chance of this station yourself, in cases where Tier is not enabled.


6. Tiers

This feature allows you to set the success chance based on the tiers of the item placed in the item slot. If the item's tier matches the specified tiers, the chance will be applied accordingly. If none of the tier conditions are met, the chance will be taken from the no-tier-chance setting.


🧰 8. Use Reroll MMOItems

use-reroll-mmoitems enables the default reroll functionality from MMOItems. To use it, you must define the following parameters: base, scale, spread, and max-spread.

When enabled, it will function according to the original behavior of MMOItems, and the stats in the MMOItems config must be structured as follows:

Complex Reroll

This is an additional feature that performs a reroll by gradually increasing or decreasing the values based on your adjustments. It works as follows:

The reroll-step-min and reroll-step-max settings act as replacements for the original spread and max-spread values. This is an alternative method for rerolling in nwMMOUpgrade. Enabling force-direction-on-bounds: true means that decimal values will be rounded.


🎲 9. Reroll

9.1 Default Reroll

Default reroll will reroll all stats on an item that are eligible for rerolling—such as ATTACK_DAMAGE or other stats in the form of Doubles. You can define the min and max values to control the lowest and highest possible stat values for each reroll.


9.2 Tiers Reroll

Tiers Reroll works by checking the tier of the item to determine which conditions it matches. Each tier can have its own specific min and max values for rerolling, allowing different tiers to have unique reroll stat ranges.


9.3 Custom Stats Min Max

Custom Stats Min Max allows you to define reroll behavior for each individual stat in a variety of ways. This gives you more flexibility and control when customizing how each stat is rerolled.

Example:

The configuration of this feature is divided as follows: <stats>;<min>;<max>;<tier> or <stats>;<min>;<max>;<tier1>,<tier2>.....<tierX>

This means that the stat ATTACK_DAMAGE will be rerolled with values between 1 and 20, and this setting will only apply to items that belong to the RARE or LEGENDARY tiers.


🔥 10. Blacklist-Stat

blacklist-stat is used to prevent specific stats from being rerolled. As I mentioned before, when using the reroll feature, it will change any stat that is of type Double. Therefore, I recommend that you carefully blacklist the important stats you don’t want to be affected by the reroll process.

Note: If custom-stats-min-max is enabled, this feature will be ignored and will not apply.


🎯 11. Whitelist-Stat

whitelist-stat is used to filter and allow only the specified stats to be affected during the stat reroll process. If this feature is enabled, only the stats listed will be eligible for rerolling — all others will be ignored.

Note: If custom-stats-min-max is enabled, this feature will be ignored and will not apply.

Reroll Point

⭐ 12. Use Reroll Point

If use-reroll-point is enabled, the reroll process will use the ability points available in the item. When you reroll at the Reroll Station, it will check how many points the item has. If there are enough points, the reroll will be allowed.


Example Full Config

Last updated