Jump to content
  • 0

Very low matk support in Renewal


Question

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

Yeah in status.c 

unsigned short status_base_matk_min(struct block_list *bl, const struct status_data* status, int level)
{
	switch (bl->type) {
		case BL_PET:
		case BL_MOB:
		case BL_MER:
		case BL_ELEM:
			return status->int_ + level + status->rhw.matk * 70 / 100;
		case BL_HOM:
			return status_get_homint(bl) + level + (status_get_homint(bl) + status_get_homdex(bl)) / 5;
		case BL_PC:
		default:
			return status->int_ + (status->int_ / 2) + (status->dex / 5) + (status->luk / 3) + (level / 4);
	}
}

/*
* Calculates maximum magic attack
*/
unsigned short status_base_matk_max(struct block_list *bl, const struct status_data* status, int level)
{
	switch (bl->type) {
		case BL_PET:
		case BL_MOB:
		case BL_MER:
		case BL_ELEM:
			return status->int_ + level + status->rhw.matk * 130 / 100;
		case BL_HOM:
			return status_get_homint(bl) + level + (status_get_homluk(bl) + status_get_homint(bl) + status_get_homdex(bl)) / 3;
		case BL_PC:
		default:
			return status->int_ + (status->int_ / 2) + (status->dex / 5) + (status->luk / 3) + (level / 4);
	}
}
#endif

this part is player 

Case BL_PC:

default:

return status->int_ + (status->int_ / 2) + (status->dex / 5) + (status->luk / 3) + (level / 4);

 

Also recompile after making changes in your SRC folder 

Edited by lllaaazzz
  • 0
Posted
4 hours ago, Giant Whisper said:

well but as I modify it to be as PRE RE

pretty sure the only difference is that in PRE RE matk didnt get any bonus from dex and luk , just INT so just replace it with this

 

return status->int_ + (status->int_ / 7) * (status->int_ / 7);

return status->int_ + (status->int_ / 5) * (status->int_ / 5);

the top one is minimum matk and bottom is maximum

  • 0
Posted
On 2/3/2019 at 8:27 PM, Giant Whisper said:

is that currently unmodified if I use @allstats all 255 int, dex, str ect maximum matk approximate 500

I would like the status in general to be as always in pre re but using Re 

 
 

Yeah

But in general pre re formula would equial to less the re formula (i think lol)

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.

  • Recently Browsing   0 members

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