Jump to content
  • 0

Magic Damage Lifesteal


Haruka Mayumi

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/11/14
  • Last Seen:  

 

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

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  04/16/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

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