Upgrade
Last updated
Last updated
The Upgrade feature allows you to enhance your items, making them significantly more effective by improving their stats. You have full control to customize the upgrade mechanics, including success rates, material requirements, and stat increases, through the plugin's configuration file to perfectly suit your server's design.
For an item to be eligible for an upgrade using nwMMOUpgrade, it must first be assigned an Upgrade-Template. This template dictates the specific upgrade path and potential stat progressions for that particular item.
The plugin will reference the stats and upgrade rules defined within the Upgrade-Template that the item possesses. If an item does not have an Upgrade-Template applied to it, it cannot be processed by the upgrade system.
Define the material items used for upgrading, and specify their quantities.
Define protection items that prevent upgrade failure (optional for upgrades). Specify their quantities.
Success items increase the chance of successful upgrades (you can define more than one item).
Upgrade operations are divided into two types:
4.1 Decay-Level-Upgrade
This mode reduces the success chance as the item's level increases. You can customize settings such as the base success chance, minimum success chance, and the percentage reduction in success chance per level.
4.2 Custom-Level-Upgrade
This mode allows you to dynamically define the success chance for each item level. You can set a custom success chance for every individual level.
The Custom Formula feature provides a highly flexible way to dynamically calculate the cost and material requirements for item upgrades, allowing them to scale with the item's level.
When this feature is enabled (enabled: true
), both the monetary cost (if cost-level
is also enabled) and the quantity of material items required for an upgrade 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 = Higher Cost & Material Requirements.
The core of this feature lies in the formula
field, where you can define a mathematical expression.
Syntax: You can use standard mathematical operators: +
(addition), -
(subtraction), *
(multiplication), and /
(division).
Placeholders: The formula supports specific placeholders that will be replaced with dynamic values during calculation:
{chance}
: Represents the base success chance (as defined elsewhere in your configuration).
{material}
: Represents the base quantity of material items required (as defined elsewhere).
{level}
: Represents the current level of the item being upgraded.
When an upgrade is successful, a random stat from the item's template will be upgraded, rather than all stats present in the template.
If an item upgrade fails, the item will be replaced with a predefined material. Important: If a Protection Item is used, the item will not be destroyed upon failure.
When an upgrade is successful, you can define actions to be performed based on the item's level.
9. Cost Upgrade
This feature allows you to use Vault (Money) for each Upgrade addition.
10. Applies To
You can specify more than one MMOItem type that this configuration applies to.