Jump to content
  • 0

Change Stat Up Costs


Vach

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

I was wondering if someone could tell me where in the source code you can alter how many Stat Points it takes to up a stat; I am interested in changing the math that is used for stats above 100 to make it more uniform for the progression on my server (it jumps up rather drastically compared to the lower levels).

If I'm retarded and can't find a simple edit for this in the conf, please point me to the right direction. /ok

Also, if someone could tell me where MVP Exp is distributed in the source, I'd like to apply that to Job Exp as well.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Stats Table in /db.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Ah, that just affects the amount of points you get in total - not how much it costs to raise a stat. I have a dynamic point system with NPCs so I had to use the non-table format built into the source.

Anyway, I found the status point section in pc.c under "int pc_need_status_point(struct map_session_data* sd, int type, int val)"

I just changed:

#ifdef RENEWAL // renewal status point cost formula
 sp += (low < 100) ? (2 + (low - 1) / 10) : (16 + 4 * ((low - 100) / 5));
#else
 sp += ( 1 + (low + 9) / 10 );
#endif

To this:

sp += (low < 100) ? (2 + (low - 1) / 10) : (12 + ((low - 100) / 3));

This effectively made the stat balance 12 (which should be 101) +1 per 3 Stat Value after 100. So, 103 is 13, then 106 is 14, and so on.

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
Answer this question...

×   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...