zaruramen Posted January 6, 2016 Share Posted January 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted January 7, 2016 Share Posted January 7, 2016 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) ) { Quote Link to comment Share on other sites More sharing options...
0 zaruramen Posted January 7, 2016 Author Share Posted January 7, 2016 work perfectly thank you very much ^^ Quote Link to comment Share on other sites More sharing options...
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
please advise me.
Link to comment
Share on other sites