Hello friends I'm new here.
Some time ago I made a server, 2 years ago to be exact, I unfortunately did not save it and lost everything.
Today I'm coming back and I came across this problem already + - a week that I try to solve, I've read everything, and read it again but I only have a headache.
I want to make the time that frozen step is decreased based on my MDEF, the closer to the maximum MDEF of my server the less frozen time, and to reach a value chosen by me is immune to freeze and continue to take damage.
Glad to whom I can help.
PS: If you are in the wrong area people move.
I do not know how my English is, I hope you understand.
below is how is status.c:
case SC_FREEZE:
sc_def = st->mdef*100;
sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10);
tick_def = 0; //No duration reduction
#ifdef RENEWAL
tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk
#else
tick_def2 = 0; //No duration reduction
#endif
break;