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

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