Jump to content
  • 0
zaruramen

How to fix Autoguard Success rate?

Question

hello

I would like to fix a success rate of autoguard to 100%  I found some value but really don't know what it mean.

 

status.c

 

case SC_AUTOGUARD:

if( !(flag&SCSTART_NOAVOID) ) {
struct map_session_data *tsd;
int i;
for( i = val2 = 0; i < val1; i++) {
int t = 5-(i>>1);
val2 += (t < 0)? 1:t;
}

 

please advise me.

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

the fastest way by editing on `battle.c::battle_calc_damage`, find

if( (sce = sc->data[SC_AUTOGUARD]) && flag&BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_CARDFIX_ATK) && rnd()%100 < sce->val2 ) {

 

remove the `rnd()%100 < sce->val2` part, to

if( (sce = sc->data[SC_AUTOGUARD]) && flag&BF_WEAPON && !(skill_get_nk(skill_id)&NK_NO_CARDFIX_ATK) ) {
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.