Jump to content
  • 0

how to fix this star glad skill like union


RN1986

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

  • -1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   3
  • Joined:  02/25/13
  • Last Seen:  

i cant remove the hp penalty. could someone please remove it heres my battle.c

battle.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

hey dude the union skill amplifies your damage . when you attack, it consumes HP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

ahh ahh see how to disable it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

sir Mysterious error when compiling what i wanna do is remove life consume and make it add more damage when buffed w/ union.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

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...