How to adjust STAT requirements for Status effect?

Hadeszeus

New member
Messages
651
Points
0
Location
Philippines
Can someone guide me which part of the source I need to edit to increase the STAT requirement on negative status immunity?

For example if VIT 99+ immunity to stun is like 100% I want to change that to 120.

Also for LUK requirements?

Thanks

 
Code:
case SC_STUN:	sc_def = st->vit*100;	sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10);	tick_def2 = st->luk*10;
Code:
Percentual resistance: 10000 = 100% Resist <- from the code sc_def = st->vit*100; mean you will need 100 vit to fully resist stun
 
Last edited by a moderator:
case SC_STUN: sc_def = st->vit*100; sc_def2 = st->luk*10 + SCDEF_LVL_DIFF(bl, src, 99, 10); tick_def2 = st->luk*10;
Code:
Percentual resistance: 10000 = 100% Resist <- from the code sc_def = st->vit*100; mean you will need 100 vit to fully resist stun
Thank you Bro!

 
If you just want more stats required in general for all status changes and not change the stats, then there is also a config for it in status.conf. :-)

https://raw.githubusercontent.com/HerculesWS/Hercules/master/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
 
Back
Top