I need help on this code and I added it before "pc_gainexp(tmpsd, &md->bl, base_exp, job_exp, 0);" in mob.cpp. I want to customize the drop rate when having autoafk state. Any one can help me if there is a problem in my code since its look like not working.
Question
nasagnilac
I need help on this code and I added it before "pc_gainexp(tmpsd, &md->bl, base_exp, job_exp, 0);" in mob.cpp. I want to customize the drop rate when having autoafk state. Any one can help me if there is a problem in my code since its look like not working.
if(sd->state.autoafk){ base_exp = base_exp - cap_value(base_exp * ((50 - ((get_percentage(sd->state.fatigue,360)/100)*50))/100), 0, UINT_MAX); job_exp = base_exp - cap_value(job_exp * ((50 - ((get_percentage(sd->state.fatigue,360)/100)*50))/100), 0, UINT_MAX); }
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.