Jump to content

Recommended Posts

  • 1 month later...
Posted (edited)

Em primeiro lugar amigo, isso não é um erro. É a contagem padrão do ataque mágico para a renovação.

Para deixar da forma que deseja, você deverá fazer uma edição na source (código fonte do emulador).

arquivo: status.c

procure a linha abaixo:

unsigned short status_base_matk(const struct status_data* status, int level){ return status->int_+(status->int_/2)+(status->dex/5)+(status->luk/3)+(level/4); }

Altere a formula da forma que desejar.

Após mudar, não se esqueça de recompilar.

Pessoalmente também não gostei dessa formula, então alterei para a seguinte:

unsigned short status_base_matk(const struct status_data* status, int level){ return (status->int_*5)+(level/4)+(status->dex/2)+(status->luk/2); }

Traduzindo:

Ataque Mágico = (Inteligência * 5) + (Nível Base / 4 ) + (Destreza / 2 ) + ( Sorte / 2 )

Algo mais completo ficaria:

unsigned short status_base_matk(const struct status_data* status, int level){
int matk = 0;
if( status!=NULL ) {
	matk = (status->int_*5)+(level/4)+(status->dex/2)+(status->luk/2);
	if( matk > 60000 ) {
		matk = 60000;
	}
}
if( matk < 0 ) matk = 0;
return (unsigned short)matk;
}

Att, Etherion.

Edited by etherion
  • Upvote 1

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...