MyNoobScriptz Posted November 17, 2021 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 74 Reputation: 3 Joined: 05/01/15 Last Seen: Tuesday at 01:26 PM Share Posted November 17, 2021 (edited) 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 ? Edited November 18, 2021 by MyNoobScriptz Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 18, 2022 Group: Forum Moderator Topic Count: 44 Topics Per Day: 0.01 Content Count: 882 Reputation: 117 Joined: 05/23/12 Last Seen: 6 hours ago Share Posted January 18, 2022 (edited) @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 January 18, 2022 by Rynbef Tagged member Quote Link to comment Share on other sites More sharing options...
Question
MyNoobScriptz
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 ?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.