Jump to content
  • 0
Sign in to follow this  
Pink Guy

Need help with status immunity

Question

Hey guys I just want to ask how to make more luk = less time you're affected by statuses and also 300 luk = immune to all status?  I tried googling and the threads I found so far didn't fix my problem. 

I tried these but no luck.  Might be due to these threads being 2+ years old.

 

Edited by Pink Guy

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
        sc_def = st->luk*3; 
	sc_def2 = st->luk*3; 


probably a conf for it somewhere, just reverse it or post it for me 

Edited by Naruto

Share this post


Link to post
Share on other sites
  • 0

In static int status_get_sc_def() you can add code.

Right below this,

		//Aegis accuracy
		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);

You can add your code:

		//Aegis accuracy
		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);

		// Gain all status immunity by LUK stat. Caps at 99 (100% immunity)
		// change both 99 values to what you want
		if (st->luk >= 99)
			rate = 0;
		else
			rate -= rate * st->luk / 99 + 10;

 

Share this post


Link to post
Share on other sites
  • 0

Thanks u for the replies.  I will try them all later and tells you guys if it work.

Edited by Pink Guy

Share this post


Link to post
Share on other sites
  • 0
19 hours ago, bWolfie said:

In static int status_get_sc_def() you can add code.

Right below this,

//Aegis accuracy if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);


		//Aegis accuracy
		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);

You can add your code:

//Aegis accuracy if (rate > 0 && rate%10 != 0) rate += (10 - rate%10); // Gain all status immunity by LUK stat. Caps at 99 (100% immunity) // change both 99 values to what you want if (st->luk >= 99) rate = 0; else rate -= rate * st->luk / 99 + 10;


		//Aegis accuracy
		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);

		// Gain all status immunity by LUK stat. Caps at 99 (100% immunity)
		// change both 99 values to what you want
		if (st->luk >= 99)
			rate = 0;
		else
			rate -= rate * st->luk / 99 + 10;

 

Thanks this fixed it.

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.