Rage Guy Posted June 1, 2013 Posted June 1, 2013 I Want make sonic blow less damage I Want make its damage like [ its normal is 100% - i want it 75% ] Quote
Patotron Posted June 1, 2013 Posted June 1, 2013 (edited) Search this in src/map/battle.c: if (bl->type == BL_PC) { sd=(struct map_session_data *)bl; //Special no damage states if(flag&BF_WEAPON && sd->special_state.no_weapon_damage) DAMAGE_SUBRATE(sd->special_state.no_weapon_damage) if(flag&BF_MAGIC && sd->special_state.no_magic_damage) DAMAGE_SUBRATE(sd->special_state.no_magic_damage) if(flag&BF_MISC && sd->special_state.no_misc_damage) DAMAGE_SUBRATE(sd->special_state.no_misc_damage) if(!damage) return 0; } Add below this: if (skill_id == AS_SONICBLOW) damage = damage * 75/100; I didnt tested it, but I think It will run Edited June 1, 2013 by Tucsus Quote
Rage Guy Posted June 1, 2013 Author Posted June 1, 2013 where to add thise if (skill_id == AS_SONICBLOW) damage = damage * 75/100; under it? Quote
Patotron Posted June 1, 2013 Posted June 1, 2013 Add under this: if (bl->type == BL_PC) { sd=(struct map_session_data *)bl; //Special no damage states if(flag&BF_WEAPON && sd->special_state.no_weapon_damage) DAMAGE_SUBRATE(sd->special_state.no_weapon_damage) if(flag&BF_MAGIC && sd->special_state.no_magic_damage) DAMAGE_SUBRATE(sd->special_state.no_magic_damage) if(flag&BF_MISC && sd->special_state.no_misc_damage) DAMAGE_SUBRATE(sd->special_state.no_misc_damage) if(!damage) return 0; } yep Quote
Patotron Posted June 1, 2013 Posted June 1, 2013 (edited) If it dont work try this: Make sure you recompile after edit if (skill_id == AS_SONICBLOW) return damage * 75/100; Edited June 1, 2013 by Tucsus Quote
Question
Rage Guy
I Want make sonic blow less damage
I Want make its damage like [ its normal is 100% - i want it 75% ]
5 answers 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.