Jump to content
  • 0

Need Src for Increase Matk like Matk from base Int


MyNoobScriptz

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  74
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

Hi im try to make item bonus to Increase Matk

My Code
 

case SP_MAXMATK:
	if(sd->state.lr_flag == 2)
		break;
	bonus = status->rhw.matk += val;
	status->rhw.matk = cap_value(bonus, 0, USHRT_MAX);
	break;

This code still Increase Matk right side (1032 in picture)

I need to Increase Matk left side (290 in picture)

Thx for advance

or tell me Matk left side and right side different or not ?

matk.png

Edited by MyNoobScriptz
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  882
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

@MyNoobScriptzWhy don't use the default item bonuses. Like "bonus bMatk,1000;" or "bonus bSMatk,1000;"

Bonuses:

https://raw.githubusercontent.com/rathena/rathena/master/doc/item_bonus.txt

 

Formula:

https://irowiki.org/wiki/MATK#StatusMATK

 

Rynbef~

Edited by Rynbef
Tagged member
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...