RN1986 Posted August 4, 2012 Posted August 4, 2012 every time i hit a monster it reflects on my charater star glad using union skill. by the way star glad miss on emp how to fix it bump Quote
1 Mystery Posted August 4, 2012 Posted August 4, 2012 You would wanna look at this part of the code: if( sc ) { //SG_FUSION hp penalty [Komurka] if (sc->data[sC_FUSION]) { int hp= sstatus->max_hp; if (sd && tsd) { hp = 8*hp/100; if (100*sstatus->hp <= 20*sstatus->max_hp) hp = sstatus->hp; } else hp = 2*hp/100; //2% hp loss per hit status_zap(src, hp, 0); } https://rathena.svn....rc/map/battle.c Remove that entire part so that you're left with: if(skill_num == ASC_BREAKER) { //Breaker's int-based damage (a misc attack?) struct Damage md = battle_calc_misc_attack(src, target, skill_num, skill_lv, wflag); wd.damage += md.damage; } /** * affecting non-skills **/ if( !skill_num ) { 1 Quote
-1 Mystery Posted August 4, 2012 Posted August 4, 2012 Sorry, try this: if(skill_num == ASC_BREAKER) { //Breaker's int-based damage (a misc attack?) struct Damage md = battle_calc_misc_attack(src, target, skill_num, skill_lv, wflag); wd.damage += md.damage; } if( sc ) { hp = 2*hp/100; //2% hp loss per hit status_zap(src, hp, 0); } /** * affecting non-skills **/ if( !skill_num ) { /** * RK Enchant Blade Just removing the HP modification =/ I think that should work.. from the union. Quote
-1 sweetmole Posted April 5, 2018 Posted April 5, 2018 i cant remove the hp penalty. could someone please remove it heres my battle.c battle.txt Quote
Yonko Posted August 4, 2012 Posted August 4, 2012 hey dude the union skill amplifies your damage . when you attack, it consumes HP Quote
RN1986 Posted August 4, 2012 Author Posted August 4, 2012 sir Mysterious error when compiling what i wanna do is remove life consume and make it add more damage when buffed w/ union. Quote
RN1986 Posted August 5, 2012 Author Posted August 5, 2012 sir Mysterious will this add a dmg? f(skill_num == ASC_BREAKER) { //Breaker's int-based damage (a misc attack?) struct Damage md = battle_calc_misc_attack(src, target, skill_num, skill_lv, wflag); wd.damage += md.damage; } if( sc ) { hp = 2*hp/100; //2% hp loss per hit status_zap(src, hp, 0); } /** * affecting non-skills **/ if( !skill_num ) { /** * RK Enchant Blade Quote
Mystery Posted August 6, 2012 Posted August 6, 2012 What I did should remove the HP damage done to yourself. TO add damage when SC_FUSION is on, find: case TK_DOWNKICK: skillratio += 60 + 20*skill_lv; break; add this above TK_DOWNKICK: case SC_FUSION: skillratio += 60 + 20*skill_lv; break; Test at your own will =/ Quote
RN1986 Posted August 6, 2012 Author Posted August 6, 2012 wow sir Mysterious thank you very much for helping me still error when compiling nwei thanks.. this one works What I did should remove the HP damage done to yourself. TO add damage when SC_FUSION is on, find:case TK_DOWNKICK: skillratio += 60 + 20*skill_lv; break; add this above TK_DOWNKICK: case SC_FUSION: skillratio += 60 + 20*skill_lv; break; Test at your own will =/ Quote
Mystery Posted August 6, 2012 Posted August 6, 2012 Alright, then the best thing to do is to keep the HP damage formula and just change it so that it deals less damage towards yourself for every hit =/ Quote
RN1986 Posted August 6, 2012 Author Posted August 6, 2012 (edited) edit: i though i solved it but it is not....hmmm any idea? how to add some damage? when SC_FUSION is on Edited August 7, 2012 by RN1986 Quote
Question
RN1986
every time i hit a monster it reflects on my charater star glad using union skill.
by the way star glad miss on emp how to fix it
bump
11 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.