View File
[ Script ] Stats Point for Rebirth & Reset Stats / Skills / Map SG .
This Ragnarok Online NPC script primarily focuses on the rebirth process and resetting stats, skills, and specific maps. Below is a summary of its functions:
Initial Configurations
Rebirth Cost: set .@cost, 5000000;
Minimum Base Level for Rebirth: set .@blvl, 99;
Maximum Number of Rebirths: set .@max_rebirth, 5;
Additional Stat Points per Rebirth: setarray .@bstats[0], 200, 400, 600, 800, 1000;
Required Items for Rebirth:
IDs: setarray .@items_id[0], 501, 502, 503;
Quantities: setarray .@items_qty[0], 1, 1, 1;
Cash Points Required for 4th and 5th Rebirth:
4th Rebirth: set .@cashpoint_cost[3], 500;
5th Rebirth: set .@cashpoint_cost[4], 1000;
Enable/Disable Cash Points for 4th and 5th Rebirth: set .@use_cash_points, 1;
Allowed Classes for Rebirth: setarray .@allowed_classes[0], 23, 24, 25, 4047, 4049, 4008, 4009, 4010, 4011, 4012, 4013, 4015, 4016, 4017, 4018, 4019, 4020, 4021;
Reset Costs: setarray .@Reset, 5000, 5000, 9000, 15000;
NPC Functions
Welcome Message and Introduction: Introduces the NPC and its main functions: rebirth and resetting stats, skills, and specific maps.
Main Menu: Offers three options:
Rebirth
Reset Stats/Skills/Maps SG
Cancel
Rebirth:
Checks if the player has reached the maximum number of rebirths.
Explains the rebirth process and requirements.
Verifies necessary requirements (base level, class, Zeny, items, and Cash Points if applicable).
Performs the rebirth if all requirements are met, including:
Deducting the required Zeny and items.
Changing job to Hight Novice.
Resetting level to 1.
Allocating additional stat points.
Incrementing the rebirth counter.
Reset Stats, Skills, and Maps SG:
Displays reset costs for stats, skills, and both.
Checks if the player has sufficient Zeny.
Performs the reset based on the selected option, including:
Resetting skills.
Resetting stats.
Resetting designated maps for Star Gladiator if the player’s class is Star Gladiator.
Cancel Option: Closes the dialog without performing any action.
Dialog Flows
Rebirth:
Requirement verification.
Process confirmation.
Perform rebirth if requirements are met.
Reset:
Present options and costs.
Check sufficient Zeny.
Perform the reset based on the selected option.
The script ensures players meet all requirements before allowing them to rebirth or reset their stats and skills, providing a structured and balanced in-game experience.
Submitter
JinYuichi
Submitted
07/01/24
Category
Utilities
Video
Content Author
JinYuichi