Jump to content
  • 0
Haruka Mayumi

Magic Damage Lifesteal

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
 

lrkz59M.png

 

^ this is the calculation hp_drain_rate does in battle.c

 

 

kqAt3C6.png

 

^ this is where hp_drain_rate is defined in pc.c

 

 

98bvQ27.png

 

^ 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 by blinzer
unclear what i'm referring to in screenshots
Link to comment
Share on other sites

  • 0

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;

 

Link to comment
Share on other sites

  • -1

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 by TheDerpySupport
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.