Jump to content
Sign in to follow this  
phil

Build Manager - Create your builds and load them when you want

Recommended Posts

Name: Build Manager
Creator: Cretino
Version: 1.3
Contributors: (@kerbiii: Found a bug, @Anisotropic Defixation: Make a list of bugged skills.  I made updates from 1.2->1.3)

I made quite a few changes to this script which is why I feel it's worth posting here.  Read the changelog in the npc file to understand what was modified.
Here's Cretino's original thread for reference

Note: my modified version only works for servers where max stat value is 99.
e.g. in conf/map/battle/player.conf

// Max limit of char stats. (AGI, STR, etc.)
max_parameter: 99

I also only tested pre-re, no third jobs.

NPC Features
- You can create, load and delete stat/skill profiles
- You can reset stats/skills


To configure, go to line 588

Spoiler

// Cost to reset player stats
.reset_stats_cost = 10000;
 

// Cost to reset player skills
.reset_skills_cost = 10000;


// Cost to create a new stats profile
.create_stats_cost = .reset_stats_cost * 3;


// Cost to create a new skills profile
.create_skills_cost = .reset_skills_cost * 3;


// Cost to load a stats profile
.load_stats_cost = .reset_stats_cost * 2;


// Cost to load a skills profile
.load_skills_cost = .reset_skills_cost * 2;


// Will check if player have max base level and job level to access the npc. (Max Level = 'MAX_LEVEL' constant)
// false = Disabled
.check_max_lv = false;


Two modifications are needed for this npc to work.
- Source modification as seen in this diff
skillup_scriptcommand_by_cretino_v0.2.diff
 

 

- Add this function to "npc/other/Global_Functions.txt"

Spoiler

//== Function F_GetStatPointCost ==============================
// Returns the total stat points it cost to reach the passed in value of a stat
// example:
// to get to 7 vit, it costs 12 stat points
function    script    F_GetStatPointCost    {
    .@val = getarg(0);
    // have to subtract one since characters start with a single point
    .@tens = (.@val - 1) / 10;
    .@ones = (.@val - 1) % 10;

    return (.@tens * (.@tens * 5 + 15)) + (.@ones * (.@tens + 2));
}


And finally, the npc script

build_manager_v1.3.txt


tested on hercules v2021.03.08

Hope this helps someone :)

 

Edited by phil
add caveat for max stat 99

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.