Jump to content

Utility: [ Script ] Stats Point for Rebirth & Reset Stats / Skills / Map SG .


Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  110
  • Reputation:   30
  • Joined:  11/24/14
  • Last Seen:  

[ 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

  1. Rebirth Cost: set .@cost, 5000000;
  2. Minimum Base Level for Rebirth: set .@blvl, 99;
  3. Maximum Number of Rebirths: set .@max_rebirth, 5;
  4. Additional Stat Points per Rebirth: setarray .@bstats[0], 200, 400, 600, 800, 1000;
  5. Required Items for Rebirth:
    • IDs: setarray .@items_id[0], 501, 502, 503;
    • Quantities: setarray .@items_qty[0], 1, 1, 1;
  6. Cash Points Required for 4th and 5th Rebirth:
    • 4th Rebirth: set .@cashpoint_cost[3], 500;
    • 5th Rebirth: set .@cashpoint_cost[4], 1000;
  7. Enable/Disable Cash Points for 4th and 5th Rebirth: set .@use_cash_points, 1;
  8. 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;
  9. Reset Costs: setarray .@Reset, 5000, 5000, 9000, 15000;

NPC Functions

  1. Welcome Message and Introduction: Introduces the NPC and its main functions: rebirth and resetting stats, skills, and specific maps.

  2. Main Menu: Offers three options:

    • Rebirth
    • Reset Stats/Skills/Maps SG
    • Cancel
  3. 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.
  4. 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.
  5. Cancel Option: Closes the dialog without performing any action.

Dialog Flows

  • Rebirth:

    1. Requirement verification.
    2. Process confirmation.
    3. Perform rebirth if requirements are met.
  • Reset:

    1. Present options and costs.
    2. Check sufficient Zeny.
    3. 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
  • Submitted
    07/01/24
  • Category
  • Video
  • Content Author
    JinYuichi

 

  • Love 1
  • MVP 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/26/23
  • Last Seen:  

Hi,

Other than adding this to NPC script import, need to amend SQL?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   7
  • Joined:  03/07/23
  • Last Seen:  

Incredibly interesting and functional, approved!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...