Jump to content
  • 0
Sign in to follow this  
Hadeszeus

How to adjust STAT requirements for Status effect?

Question

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
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;
Percentual resistance: 10000 = 100% Resist <- from the code sc_def = st->vit*100; mean you will need 100 vit to fully resist stun
Edited by Litro

Share this post


Link to post
Share on other sites
  • 0

 

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;
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!

Share this post


Link to post
Share on other sites
  • 0

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

// 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

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.