Haruka Mayumi Posted January 17, 2018 Posted January 17, 2018 Hi, is there anyone that can add bonus2 bMagicHPDrainRate,x,n;(Magic Type Skills) like bonus2 bHPDrainRate,x,n; (For Physical Only) I Actually add 100% chance to lifesteal on my server. however Mages or Magic Type Characters can't lifesteal using the bonus2 bHPDrainRate,x,n;. hoping that someone could help me on this. Thank you Quote
0 blinzer Posted February 10, 2018 Posted February 10, 2018 (edited) ^ this is the calculation hp_drain_rate does in battle.c ^ this is where hp_drain_rate is defined in pc.c ^ you'll probably have to define your new bonus here in map.h what you'll have to do on your own is figure out how to make it calculate the magic damage in battle.c, and then use that the same way these use weapon damage Edited February 10, 2018 by blinzer unclear what i'm referring to in screenshots Quote
0 t3quila Posted October 30, 2018 Posted October 30, 2018 is this possible? case SP_MAGIC_HP_DRAIN_RATE: // bonus2 bMagicHPDrainRate,x,n; if(!sd->state.lr_flag) { sd->skillatk.hp_drain_rate.rate += type2; sd->skillatk.hp_drain_rate.per += val; } break; case SP_MAGIC_SP_DRAIN_RATE: // bonus2 bMagicSPDrainRate,x,n; if(!sd->state.lr_flag) { sd->skillatk.sp_drain_rate.rate += type2; sd->skillatk.sp_drain_rate.per += val; } break; Quote
-2 TheDerpySupport Posted January 17, 2018 Posted January 17, 2018 (edited) I'm curious but is this not what you're asking for? bonus bMagicHPGainValue,n; Heals +n HP when killing an enemy with a magical attack I'm sorry I didn't fully read that this is a defined value and not a percentage. Edited January 17, 2018 by TheDerpySupport Quote
Question
Haruka Mayumi
Hi, is there anyone that can add
bonus2 bMagicHPDrainRate,x,n;(Magic Type Skills) like
bonus2 bHPDrainRate,x,n; (For Physical Only)
I Actually add 100% chance to lifesteal on my server. however Mages or Magic Type Characters can't lifesteal using the bonus2 bHPDrainRate,x,n;.
hoping that someone could help me on this. Thank you
3 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.