Jump to content
  • 0

How to fix Autoguard Success rate?


zaruramen

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

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

  • 1

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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) ) {
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

work perfectly thank you very much ^^

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