Jump to content
  • 0
RN1986

how to fix this star glad skill like union

Question

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 /pif

bump

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

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 ) {

  • Upvote 1
Link to comment
Share on other sites

  • -1

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 =/

Link to comment
Share on other sites

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 =/

Link to comment
Share on other sites

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 =/

Link to comment
Share on other sites

edit: i though i solved it but it is not....hmmm any idea? how to add some damage? when SC_FUSION is on

Edited by RN1986
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.