Hey guys, Could anyone show me how to create a SC_STATUS like SC_BURNING,
that deals damage based on players 'ATK/MATK instead of fixed or percentage damage?
I couldn't find a DoT effect where the damage depends on the player's stats, so I need your help.
Question
WhiteEagle
Hey guys, Could anyone show me how to create a SC_STATUS like SC_BURNING,
that deals damage based on players 'ATK/MATK instead of fixed or percentage damage?
I couldn't find a DoT effect where the damage depends on the player's stats, so I need your help.
Thanks ~
case SC_BURNING: if (sce->val4 >= 0) { int64 damage = 1000 + (3 * status->max_hp) / 100; // Deals fixed (1000 + 3%*MaxHP) map_freeblock_lock(); dounlock = true; status_fix_damage(bl, bl, damage, clif_damage(bl, bl, tick, 0, 1, damage, 1, DMG_NORMAL, 0, false),0); } break;
Link to comment
Share on other sites
0 answers 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.