Jump to content
  • 0
Sign in to follow this  
koko24

Asura SP Cap

Question

Hello 

i want to limit the extremityfist SP Damage to 6k sp

				case MO_EXTREMITYFIST:	#ifndef RENEWAL					{						//Overflow check. [Skotlex]						unsigned int ratio = skillratio + 100*(8 + st->sp/10);						//You'd need something like 6K SP to reach this max, so should be fine for most purposes.						if (ratio > 60000) ratio = 60000; //We leave some room here in case skillratio gets further increased.						skillratio = (unsigned short)ratio;					}

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Actually this will be right:

					    unsigned int ratio = skillratio + 100*(8 + st->sp/10);						//You'd need something like 6K SP to reach this max, so should be fine for most purposes.						if (ratio > 60000) ratio = 60000; //We leave some room here in case skillratio gets further increased.


means if you have 6k sp the formula will be:

skillratio + 100*(8+6000/10) = skillratio + 100*608 = skillratio + 60800


 

Edited by Oxxy

Share this post


Link to post
Share on other sites
  • 0
 if (ratio > 60000) ratio = 60000

if i want to lower the cap this is the only thing i need to modify right?

 

 if (ratio > 55000) ratio = 55000

like this? Thank you guys for answering

Share this post


Link to post
Share on other sites
  • 0

unsigned int ratio = skillratio + 100*(8 + st->sp/10);

 

can i change this on into

 

unsigned int ratio = skillratio + 70*(8 + st->sp/10); ?

Share this post


Link to post
Share on other sites
  • 0

unsigned int ratio = skillratio + 100*(8 + st->sp/10);

 

can i change this on into

 

unsigned int ratio = skillratio + 70*(8 + st->sp/10); ?

You can. Don't forget to recompile the server after.

Share this post


Link to post
Share on other sites
  • 0

That line of code only applies to pre-re, iirc Asura has a different calculation on Renewal.

 

In any case, if you see the code, its enclosed within #ifndef RENEWAL and #endif. This means it only applies to Not Renewal

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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