Jump to content
  • 0
Sign in to follow this  
Neferupitou

Formula do Soul Breaker

Question

Boa noite pessoal, gostaria de saber como poderia modificar a formula do Soul Breaker, gostaria que a habilidade fosse baseada somente no ataque, não no ataque + int

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

como vc não deu informação alguma (como, qual emulador está usando, se é renewal ou não etc) e não tenho como adivinhar nada disso, vou apenas deixar isso pra vc:

 

	case ASC_BREAKER:		{#ifdef RENEWAL		md.damage = 500+rnd()%500 + 5*skill_lv * sstatus->int_;		nk|=NK_IGNORE_FLEE|NK_NO_ELEFIX; //These two are not properties of the weapon based part.#else		int ratio = 300 + 50 * skill_lv;		int64 matk = battle->calc_magic_attack(src, target, skill_id, skill_lv, mflag).damage;		short totaldef = status->get_total_def(target) + status->get_total_mdef(target);		int64 atk = battle->calc_base_damage(src, target, skill_id, skill_lv, nk, false, s_ele, ELE_NEUTRAL, EQI_HAND_R, (sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), md.flag);						if( sc && sc->data[SC_EDP] )			ratio >>= 1;		md.damage = (matk + atk) * ratio / 100;		md.damage -= totaldef;#endif		}		break;
Edited by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

tenta algo do tipo:

 

	case ASC_BREAKER:		{		int ratio = 300 + 50 * skill_lv;		short totaldef = status->get_total_def(target) + status->get_total_mdef(target);		int64 atk = battle->calc_base_damage(src, target, skill_id, skill_lv, nk, false, s_ele, ELE_NEUTRAL, EQI_HAND_R, (sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), md.flag);						if( sc && sc->data[SC_EDP] )			ratio >>= 1;		md.damage = atk * ratio / 100;		md.damage -= totaldef;		}		break;

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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