So with the release of Item Options System I had created a demo NPC with a small number of options to test the system out or be used as a full fledged NPC.
Configuration
/**
* General Configuration
*/
/* Chance of the enhancement process to fail. (0 - 99 in percent) */
.chance_of_failure = 10;
/* Delete the item on failure? (true/false) */
.delete_on_failure = true;
/* Required amount of zeny for a try. */
.zeny_requirement = 100;
/* Minimum amount of the bonus value.
* For negative effects or certain bonuses that require negative values
* Maximum possible value is -INT16_MAX)
*/
.minimum_bonus_amount = -100; // usually used with delay bonus options, although not provided in the script.
/* Maximum amount of the bonus value.
* Maximum possible value is INT16_MAX */
.maximum_bonus_amount = 100;
/* Disable selection of bonus value (true/false) */
.enable_random_bonus = false;
/* Item Option Descriptions */
setarray(.options$[0], "Max HP", "Max SP", "STR", "AGI", "VIT", "INT", "DEX", "LUK");
/* Item Option Constants */
setarray(.option_constants[0], VAR_MAXHPAMOUNT, VAR_MAXSPAMOUNT, VAR_STRAMOUNT, VAR_AGIAMOUNT, VAR_VITAMOUNT, VAR_INTAMOUNT, VAR_DEXAMOUNT, VAR_LUKAMOUNT);
end;
File v1.0
item_options.txt
Let me know what you think!
Enjoy~!