Need help with status immunity

Pink Guy

New member
Messages
34
Points
0
Location
Japan
Emulator
Client Version
2015-11-04
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.




 
Last edited by a moderator:
        sc_def = st->luk*3; 
sc_def2 = st->luk*3; 



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

 
Last edited by a moderator:
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:

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;
 
Thanks u for the replies.  I will try them all later and tells you guys if it work.

 
Last edited by a moderator:
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.

 
Back
Top