Jump to content
  • 0

Pre-Rene matk+5 with each refine


WhiteEagle

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Is someone so kind and would write me the function that weapons also get Matk pro upgrade? (For Pre-Renewal)

Thanks in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

At first, thanks for your time and response.
I know how to add it as an itemscript, but I don't want to edit it for each weapon individually.
I wanted to change it in the source directly

I found this part in status.cpp (line 3678)

wa->atk += sd->inventory_data[index]->atk;
if( info != nullptr ){
	wa->atk2 += info->bonus / 100;

I tried to add this line below

wa->matk += info->bonus / 100;

 compile error says: 'matk' isn't a member from 'weapon_atk'.

Maybe you or someone know what I need to.

Link to comment
Share on other sites

  • -1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

bonus bMatk,(getrefine() + 10);     			Magical attack power +10 per refine
bonus bMatkRate,(getrefine() + 2); 			Magical attack power + 2% per refine

 

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