how to change unfroze from mdef to stat luk

minx123

New member
Messages
283
Points
0
Github
minx123
i need help to change unfroze from mdef to 355 luk.

level player 255.

limit stat 200

change duration frost time.

 
Last edited by a moderator:
map/status.c(6447-6451):

  case SC_FREEZE:    sc_def = st->mdef*100;    sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10);    tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk    break;

Change the

sc_def = st->mdef*100;
to

sc_def = st->luk*28;
You will have 99% defense from Freeze if you have 355 luk. (355*28 = 9940; 9940/100 = 99.4 = 99%);

for duration after

sc_def = st->mdef*100;
add

Code:
tick_def = st->luk*25;
You will have 71% of time reduction of freeze if you have 355 luk (355 * 25 = 7100, 7100/100 = 71%)

 
Last edited by a moderator:
map/status.c(6447-6451):

  case SC_FREEZE:    sc_def = st->mdef*100;    sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10);    tick_def2 = status_get_luk(src) * -10; //Caster can increase final duration with luk    break;


Change the

sc_def = st->mdef*100;
to

sc_def = st->luk*28;
You will have 99% defense from Freeze if you have 355 luk. (355*28 = 9940; 9940/100 = 99.4 = 99%);

for duration after

sc_def = st->mdef*100;
add

tick_def = st->luk*25;You will have 71% of time reduction of freeze if you have 355 luk (355 * 25 = 7100, 7100/100 = 71%)

i follow with this problem its be unfroze even player only have 200 luk..

for duration time.. when player get frost.. its take 10sec to break with luk 300

 
Last edited by a moderator:
Did you recompile server after?
yup.. recompile.. 
Show your settings in conf/battle/status.conf

Code:
// Adjustment for the natural rate of resistance from status changes.// If 50, status defense is halved, and you need twice as much stats to block// them (eg: 200 vit to completely block stun)pc_status_def_rate: 100mob_status_def_rate: 100// Maximum resistance to status changes. (100 = 100%)// NOTE: Cards and equipment can go over this limit, so it only applies to natural resist.pc_max_status_def: 100mob_max_status_def: 100
 
Did you recompile server after?
yup.. recompile.. 
Show your settings in conf/battle/status.conf

// Adjustment for the natural rate of resistance from status changes.// If 50, status defense is halved, and you need twice as much stats to block// them (eg: 200 vit to completely block stun)pc_status_def_rate: 100mob_status_def_rate: 100// Maximum resistance to status changes. (100 = 100%)// NOTE: Cards and equipment can go over this limit, so it only applies to natural resist.pc_max_status_def: 100mob_max_status_def: 100

Here

i not change anything in this..

Code:
// Should skill casting be canceled when inflicted by curse/stun/sleep/etc (includes silence) (Note 3)?status_cast_cancel: 0// Adjustment for the natural rate of resistance from status changes.// If 50, status defense is halved, and you need twice as much stats to block// them (eg: 200 vit to completely block stun)pc_status_def_rate: 100mob_status_def_rate: 100// Maximum resistance to status changes. (100 = 100%)// NOTE: Cards and equipment can go over this limit, so it only applies to natural resist.pc_max_status_def: 100mob_max_status_def: 100
 
Did you recompile server after?
yup.. recompile.. 
Show your settings in conf/battle/status.conf

// Adjustment for the natural rate of resistance from status changes.// If 50, status defense is halved, and you need twice as much stats to block// them (eg: 200 vit to completely block stun)pc_status_def_rate: 100mob_status_def_rate: 100// Maximum resistance to status changes. (100 = 100%)// NOTE: Cards and equipment can go over this limit, so it only applies to natural resist.pc_max_status_def: 100mob_max_status_def: 100

Here

i not change anything in this..

// Should skill casting be canceled when inflicted by curse/stun/sleep/etc (includes silence) (Note 3)?status_cast_cancel: 0// Adjustment for the natural rate of resistance from status changes.// If 50, status defense is halved, and you need twice as much stats to block// them (eg: 200 vit to completely block stun)pc_status_def_rate: 100mob_status_def_rate: 100// Maximum resistance to status changes. (100 = 100%)// NOTE: Cards and equipment can go over this limit, so it only applies to natural resist.pc_max_status_def: 100mob_max_status_def: 100
Strange, everything should be working fine. Double check if you recompiled server.

 
Back
Top