Jump to content
  • 0

Stat points cost per stat point problem


Question

Posted

Okay here is my problem im currently developing my server with max lvl 255/120 renewel mechanics and max stats 255, i can go to max lvl 255 and job lvl 120 but i can only put about 200 stat points in one stat the cost per stat point goes up to 92 when hitting 195 stat points. how can i fix this problem please? ive already tried changing my statpoint.txt with pre-renewel but it didnt work.

11 answers to this question

Recommended Posts

  • 2
Posted (edited)

Hi,

for this matter you got 2 choices.

-Recompile server with pre-renewal formulas overall by commenting this line in renewal.h,

#define RENEWAL

and recompile. It well turn your server into part pre-renewal for several formulas unless you comment out the rest on it.

or

-Go in the source code, pc.c, and change the following line,

sp += (low < 100) ? (2 + (low - 1) / 10) : (16 + 4 * ((low - 100) / 5));

for

sp += ( 1 + (low + 9) / 10 );

and recompile the server which will make server use pre-renewal formulas for status point calculations while keeping the rest of the renewal settings.

Edited by JoWei
  • Upvote 3
  • 0
Posted
On 8/11/2012 at 4:06 AM, PapaZola said:

can someone help?

i already make like this

 


if ( low >= pc_maxparameter(sd) && val > 0 )
return 0; // Official servers show '0' when max is reached

high = low + val;

if ( val < 0 )
swap(low, high);

for ( ; low < high; low++ )
#ifdef RENEWAL // renewal status point cost formula
sp += ( 1 + (low + 9) / 10 );
#else
sp += ( 1 + (low + 9) / 10 );
#endif

return sp;
}
 

 

still same with renewal stats and i already recompile

I am also dealing with the same problems..

anyone can help?

Posted

can someone help?

i already make like this

if ( low >= pc_maxparameter(sd) && val > 0 )
return 0; // Official servers show '0' when max is reached

high = low + val;

if ( val < 0 )
swap(low, high);

for ( ; low < high; low++ )
#ifdef RENEWAL // renewal status point cost formula
sp += ( 1 + (low + 9) / 10 );
#else
sp += ( 1 + (low + 9) / 10 );
#endif

return sp;
}

still same with renewal stats and i already recompile

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...