icegrave01 Posted July 14, 2016 Posted July 14, 2016 Hi sir/mam how to reduce asura strike damage SP limit is 6k? here's my code in battle c. i dunno if this working or not? case MO_EXTREMITYFIST: if(sstatus->sp <= 6000) skillratio += 100 * (7 + sstatus->sp / 10); else // Asura strike SP damage max is 6k skillratio += 100 * (7 + 6000 / 10); if (tsd) skillratio /= 2; //Half damage for players skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection break; Quote
0 Helly Posted July 14, 2016 Posted July 14, 2016 (edited) Or you can try use: skill_damage_db.txt must activate that db from:src/config/core.h Find and enable(when enable save and recompile): /// Uncomment to enable skills damage adjustments /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the /// damage rate of specified skills. //#define ADJUST_SKILL_DAMAGE Edited July 14, 2016 by Helly 1 Quote
0 Technoken Posted July 14, 2016 Posted July 14, 2016 Or you can try use: skill_damage_db.txt must activate that db from: src/config/core.h Find and enable(when enable save and recompile): /// Uncomment to enable skills damage adjustments /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the /// damage rate of specified skills. //#define ADJUST_SKILL_DAMAGE He's asking about SP damage. Try this case MO_EXTREMITYFIST: if(sstatus->sp <= 6000) skillratio += 100 * (7 + sstatus->sp / 10); else // Asura strike SP damage max is 6k skillratio += 100 * (7 + 6000 / 10); skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection break; If you want to test if it's working try. Make one champion with 6K SP and another one with over 6K SP. If the damage is the same, then it's working. Quote
0 Paroxysm Posted July 14, 2016 Posted July 14, 2016 Try this Find in battle.c case MO_EXTREMITYFIST: skillratio += 100*(7 + sstatus->sp/10); skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection break; Change: skillratio += 100*(7 + sstatus->sp/10); To: skillratio += 100*(7 + min(sstatus->sp,6000)/10); 1 Quote
0 icegrave01 Posted July 15, 2016 Author Posted July 15, 2016 Or you can try use: skill_damage_db.txt must activate that db from: src/config/core.h Find and enable(when enable save and recompile): /// Uncomment to enable skills damage adjustments /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the /// damage rate of specified skills. //#define ADJUST_SKILL_DAMAGE He's asking about SP damage. Try this case MO_EXTREMITYFIST: if(sstatus->sp <= 6000) skillratio += 100 * (7 + sstatus->sp / 10); else // Asura strike SP damage max is 6k skillratio += 100 * (7 + 6000 / 10); skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection break; If you want to test if it's working try. Make one champion with 6K SP and another one with over 6K SP. If the damage is the same, then it's working. Not working either Maybe i should change this?? battle c. static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv) { struct map_session_data *sd = BL_CAST(BL_PC, src); struct map_session_data *tsd = BL_CAST(BL_PC, src); Try this Find in battle.c case MO_EXTREMITYFIST: skillratio += 100*(7 + sstatus->sp/10); skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection break; Change: skillratio += 100*(7 + sstatus->sp/10); To: skillratio += 100*(7 + min(sstatus->sp,6000)/10); Not working. Quote
0 Paroxysm Posted July 15, 2016 Posted July 15, 2016 It's working on my part. Did you recompile? 1 Quote
0 icegrave01 Posted July 15, 2016 Author Posted July 15, 2016 It's working on my part. Did you recompile? Yes i did. should i recompile again? Quote
0 Helly Posted July 15, 2016 Posted July 15, 2016 (edited) well the simply way that i do to reduce damage in some skills was reduce The SP and HP of thats jobs in here https://github.com/rathena/rathena/blob/master/db/re/job_basehpsp_db.txtso thats jobs get less SP i did to reduce damage and balance jobs like Sura Tiger Cannon and Rune Knight Dragon Breath i have done it about 5 years ago x.x i dont remeber the fully steps but you can try Edited July 15, 2016 by Helly Quote
0 Technoken Posted July 15, 2016 Posted July 15, 2016 Haxzor and mine are almost the same and both are working to me. Quote
0 icegrave01 Posted July 16, 2016 Author Posted July 16, 2016 Haxzor and mine are almost the same and both are working to me. It's working now. i miss some step to recompile xD Thank you everyone Quote
Question
icegrave01
Hi sir/mam how to reduce asura strike damage SP limit is 6k?
here's my code in battle c.
i dunno if this working or not?
9 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.