MyNoobScriptz Posted November 17, 2021 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 Share Posted January 18 (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 by Rynbef Tagged member Quote Link to comment Share on other sites More sharing options...
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 by MyNoobScriptzLink to comment
Share on other sites